Hi,
I get a "UnmarshalException" due to a "SocketException" while accessing an
EJB on Jonas from a JSP executing on tomcat 3.2.1. The details are as
follows...
Software/setup used
=================
Windows NT 4.0 SP 5
JDK 1.3
JONAS 2.2.7
TOMCAT 3.2.1
SQL Server 7.0
I am using RMI and I used genIC and the stubs/skeletons were generated
properly. I was also able to successfully deploy EJBs onto JONAS. However
when I call some methods, I get the exception. The stack trace is reproduced
below....
-----* --------------- * ------------- * ------------
java.rmi.UnmarshalException: Error unmarshaling return header; nested
exception
is:
java.net.SocketException: Connection shutdown: JVM_recv in socket
input stream read
java.net.SocketException: Connection shutdown: JVM_recv in socket input
stream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
at java.io.DataInputStream.readByte(DataInputStream.java:222)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
186)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:354)
at
org.objectweb.jonas.rmifilters.RemoteStub.invoke(RemoteStub.java:87)
at
com.globetrades.trademanager.usercompany.JOnAScom_usercompany_LoginManagerRemote_Stub.login(build\com\usercompany\JOnAScom_usercompany_LoginManagerRemote_Stub.java:190)
-----* --------------- * ------------- * ------------
My CLASSPATH :
E:\Jonas\examples\classes;E:\Jonas;E:\Jonas\lib\jms.jar;E:mssql4classes;E:\Jonas\lib\jndi.jar;E:\Jonas\lib\providerutil.jar;E:\Jonas\lib\rmiregistry.jar;E:\Jonas\lib\RMI_jon
as.jar;E:\TradeManager\main.jar;E:\jakarta-tomcat-3.2.1\lib\servlet.jar;E:\JONAS\examples\classes\account.jar;E:\downloads\JavaMail\javamail-1.2\mail.jar;E:\downloads\JavaMail\jaf-1.0.1\activation.jar;
----- * -------- * -------------- * ------------------
>From the JSP, I have been able to lookup the bean but when I execute, any
method, I get the above exception. "I did not get any exception while
executing the entity bean example shipped with Jonas. I copied the client
code to my JSP and ran it and it was working well".
Finally, I looked up the mailing list for any previous messages on this and
found a reference in "Tomcat 3.2, RMI, JNDI & Classloaders: a solution"
posted by "Carlos Pita" on "15th march 2001". As per the posted message, I
included the suggested "RequestInterceptor" line in my "server.xml" and even
this did not solve the problem.
However when I had NOT added the above line to "server.xml", I used to get a
"java.lang.ClassCastException". After adding this line, I started getting an
"UnMarshalException". So I know this seems to be some issue in the TOMCAT
end.
Any Information on this and any help to resolve this will be greatly
appreciated. Also could somebody also tell me what versions of TOMCAT +
JONAS work well with each other.
Thanks,
Vijay
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".