1 Reply Latest reply on May 27, 2011 3:32 PM by Clebert Suconic

    Can not run servlet-transport example

    Amar Das Newbie

      I am using Jboss6 final.  Get the following error when I issue build.bat run

       

      C:\Java\hornetq-2.2.2.Final\examples\javaee\servlet-transport>build.bat run

      Build script found javac.

      hit alternate

      Using the following ant version from ..\..\..\tools\ant:

      calling ..\..\..\tools\ant\bin\ant.bat -version

      Apache Ant version 1.7.1 compiled on June 27 2008

      calling ..\..\..\tools\ant\bin\ant.bat run -Dhornetq.run_script=true

      Buildfile: build.xml

       

      run:

       

      validate-jboss:

       

      init:

       

      compile:

       

      runExample:

           [java] Exception in thread "main" javax.naming.NamingException: Could not dereference object [Root exception is java.io.InvalidClassException: or

      g.hornetq.core.client.impl.ClientSessionFactoryImpl; org.hornetq.core.client.impl.ClientSessionFactoryImpl; class invalid for deserialization]

           [java]     at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1504)

           [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)

           [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)

           [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)

           [java]     at org.hornetq.javaee.example.ServletTransportExample.main(ServletTransportExample.java:44)

           [java] Caused by: java.io.InvalidClassException: org.hornetq.core.client.impl.ClientSessionFactoryImpl; org.hornetq.core.client.impl.ClientSessio

      nFactoryImpl; class invalid for deserialization

           [java]     at java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:713)

           [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1733)

           [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

           [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

           [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

           [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

           [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

           [java]     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

           [java]     at org.hornetq.jms.referenceable.SerializableObjectRefAddr.deserialize(SerializableObjectRefAddr.java:79)

           [java]     at org.hornetq.jms.referenceable.ConnectionFactoryObjectFactory.getObjectInstance(ConnectionFactoryObjectFactory.java:43)

           [java]     at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

           [java]     at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)

           [java]     at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)

           [java]     ... 4 more

           [java] Caused by: java.io.InvalidClassException: org.hornetq.core.client.impl.ClientSessionFactoryImpl; class invalid for deserialization

           [java]     at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:587)

           [java]     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)

           [java]     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)

           [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)

           [java]     ... 15 more

           [java] Java Result: 1

       

      BUILD SUCCESSFUL

      Total time: 1 second

      Done