1 2 Previous Next 15 Replies Latest reply: Apr 26, 2012 5:23 AM by 932533 Go to original post RSS
      • 15. Re: jndi unknown source with jms
        932533
        the following is the error now... now it is different error



        D:\>java SimpleTopicPublisher jms/MyTopic 3
        Topic name is jms/MyTopic
        Apr 26, 2012 3:50:22 PM com.sun.enterprise.v3.server.CommonClassLoaderServiceImp
        l findDerbyClient
        INFO: Cannot find javadb client jar file, derby jdbc driver will not be availabl
        e by default.
        SLF4J: Class path contains multiple SLF4J bindings.
        SLF4J: Found binding in [jar:file:/D:/glassfish3/glassfish/modules/bean-validato
        r.jar!/org/slf4j/impl/StaticLoggerBinder.class]
        SLF4J: Found binding in [jar:file:/D:/glassfish3/glassfish/modules/weld-osgi-bun
        dle.jar!/org/slf4j/impl/StaticLoggerBinder.class]
        SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

        Apr 26, 2012 3:50:29 PM org.hibernate.validator.util.Version <clinit>
        INFO: Hibernate Validator 4.2.0.Final
        Apr 26, 2012 3:50:29 PM com.sun.messaging.jms.ra.ResourceAdapter start
        INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter: Version: 4.5.2 (Build
        2-d) Compile: Thu Dec 8 17:30:48 PST 2011
        Apr 26, 2012 3:50:29 PM com.sun.messaging.jms.ra.ResourceAdapter start
        INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter starting: broker is REMO
        TE, connection mode is TCP
        Apr 26, 2012 3:50:29 PM com.sun.messaging.jms.ra.ResourceAdapter start
        INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter Started:REMOTE
        Apr 26, 2012 3:50:30 PM com.sun.enterprise.connectors.util.SetMethodAction handl
        eException
        WARNING: RAR7096: Exception null while trying to set the value jms/MyTopic on pr
        operty Name
        JNDI API lookup failed: javax.naming.CommunicationException: Communication excep
        tion for SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=3700, java.naming.fac
        tory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, org.omg.CO
        RBA.ORBInitialHost=localhost, java.naming.factory.state=com.sun.corba.ee.impl.pr
        esentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterp
        rise.naming} [Root exception is com.sun.appserv.connectors.internal.api.PoolingE
        xception]
        javax.naming.CommunicationException: Communication exception for SerialContext[m
        yEnv={org.omg.CORBA.ORBInitialPort=3700, java.naming.factory.initial=com.sun.ent
        erprise.naming.impl.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=local
        host, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIState
        FactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root excep
        tion is com.sun.appserv.connectors.internal.api.PoolingException]
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.jav
        a:542)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.jav
        a:455)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at SimpleTopicPublisher.main(SimpleTopicPublisher.java:126)
        Caused by: com.sun.appserv.connectors.internal.api.PoolingException
        at com.sun.enterprise.resource.beans.AdministeredObjectResource.createAd
        ministeredObject(AdministeredObjectResource.java:204)
        at com.sun.enterprise.resource.naming.AdministeredObjectFactory.getObjec
        tInstance(AdministeredObjectFactory.java:134)
        at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
        at com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(Serial
        Context.java:556)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.jav
        a:514)
        ... 3 more
        Caused by: java.security.PrivilegedActionException: com.sun.appserv.connectors.i
        nternal.api.ConnectorRuntimeException
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.resource.beans.AdministeredObjectResource.createAd
        ministeredObject(AdministeredObjectResource.java:181)
        ... 7 more
        Caused by: com.sun.appserv.connectors.internal.api.ConnectorRuntimeException
        at com.sun.enterprise.connectors.util.SetMethodAction.handleException(Se
        tMethodAction.java:152)
        at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodActio
        n.java:136)
        ... 9 more
        Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodActio
        n.java:105)
        ... 9 more
        Caused by: java.lang.IllegalArgumentException: MQ:Topic:Invalid Topic Name - jms
        /MyTopic
        at com.sun.messaging.Topic.setName(Topic.java:96)
        ... 14 more
        1 2 Previous Next