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" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Support"
<[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to