You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Jeremy Bauer (JIRA)" <ji...@apache.org> on 2009/05/04 21:20:30 UTC

[jira] Created: (OPENJPA-1060) Attempting to returning a list over RMI/IIOP results in serialization exception

Attempting to returning a list over RMI/IIOP results in serialization exception
-------------------------------------------------------------------------------

                 Key: OPENJPA-1060
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1060
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
    Affects Versions: 2.0.0
         Environment: JEE
            Reporter: Jeremy Bauer


Returning a result list over RMI/IIOP invocation currently fails on trunk/2.0 with this exception:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.MarshalException: CORBA BAD_PARAM 0x4f4d0006 Maybe; nested exception is: java.io.NotSerializableException: org.apache.openjpa.jdbc.kernel.InstanceResultObjectProvider is not serializable at com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:748) at javax.rmi.CORBA.Util.wrapException(Util.java:296) at ...

The problem is the result of storing the ROP in the userObject field of a ResultList in the org.apache.openjpa.kernel.QueryImpl.toResult(..) method.  - res.setUserObject(rop).  The ROP is not serializable so the RMI/CORBA layer throws an exception.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OPENJPA-1060) Attempting to returning a list over RMI/IIOP results in serialization exception

Posted by "Jeremy Bauer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Bauer reassigned OPENJPA-1060:
-------------------------------------

    Assignee: Jeremy Bauer

> Attempting to returning a list over RMI/IIOP results in serialization exception
> -------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1060
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1060
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0
>         Environment: JEE
>            Reporter: Jeremy Bauer
>            Assignee: Jeremy Bauer
>
> Returning a result list over RMI/IIOP invocation currently fails on trunk/2.0 with this exception:
> java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.MarshalException: CORBA BAD_PARAM 0x4f4d0006 Maybe; nested exception is: java.io.NotSerializableException: org.apache.openjpa.jdbc.kernel.InstanceResultObjectProvider is not serializable at com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:748) at javax.rmi.CORBA.Util.wrapException(Util.java:296) at ...
> The problem is the result of storing the ROP in the userObject field of a ResultList in the org.apache.openjpa.kernel.QueryImpl.toResult(..) method.  - res.setUserObject(rop).  The ROP is not serializable so the RMI/CORBA layer throws an exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OPENJPA-1060) Attempting to returning a list over RMI/IIOP results in serialization exception

Posted by "Jeremy Bauer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Bauer resolved OPENJPA-1060.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

Resolved by making the opaque user object within the result list transient.  This prevents the object from being serialized along with the result list.

> Attempting to returning a list over RMI/IIOP results in serialization exception
> -------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1060
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1060
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0
>         Environment: JEE
>            Reporter: Jeremy Bauer
>            Assignee: Jeremy Bauer
>             Fix For: 2.0.0
>
>
> Returning a result list over RMI/IIOP invocation currently fails on trunk/2.0 with this exception:
> java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.MarshalException: CORBA BAD_PARAM 0x4f4d0006 Maybe; nested exception is: java.io.NotSerializableException: org.apache.openjpa.jdbc.kernel.InstanceResultObjectProvider is not serializable at com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:748) at javax.rmi.CORBA.Util.wrapException(Util.java:296) at ...
> The problem is the result of storing the ROP in the userObject field of a ResultList in the org.apache.openjpa.kernel.QueryImpl.toResult(..) method.  - res.setUserObject(rop).  The ROP is not serializable so the RMI/CORBA layer throws an exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.