[jboss-jira] [JBoss JIRA] Commented: (JBREM-623) need reset() call added back to JavaSerializationManager.sendObject() method
Tom Elrod (JIRA)
jira-events at jboss.com
Mon Oct 30 23:27:41 EST 2006
[ http://jira.jboss.com/jira/browse/JBREM-623?page=comments#action_12346007 ]
Tom Elrod commented on JBREM-623:
----------------------------------
btw, need to make sure code changes are applied to both remoting_2_x branch and HEAD.
> need reset() call added back to JavaSerializationManager.sendObject() method
> ----------------------------------------------------------------------------
>
> Key: JBREM-623
> URL: http://jira.jboss.com/jira/browse/JBREM-623
> Project: JBoss Remoting
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: transport
> Affects Versions: 2.2.0.Alpha3 (Bluto)
> Reporter: Tom Elrod
> Assigned To: Ron Sigal
> Priority: Critical
> Fix For: 2.2.0.Beta1 (Bluto)
>
>
> Per JBREM-597, code was changed within JavaSerializationManager.sendObject() to not call reset() on the ObjectOutputStream as would cause an error (see below). Although this solution works, it is not optimal as need the reset() to be called to release the references kept internally to the object stream (otherwise could potentially run out of memory if are sending a lot of different object types).
> Error when reset() method is called:
> java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
> java.io.IOException: Can not read data for version 121. Supported versions: 1, 2
> at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
> at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:408)
> at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:125)
> at org.jboss.remoting.Client.invoke(Client.java:605)
> at org.jboss.remoting.Client.invoke(Client.java:597)
> at org.jboss.remoting.Client.invoke(Client.java:582)
> at org.jboss.test.remoting.transport.socket.connection.SocketTestClient.testInvocations(SocketTestClient.java:74)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
> Caused by: java.io.IOException: Can not read data for version 121. Supported versions: 1, 2
> at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:503)
> at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:370)
> ... 28 more
> Test case: org.jboss.test.remoting.transport.socket.connection.SocketConnectionTestCase & org.jboss.test.remoting.transport.socket.connection.SocketConnectionCheckTestCase
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list