commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kumar, Prashant - IT Consultant" <Prashant.Ku...@cnasurety.com>
Subject [fileupload] RMI Marshal problems
Date Wed, 22 Dec 2004 16:07:19 GMT
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.
Mime
View raw message