1 Reply Latest reply: Nov 13, 2012 5:21 PM by 972160 RSS

    JMSException : Failed to parse descriptor file : npx BasicRuntimeDescriptor

    972160
      I'm trying to implement my first jms queue using Weblogic and Eclipse and get an error message when I try to create a topic connection.

      I have a "Oracle WebLogic Server 12c (12.1.1) at localhost [base_domain]" server running. I run the following code using Debug As >>Java Application.

      public static void main(String[] args) throws Exception {
           Hashtable<String,String> env = new Hashtable<String,String>();
           env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
           env.put(Context.PROVIDER_URL, "t3://localhost:7001");
           env.put("weblogic.jndi.createIntermediateContexts", "true");
           InitialContext ic = new InitialContext(env);
      TopicConnectionFactory tconFactory = (TopicConnectionFactory)
           PortableRemoteObject.narrow(ic.lookup("weblogic.jms.ConnectionFactory"),
           TopicConnectionFactory.class);
      TopicConnection tcon = tconFactory.createTopicConnection();
      ..........
      }

      The failure occurs when the last statement about is executed. Thanks in advance for your help.
      \====================================================================
      Exception in thread "main" weblogic.jms.common.JMSException: [JMSClientExceptions:055053]Error creating connection to the server: java.rmi.MarshalException: failed to marshal connectionCreateRequest(Lweblogic.jms.frontend.FEConnectionCreateRequest;); nested exception is:
           java.rmi.UnexpectedException: Failed to parse descriptor file; nested exception is:
           java.lang.NullPointerException.
           at weblogic.jms.client.JMSConnectionFactory.setupJMSConnection(JMSConnectionFactory.java:258)
           at weblogic.jms.client.JMSConnectionFactory.createConnectionInternal(JMSConnectionFactory.java:285)
           at weblogic.jms.client.JMSConnectionFactory.createTopicConnection(JMSConnectionFactory.java:184)
           at examples.jms.topic.TopicReceive.main(TopicReceive.java:121)
      Caused by: java.rmi.MarshalException: failed to marshal connectionCreateRequest(Lweblogic.jms.frontend.FEConnectionCreateRequest;); nested exception is:
           java.rmi.UnexpectedException: Failed to parse descriptor file; nested exception is:
           java.lang.NullPointerException
           at weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java:92)
           at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:453)
           at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:272)
           at weblogic.jms.frontend.FEConnectionFactoryImpl_1211_WLStub.connectionCreateRequest(Unknown Source)
           at weblogic.jms.client.JMSConnectionFactory.setupJMSConnection(JMSConnectionFactory.java:224)
           ... 3 more
      Caused by: java.rmi.UnexpectedException: Failed to parse descriptor file; nested exception is:
           java.lang.NullPointerException
           at weblogic.rmi.internal.DescriptorManager.createRuntimeDescriptor(DescriptorManager.java:114)
           at weblogic.rmi.internal.DescriptorManager.getBasicRuntimeDescriptor(DescriptorManager.java:85)
           at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:51)
           at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:37)
           at weblogic.rmi.internal.OIDManager.makeServerReference(OIDManager.java:194)
           at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:175)
           at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceSmartStubInfo(RemoteObjectReplacer.java:117)
           at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceObject(RemoteObjectReplacer.java:103)
           at weblogic.rmi.utils.io.InteropObjectReplacer.replaceObject(InteropObjectReplacer.java:62)
           at weblogic.utils.io.ChunkedObjectOutputStream.replaceObject(ChunkedObjectOutputStream.java:39)
           at weblogic.utils.io.ChunkedObjectOutputStream$NestedObjectOutputStream.replaceObject(ChunkedObjectOutputStream.java:142)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
           at weblogic.messaging.dispatcher.DispatcherWrapper.writeExternal(DispatcherWrapper.java:156)
           at weblogic.jms.frontend.FEConnectionCreateRequest.writeExternal(FEConnectionCreateRequest.java:98)
           at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1443)
           at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1414)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
           at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:623)
           at weblogic.rjvm.MsgAbbrevOutputStream.writeObjectWL(MsgAbbrevOutputStream.java:614)
           at weblogic.rmi.internal.ObjectIO.writeObject(ObjectIO.java:38)
           at weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java:88)
           ... 7 more
      Caused by: java.lang.NullPointerException
           at weblogic.rmi.internal.BasicRuntimeDescriptor.createSkeletonClass(BasicRuntimeDescriptor.java:271)
           at weblogic.rmi.internal.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:157)
           at weblogic.rmi.internal.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:139)
           at weblogic.rmi.internal.DescriptorManager.createRuntimeDescriptor(DescriptorManager.java:106)
           ... 29 more