6 Replies Latest reply on Aug 2, 2005 6:47 PM by Biswojit Patsahani

    Problem in porting of Swing/ jboss app from Jboss-3.2.2 to J

    Biswojit Patsahani Newbie

      Hi All

      I am trying to port an application from jboss3.2.2 to jboss4.0.2
      but the Swing client can't get access to jboss AS-4.0.2 but it works fine with 3.2.2. It seems a JNDI problem...
      If anybody has got any idea please let me know

      Thanks

        • 1. Re: Problem in porting of Swing/ jboss app from Jboss-3.2.2
          Darran Lofthouse Master

          Have you made sure that the Swing application is configured to use the jars from JBoss 4.0.2 instead of the jars from JBoss 3.2.2.

          If this is not the problem could you please post the exception (including stack trace) here.

          • 2. Re: Problem in porting of Swing/ jboss app from Jboss-3.2.2
            Biswojit Patsahani Newbie

            Hi darranl,
            Thanks for your reply.
            Here is the stack trace

            javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.util.id.GUID; local class incompatible: stream classdesc serialVersionUID = 3289509836244263718, local class serialVersionUID = 6926421946503004889]
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at nz.tcs.eve.common.messaging.commands.BaseMTO.lookupReadGatewayHome(BaseMTO.java:136)
            at nz.tcs.eve.common.messaging.commands.BaseMTO.threadedSend(BaseMTO.java:65)
            at nz.tcs.eve.common.messaging.commands.BaseMTO.access$000(BaseMTO.java:23)
            at nz.tcs.eve.common.messaging.commands.BaseMTO$1.run(BaseMTO.java:53)
            at nz.tcs.eve.client.util.WorkerQueue.doWork(WorkerQueue.java:71)
            at nz.tcs.eve.client.util.WorkerQueue$WorkerThread.run(WorkerQueue.java:90)
            Caused by: java.io.InvalidClassException: org.jboss.util.id.GUID; local class incompatible: stream classdesc serialVersionUID = 3289509836244263718, local class serialVersionUID = 6926421946503004889
            at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
            at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at org.jboss.invocation.InvokerInterceptor.readExternal(InvokerInterceptor.java:125)
            at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:66)
            at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:66)
            at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:66)
            at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:111)
            at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
            at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
            at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:550)
            ... 8 more

            • 3. Re: Problem in porting of Swing/ jboss app from Jboss-3.2.2
              Darran Lofthouse Master

              Yes the error looks as if you are using the wrong jars with the client to access JBoss.

              The client needs the jars from JBoss 4.0.2 to access JBoss 4.0.2.

              • 4. Re: Problem in porting of Swing/ jboss app from Jboss-3.2.2
                Biswojit Patsahani Newbie

                Hi Darranl,

                Yes you are right.

                Thanks for your help.

                • 5. Re: Problem in porting of Swing/ jboss app from Jboss-3.2.2
                  Joseph Hickman Newbie

                  I'm experiencing the exact same problem looking up EJB's remotely (from one JBOSS server to another JBOSS server). What client jars did you include? Thanks.

                  • 6. Re: Problem in porting of Swing/ jboss app from Jboss-3.2.2
                    Biswojit Patsahani Newbie

                    Hi Joseph,
                    Did you manage to find right jars?
                    If not could please post your client jar lists so that I can compare those
                    with mine.

                    Thanks
                    Biswojit