Registering an Applet to JMS

Discussions

EJB programming & troubleshooting: Registering an Applet to JMS

  1. Registering an Applet to JMS (1 messages)

    Hi,

    When I register an applet to JMS in WebLogic 6.0 , I get the following exception.Do I have to create a stub and skeleton seperately. If so, how do I create them.Where does the app server look for these.Please update.


    weblogic.jms.common.JMSException: java.rmi.MarshalException: failed to marshal public abstract weblogic.jms.client.JMSConnection weblogic.jms.frontend.FEConnectionFactoryRemote.createConnection(weblogic.rjvm.JVMID,weblogic.jms.client.JMSCallbackRemote) throws javax.jms.JMSException,java.rmi.RemoteException; nested exception is:
            java.io.NotSerializableException: weblogic.jms.client.JMSCallback
            at weblogic.jms.client.JMSConnectionFactory.createConnection(JMSConnectionFactory.java:76)
            at weblogic.jms.client.JMSConnectionFactory.createTopicConnection(JMSConnectionFactory.java:58)
            at examples.jms.eventNotifier.AlarmNotifierApplet.startConnection(AlarmNotifierApplet.java:50)
            at examples.jms.eventNotifier.AlarmNotifierApplet.init(AlarmNotifierApplet.java:91)
            at sun.applet.AppletPanel.run(AppletPanel.java:344)
            at java.lang.Thread.run(Thread.java:484)
    ----------- Linked Exception -----------
    java.rmi.MarshalException: failed to marshal public abstract weblogic.jms.client.JMSConnection weblogic.jms.frontend.FEConnectionFactoryRemote.createConnection(weblogic.rjvm.JVMID,weblogic.jms.client.JMSCallbackRemote) throws javax.jms.JMSException,java.rmi.RemoteException; nested exception is:
            java.io.NotSerializableException: weblogic.jms.client.JMSCallback
    java.io.NotSerializableException: weblogic.jms.client.JMSCallback
            at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
            at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
            at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:102)
            at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:108)
            at weblogic.rmi.internal.ObjectIO.writeObject(ObjectIO.java:19)
            at weblogic.rmi.internal.BasicRemoteRef.marshalArgs(BasicRemoteRef.java:121)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:246)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:225)
            at weblogic.jms.frontend.FEConnectionFactory_WLStub.createConnection(FEConnectionFactory_WLStub.java:82)
            at weblogic.jms.client.JMSConnectionFactory.createConnection(JMSConnectionFactory.java:72)
            at weblogic.jms.client.JMSConnectionFactory.createTopicConnection(JMSConnectionFactory.java:58)
            at examples.jms.eventNotifier.AlarmNotifierApplet.startConnection(AlarmNotifierApplet.java:50)
            at examples.jms.eventNotifier.AlarmNotifierApplet.init(AlarmNotifierApplet.java:91)
            at sun.applet.AppletPanel.run(AppletPanel.java:344)
            at java.lang.Thread.run(Thread.java:484)
  2. Registering an Applet to JMS[ Go to top ]

    This looks a bit odd, since the object you are registering for here, is supposed to be served remotely (It's an administered resource after all.) It doesn't make sense for it not to be serializable.

    Post the code from your applet that tries to register, that would make it easier to track down.

    Chz

    Tony