7 Replies Latest reply on Apr 2, 2002 3:29 PM by Vyshalini

    UndeclaredThrowableException: java.io.NotSerializableExcepti

    dof Newbie

      Hi all,

      I'm trying to get a many to many cmr working with jboss3.0.0alpha.

      I have created two beans - Student and Module, each contains a collection of the other. In the postgres db there is a registration table which this relationship maps onto.

      Jboss finds no errors on deployment, however when i try running some junit tests on it i get the following :
      [junit] 1) test_getModules(test.entityBeans.StudentTest)
      [junit] java.lang.reflect.UndeclaredThrowableException: java.io.NotSerializableException: org.jboss.ejb.plugins.cmp.jdbc.bridge.Relatio
      nSet
      [junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
      [junit] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
      [junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
      [junit] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source)
      [junit] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:369)
      [junit] at org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:133)
      [junit] at $Proxy1.getModules(Unknown Source)
      [junit] at test.entityBeans.StudentTest.test_getModules(StudentTest.java:107)


      I've attached all the relevant files (tar.gz format)

      thanks in advance

      dof.