Mastering EJB LogBean Example


EJB programming & troubleshooting: Mastering EJB LogBean Example

  1. Mastering EJB LogBean Example (1 messages)

    Have encountered an error trying to run the Client to the LogBean example (Chapter 8). I've serached the WebLogic docs, the Java API, even the web, but am at a loss as to what this stack trace is telling me is wrong. I'm new to J2EE and still groping abit; any clues would be appreciated!

    It appears the error is occurring on the following line in

            // 4: Lookup Desintation (topic) via JNDI
            Topic topic = (Topic) ctx.lookup("testtopic");

    The resulting stack trace follows:

         [java] Got initial context.
         [java] Got ConnectionFactory.
         [java] Got Connection.
         [java] Got Session.
         [java] weblogic.jms.common.DestinationImpl; Local class not compatible: stream classdesc serialVersionUID=6099783323740404732 local class serialVersionUID=-7124492888158518181
         [java] at
         [java] at
         [java] at
         [java] at
         [java] at
         [java] at weblogic.rjvm.ClassTableEntry.readExternal(
         [java] at
         [java] at
         [java] at
         [java] at weblogic.rjvm.InboundMsgAbbrev.readObject(
         [java] at
         [java] at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(
         [java] at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(
         [java] at weblogic.rjvm.ConnectionManager.dispatch(
         [java] at weblogic.rjvm.t3.T3JVMConnection.dispatch(
         [java] at weblogic.socket.JavaSocketMuxer.processSockets(
         [java] at weblogic.socket.SocketReaderRequest.execute(
         [java] at weblogic.kernel.ExecuteThread.execute(
         [java] at
  2. Mastering EJB LogBean Example[ Go to top ]

    OK, found the problem myself.

    I had the classpath set to include /weblogic700/server/lib/*.jar. Change this to only include /weblogic700/server/lib/weblogic.jar.

    I can only guess that there's some class duplication amongst the jar files in that directory. That might explain the serialization conflict.