Wednesday, September 01, 2010

EXCEPTION_ORIGINATES_FROM_TH E_REMOTE_SERVER WARNING: Exception returned by remote server: {0}

You are trying to call a BPEL process from OSB and you are getting following error in command console

oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_TH
E_REMOTE_SERVER
WARNING: Exception returned by remote server: {0}
com.evermind.server.rmi.RMIConnectionException: Disconnected: javax.xml.namespac
e.QName; local class incompatible: stream classdesc serialVersionUID = -91204487
54896609940, local class serialVersionUID = 4418622981026545151
at com.evermind.server.rmi.RmiCallQueue.notifyQueuedThreads(RmiCallQueue
.java:70)
at com.evermind.server.rmi.RMIClientConnection.notifyQueuedThreads(RMICl
ientConnection.java:208)
at com.evermind.server.rmi.RMIClientConnection.resetState(RMIClientConne
ction.java:147)
at com.evermind.server.rmi.RMIConnection.receiveDisconnect(RMIConnection
.java:236)
at com.evermind.server.rmi.RMIClientConnection.receiveDisconnect(RMIClie
ntConnection.java:176)
at com.evermind.server.rmi.RMIConnection.handleOrmiCommand(RMIConnection
.java:208)
at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RM
IClientConnection.java:276)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.jav
a:152)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnec
tion.java:127)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
utor.java:830)
at java.lang.Thread.run(Thread.java:619)


AGain in browser i found following exception


The invocation resulted in an error: Unable to failover; nested exception is:
javax.naming.CommunicationException: oracle.oc4j.security.KeyExchange.toPublicKey(KeyExchange.java:182)
oracle.oc4j.security.KeyExchange.setRemotePublicKey(KeyExchange.java:118)
oracle.oc4j.security.ExchangingEncryptor.setRemotePublicKey(ExchangingEncryptor.java:125)
com.evermind.server.rmi.RMIProtocol$SecureCredentials.initializeEncryptor(RMIProtocol.java:282)
com.evermind.server.rmi.RMIProtocol$SecureCredentials.send(RMIProtocol.java:271)
com.evermind.server.rmi.RMIProtocol.sendCredentials(RMIProtocol.java:95)


java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

This is because you are missing a configuration

Go to BEA_HOME\user_projects\domains\osb_domain\bin folder and edit the setDomainEnv

and search for the following entry in it.Please take back up before making any changes

set JAVA_PROPERTIES=-Dplatform.home=%WL_HOME% -Dwls.home=%WLS_HOME% -Dweblogic.home=%WLS_HOME%

and replace it with the following as per document

set JAVA_PROPERTIES=-Dplatform.home=%WL_HOME% -Dwls.home=%WLS_HOME% -Dweblogic.home=%WLS_HOME% -Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0


Also need to verify that the bpel process manager in which the process is deployed in up and running corretly i.e. bpel process itself can be called from BPEL Console and tested.

This worked for me and this issue got resolved for me.

No comments: