tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Support" <supp...@elottoalerts.com>
Subject Re: EOFException Servlet Exception?
Date Thu, 25 Sep 2003 03:01:40 GMT
One other small important note:

If you compile your applet using 1.1.7+ jdk with Tomcat 4.1.27 or better you
will get an EOFException in your log, however your object will still package
and unpackage alright for the server and the client. I detect the java
client version and based on that I make a decision to ignore the
EOFException ( risky, but helps decrease my error log size :-)  ).  Still
need those old 1.1.7 clients applets to work.

If you compile your applet using 1.4.2 jdk with Tomcat 4.1.27 or better you
will NOT get the EOFException in your Tomcat log.

-Alan


----- Original Message ----- 
From: "Support" <support@elottoalerts.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>; "Support"
<support@elottoalerts.com>
Sent: Wednesday, September 24, 2003 9:48 PM
Subject: Re: EOFException Servlet Exception?


> I figured it out ...
>
> For those lost souls searching the web for the answer to this question:
>
> First "rebuild" the servlet - THEN "rebuild" the applet. Presto! It works
> again. Not exactly sure why this is - probably something to do with
> 'serialization' process.
>
> Hope it helps someone else ...
> -Alan
>
> ----- Original Message ----- 
> From: "Support" <support@elottoalerts.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Wednesday, September 24, 2003 4:21 PM
> Subject: EOFException Servlet Exception?
>
>
> Has anyone had to upgrade FROM Tomcat 4.0.x TO Tomcat 4.1.27 or 5.0.x
> ONLY to get an EOFException when transferring a serialized object between
> an Applet running (MSJVM) 1.1.8 OR Plugin 1.4.2 AND servlet (JVM 1.4.2).
>
> Tomcat 4.1.24 does works fine! It's just when I upgrade to 4.1.27 or 5.0.x
> then I get the exception.
>
> Thanks to all that contribute to the help in advance,
> -Alan
>
>
> --- STACK TRACE BELOW ---
>
> java.io.EOFException
>  at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
>  at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown
Source)
>  at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
>  at java.io.ObjectInputStream.<init>(Unknown Source)
>  at
>
com.lottery.exchange.servlet.ExchangeServlet.doPost(ExchangeServlet.java:51)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:256)
>  at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
>  at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
>  at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
>  at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>  at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:171)
>  at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
>  at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> )
>  at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
>  at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
>  at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> ction(Http11Protocol.java:392)
>  at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:619)
>  at java.lang.Thread.run(Unknown Source)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


Mime
View raw message