ok_lilya
asked on
java.rmi.MarshalException
Hi,
I'm trying to do an rmi call from java to application located on Websphere. I get an exception while trying to create the object:
Object ob = (Object) Naming.lookup
"rmi://wasgcc.fg.rbc.com:2 809/SDFPLE XNetwork/y ag0/ejb/Pr ocessNotif ication");
And here is the full exception:
java.rmi.MarshalException: Error marshaling transport header; nested exception is:
java.io.InterruptedIOExcep tion: Read timed out
java.io.InterruptedIOExcep tion: Read timed out
at java.net.SocketInputStream .socketRea d(Native Method)
at java.net.SocketInputStream .read(Sock etInputStr eam.java:1 13)
at java.io.BufferedInputStrea m.fill(Buf feredInput Stream.jav a:202)
at java.io.BufferedInputStrea m.read(Buf feredInput Stream.jav a:220)
at java.io.DataInputStream.re adByte(Dat aInputStre am.java:24 1)
at sun.rmi.transport.tcp.TCPC hannel.cre ateConnect ion(TCPCha nnel.java: 244)
at sun.rmi.transport.tcp.TCPC hannel.new Connection (TCPChanne l.java:201 )
at sun.rmi.server.UnicastRef. newCall(Un icastRef.j ava:331)
at sun.rmi.registry.RegistryI mpl_Stub.l ookup(Unkn own Source)
at java.rmi.Naming.lookup(Nam ing.java:9 3)
at com.rbc.mail.EmailParser.s endToNSS(E mailParser .java:357)
at com.rbc.mail.EmailParser.e nFilterUnd eliverable Email(Emai lParser.ja va:141)
at CollectEmailDetails.doPost (CollectEm ailDetails .java:57)
at CollectEmailDetails.doGet( CollectEma ilDetails. java:30)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 740)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 853)
at com.ibm.ws.webcontainer.se rvlet.Stri ctServletI nstance.do Service(St rictServle tInstance. java:110)
at com.ibm.ws.webcontainer.se rvlet.Stri ctLifecycl eServlet._ service(St rictLifecy cleServlet .java:174)
at com.ibm.ws.webcontainer.se rvlet.Idle ServletSta te.service (StrictLif ecycleServ let.java:3 13)
at com.ibm.ws.webcontainer.se rvlet.Stri ctLifecycl eServlet.s ervice(Str ictLifecyc leServlet. java:116)
at com.ibm.ws.webcontainer.se rvlet.Serv letInstanc e.service( ServletIns tance.java :258)
at com.ibm.ws.webcontainer.se rvlet.Vali dServletRe ferenceSta te.dispatc h(ValidSer vletRefere nceState.j ava:42)
at com.ibm.ws.webcontainer.se rvlet.Serv letInstanc eReference .dispatch( ServletIns tanceRefer ence.java: 40)
at com.ibm.ws.webcontainer.we bapp.WebAp pRequestDi spatcher.h andleWebAp pDispatch( WebAppRequ estDispatc her.java:8 72)
at com.ibm.ws.webcontainer.we bapp.WebAp pRequestDi spatcher.d ispatch(We bAppReques tDispatche r.java:491 )
at com.ibm.ws.webcontainer.we bapp.WebAp pRequestDi spatcher.f orward(Web AppRequest Dispatcher .java:173)
at com.ibm.ws.webcontainer.sr t.WebAppIn voker.doFo rward(WebA ppInvoker. java:79)
at com.ibm.ws.webcontainer.sr t.WebAppIn voker.hand leInvocati onHook(Web AppInvoker .java:199)
at com.ibm.ws.webcontainer.ca che.invoca tion.Cache dInvocatio n.handleIn vocation(C achedInvoc ation.java :71)
at com.ibm.ws.webcontainer.sr p.ServletR equestProc essor.disp atchByURI( ServletReq uestProces sor.java:1 82)
at com.ibm.ws.webcontainer.os elistener. OSEListene rDispatche r.service( OSEListene r.java:331 )
at com.ibm.ws.webcontainer.ht tp.HttpCon nection.ha ndleReques t(HttpConn ection.jav a:56)
at com.ibm.ws.http.HttpConnec tion.readA ndHandleRe quest(Http Connection .java:432)
at com.ibm.ws.http.HttpConnec tion.run(H ttpConnect ion.java:3 43)
at com.ibm.ws.util.ThreadPool $Worker.ru n(ThreadPo ol.java:59 2)
Anybody know what's the cause of that and what should I do to fix it?
Thanks,
Lily
I'm trying to do an rmi call from java to application located on Websphere. I get an exception while trying to create the object:
Object ob = (Object) Naming.lookup
"rmi://wasgcc.fg.rbc.com:2
And here is the full exception:
java.rmi.MarshalException:
java.io.InterruptedIOExcep
java.io.InterruptedIOExcep
at java.net.SocketInputStream
at java.net.SocketInputStream
at java.io.BufferedInputStrea
at java.io.BufferedInputStrea
at java.io.DataInputStream.re
at sun.rmi.transport.tcp.TCPC
at sun.rmi.transport.tcp.TCPC
at sun.rmi.server.UnicastRef.
at sun.rmi.registry.RegistryI
at java.rmi.Naming.lookup(Nam
at com.rbc.mail.EmailParser.s
at com.rbc.mail.EmailParser.e
at CollectEmailDetails.doPost
at CollectEmailDetails.doGet(
at javax.servlet.http.HttpSer
at javax.servlet.http.HttpSer
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.we
at com.ibm.ws.webcontainer.we
at com.ibm.ws.webcontainer.we
at com.ibm.ws.webcontainer.sr
at com.ibm.ws.webcontainer.sr
at com.ibm.ws.webcontainer.ca
at com.ibm.ws.webcontainer.sr
at com.ibm.ws.webcontainer.os
at com.ibm.ws.webcontainer.ht
at com.ibm.ws.http.HttpConnec
at com.ibm.ws.http.HttpConnec
at com.ibm.ws.util.ThreadPool
Anybody know what's the cause of that and what should I do to fix it?
Thanks,
Lily
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.