This discussion is archived
1 2 Previous Next 17 Replies Latest reply: Nov 3, 2013 4:00 AM by aa34812f-997f-4780-aaba-be69045b980a RSS

Error in: Testing the Facade Inside and Outside the Java EE Container

NenadBulatović Newbie
Currently Being Moderated

My system is: Windows 7 Profesional, 64bit, JDeveloper 11g R2 (Studio Edition 11.1.2.3.0)

 

I am following tutorial on: Oracle JDeveloper 11g Release 2 Tutorials - Building a Web Application Using EJB, JPA, and JavaServer Faces

and at:

 

Part 4: Testing the Facade Inside and Outside the Java EE Container

Step 1: Add a New Method to the Entity and Expose it

Substep: 13: Right click HRFacadeClient and select Run from context.

 

I got this error:

[EclipseLink/JPA Client] Adding Java options: -javaagent:C:\Oracle\Middleware\jdeveloper\..\modules\org.eclipse.persistence_1.1.0.0_2-1.jar

C:\Oracle\Middleware\jdk160_24\bin\javaw.exe -client -classpath C:\jdev\mywork\HR_EJB_JPA\.adf;C:\jdev\mywork\HR_EJB_JPA\Model\classes;C:\Oracle\Middleware\oracle_common\modules\oracle.idm_11.1.1\identitystore.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar;C:\Oracle\Middleware\oracle_common\modules\groovy-all-1.6.3.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\adftransactionsdt.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.view_11.1.1\adf-dt-at-rt.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\adfdt_common.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\adflibrary.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\db-ca.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\jdev-cm.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.ldap_11.1.1\ojmisc.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\commons-el.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\jsp-el-api.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\oracle-el.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.security_11.1.1\adf-share-security.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.security_11.1.1\adf-controller-security.jar;C:\Oracle\Middleware\modules\javax.activation_1.1.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.mail_1.1.0.0_1-4-1.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adf-share-support.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adfsharembean.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\bc4j-mbeans.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.javatools_11.1.1\resourcebundle.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-api.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-common.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-ee.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-internal.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-unsupported-api.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-manifest.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jacc-spi.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.pki_11.1.1\oraclepki.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.osdt_11.1.1\osdt_core.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.osdt_11.1.1\osdt_cert.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.osdt_11.1.1\osdt_xmlsec.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.osdt_11.1.1\osdt_ws_sx.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.iau_11.1.1\fmw_audit.jar;C:\Oracle\Middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\oramds.jar;C:\Oracle\Middleware\modules\javax.servlet_1.0.0.0_2-5.jar;C:\Oracle\Middleware\modules\javax.jsp_1.2.0.0_2-1.jar;C:\Oracle\Middleware\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\Middleware\oracle_common\jlib\commons-cli-1.0.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.bali.share_11.1.1\share.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.dms_11.1.1\dms.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.javacache_11.1.1\cache.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.ucp_11.1.0.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.javatools_11.1.1\javatools-nodeps.jar;C:\Oracle\Middleware\modules\javax.management_1.2.1.jar;C:\Oracle\Middleware\modules\javax.management.j2ee_1.0.jar;C:\Oracle\Middleware\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n.jar;C:\Oracle\Middleware\modules\com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar;C:\Oracle\Middleware\modules\org.eclipse.persistence_1.1.0.0_2-1.jar;C:\Oracle\Middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_2-0-0.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jsf_2.0\jsf-api.jar;C:\Oracle\Middleware\modules\javax.ejb_3.0.1.jar;C:\Oracle\Middleware\modules\javax.enterprise.deploy_1.2.jar;C:\Oracle\Middleware\modules\javax.interceptor_1.0.jar;C:\Oracle\Middleware\modules\javax.jms_1.1.1.jar;C:\Oracle\Middleware\modules\javax.jws_2.0.jar;C:\Oracle\Middleware\modules\javax.xml.soap_1.3.1.0.jar;C:\Oracle\Middleware\modules\javax.xml.rpc_1.2.1.jar;C:\Oracle\Middleware\modules\javax.xml.ws_2.1.1.jar;C:\Oracle\Middleware\modules\javax.resource_1.5.1.jar;C:\Oracle\Middleware\modules\javax.transaction_1.0.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.stream_1.1.1.0.jar;C:\Oracle\Middleware\modules\javax.xml.registry_1.0.0.0_1-0.jar;C:\Oracle\Middleware\modules\javax.annotation_1.0.0.0_1-0.jar;C:\Oracle\Middleware\modules\com.bea.core.apache.xercesImpl_2.8.1.jar;C:\Oracle\Middleware\modules\glassfish.jaxb_1.0.0.0_2-1-12.jar;C:\Oracle\Middleware\modules\javax.xml.bind_2.1.1.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-mapping.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar -Djavax.net.ssl.trustStore=C:\Users\Nenad\AppData\Local\Temp\trustStore1473613222950644136.jks -javaagent:C:\Oracle\Middleware\jdeveloper\..\modules\org.eclipse.persistence_1.1.0.0_2-1.jar oracle.model.HRFacadeClient

<28.09.2013. 10.58.09 CEST> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed

java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -8219935847209476671, local class serialVersionUID = 7408378167056177847

java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -8219935847209476671, local class serialVersionUID = 7408378167056177847

  at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)

  at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)

  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)

  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1315)

  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

  at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:36)

  at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)

  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)

  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

  at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)

  at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)

  at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:283)

  at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:213)

  at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:498)

  at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:330)

  at weblogic.socket.BaseAbstractMuxableSocket.dispatch(BaseAbstractMuxableSocket.java:298)

  at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:950)

  at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:888)

  at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:339)

  at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)

  at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)

  at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)

  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

>

javax.ejb.EJBException: ; nested exception is:

  java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:

  java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -8219935847209476671, local class serialVersionUID = 7408378167056177847; nested exception is: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:

  java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -8219935847209476671, local class serialVersionUID = 7408378167056177847

java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:

  java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -8219935847209476671, local class serialVersionUID = 7408378167056177847

  at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:507)

  at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:330)

  at weblogic.socket.BaseAbstractMuxableSocket.dispatch(BaseAbstractMuxableSocket.java:298)

  at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:950)

  at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:888)

  at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:339)

  at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)

  at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)

  at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)

  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

Caused by: java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -8219935847209476671, local class serialVersionUID = 7408378167056177847

  at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)

  at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)

  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)

  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1315)

  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

  at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:36)

  at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)

  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)

  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

  at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)

  at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)

  at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:283)

  at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:213)

  at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:498)

  ... 9 more

javax.ejb.EJBException: ; nested exception is:

  java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:

  java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -8219935847209476671, local class serialVersionUID = 7408378167056177847; nested exception is: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:

  java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -8219935847209476671, local class serialVersionUID = 7408378167056177847

  at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:121)

  at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:96)

  at $Proxy0.getDepartmentsFindAll(Unknown Source)

  at oracle.model.HRFacadeClient.main(HRFacadeClient.java:16)

Caused by: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:

  java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -8219935847209476671, local class serialVersionUID = 7408378167056177847

  at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:507)

  at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:330)

  at weblogic.socket.BaseAbstractMuxableSocket.dispatch(BaseAbstractMuxableSocket.java:298)

  at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:950)

  at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:888)

  at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:339)

  at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)

  at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)

  at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)

  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

Caused by: java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -8219935847209476671, local class serialVersionUID = 7408378167056177847

  at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)

  at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)

  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)

  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1315)

  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

  at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:36)

  at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)

  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)

  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

  at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)

  at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)

  at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:283)

  at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:213)

  at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:498)

  ... 9 more

Process exited with exit code 0.

How can I resolve this?

1 2 Previous Next

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points