[
https://issues.apache.org/jira/browse/OPENEJB-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jack Cai updated OPENEJB-1058:
------------------------------
Attachment: OPENEJB-1058_301.patch
To work around the JDK problem, a BufferedInputStream can be used to wrap the
SocketInputStream. With this, the reported problem does not occur any more.
I've run a test for 500 hundred times and see no failure. While originally once
out of 20 times will be a failure.
The patch is created against 3.0.1 code. Please review and comment. Thanks!
> Remote EJB call frequently fails unexpectedly on Windows platform
> -----------------------------------------------------------------
>
> Key: OPENEJB-1058
> URL: https://issues.apache.org/jira/browse/OPENEJB-1058
> Project: OpenEJB
> Issue Type: Bug
> Components: general
> Affects Versions: 3.0.1
> Environment: Windowns platform
> Reporter: Jack Cai
> Priority: Critical
> Attachments: OPENEJB-1058_301.patch
>
>
> See https://issues.apache.org/jira/browse/GERONIMO-4608.
> A potential JDK problem causes frequent remote EJB call failures on Windows
> platform. The exception thrown looks like:
> {quote}
> Caused by: javax.ejb.EJBException: Unknown Container Exception:
> java.rmi.RemoteException: Cannot read the response from the server (OEJP/3.0)
> : null; nested exception is:
> java.io.EOFException
> at
> org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:179)
> at
> org.apache.openejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:117)
> at
> org.apache.openejb.client.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:52)
> at $Proxy21.getSnapshotDuration(Unknown Source)
> at
> org.apache.geronimo.monitoring.console.MRCConnector.getSnapshotDuration(MRCConnector.java:167)
> at
> org.apache.jsp.WEB_002dINF.view.monitoringViewServer_jsp._jspService(monitoringViewServer_jsp.java:168)
> ... 73 more
> Caused by: java.io.EOFException
> at
> java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2690)
> at java.io.ObjectInputStream.readByte(ObjectInputStream.java:890)
> at
> org.apache.openejb.client.EJBResponse.readExternal(EJBResponse.java:98)
> at org.apache.openejb.client.Client.processRequest(Client.java:172)
> at org.apache.openejb.client.Client.request(Client.java:43)
> at
> org.apache.openejb.client.EJBInvocationHandler.request(EJBInvocationHandler.java:129)
> at
> org.apache.openejb.client.EJBObjectHandler.businessMethod(EJBObjectHandler.java:210)
> at
> org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:152)
> {quote}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.