Loading ...
Sorry, an error occurred while loading the content.

Occasional failures deserializing

Expand Messages
  • ramjisro
    We ve been using the evaluation version of JSX and have decided to purchase the product. We have recently begun encountering a problem deserializing our
    Message 1 of 4 , Nov 4, 2003
    • 0 Attachment
      We've been using the evaluation version of JSX and have decided to
      purchase the product.

      We have recently begun encountering a problem deserializing our
      objects. The problem only occurs intermittently and we are unable to
      reproduce it at will. We are using J2SE 1.4.1 on Windows 2000.

      On one occasion where the failure occurred, it generated the
      following stack trace:

      java.lang.InternalError: java.lang.IllegalArgumentException:
      java.lang.ClassCastException@1d69fa3
      at JSX.ObjectReader.readObjectInvoke(ObjectReader.java:1441)
      at JSX.ObjectReader.fillDeclaredClass(ObjectReader.java:1177)
      at JSX.ObjectReader.object(ObjectReader.java:998)
      at JSX.ObjectReader.readObject(ObjectReader.java:465)
      at JSX.ObjectReader.readObjectOverride(ObjectReader.java:426)
      at java.io.ObjectInputStream.readObject
      (ObjectInputStream.java:318)
      at
      com.rbccm.arch.pubsub.formatter.ObjectXmlJSXFormatter.unformat
      (ObjectXmlJSXFormatter.java:115)
      at
      com.rbccm.arch.pubsub.transport.Subscription.fireMessageReceived
      (Subscription.java:110)
      at com.rbccm.arch.pubsub.transport.RvSubscription.onMsg
      (RvSubscription.java:108)
      at com.tibco.tibrv.TibrvEvent.invoke(TibrvEvent.java:160)
      at com.tibco.tibrv.TibrvImplQueueC.natDispatch(Native Method)
      at com.tibco.tibrv.TibrvImplQueueC.dispatch
      (TibrvImplQueueC.java:44)
      at com.tibco.tibrv.TibrvQueue.dispatch(TibrvQueue.java:301)
      at com.tibco.tibrv.TibrvDispatcher.run
      (TibrvDispatcher.java:169)
    • Brendan Macmillan
      OK, this is very odd. Could it be a classloader issue? The same class, loaded by different classloaders, can cause a ClassCastException. In your case, it
      Message 2 of 4 , Nov 6, 2003
      • 0 Attachment
        OK, this is very odd.

        Could it be a classloader issue? The same class, loaded by
        different classloaders, can cause a ClassCastException. In your
        case, it would need to be java.io.ObjectInputStream that is loaded by
        different classloaders, which seems unlikely.

        Classloading issues are rife in app servers, so this could be the
        cause.

        Also, the hashcode for the exception is unusual:
        java.lang.ClassCastException@1d69fa3

        Where is JSX in your classpath?


        Cheers,
        Brendan

        --- In JSX-ideas@yahoogroups.com, "ramjisro" <roland.ramjist@r...>
        wrote:
        > We've been using the evaluation version of JSX and have decided to
        > purchase the product.
        >
        > We have recently begun encountering a problem deserializing our
        > objects. The problem only occurs intermittently and we are unable
        to
        > reproduce it at will. We are using J2SE 1.4.1 on Windows 2000.
        >
        > On one occasion where the failure occurred, it generated the
        > following stack trace:
        >
        > java.lang.InternalError: java.lang.IllegalArgumentException:
        > java.lang.ClassCastException@1d69fa3
        > at JSX.ObjectReader.readObjectInvoke(ObjectReader.java:1441)
        > at JSX.ObjectReader.fillDeclaredClass(ObjectReader.java:1177)
        > at JSX.ObjectReader.object(ObjectReader.java:998)
        > at JSX.ObjectReader.readObject(ObjectReader.java:465)
        > at JSX.ObjectReader.readObjectOverride(ObjectReader.java:426)
        > at java.io.ObjectInputStream.readObject
        > (ObjectInputStream.java:318)
        > at
        > com.rbccm.arch.pubsub.formatter.ObjectXmlJSXFormatter.unformat
        > (ObjectXmlJSXFormatter.java:115)
        > at
        > com.rbccm.arch.pubsub.transport.Subscription.fireMessageReceived
        > (Subscription.java:110)
        > at com.rbccm.arch.pubsub.transport.RvSubscription.onMsg
        > (RvSubscription.java:108)
        > at com.tibco.tibrv.TibrvEvent.invoke(TibrvEvent.java:160)
        > at com.tibco.tibrv.TibrvImplQueueC.natDispatch(Native Method)
        > at com.tibco.tibrv.TibrvImplQueueC.dispatch
        > (TibrvImplQueueC.java:44)
        > at com.tibco.tibrv.TibrvQueue.dispatch(TibrvQueue.java:301)
        > at com.tibco.tibrv.TibrvDispatcher.run
        > (TibrvDispatcher.java:169)
      • Roland Ramjist
        The failure occurred when running the application under Eclipse so I don t know whether or not that eliminates the classloader as a possible cause. The
        Message 3 of 4 , Nov 7, 2003
        • 0 Attachment
          The failure occurred when running the application under Eclipse so I
          don't know whether or not that eliminates the classloader as a
          possible cause.

          The classpath that is being used is as follows:

          <?xml version="1.0" encoding="UTF-8"?>
          <classpath>
          <classpathentry excluding="**/CVS/" kind="src"
          path="src/lib/java"/>
          <classpathentry excluding="**/CVS/" kind="src"
          path="test/lib/java"/>
          <classpathentry kind="con"
          path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
          <classpathentry kind="lib" path="lib/java/xercesImpl.jar"/>
          <classpathentry kind="lib" path="lib/java/commons-pool.jar"/>
          <classpathentry kind="lib" path="lib/java/commons-dbcp.jar"/>
          <classpathentry kind="lib" path="lib/java/commons-lang-1.0-
          mod.jar"/>
          <classpathentry kind="lib" path="lib/java/commons-collections-
          2.0.jar"/>
          <classpathentry kind="lib" path="lib/java/junit.jar"
          sourcepath="MMDirect/lib/java/src.jar"/>
          <classpathentry kind="lib" path="lib/java/jconn2.jar"/>
          <classpathentry kind="lib" path="lib/java/mdate.jar"/>
          <classpathentry kind="lib" path="lib/java/com.ibm.mq.jar"/>
          <classpathentry kind="lib" path="lib/java/tibrvj.jar"/>
          <classpathentry kind="lib" path="lib/java/j2ee.jar"/>
          <classpathentry kind="lib" path="lib/java/jmxri.jar"/>
          <classpathentry kind="lib" path="lib/java/xml-apis.jar"/>
          <classpathentry kind="lib" path="lib/java/rbcpubsub.jar"/>
          <classpathentry kind="lib" path="lib/java/aaa.jar"/>
          <classpathentry kind="lib" path="lib/java/AES.jar"/>
          <classpathentry kind="lib" path="lib/java/mysql-connector-java-
          3.0.8-stable-bin.jar"/>
          <classpathentry kind="lib" path="lib/java/axis.jar"/>
          <classpathentry kind="lib" path="lib/java/axis-extend.jar"/>
          <classpathentry kind="lib" path="lib/java/eaiframework.jar"/>
          <classpathentry kind="lib" path="lib/java/jaxrpc.jar"/>
          <classpathentry kind="lib" path="lib/java/commons-discovery.jar"/>
          <classpathentry kind="lib" path="lib/java/connector.jar"/>
          <classpathentry kind="lib" path="lib/java/saaj.jar"/>
          <classpathentry kind="lib" path="lib/java/commons-logging.jar"/>
          <classpathentry kind="lib" path="lib/java/p6spy.jar"/>
          <classpathentry kind="lib" path="lib/java/freehep-hep.jar"/>
          <classpathentry kind="lib" path="lib/java/jakarta-oro-2.0.7.jar"/>
          <classpathentry kind="lib" path="lib/java/ecn-client.jar"/>
          <classpathentry kind="lib" path="lib/java/weblogic.jar"/>
          <classpathentry kind="lib" path="lib/java/db-ojb-1.0.rc4.jar"/>
          <classpathentry kind="lib" path="lib/java/log4j-1.2.8.jar"/>
          <classpathentry kind="lib" path="lib/java/JSX2.1.jar"/>
          <classpathentry kind="lib" path="lib/java/commons-beanutils.jar"/>
          <classpathentry kind="lib" path="lib/java/bondpricingutil.jar"/>
          <classpathentry kind="lib" path="lib/java/busdate.jar"/>
          <classpathentry kind="lib" path="lib/java/csvjdbc.jar"/>
          <classpathentry kind="lib" path="lib/java/print_class.jar"
          sourcepath="C:/Documents and
          Settings/montgoja/Desktop/Printing/print_src.jar"/>
          <classpathentry kind="output" path="builds/current"/>
          </classpath>

          --- In JSX-ideas@yahoogroups.com, "Brendan Macmillan"
          <Brendan.Macmillan@i...> wrote:
          > OK, this is very odd.
          >
          > Could it be a classloader issue? The same class, loaded by
          > different classloaders, can cause a ClassCastException. In your
          > case, it would need to be java.io.ObjectInputStream that is loaded
          by
          > different classloaders, which seems unlikely.
          >
          > Classloading issues are rife in app servers, so this could be the
          > cause.
          >
          > Also, the hashcode for the exception is unusual:
          > java.lang.ClassCastException@1d69fa3
          >
          > Where is JSX in your classpath?
          >
          >
          > Cheers,
          > Brendan
          >
          > --- In JSX-ideas@yahoogroups.com, "ramjisro" <roland.ramjist@r...>
          > wrote:
          > > We've been using the evaluation version of JSX and have decided
          to
          > > purchase the product.
          > >
          > > We have recently begun encountering a problem deserializing our
          > > objects. The problem only occurs intermittently and we are unable
          > to
          > > reproduce it at will. We are using J2SE 1.4.1 on Windows 2000.
          > >
          > > On one occasion where the failure occurred, it generated the
          > > following stack trace:
          > >
          > > java.lang.InternalError: java.lang.IllegalArgumentException:
          > > java.lang.ClassCastException@1d69fa3
          > > at JSX.ObjectReader.readObjectInvoke(ObjectReader.java:1441)
          > > at JSX.ObjectReader.fillDeclaredClass(ObjectReader.java:1177)
          > > at JSX.ObjectReader.object(ObjectReader.java:998)
          > > at JSX.ObjectReader.readObject(ObjectReader.java:465)
          > > at JSX.ObjectReader.readObjectOverride(ObjectReader.java:426)
          > > at java.io.ObjectInputStream.readObject
          > > (ObjectInputStream.java:318)
          > > at
          > > com.rbccm.arch.pubsub.formatter.ObjectXmlJSXFormatter.unformat
          > > (ObjectXmlJSXFormatter.java:115)
          > > at
          > > com.rbccm.arch.pubsub.transport.Subscription.fireMessageReceived
          > > (Subscription.java:110)
          > > at com.rbccm.arch.pubsub.transport.RvSubscription.onMsg
          > > (RvSubscription.java:108)
          > > at com.tibco.tibrv.TibrvEvent.invoke(TibrvEvent.java:160)
          > > at com.tibco.tibrv.TibrvImplQueueC.natDispatch(Native Method)
          > > at com.tibco.tibrv.TibrvImplQueueC.dispatch
          > > (TibrvImplQueueC.java:44)
          > > at com.tibco.tibrv.TibrvQueue.dispatch(TibrvQueue.java:301)
          > > at com.tibco.tibrv.TibrvDispatcher.run
          > > (TibrvDispatcher.java:169)
        • Brendan Macmillan
          I see you aren t using the latest version of JSX (you have JSX2.1.jar) The first step is to upgrade get the latest version. Cheers, Brendan ... I ...
          Message 4 of 4 , Nov 7, 2003
          • 0 Attachment
            I see you aren't using the latest version of JSX (you have JSX2.1.jar)

            The first step is to upgrade get the latest version.


            Cheers,
            Brendan


            --- In JSX-ideas@yahoogroups.com, "Roland Ramjist"
            <roland.ramjist@r...> wrote:
            > The failure occurred when running the application under Eclipse so
            I
            > don't know whether or not that eliminates the classloader as a
            > possible cause.
            >
            > The classpath that is being used is as follows:
            >
            > <?xml version="1.0" encoding="UTF-8"?>
            > <classpath>
            > <classpathentry excluding="**/CVS/" kind="src"
            > path="src/lib/java"/>
            > <classpathentry excluding="**/CVS/" kind="src"
            > path="test/lib/java"/>
            > <classpathentry kind="con"
            > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
            > <classpathentry kind="lib" path="lib/java/xercesImpl.jar"/>
            > <classpathentry kind="lib" path="lib/java/commons-pool.jar"/>
            > <classpathentry kind="lib" path="lib/java/commons-dbcp.jar"/>
            > <classpathentry kind="lib" path="lib/java/commons-lang-1.0-
            > mod.jar"/>
            > <classpathentry kind="lib" path="lib/java/commons-collections-
            > 2.0.jar"/>
            > <classpathentry kind="lib" path="lib/java/junit.jar"
            > sourcepath="MMDirect/lib/java/src.jar"/>
            > <classpathentry kind="lib" path="lib/java/jconn2.jar"/>
            > <classpathentry kind="lib" path="lib/java/mdate.jar"/>
            > <classpathentry kind="lib" path="lib/java/com.ibm.mq.jar"/>
            > <classpathentry kind="lib" path="lib/java/tibrvj.jar"/>
            > <classpathentry kind="lib" path="lib/java/j2ee.jar"/>
            > <classpathentry kind="lib" path="lib/java/jmxri.jar"/>
            > <classpathentry kind="lib" path="lib/java/xml-apis.jar"/>
            > <classpathentry kind="lib" path="lib/java/rbcpubsub.jar"/>
            > <classpathentry kind="lib" path="lib/java/aaa.jar"/>
            > <classpathentry kind="lib" path="lib/java/AES.jar"/>
            > <classpathentry kind="lib" path="lib/java/mysql-connector-java-
            > 3.0.8-stable-bin.jar"/>
            > <classpathentry kind="lib" path="lib/java/axis.jar"/>
            > <classpathentry kind="lib" path="lib/java/axis-extend.jar"/>
            > <classpathentry kind="lib" path="lib/java/eaiframework.jar"/>
            > <classpathentry kind="lib" path="lib/java/jaxrpc.jar"/>
            > <classpathentry kind="lib" path="lib/java/commons-
            discovery.jar"/>
            > <classpathentry kind="lib" path="lib/java/connector.jar"/>
            > <classpathentry kind="lib" path="lib/java/saaj.jar"/>
            > <classpathentry kind="lib" path="lib/java/commons-logging.jar"/>
            > <classpathentry kind="lib" path="lib/java/p6spy.jar"/>
            > <classpathentry kind="lib" path="lib/java/freehep-hep.jar"/>
            > <classpathentry kind="lib" path="lib/java/jakarta-oro-
            2.0.7.jar"/>
            > <classpathentry kind="lib" path="lib/java/ecn-client.jar"/>
            > <classpathentry kind="lib" path="lib/java/weblogic.jar"/>
            > <classpathentry kind="lib" path="lib/java/db-ojb-1.0.rc4.jar"/>
            > <classpathentry kind="lib" path="lib/java/log4j-1.2.8.jar"/>
            > <classpathentry kind="lib" path="lib/java/JSX2.1.jar"/>
            > <classpathentry kind="lib" path="lib/java/commons-
            beanutils.jar"/>
            > <classpathentry kind="lib" path="lib/java/bondpricingutil.jar"/>
            > <classpathentry kind="lib" path="lib/java/busdate.jar"/>
            > <classpathentry kind="lib" path="lib/java/csvjdbc.jar"/>
            > <classpathentry kind="lib" path="lib/java/print_class.jar"
            > sourcepath="C:/Documents and
            > Settings/montgoja/Desktop/Printing/print_src.jar"/>
            > <classpathentry kind="output" path="builds/current"/>
            > </classpath>
            >
            > --- In JSX-ideas@yahoogroups.com, "Brendan Macmillan"
            > <Brendan.Macmillan@i...> wrote:
            > > OK, this is very odd.
            > >
            > > Could it be a classloader issue? The same class, loaded by
            > > different classloaders, can cause a ClassCastException. In your
            > > case, it would need to be java.io.ObjectInputStream that is
            loaded
            > by
            > > different classloaders, which seems unlikely.
            > >
            > > Classloading issues are rife in app servers, so this could be the
            > > cause.
            > >
            > > Also, the hashcode for the exception is unusual:
            > > java.lang.ClassCastException@1d69fa3
            > >
            > > Where is JSX in your classpath?
            > >
            > >
            > > Cheers,
            > > Brendan
            > >
            > > --- In JSX-ideas@yahoogroups.com, "ramjisro"
            <roland.ramjist@r...>
            > > wrote:
            > > > We've been using the evaluation version of JSX and have decided
            > to
            > > > purchase the product.
            > > >
            > > > We have recently begun encountering a problem deserializing our
            > > > objects. The problem only occurs intermittently and we are
            unable
            > > to
            > > > reproduce it at will. We are using J2SE 1.4.1 on Windows 2000.
            > > >
            > > > On one occasion where the failure occurred, it generated the
            > > > following stack trace:
            > > >
            > > > java.lang.InternalError: java.lang.IllegalArgumentException:
            > > > java.lang.ClassCastException@1d69fa3
            > > > at JSX.ObjectReader.readObjectInvoke(ObjectReader.java:1441)
            > > > at JSX.ObjectReader.fillDeclaredClass(ObjectReader.java:1177)
            > > > at JSX.ObjectReader.object(ObjectReader.java:998)
            > > > at JSX.ObjectReader.readObject(ObjectReader.java:465)
            > > > at JSX.ObjectReader.readObjectOverride(ObjectReader.java:426)
            > > > at java.io.ObjectInputStream.readObject
            > > > (ObjectInputStream.java:318)
            > > > at
            > > > com.rbccm.arch.pubsub.formatter.ObjectXmlJSXFormatter.unformat
            > > > (ObjectXmlJSXFormatter.java:115)
            > > > at
            > > > com.rbccm.arch.pubsub.transport.Subscription.fireMessageReceived
            > > > (Subscription.java:110)
            > > > at com.rbccm.arch.pubsub.transport.RvSubscription.onMsg
            > > > (RvSubscription.java:108)
            > > > at com.tibco.tibrv.TibrvEvent.invoke(TibrvEvent.java:160)
            > > > at com.tibco.tibrv.TibrvImplQueueC.natDispatch(Native Method)
            > > > at com.tibco.tibrv.TibrvImplQueueC.dispatch
            > > > (TibrvImplQueueC.java:44)
            > > > at com.tibco.tibrv.TibrvQueue.dispatch(TibrvQueue.java:301)
            > > > at com.tibco.tibrv.TibrvDispatcher.run
            > > > (TibrvDispatcher.java:169)
          Your message has been successfully submitted and would be delivered to recipients shortly.