Forums Register Login

what is java.rmi.MarshalException ?

+Pie Number of slices to send: Send
i am calling EJB method "transfer(request,destination)" from inside JSP page.
"request" is a HttpServletRequest object
"destiation" is a string
it is throwing following exceptions.....
java.rmi.MarshalException: failed to marshal public abstract void project.upload.Copy.transf
er(javax.servlet.http.HttpServletRequest,java.lang.String) throws java.rmi.RemoteException,j
ava.io.IOException;
nested exception is: java.io.NotSerializableException: weblogic.servlet.internal.ServletRequestImpl
java.io.NotSerializableException: weblogic.servlet.internal.ServletRequestImpl
actually i am trying to uplaod files and in JSP i use <input type="file"> tag to select a file inside a form.the logic is this that request object also have the file stream and using
ServletInputStream in = request.getInputStream();
i can get the file stream and then save this stream in a new file

Why it is giving exception and any other method to upload files?
Thank's
+Pie Number of slices to send: Send
You appear to be trying to send an HttpServletRequest by RMI which fails because the class implementing the interface is not serializable.
Bill
Dinner will be steamed monkey heads with a side of tiny ads.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1266 times.
Similar Threads
Exception Help
what is java.rmi.MarshalException ?
CORBA BAD_PARAM 6 Maybe
How to retrieve collection from EJB to frontend in WSAD?
RMI problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:02:17.