Bug 688392 - JON 2.4.1: Solaris - ProfileService DEBUG exception
JON 2.4.1: Solaris - ProfileService DEBUG exception
Status: NEW
Product: RHQ Project
Classification: Other
Component: Plugins (Show other bugs)
3.0.0
Unspecified Other
unspecified Severity low (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-16 18:42 EDT by Ondřej Žižka
Modified: 2011-05-23 20:59 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ondřej Žižka 2011-03-16 18:42:18 EDT
On Solaris 10, the JBoss AS plugin logs an exception at DEBUG level,
Not that I am that much unconfortable with it;
but I didn't notice that on RHEL, so I thought this might be handled not to clutter debug log with stacktraces.

Sparc 10

-bash-3.00# uname -a
SunOS dev92.qa.atl2.redhat.com 5.10 Generic_118833-36 sun4v sparc SUNW,Sun-Fire-T1000



2011-03-16 18:23:11,820 DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.plugins.jbossas5.connection.LocalProfileServiceConnectionProvider)- Connecting to Profile Service via local JNDI...
2011-03-16 18:23:11,822 DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.plugins.jbossas5.connection.LocalProfileServiceConnectionProvider)- Creating JNDI InitialContext with env [null]...
2011-03-16 18:23:11,824 DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.plugins.jbossas5.connection.LocalProfileServiceConnectionProvider)- Created JNDI InitialContext [javax.naming.InitialContext@dbc0b3].
2011-03-16 18:23:11,826 DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (org.rhq.plugins.jbossas5.InProcessJBossASDiscovery)- Unable to connect to in-process ProfileService.
java.lang.RuntimeException: Failed to lookup JNDI name 'java:ProfileService' from InitialContext.
        at org.rhq.plugins.jbossas5.connection.AbstractProfileServiceConnectionProvider.lookup(AbstractProfileServiceConnectionProvider.java:84)
        at org.rhq.plugins.jbossas5.connection.LocalProfileServiceConnectionProvider.doConnect(LocalProfileServiceConnectionProvider.java:47)
        at org.rhq.plugins.jbossas5.connection.LocalProfileServiceConnectionProvider.doConnect(LocalProfileServiceConnectionProvider.java:39)
        at org.rhq.plugins.jbossas5.connection.AbstractProfileServiceConnectionProvider.connect(AbstractProfileServiceConnectionProvider.java:42)
        at org.rhq.plugins.jbossas5.InProcessJBossASDiscovery.discoverInProcessJBossAS(InProcessJBossASDiscovery.java:69)
        at org.rhq.plugins.jbossas5.ApplicationServerDiscoveryComponent.discoverInProcessJBossAS(ApplicationServerDiscoveryComponent.java:275)
        at org.rhq.plugins.jbossas5.ApplicationServerDiscoveryComponent.discoverResources(ApplicationServerDiscoveryComponent.java:117)
        at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:279)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at org.rhq.plugins.jbossas5.connection.AbstractProfileServiceConnectionProvider.lookup(AbstractProfileServiceConnectionProvider.java:81)
        ... 15 more

Note You need to log in before you can comment on or make changes to this bug.