2 Replies Latest reply on Oct 27, 2010 3:34 AM by fmtjboss

    UnsupportedOperationException from FastNamingProperties when lookup a queue from inside a web app running in tomcat 6

    fmtjboss

      HornetQ 2.1.2 is running in standalonemode with JNDI.

       

      When I try to lookup a queue from inside a standalone app, everything is ok.
      But when it is done from inside a web app (running in tomcat 6), I get this exception :

       

      java.lang.UnsupportedOperationException
          at org.jnp.interfaces.FastNamingProperties.toString(FastNamingProperties.java:175)
          at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1379)
          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
          at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
          at javax.naming.CompoundName.writeObject(CompoundName.java:541)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
          at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
          at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
          at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
          at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274)
          at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
          at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
          at javax.naming.InitialContext.lookup(InitialContext.java:392)
         

       

      Here is the list of the jar I use from hornetq-2.1.2.Final:
      hornetq-core-client
      hornetq-jms-client
      hornetq-logging
      jboss-jms-api
      jnp-client
      netty

       


      Do you have any clue why I get this exception and how I can resolve it ?
      Thanks for your help ?

       

      Fred