2 Replies Latest reply on Mar 18, 2005 2:40 AM by Alexandru Ilea

    Strange problem with local class incompatible

    Alexandru Ilea Newbie

      Hello ! I've been having this problem for long time and it's still unsolved.
      The problem consists of an EJB that has a method that deletes all the references to a certain database - it closes all the active session factories (hibernate) , removes the datasource xml file from the deploy directory, deletes the database from a JDBC connection and then removes the object that contains information about the connection URL to the database from the hashmap.
      The client would invoke this EJB method 2-3 times, and the last time a RMIException is thrown :

      java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
      java.io.InvalidClassException: javax.resource.ResourceException; local class incompatible: stream classdesc serialVersionUID = -1809703985388987999, local class serialVersionUID = 4770679801401540475
      at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
      at sun.rmi.server.UnicastRef.invoke(Unknown Source)
      at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
      at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
      at $Proxy1.stergeBazaDate(Unknown Source)

      .............................

      When setting the JBoss log for org.jboss.resource.connectionmanager.JBossManagedConnectionPool to DEBUG, i can see this error message in the log:

      2005-03-17 16:57:40,125 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
      2005-03-17 16:57:40,125 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
      2005-03-17 16:57:40,125 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true



      When the last attempt fails, the client loses the connection with the EJB and can't do anything. Can anyone help me with this issue please? Thank you !