2 Replies Latest reply on Sep 9, 2005 4:13 PM by Steve Rose

    org.hibernate.type.AbstractType... Invalid class exception

    Steve Rose Newbie

      Hey there, I am hoping you can help with this problem. I am trying to use the level 2 cache of hibernate using the instructions found here:
      http://docs.jboss.org/ejb3/app-server/tutorial/clusteredentity/clusteredentity.html
      However, when I try to deploy i keep getting this error message:

      
      javax.ejb.EJBException: null; CausedByException is:
       org.jboss.util.NestedRuntimeException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167; - nested throwable: (java.lang.IllegalArgumentException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167)
       at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:46)
       at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:70)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:39)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:195)
       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
       at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:69)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:566)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:436)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:239)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:277)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:168)
      org.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167; - nested throwable: (java.lang.IllegalArgumentException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167)
       at org.hibernate.cache.TreeCache.put(TreeCache.java:81)
       at org.hibernate.cache.TransactionalCache.put(TransactionalCache.java:50)
       at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:140)
       at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:792)
       at org.hibernate.loader.Loader.doQuery(Loader.java:690)
       at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:221)
       at org.hibernate.loader.Loader.doList(Loader.java:2001)
       at org.hibernate.loader.Loader.list(Loader.java:1985)
       at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:405)
       at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:293)
       at org.hibernate.impl.SessionImpl.list(SessionImpl.java:864)
       at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
       at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:41)
       at com.airit.fidsdb.session.OpsRequestBean.searchFlightLegs(OpsRequestBean.java:182)
       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:585)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:99)
       at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:32)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:66)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:39)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:195)
       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
       at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:69)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:566)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:436)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:239)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:277)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:168)
      Caused by: org.jboss.util.NestedRuntimeException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167; - nested throwable: (java.lang.IllegalArgumentException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167)
       at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3107)
       at org.jboss.cache.TreeCache.putFailFast(TreeCache.java:1710)
       at org.hibernate.cache.TreeCache.put(TreeCache.java:74)
       ... 39 more
      Caused by: java.lang.IllegalArgumentException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167
       at org.jgroups.Message.getObject(Message.java:224)
       at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:203)
       at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:615)
       at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:512)
       at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:326)
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:722)
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:554)
       at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:691)
       at java.lang.Thread.run(Thread.java:595)
      org.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167; - nested throwable: (java.lang.IllegalArgumentException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167)
       at org.hibernate.cache.TreeCache.put(TreeCache.java:81)
       at org.hibernate.cache.TransactionalCache.put(TransactionalCache.java:50)
       at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:140)
       at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:792)
       at org.hibernate.loader.Loader.doQuery(Loader.java:690)
       at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:221)
       at org.hibernate.loader.Loader.doList(Loader.java:2001)
       at org.hibernate.loader.Loader.list(Loader.java:1985)
       at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:405)
       at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:293)
       at org.hibernate.impl.SessionImpl.list(SessionImpl.java:864)
       at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
       at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:41)
       at com.airit.fidsdb.session.OpsRequestBean.searchFlightLegs(OpsRequestBean.java:182)
       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:585)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:99)
       at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:32)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:66)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:39)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:195)
       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
       at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:69)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:566)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:436)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:239)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:277)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:168)
      Caused by: org.jboss.util.NestedRuntimeException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167; - nested throwable: (java.lang.IllegalArgumentException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167)
       at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3107)
       at org.jboss.cache.TreeCache.putFailFast(TreeCache.java:1710)
       at org.hibernate.cache.TreeCache.put(TreeCache.java:74)
       ... 39 more
      Caused by: java.lang.IllegalArgumentException: java.io.InvalidClassException: org.hibernate.type.AbstractType; local class incompatible: stream classdesc serialVersionUID = -1443631698363164516, local class serialVersionUID = 7313085517553560167
       at org.jgroups.Message.getObject(Message.java:224)
       at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:203)
       at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:615)
       at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:512)
       at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:326)
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:722)
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:554)
       at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:691)
       at java.lang.Thread.run(Thread.java:595)
      


      Any suggestions on what could be causing the problem? I made sure to use the same version of the hibernate3.jar file in which this class is located.