You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jack Cai (JIRA)" <ji...@apache.org> on 2009/08/06 15:47:14 UTC
[jira] Created: (OPENEJB-1058) Remote EJB call frequently fails
unexpectedly on Windows platform
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
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.
[jira] Closed: (OPENEJB-1058) Remote EJB call frequently fails
unexpectedly on Windows platform
Posted by "David Blevins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Blevins closed OPENEJB-1058.
----------------------------------
Resolution: Fixed
Assignee: David Blevins
Altered the patch slightly. Put the BufferedInputStream usage in the SocketConnectionFactory rather than the Client class as that's how it's done in 3.1.x which also BufferedInputStreams in conjunction with the SocketConnectionFactory. Small change.
$ svn ci
Sending server/openejb-client/src/main/java/org/apache/openejb/client/SocketConnectionFactory.java
Transmitting file data .
Committed revision 802090.
http://svn.apache.org/viewvc?view=rev&revision=802090
Thanks, Jack!
> 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
> Assignee: David Blevins
> 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.
[jira] Updated: (OPENEJB-1058) Remote EJB call frequently fails
unexpectedly on Windows platform
Posted by "Jack Cai (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (OPENEJB-1058) Remote EJB call frequently fails
unexpectedly on Windows platform
Posted by "David Blevins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Blevins updated OPENEJB-1058:
-----------------------------------
Fix Version/s: 3.0.2
> 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
> Assignee: David Blevins
> Priority: Critical
> Fix For: 3.0.2
>
> 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.