Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss client/EJB local class incompatible

 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, from an application client I get this error

javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 1126421850898582900, local class serialVersionUID = -2711693270411201590]
4984 [main] FATAL eu.virtualLab.util.dataMigrator.remote.dao.EjbFactory - eu.virtualLab.util.dataMigrator.remote.dao.EjbFactoryException: javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 1126421850898582900, local class serialVersionUID = -2711693270411201590]
4984 [main] FATAL eu.virtualLab.util.dataMigrator.Workflow - eu.virtualLab.util.dataMigrator.remote.dao.EjbFactoryException: eu.virtualLab.util.dataMigrator.remote.dao.EjbFactoryException: javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 1126421850898582900, local class serialVersionUID = -2711693270411201590]


After a search on the net I discovered that this error could means that I've got different classes between my classpath's client and the ear deployed.
This is not my case, they're the same, because I extract the jar from the ear and copied into the classpath's client.
However, I don't understand where those serialVersionUID come from. I've no entities on my jar with that number. They've completely different numbers, declared as static final.
Could it be the remote interface? If so, what would be the best approach?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you including any JBoss related jar files in your client's classpath? You have to ensure that these JBoss jar files are the same jars which are present on the server on which this EJB is deployed. I usually "copy" the jbossall-client.jar file, from %JBOSS_HOME%\client folder, to the client's classpath.
[ May 28, 2008: Message edited by: Jaikiran Pai ]
 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right.
I accidentally set the client libraries for JBoss 4.2.2 (production) while on my laptop I'm using the previuos version.

Thanks a lot.
Bye
 
Ifteqar Ald
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am also having the Same ERROR My client Jboss Version is Jboss 5.1.0 GA and Remote Jboss Version is JBoss EAP 4.3. Please help Urgent. Which Jars i need to Copy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic