You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Kumar, Prashant - IT Consultant" <Pr...@cnasurety.com> on 2004/12/22 17:07:19 UTC
[fileupload] RMI Marshal problems
Hey folks:
I am using the FileUpload package in conjunction with a remote
session bean. Using the Delegate-Façade pattern, I am passing the parsed
FileItem between the delegate and the façade. However, I am getting an error
when doing so. If you notice, the exception is in the
DeferredFileOutputStream which I am not explicitly using anywhere in my
code. Any pointers appreciated. Here is the exception:
java.rmi.UnmarshalException: failed to unmarshal cookie; nested exception
is:
java.io.NotSerializableException:
rg.apache.commons.fileupload.DeferredFileOutputStream
java.io.NotSerializableException:
org.apache.commons.fileupload.DeferredFileOutputStream
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1143)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:361)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1822)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:475)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1209)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:361)
at
weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:73)
at
weblogic.rmi.internal.ServerRequest.copy(ServerRequest.java:210)
at
weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:151)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:262)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:229)
at
com.cnasurety.services.dataconvertor.facade.DataConvertorFacadeBean_tb104m_E
OImpl_WLStub.parseExcel(Unknown Source)
at
com.cnasurety.services.dataconvertor.delegates.DataConvertorDelegate.parseEx
cel(DataConvertorDelegate.java:62)
at
com.cnasurety.applications.underwritingtools.handlers.commands.workOnHand.Co
mmandExcelFileUpload.execute(CommandExcelFileUpload.java:66)
at
com.cnasurety.applications.underwritingtools.handlers.CompositeHandler.handl
eRequest(CompositeHandler.java:63)
at
com.cnasurety.applications.underwritingtools.handlers.WorkOnHandHandler.hand
leRequest(WorkOnHandHandler.java:37)
at
com.cnasurety.services.applicationsecurity.controller.AuthenticationDispatch
er.getNextPage(AuthenticationDispatcher.java:120)
at
com.cnasurety.services.applicationsecurity.controller.AuthenticationControll
er.service(AuthenticationController.java:197)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1058)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:401)
at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
com.cnasurety.applications.underwritingtools.filters.CompressionFilter.doFil
ter(CompressionFilter.java:44)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5418)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:744)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3086)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
Thank you
- Prashant Kumar
E-MAIL CONFIDENTIALITY & USE NOTICE: The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. In addition, you are strictly prohibited from using, disseminating, distributing, copying, or storing this message and any attachments.
Re: [fileupload] RMI Marshal problems
Posted by Dakota Jack <da...@gmail.com>.
I believe there is a recent post about the package breaking the
serialization requirements.
Jack
On Wed, 22 Dec 2004 10:07:19 -0600, Kumar, Prashant - IT Consultant
<Pr...@cnasurety.com> wrote:
> Hey folks:
>
> I am using the FileUpload package in conjunction with a remote
> session bean. Using the Delegate-Façade pattern, I am passing the parsed
> FileItem between the delegate and the façade. However, I am getting an error
> when doing so. If you notice, the exception is in the
> DeferredFileOutputStream which I am not explicitly using anywhere in my
> code. Any pointers appreciated. Here is the exception:
>
> java.rmi.UnmarshalException: failed to unmarshal cookie; nested exception
> is:
> java.io.NotSerializableException:
> rg.apache.commons.fileupload.DeferredFileOutputStream
>
> java.io.NotSerializableException:
> org.apache.commons.fileupload.DeferredFileOutputStream
>
> at
> java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1143)
>
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:361)
>
> at
> java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1822)
>
> at
> java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:475)
>
> at
> java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1209)
>
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:361)
>
> at
> weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:73)
>
> at
> weblogic.rmi.internal.ServerRequest.copy(ServerRequest.java:210)
>
> at
> weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:151)
>
> at
> weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
> :262)
>
> at
> weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
> :229)
>
> at
> com.cnasurety.services.dataconvertor.facade.DataConvertorFacadeBean_tb104m_E
> OImpl_WLStub.parseExcel(Unknown Source)
>
> at
> com.cnasurety.services.dataconvertor.delegates.DataConvertorDelegate.parseEx
> cel(DataConvertorDelegate.java:62)
>
> at
> com.cnasurety.applications.underwritingtools.handlers.commands.workOnHand.Co
> mmandExcelFileUpload.execute(CommandExcelFileUpload.java:66)
>
> at
> com.cnasurety.applications.underwritingtools.handlers.CompositeHandler.handl
> eRequest(CompositeHandler.java:63)
>
> at
> com.cnasurety.applications.underwritingtools.handlers.WorkOnHandHandler.hand
> leRequest(WorkOnHandHandler.java:37)
>
> at
> com.cnasurety.services.applicationsecurity.controller.AuthenticationDispatch
> er.getNextPage(AuthenticationDispatcher.java:120)
>
> at
> com.cnasurety.services.applicationsecurity.controller.AuthenticationControll
> er.service(AuthenticationController.java:197)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
> tStubImpl.java:1058)
>
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :401)
>
> at
> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
>
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>
> at
> com.cnasurety.applications.underwritingtools.filters.CompressionFilter.doFil
> ter(CompressionFilter.java:44)
>
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
> ebAppServletContext.java:5418)
>
> at
> weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
> r.java:744)
>
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
> ntext.java:3086)
>
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
> :2544)
>
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
>
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
>
> Thank you
>
> - Prashant Kumar
>
> E-MAIL CONFIDENTIALITY & USE NOTICE: The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. In addition, you are strictly prohibited from using, disseminating, distributing, copying, or storing this message and any attachments.
>
--
------------------------------
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~
"You can't wake a person who is pretending to be asleep."
~Native Proverb~
"Each man is good in His sight. It is not necessary for eagles to be crows."
~Hunkesni (Sitting Bull), Hunkpapa Sioux~
-----------------------------------------------
"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org