RE: IOException

2001-03-28 Thread William Kaufman

You're using IE, right?  It seems that, rather than specifying a time on the
GET call, it just gets the file, _then_ looks at the file's Last-Modified
header: if it's older than the version sitting in IE's cache, it just breaks
the connection, prompting an IOException on the server side.

At the very least, I only see this exception with IE: Netscape, Opera, even
Lynx don't pop exceptions on the server.  I don't see a work-around for
this, either: I'd need IE's source code for that,...

-- Bill K.


> -Original Message-
> From: subhadeep de [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 10:29 PM
> To: [EMAIL PROTECTED]
> Subject: IOException 
> 
> 
> 
> I get the following errors: for gifs in an html page
> 
> 2000-12-12 09:27:41 - Ctx(  ): IOException in: R(  + /index.html +
> null)
> socket write error (code=10053)
> 2000-12-12 09:27:41 - Ctx(  ): IOException in: R(  + /tomcat-
> power.gif +
> null) socket write error (code=10053)
> 
> but page loads fine. Any ideas?
> 
> 
> __
> ___
> Get Your Private, Free E-mail from MSN Hotmail at 
> http://www.hotmail.com.
> 



Re: IOException in server

2001-03-25 Thread Kenneth Westelinck

Hi,

I don't think you should connect to port 8007 (8007 is for AJP12 connector). 
The actual webserver is running on port 8080, or whatever is configured in 
server.xml . So if you browse to : http://localhost:8080/ you should see 
some nice stuff.


regards,

Kenneth Westelinck


>From: "Tonny Liu" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: IOException in server
>Date: Mon, 26 Mar 2001 13:45:28 +0800
>
>Hi,I encountered a problem,it seems curious to me.
>I installed tomcat in Redhat6.2, and started it , I can see it listening on 
>port 8007,but when I tried to connect  it from a browser: 
>http://localhost:8007, I can't get anyting, but In server, it gave the 
>following error:
>BEGIN ERROR*
>HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
>java.io.IOException: Stream broken
> at 
>org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:386)
> at 
>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:134)
> at 
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
> at java.lang.Thread.run(Thread.java:475)
>END ERROR***
>
>
>
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: IOException in server

2001-03-25 Thread Tonny Liu

Thank you, Kenneth Westelinck .

Please help me with another problem: I included tomcat.conf in httpd.conf,but I can't 
start apache for the following error:

Syntax error on line 1 of /usr/local/jakarta-tomcat/conf/tomcat-apache.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included 
in the server configuration
../bin/apachectl restart: httpd could not be started
**

I've got a version of  mod_jserv.so  and copied it in /usr/local/apache/libexec/. can 
you tell me why?

Thanks very much!

Regards,

Tonny.

- Original Message - 
From: "Kenneth Westelinck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 1:46 PM
Subject: Re: IOException in server


> Hi,
> 
> I don't think you should connect to port 8007 (8007 is for AJP12 connector). 
> The actual webserver is running on port 8080, or whatever is configured in 
> server.xml . So if you browse to : http://localhost:8080/ you should see 
> some nice stuff.
> 
> 
> regards,
> 
> Kenneth Westelinck
> 
> 
> >From: "Tonny Liu" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: IOException in server
> >Date: Mon, 26 Mar 2001 13:45:28 +0800
> >
> >Hi,I encountered a problem,it seems curious to me.
> >I installed tomcat in Redhat6.2, and started it , I can see it listening on 
> >port 8007,but when I tried to connect  it from a browser: 
> >http://localhost:8007, I can't get anyting, but In server, it gave the 
> >following error:
> >BEGIN ERROR*
> >HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
> >java.io.IOException: Stream broken
> > at 
> 
>>org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:386)
>
> > at 
> 
>>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:134)
>
> > at 
> >org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
> > at java.lang.Thread.run(Thread.java:475)
> >END ERROR***
> >
> >
> >
> >
> 
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



Re: IOException in server

2001-03-25 Thread Kenneth Westelinck

Hi,

mod_jserv.so is an old module to link apache with Tomcat. You should copy 
this to your libexec directory (as you already did). Next you should start 
Tomcat and check if the tomcat-apache.conf is created in
/usr/local/jakarta-tomcat/conf . Now check the contents of this file. Near 
the beginning you should find something like:
LoadModule jserv_module libexec/mod_jserv.so . Next include this file in 
Apache's httpd.conf and start Apache.
Please note that the tomcat-apache.conf file is auto-generated. If you 
change something in it the changes are lost during the next restart of 
Tomcat.

For more information
- about Apache: see included manuals
- about mod_jserv: http://java.apache.org/jserv/install/howto.servlets.html
- about tomcat: see included documentation


regards,

Kenneth Westelinck
>From: "Tonny Liu" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: IOException in server
>Date: Mon, 26 Mar 2001 15:18:21 +0800
>
>Thank you, Kenneth Westelinck .
>
>Please help me with another problem: I included tomcat.conf in 
>httpd.conf,but I can't start apache for the following error:
>
>Syntax error on line 1 of 
>/usr/local/jakarta-tomcat/conf/tomcat-apache.conf:
>Invalid command 'LoadModule', perhaps mis-spelled or defined by a module 
>not included in the server configuration
>../bin/apachectl restart: httpd could not be started
>**
>
>I've got a version of  mod_jserv.so  and copied it in 
>/usr/local/apache/libexec/. can you tell me why?
>
>Thanks very much!
>
>Regards,
>
>Tonny.
>
>- Original Message -
>From: "Kenneth Westelinck" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, March 26, 2001 1:46 PM
>Subject: Re: IOException in server
>
>
> > Hi,
> >
> > I don't think you should connect to port 8007 (8007 is for AJP12 
>connector).
> > The actual webserver is running on port 8080, or whatever is configured 
>in
> > server.xml . So if you browse to : http://localhost:8080/ you should see
> > some nice stuff.
> >
> >
> > regards,
> >
> > Kenneth Westelinck
> >
> >
> > >From: "Tonny Liu" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: <[EMAIL PROTECTED]>
> > >Subject: IOException in server
> > >Date: Mon, 26 Mar 2001 13:45:28 +0800
> > >
> > >Hi,I encountered a problem,it seems curious to me.
> > >I installed tomcat in Redhat6.2, and started it , I can see it 
>listening on
> > >port 8007,but when I tried to connect  it from a browser:
> > >http://localhost:8007, I can't get anyting, but In server, it gave the
> > >following error:
> > >BEGIN 
>ERROR*
> > >HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
> > >java.io.IOException: Stream broken
> > > at
> > 
> 
>>org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:386)
> > > at
> > 
> 
>>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:134)
> > > at
> > 
> >org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
> > > at java.lang.Thread.run(Thread.java:475)
> > >END 
>ERROR***
> > >
> > >
> > >
> > >
> >
> > 
>_
> > Get Your Private, Free E-mail from MSN Hotmail at 
>http://www.hotmail.com.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: IOException in server

2001-03-26 Thread Tonny Liu

Hi,I'm really confused :(
I've done what you told me and read the documents carefully, but I can't get out of 
it.
It looks like that apache can't execute "LoadMoudle", but what cause it?
I'm not clear about this error:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included 
in the server configuration

I'm trying, and I posted this problem here, hoping your help at your convenience.

Regards,

Tonny.

- Original Message - 
From: "Kenneth Westelinck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 3:56 PM
Subject: Re: IOException in server


> Hi,
> 
> mod_jserv.so is an old module to link apache with Tomcat. You should copy 
> this to your libexec directory (as you already did). Next you should start 
> Tomcat and check if the tomcat-apache.conf is created in
> /usr/local/jakarta-tomcat/conf . Now check the contents of this file. Near 
> the beginning you should find something like:
> LoadModule jserv_module libexec/mod_jserv.so . Next include this file in 
> Apache's httpd.conf and start Apache.
> Please note that the tomcat-apache.conf file is auto-generated. If you 
> change something in it the changes are lost during the next restart of 
> Tomcat.
> 
> For more information
> - about Apache: see included manuals
> - about mod_jserv: http://java.apache.org/jserv/install/howto.servlets.html
> - about tomcat: see included documentation
> 
> 
> regards,
> 
> Kenneth Westelinck
> >From: "Tonny Liu" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: Re: IOException in server
> >Date: Mon, 26 Mar 2001 15:18:21 +0800
> >
> >Thank you, Kenneth Westelinck .
> >
> >Please help me with another problem: I included tomcat.conf in 
> >httpd.conf,but I can't start apache for the following error:
> >
> >Syntax error on line 1 of 
> >/usr/local/jakarta-tomcat/conf/tomcat-apache.conf:
> >Invalid command 'LoadModule', perhaps mis-spelled or defined by a module 
> >not included in the server configuration
> >../bin/apachectl restart: httpd could not be started
> >**
> >
> >I've got a version of  mod_jserv.so  and copied it in 
> >/usr/local/apache/libexec/. can you tell me why?
> >
> >Thanks very much!
> >
> >Regards,
> >
> >Tonny.
> >
> >- Original Message -
> >From: "Kenneth Westelinck" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, March 26, 2001 1:46 PM
> >Subject: Re: IOException in server
> >
> >
> > > Hi,
> > >
> > > I don't think you should connect to port 8007 (8007 is for AJP12 
> >connector).
> > > The actual webserver is running on port 8080, or whatever is configured 
> >in
> > > server.xml . So if you browse to : http://localhost:8080/ you should see
> > > some nice stuff.
> > >
> > >
> > > regards,
> > >
> > > Kenneth Westelinck
> > >
> > >
> > > >From: "Tonny Liu" <[EMAIL PROTECTED]>
> > > >Reply-To: [EMAIL PROTECTED]
> > > >To: <[EMAIL PROTECTED]>
> > > >Subject: IOException in server
> > > >Date: Mon, 26 Mar 2001 13:45:28 +0800
> > > >
> > > >Hi,I encountered a problem,it seems curious to me.
> > > >I installed tomcat in Redhat6.2, and started it , I can see it 
> >listening on
> > > >port 8007,but when I tried to connect  it from a browser:
> > > >http://localhost:8007, I can't get anyting, but In server, it gave the
> > > >following error:
> > > >BEGIN 
> >ERROR*
> > > >HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
> > > >java.io.IOException: Stream broken
> > > > at
> > > 
> > 
>>org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:386)
>
> > > > at
> > > 
> > 
>>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:134)
>
> > > > at
> > > 
> > >org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
> > > > at java.lang.Thread.run(Thread.java:475)
> > > >END 
> >ERROR***
> > > >
> > > >
> > > >
> > > >
> > >
> > > 
> >_
> > > Get Your Private, Free E-mail from MSN Hotmail at 
> >http://www.hotmail.com.
> 
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



Re: IOException in server

2001-03-26 Thread Rafal Maczewski

Hi,

Maybe you have apache compiled without DSO (Dynamic Shared Object) support.
In such case you are not able to load the modules dynamically using
LoadModule directive.
Try running the
httpd -l
this should show you the list of compiled-in modules. If you have
mod_jserv.c in the list than you just have to remove the LoadModule from the
tomcat-apache.conf and your apache should start.
If you don't have mod_jserv.c compiled in then you have to recompile apache
and either include DSO support or compile mod_jserv.c statically.
Having the mod_jserv.c compiled statically is somewhat annoying because you
have to remove the LoadModule directive every time you restart tomcat.

Hope this helps,

Rafal


- Original Message -
From: "Tonny Liu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 11:31 AM
Subject: Re: IOException in server


> Hi,I'm really confused :(
> I've done what you told me and read the documents carefully, but I can't
get out of it.
> It looks like that apache can't execute "LoadMoudle", but what cause it?
> I'm not clear about this error:
> Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
not included in the server configuration
>
> I'm trying, and I posted this problem here, hoping your help at your
convenience.
>
> Regards,
>
> Tonny.
>
> - Original Message -
> From: "Kenneth Westelinck" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 26, 2001 3:56 PM
> Subject: Re: IOException in server
>
>
> > Hi,
> >
> > mod_jserv.so is an old module to link apache with Tomcat. You should
copy
> > this to your libexec directory (as you already did). Next you should
start
> > Tomcat and check if the tomcat-apache.conf is created in
> > /usr/local/jakarta-tomcat/conf . Now check the contents of this file.
Near
> > the beginning you should find something like:
> > LoadModule jserv_module libexec/mod_jserv.so . Next include this file in
> > Apache's httpd.conf and start Apache.
> > Please note that the tomcat-apache.conf file is auto-generated. If you
> > change something in it the changes are lost during the next restart of
> > Tomcat.
> >
> > For more information
> > - about Apache: see included manuals
> > - about mod_jserv: http://java.apache.org/
jserv/install/howto.servlets.html
> > - about tomcat: see included documentation
> >
> >
> > regards,
> >
> > Kenneth Westelinck
> > >From: "Tonny Liu" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: <[EMAIL PROTECTED]>
> > >Subject: Re: IOException in server
> > >Date: Mon, 26 Mar 2001 15:18:21 +0800
> > >
> > >Thank you, Kenneth Westelinck .
> > >
> > >Please help me with another problem: I included tomcat.conf in
> > >httpd.conf,but I can't start apache for the following error:
> > >
> > >Syntax error on line 1 of
> > >/usr/local/jakarta-tomcat/conf/tomcat-apache.conf:
> > >Invalid command 'LoadModule', perhaps mis-spelled or defined by a
module
> > >not included in the server configuration
> > >../bin/apachectl restart: httpd could not be started
> > >**
> > >
> > >I've got a version of  mod_jserv.so  and copied it in
> > >/usr/local/apache/libexec/. can you tell me why?
> > >
> > >Thanks very much!
> > >
> > >Regards,
> > >
> > >Tonny.
> > >





Re: IOException in server

2001-03-26 Thread Kenneth Westelinck

Hi,

That's right. How to do this is described in detail in the documentation 
I've mentioned before.


regards,

Kenneth Westelinck

>From: "Rafal Maczewski" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: IOException in server
>Date: Mon, 26 Mar 2001 11:41:30 +0200
>
>Hi,
>
>Maybe you have apache compiled without DSO (Dynamic Shared Object) support.
>In such case you are not able to load the modules dynamically using
>LoadModule directive.
>Try running the
>httpd -l
>this should show you the list of compiled-in modules. If you have
>mod_jserv.c in the list than you just have to remove the LoadModule from 
>the
>tomcat-apache.conf and your apache should start.
>If you don't have mod_jserv.c compiled in then you have to recompile apache
>and either include DSO support or compile mod_jserv.c statically.
>Having the mod_jserv.c compiled statically is somewhat annoying because you
>have to remove the LoadModule directive every time you restart tomcat.
>
>Hope this helps,
>
>Rafal
>
>
>- Original Message -----
>From: "Tonny Liu" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, March 26, 2001 11:31 AM
>Subject: Re: IOException in server
>
>
> > Hi,I'm really confused :(
> > I've done what you told me and read the documents carefully, but I can't
>get out of it.
> > It looks like that apache can't execute "LoadMoudle", but what cause it?
> > I'm not clear about this error:
> > Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
>not included in the server configuration
> >
> > I'm trying, and I posted this problem here, hoping your help at your
>convenience.
> >
> > Regards,
> >
> > Tonny.
> >
> > - Original Message -
> > From: "Kenneth Westelinck" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, March 26, 2001 3:56 PM
> > Subject: Re: IOException in server
> >
> >
> > > Hi,
> > >
> > > mod_jserv.so is an old module to link apache with Tomcat. You should
>copy
> > > this to your libexec directory (as you already did). Next you should
>start
> > > Tomcat and check if the tomcat-apache.conf is created in
> > > /usr/local/jakarta-tomcat/conf . Now check the contents of this file.
>Near
> > > the beginning you should find something like:
> > > LoadModule jserv_module libexec/mod_jserv.so . Next include this file 
>in
> > > Apache's httpd.conf and start Apache.
> > > Please note that the tomcat-apache.conf file is auto-generated. If you
> > > change something in it the changes are lost during the next restart of
> > > Tomcat.
> > >
> > > For more information
> > > - about Apache: see included manuals
> > > - about mod_jserv: http://java.apache.org/
>jserv/install/howto.servlets.html
> > > - about tomcat: see included documentation
> > >
> > >
> > > regards,
> > >
> > > Kenneth Westelinck
> > > >From: "Tonny Liu" <[EMAIL PROTECTED]>
> > > >Reply-To: [EMAIL PROTECTED]
> > > >To: <[EMAIL PROTECTED]>
> > > >Subject: Re: IOException in server
> > > >Date: Mon, 26 Mar 2001 15:18:21 +0800
> > > >
> > > >Thank you, Kenneth Westelinck .
> > > >
> > > >Please help me with another problem: I included tomcat.conf in
> > > >httpd.conf,but I can't start apache for the following error:
> > > >
> > > >Syntax error on line 1 of
> > > >/usr/local/jakarta-tomcat/conf/tomcat-apache.conf:
> > > >Invalid command 'LoadModule', perhaps mis-spelled or defined by a
>module
> > > >not included in the server configuration
> > > >../bin/apachectl restart: httpd could not be started
> > > >**
> > > >
> > > >I've got a version of  mod_jserv.so  and copied it in
> > > >/usr/local/apache/libexec/. can you tell me why?
> > > >
> > > >Thanks very much!
> > > >
> > > >Regards,
> > > >
> > > >Tonny.
> > > >
>
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: IOException in server

2001-03-26 Thread Kevin Sangeelee

I have had this problem before, caused by the fact that loadable module
support wasn't compiled by default by RedHat's build of Apache (!!)

This meant that the LoadModule directive didn't exist as far as my
(default) version of httpd was concerned. The solution was to rebuild
apache with the appropriate directive to ./configure - can't remember what
this was, but there was a list of options on the readme or install file.

On Mon, 26 Mar 2001, Tonny Liu wrote:

> Hi,I'm really confused :(
> I've done what you told me and read the documents carefully, but I can't get out of 
>it.
> It looks like that apache can't execute "LoadMoudle", but what cause it?
> I'm not clear about this error:
> Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not 
>included in the server configuration
> 
> I'm trying, and I posted this problem here, hoping your help at your
> convenience.




RE: IOException under tomcat 4.1.10!

2002-09-12 Thread Vincent . Gaboriau

I don't know very well the JK2 connector, but I think that you have
configured Tomcat to function with the jni channel.
And you don't specify the "apr.NativeSo" parameter.
More explication here.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtc.html



-Message d'origine-
De : Alexander Schmidt [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 12 septembre 2002 16:25
À : Tomcat Users List
Objet : IOException under tomcat 4.1.10!


Hi!
Can someone tell me what this mean and if it is important?

INFO: APR not loaded, disabling jni components: java.io.IOException: no
jkjni in java.library.path

Thanks
   A. Schmidt


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: IOException and Tomcat hanging

2001-07-02 Thread Filip Hanik



are 
you using the JDBCRealm?
 
Filip
 
~Namaste - I bow to the divine in you~Filip 
HanikSoftware Architect[EMAIL PROTECTED]www.filip.net 

  -Original Message-From: Xiaoyu Zhang 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 02, 2001 10:16 
  AMTo: [EMAIL PROTECTED]Subject: IOException 
  and Tomcat hanging Hi,I've got random 
  java.sql.SQLException: Io exception: Socket closed error in my web 
  application, which uses Tomcat 3.2.2 and struts. It happens only when a link 
  is clicked without the page fully loaded. I don't get any exception while the 
  page is fully loaded.The exception caught in the application is : 
  SQLExcpetion: Io Exceptoin: socket closedThe exception at tomcat console 
  is : ContextManager: SocketException reading request, ignored - 
  java.net.SocketException: Connection reset by peerDid someone have 
  similar case before ?Thanks. 
  Xiaoyuattached:Error message in tomcat 
  console:ContextManager: SocketException reading request, ignored - 
  java.net.SocketException: Connection reset by peer at 
  java.net.PlainSocketImpl.socketAvailable(Native Method) at 
  java.net.PlainSocketImpl.available(PlainSocketImpl.java:451) at 
  java.net.SocketInputStream.available(SocketInputStream.java:137) at 
  org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:217) 
  at 
  org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
  at 
  org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) 
  at java.lang.Thread.run(Thread.java:484)Error message our 
  application caught:com.cisco.tte.rims.model.DatabaseErrorException: 
  java.sql.SQLException: Io exception: Socket closed at 
  com.cisco.tte.rims.model.Workspace.getAttributeById(Workspace.java:2809) 
  at 
  com.cisco.tte.rims.actions.ViewWorkspaceConfigAction.handleAction(ViewWorkspaceConfigAction.java:174) 
  at com.cisco.tte.rims.actions.BaseAction.perform(BaseAction.java:174) 
  at 
  org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1726) 
  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1536) 
  at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
  org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) 
  at org.apache.tomcat.core.Handler.service(Handler.java:287) at 
  org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at 
  org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) 
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
  at 
  org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) 
  at 
  org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
  at 
  org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) 
  at 
java.lang.Thread.run(Thread.java:484)


RE: IOException and Tomcat hanging

2001-07-02 Thread William Kaufman

> I've got random java.sql.SQLException: Io exception: Socket closed error
> in my web application, which uses Tomcat 3.2.2 and struts. It happens
> only when a link is clicked without the page fully loaded. I don't get
> any exception while the page is fully loaded.

That exception tells you that,... the user clicked on another link, before
the page was completely loaded.  Really.  The page couldn't be delivered
because a new page was selected.

What you do with that exception is up to you.  In most cases, though, you
probably want to ignore it, and let it percolate back up to the servlet
engine.  After all, there's no one asking for the page anymore--what would
you do with the output?

If you're using the servlet call to do something unrelated to page
generation (e.g., to start a service or pre-load data), you may want to move
that work off to a separate thread, so it doesn't get interrupted by I/O
failures.


-- Bill K. 
-Original Message-
From: Xiaoyu Zhang [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 10:16 AM
To: [EMAIL PROTECTED]
Subject: IOException and Tomcat hanging 




Hi,
I've got random java.sql.SQLException: Io exception: Socket closed error in
my web application, which uses Tomcat 3.2.2 and struts. It happens only when
a link is clicked without the page fully loaded. I don't get any exception
while the page is fully loaded.

The exception caught in the application is : SQLExcpetion: Io Exceptoin:
socket closed
The exception at tomcat console is : ContextManager: SocketException reading
request, ignored - java.net.SocketException: Connection reset by peer

Did someone have similar case before ?

Thanks. 
Xiaoyu



attached:
Error message in tomcat console:
ContextManager: SocketException reading request, ignored -
java.net.SocketException: Connection reset by peer 
at java.net.PlainSocketImpl.socketAvailable(Native Method) 
at java.net.PlainSocketImpl.available(PlainSocketImpl.java:451) 
at java.net.SocketInputStream.available(SocketInputStream.java:137) 
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:217) 
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) 
at java.lang.Thread.run(Thread.java:484)


Error message our application caught:
com.cisco.tte.rims.model.DatabaseErrorException: java.sql.SQLException: Io
exception: Socket closed 
at com.cisco.tte.rims.model.Workspace.getAttributeById(Workspace.java:2809) 
at
com.cisco.tte.rims.actions.ViewWorkspaceConfigAction.handleAction(ViewWorksp
aceConfigAction.java:174) 
at com.cisco.tte.rims.actions.BaseAction.perform(BaseAction.java:174) 
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1726) 
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1536) 
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) 
at org.apache.tomcat.core.Handler.service(Handler.java:287) 
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) 
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7) 
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213) 
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) 
at java.lang.Thread.run(Thread.java:484)



RE: IOException while downloading a file

2001-07-11 Thread Deacon Marcus

Hi,

>-Original Message-
>From: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 12, 2001 6:57 AM
>To: [EMAIL PROTECTED]
>Subject: IOException while downloading a file
>
>
>Hello all:
>We get the following exception when we click on
>a link, that downlaods a file to the client
>machine, and instead of clicking "OK" we click
>"Cancel". The same exception is not thrown when
>"OK" is clicked.

>2001-07-12 10:19:19 - Ctx( /eztrack ):
>IOException in: R( /mycontext +
>/myproject/15/verify/0/abc.exe + null)
>Connection reset by peer: socket write error

>Any idea why does it happen?
>Tia,
>Manish Bhatnagar

That's exactly how it's supposed to be. Browsers start to download the file,
getting all the response headers etc, starting to download the data, and
then asks what to do. Have you noticed that sometimes after you click on a
link, wait a minute, then accept downloading "starts" at 10+% ? If you click
cancel, your browser discards downloaded data and closes connection, giving
"connection reset by peer" error.

Greetings, deacon Marcus




RE: IOException while downloading a file

2001-07-11 Thread Manish Bhatnagar

Thanks very much, Marcus, for your explanation.
Manish

-Original Message-
From: Deacon Marcus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 11:04 AM
To: [EMAIL PROTECTED]
Subject: RE: IOException while downloading a file


Hi,

>-Original Message-
>From: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 12, 2001 6:57 AM
>To: [EMAIL PROTECTED]
>Subject: IOException while downloading a file
>
>
>Hello all:
>We get the following exception when we click on
>a link, that downlaods a file to the client
>machine, and instead of clicking "OK" we click
>"Cancel". The same exception is not thrown when
>"OK" is clicked.

>2001-07-12 10:19:19 - Ctx( /eztrack ):
>IOException in: R( /mycontext +
>/myproject/15/verify/0/abc.exe + null)
>Connection reset by peer: socket write error

>Any idea why does it happen?
>Tia,
>Manish Bhatnagar

That's exactly how it's supposed to be. Browsers start to download the file,
getting all the response headers etc, starting to download the data, and
then asks what to do. Have you noticed that sometimes after you click on a
link, wait a minute, then accept downloading "starts" at 10+% ? If you click
cancel, your browser discards downloaded data and closes connection, giving
"connection reset by peer" error.

Greetings, deacon Marcus




Re: IOException while loading persisted sessions

2004-01-27 Thread Vitor Buitoni
When tomcat persists sessions, it will try to serialize all objects 
stored in your sessions to disk. In order to be successful, all the 
objects must be serializable.
In this example, the class 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable 
- it does not implement the Serializable interface.

Vitor

Allistair Crossley wrote:

Hi,

I quite often but not always get a huge stack trace thrown when Tomcat boots up the top part of which is the following. I'm not sure why it thinks it needs to be loading anything to do with my bean here from persisted sessions. Is that a setting that I have switched on that I need to switch off? Like I say, only happens on every 3rd or 4th reboot (development instance) and it does not stop TC5.0.18 working either.

SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException
: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
Cheers ADC

 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---


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

--

*Vitor Buitoni*
/Programador - APC/
*DÍGITRO TECNOLOGIA*
*E-mail:* [EMAIL PROTECTED] 
*Fone:* (0xx48) 281-7314 / (0xx48) 281-7000
*Fax:* (0xx48) 281-7000
*Site:* www.portaldigitro.com.br 


Re: IOException, that reset by peer thing.

2002-01-15 Thread Tom Drake

That message means the the 'other' end of the connection
was closed. This could happen if you press the 'stop'
button on your browser.


- Original Message -
From: "Mike Curwen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 15, 2002 7:21 AM
Subject: IOException, that reset by peer thing.


| Hi,
|
| This has probably been covered before, but thought I'd risk a 'stfw' and
ask
| anyways. ;)
|
| What is the cause (and solution?) for this fairly frequent and non-fatal
| error?
|
| IOException in R(/myfolder+/jsp/somepage.jsp+null) Connection reset by
peer:
| socket write error.
|
| p.s. - I have done a google search, and there were a few references to
| WinSock errors (ie: it isn't tomcat).  But I'm not sure I 100% buy that.
|
| Thanks everyone.
|
| MikeC
|
|
| --
| To unsubscribe:   
| For additional commands: 
| Troubles with the list: 
|
|
|


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: IOException, that reset by peer thing.

2002-01-15 Thread Huy Tran

 From my experience, that happens when user connect to you and then 
close it.  Especially, when they are using a browser, requesting a page 
from your Tomcat, but then decide to move on to another site or page.

Hope it helps.

Mike Curwen wrote:

>Hi,
>
>This has probably been covered before, but thought I'd risk a 'stfw' and ask
>anyways. ;)
>
>What is the cause (and solution?) for this fairly frequent and non-fatal
>error?
>
>IOException in R(/myfolder+/jsp/somepage.jsp+null) Connection reset by peer:
>socket write error.
>
>p.s. - I have done a google search, and there were a few references to
>WinSock errors (ie: it isn't tomcat).  But I'm not sure I 100% buy that.
>
>Thanks everyone.
>
>MikeC
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: IOException, that reset by peer thing.

2002-01-15 Thread Mike Curwen

Thanks for the info.

But has no one else noticed this error happens a *LOT* with Tomcat 3.x ?

And *I'm* the only user of my own development server, and I certainly didn't
click stop or browse to another site.  It happens very frequently with image
requests, and ocassionaly with page requests.

One site blamed IE browser, but I've noticed the same with Netscape.
Another person blamed winSock libraries in windows, but I doubt it.

It seems to have disappeared with later releases of Tomcat, and I thought
someone on here might know of "oh yes, that was a glitch fixed with release
x.y.z".



-Original Message-
From: Huy Tran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:37 PM
To: Tomcat Users List
Subject: Re: IOException, that reset by peer thing.


 From my experience, that happens when user connect to you and then
close it.  Especially, when they are using a browser, requesting a page
from your Tomcat, but then decide to move on to another site or page.

Hope it helps.

Mike Curwen wrote:

>Hi,
>
>This has probably been covered before, but thought I'd risk a 'stfw' and
ask
>anyways. ;)
>
>What is the cause (and solution?) for this fairly frequent and non-fatal
>error?
>
>IOException in R(/myfolder+/jsp/somepage.jsp+null) Connection reset by
peer:
>socket write error.
>
>p.s. - I have done a google search, and there were a few references to
>WinSock errors (ie: it isn't tomcat).  But I'm not sure I 100% buy that.
>
>Thanks everyone.
>
>MikeC
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: IOException, that reset by peer thing.

2002-01-15 Thread Brandon Cruz

It also happens if your browser has things cached, especially images.  It
does not matter, and from my understanding, there is no way to stop this
output.

-Original Message-
From: Huy Tran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:37 PM
To: Tomcat Users List
Subject: Re: IOException, that reset by peer thing.


 From my experience, that happens when user connect to you and then
close it.  Especially, when they are using a browser, requesting a page
from your Tomcat, but then decide to move on to another site or page.

Hope it helps.

Mike Curwen wrote:

>Hi,
>
>This has probably been covered before, but thought I'd risk a 'stfw' and
ask
>anyways. ;)
>
>What is the cause (and solution?) for this fairly frequent and non-fatal
>error?
>
>IOException in R(/myfolder+/jsp/somepage.jsp+null) Connection reset by
peer:
>socket write error.
>
>p.s. - I have done a google search, and there were a few references to
>WinSock errors (ie: it isn't tomcat).  But I'm not sure I 100% buy that.
>
>Thanks everyone.
>
>MikeC
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: IOException, that reset by peer thing.

2002-01-15 Thread Mike Curwen

There is a way to stop it, but just wondered why it happens in the first
place.

http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=56&t=000
142

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 1:25 PM
To: Tomcat Users List
Subject: RE: IOException, that reset by peer thing.


It also happens if your browser has things cached, especially images.  It
does not matter, and from my understanding, there is no way to stop this
output.

-Original Message-
From: Huy Tran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:37 PM
To: Tomcat Users List
Subject: Re: IOException, that reset by peer thing.


 From my experience, that happens when user connect to you and then
close it.  Especially, when they are using a browser, requesting a page
from your Tomcat, but then decide to move on to another site or page.

Hope it helps.

Mike Curwen wrote:

>Hi,
>
>This has probably been covered before, but thought I'd risk a 'stfw' and
ask
>anyways. ;)
>
>What is the cause (and solution?) for this fairly frequent and non-fatal
>error?
>
>IOException in R(/myfolder+/jsp/somepage.jsp+null) Connection reset by
peer:
>socket write error.
>
>p.s. - I have done a google search, and there were a few references to
>WinSock errors (ie: it isn't tomcat).  But I'm not sure I 100% buy that.
>
>Thanks everyone.
>
>MikeC
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: IOException while loading CSS or GIFs

2001-02-06 Thread Kyle Robinson

I get this as well, a solution I have not found.  I heard a rumour somewhere
that it was caused by something errant in Forte.  Are you using Forte by any
chance?

Thanks,

Kyle

-Original Message-
From: Natarajan, Bartee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 1:33 PM
To: '[EMAIL PROTECTED]'
Subject: IOException while loading CSS or GIFs


Hello

We just downloaded and installed Tomcat 3.2.1 on Windows NT 4.0. Whenever we
attempt to load
a GIF image or a CSS of more than a couple Kb we get the following error:

2001-02-06 04:18:31 - Ctx( /template ): IOException in: R( /template +
/graphics
/java.gif + null) Connection aborted by peer: socket write error

The actual page seems to load ok. Everything is fine except for this error
on the console.. Any clues?
We checked the bug-database and Tomcat FAQs and couldn't find anything
related. Appreciate
any help.

Thanks,
-bharathi


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

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




RE: IOException while loading CSS or GIFs

2001-02-06 Thread Danganan, Clyde

We've seen this as well and it doesn't appear to be a fatal error.  I've
turned off logging error messages to the console by modifying server.xml as
follows:



This writes only "FATAL" error messages to the tomcat.log file.  There are
different levels of error that you can capture (see server.xml comments).
Hope this helps.
Clyde

-Original Message-
From: Natarajan, Bartee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 3:33 PM
To: '[EMAIL PROTECTED]'
Subject: IOException while loading CSS or GIFs


Hello

We just downloaded and installed Tomcat 3.2.1 on Windows NT 4.0. Whenever we
attempt to load
a GIF image or a CSS of more than a couple Kb we get the following error:

2001-02-06 04:18:31 - Ctx( /template ): IOException in: R( /template +
/graphics
/java.gif + null) Connection aborted by peer: socket write error

The actual page seems to load ok. Everything is fine except for this error
on the console.. Any clues?
We checked the bug-database and Tomcat FAQs and couldn't find anything
related. Appreciate
any help.

Thanks,
-bharathi


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

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




RE: IOException while loading CSS or GIFs

2001-02-07 Thread Randy Layman


Actually the current working theory on this list seems to be that
when web browsers have a local copy of a file, the accept enough of the data
to see that they have the same copy and close the connection, thus saving
network traffic (and fulfilling the purpose of a cache).  Problem is, Tomcat
can't tell the difference between this type of socket closing and then the
browser crashes or other computer disconnets, etc.

Randy


-Original Message-
From: Danganan, Clyde [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 4:49 PM
To: '[EMAIL PROTECTED]'
Subject: RE: IOException while loading CSS or GIFs


We've seen this as well and it doesn't appear to be a fatal error.  I've
turned off logging error messages to the console by modifying server.xml as
follows:



This writes only "FATAL" error messages to the tomcat.log file.  There are
different levels of error that you can capture (see server.xml comments).
Hope this helps.
Clyde

-Original Message-
From: Natarajan, Bartee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 3:33 PM
To: '[EMAIL PROTECTED]'
Subject: IOException while loading CSS or GIFs


Hello

We just downloaded and installed Tomcat 3.2.1 on Windows NT 4.0. Whenever we
attempt to load
a GIF image or a CSS of more than a couple Kb we get the following error:

2001-02-06 04:18:31 - Ctx( /template ): IOException in: R( /template +
/graphics
/java.gif + null) Connection aborted by peer: socket write error

The actual page seems to load ok. Everything is fine except for this error
on the console.. Any clues?
We checked the bug-database and Tomcat FAQs and couldn't find anything
related. Appreciate
any help.

Thanks,
-bharathi


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

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

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




RE: IOException: failed to communicate with MySQL

2003-06-03 Thread Alex Burton
a couple of days ago a post went by talking about MySQL default timeout
being set to 8 hrs for connections... betting this might be your problem...

-Original Message-
From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 5:26 PM
To: [EMAIL PROTECTED]
Subject: IOException: failed to communicate with MySQL



Hello,

My JSP application very often after night, in the morning stops
communicating with MySQL database. I get an exception each morning (the
exception body goes below). The application starts to work again after I
restart it from the Tomcat Manager.

Maybe someone else also had this same problem? My server configuration:
Linux Redhat, Tomcat 4.1.24, Java 1.4.1.

My assumptions where the problem might be: the MySQL connections are
"eaten" by another application or they are "eaten" by my application
somewhere inside and never closed. Or maybe during the night when no one
is working with my application it somehow "frozes"? Can anyone give me a
clue how to start debugging these early morning crashes?

Another clue: Connections to the database are made through an SQLManager
which is a class written by another programmer. The class is a singleton.
Could it be that I have to reset it more often?

The exception body goes here:

java.sql.SQLException: Communication link failure: java.io.IOException
at com.mysql.jdbc.MysqlIO.clearAllReceive(Unknown Source)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(Unknown Source)
at com.mysql.jdbc.MysqlIO.sqlQuery(Unknown Source)
at com.mysql.jdbc.Connection.execSQL(Unknown Source)
at com.mysql.jdbc.Connection.execSQL(Unknown Source)
at com.mysql.jdbc.Statement.executeQuery(Unknown Source)
at com.mysql.jdbc.jdbc2.Statement.executeQuery(Unknown Source)
at
lt.ktu.distance.sql.mysql.MySQLGUILanguageManagerHelper.loadGUILanguages(MyS
QLGUILanguageManagerHelper.java:48)
at
lt.ktu.distance.sql.GUILanguageManager.loadGUILanguages(GUILanguageManager.j
ava:55)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:155)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
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:2415)
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:594)
a

RE: IOException: failed to communicate with MySQL

2003-06-03 Thread Mindaugas Genutis

> a couple of days ago a post went by talking about MySQL default timeout
> being set to 8 hrs for connections... betting this might be your problem...

Thanks for pointing this out. I've read the thread "Tomcat problems every 
morning". However, no solution was suggested in that thread. One can 
assume the solution implicitly: increase default MySQL timeout from 8 
hours to say 48 hours. However, if my application stays idle for 48 hours 
during holidays, it will disconnect after that.

Does anyone else have a suggestion on how to improve on this?


> Hello,
> 
> My JSP application very often after night, in the morning stops
> communicating with MySQL database. I get an exception each morning (the
> exception body goes below). The application starts to work again after I
> restart it from the Tomcat Manager.
> 
> Maybe someone else also had this same problem? My server configuration:
> Linux Redhat, Tomcat 4.1.24, Java 1.4.1.
> 
> My assumptions where the problem might be: the MySQL connections are
> "eaten" by another application or they are "eaten" by my application
> somewhere inside and never closed. Or maybe during the night when no one
> is working with my application it somehow "frozes"? Can anyone give me a
> clue how to start debugging these early morning crashes?
> 
> Another clue: Connections to the database are made through an SQLManager
> which is a class written by another programmer. The class is a singleton.
> Could it be that I have to reset it more often?

-- 
Kaunas Regional Distance Education Center
Programmer
Phone: +370 674 05232
WWW: http://distance.ktu.lt


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



Re: IOException: failed to communicate with MySQL

2003-06-03 Thread Kwok Peng Tuck
Write a dbkeep-alive, schedule it to run say every 15 minutes. Works for 
me.
I use jcrontab.sourceforge.net to schedule this.
I think DBCP also does something like this, you might want to look at 
their docs as well.

Mindaugas Genutis wrote:

a couple of days ago a post went by talking about MySQL default timeout
being set to 8 hrs for connections... betting this might be your problem...
   

Thanks for pointing this out. I've read the thread "Tomcat problems every 
morning". However, no solution was suggested in that thread. One can 
assume the solution implicitly: increase default MySQL timeout from 8 
hours to say 48 hours. However, if my application stays idle for 48 hours 
during holidays, it will disconnect after that.

Does anyone else have a suggestion on how to improve on this?

 

Hello,

My JSP application very often after night, in the morning stops
communicating with MySQL database. I get an exception each morning (the
exception body goes below). The application starts to work again after I
restart it from the Tomcat Manager.
Maybe someone else also had this same problem? My server configuration:
Linux Redhat, Tomcat 4.1.24, Java 1.4.1.
My assumptions where the problem might be: the MySQL connections are
"eaten" by another application or they are "eaten" by my application
somewhere inside and never closed. Or maybe during the night when no one
is working with my application it somehow "frozes"? Can anyone give me a
clue how to start debugging these early morning crashes?
Another clue: Connections to the database are made through an SQLManager
which is a class written by another programmer. The class is a singleton.
Could it be that I have to reset it more often?
   

 



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


Re: IOException: failed to communicate with MySQL

2003-06-03 Thread Martin Jacobson
Mindaugas Genutis wrote:
a couple of days ago a post went by talking about MySQL default timeout
being set to 8 hrs for connections... betting this might be your problem...


Thanks for pointing this out. I've read the thread "Tomcat problems every 
morning". However, no solution was suggested in that thread. One can 
assume the solution implicitly: increase default MySQL timeout from 8 
hours to say 48 hours. However, if my application stays idle for 48 hours 
during holidays, it will disconnect after that.

Does anyone else have a suggestion on how to improve on this?

Yes,

add ?autoReconnect=true to the connection url.

Martin

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


RE: IOException: failed to communicate with MySQL

2003-06-04 Thread Hemendra . Rana
Yesterday, I added autoReconnect=true to the URL and I am no longer having
the problems. I did not have to restart the tomcat server in the morning
today. Thanks to everyone for their help.

Hemendra

-Original Message-
From: Martin Jacobson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 12:58 AM
To: Tomcat Users List
Subject: Re: IOException: failed to communicate with MySQL


Mindaugas Genutis wrote:
>>a couple of days ago a post went by talking about MySQL default timeout
>>being set to 8 hrs for connections... betting this might be your
problem...
> 
> 
> Thanks for pointing this out. I've read the thread "Tomcat problems every 
> morning". However, no solution was suggested in that thread. One can 
> assume the solution implicitly: increase default MySQL timeout from 8 
> hours to say 48 hours. However, if my application stays idle for 48 hours 
> during holidays, it will disconnect after that.
> 
> Does anyone else have a suggestion on how to improve on this?
> 

Yes,

add ?autoReconnect=true to the connection url.

Martin


-
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]



Re: IOException: failed to communicate with MySQL

2003-06-05 Thread Patricio Keilty
Hi,
as suggested in many threads in this list you´re probably dealing with
mySQL driver connection timeout problem. For what you wrote, your
connections are being managed by SQLManager class, so your not using
Tomcat connection pooling. Tomcat DBCP provides a way to recycle broken
or stale connections resulting from DB server shutdown or connections
timing out. Aparently your SQLManager class is not recycling this
connections.

I suggest trying Tomcat DBCP, or implement connection recycling in your
manager class.

Hope this help.
Patricio

El mar, 03-06-2003 a las 04:26, Mindaugas Genutis escribió:
> 
> Hello,
> 
> My JSP application very often after night, in the morning stops 
> communicating with MySQL database. I get an exception each morning (the 
> exception body goes below). The application starts to work again after I 
> restart it from the Tomcat Manager.
> 
> Maybe someone else also had this same problem? My server configuration: 
> Linux Redhat, Tomcat 4.1.24, Java 1.4.1. 
> 
> My assumptions where the problem might be: the MySQL connections are 
> "eaten" by another application or they are "eaten" by my application 
> somewhere inside and never closed. Or maybe during the night when no one 
> is working with my application it somehow "frozes"? Can anyone give me a 
> clue how to start debugging these early morning crashes?
> 
> Another clue: Connections to the database are made through an SQLManager 
> which is a class written by another programmer. The class is a singleton. 
> Could it be that I have to reset it more often?
> 
> The exception body goes here:
> 
> java.sql.SQLException: Communication link failure: java.io.IOException
>   at com.mysql.jdbc.MysqlIO.clearAllReceive(Unknown Source)
>   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(Unknown Source)
>   at com.mysql.jdbc.MysqlIO.sqlQuery(Unknown Source)
>   at com.mysql.jdbc.Connection.execSQL(Unknown Source)
>   at com.mysql.jdbc.Connection.execSQL(Unknown Source)
>   at com.mysql.jdbc.Statement.executeQuery(Unknown Source)
>   at com.mysql.jdbc.jdbc2.Statement.executeQuery(Unknown Source)
>   at 
> lt.ktu.distance.sql.mysql.MySQLGUILanguageManagerHelper.loadGUILanguages(MySQLGUILanguageManagerHelper.java:48)
>   at 
> lt.ktu.distance.sql.GUILanguageManager.loadGUILanguages(GUILanguageManager.java:55)
>   at org.apache.jsp.index_jsp._jspService(index_jsp.java:155)
>   at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
>   at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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:2415)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>   at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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$StandardPipelineValveCon

RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Yiannis Mavroukakis
No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html

Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..


Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.

Vitor

-- snip --

Allistair Crossley wrote:
Hi,

I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.

SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

Cheers ADC



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Allistair Crossley
It says "Classes that do not implement this interface will not have any of their state 
serialized or deserialized"

So, to me that means I do not have to put Serializable if I do not want my MyLinks 
class to be persisted. But Tomcat is throwing an error which means it thinks MyLinks 
"should" be Serialized for some reason. 

I do not want MyLinks to be Serializable. Why does Tomcat throw an error for this 
object and for no others? 

Thanks ADC

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:50
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..


No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html

Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..


Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.

Vitor

-- snip --

Allistair Crossley wrote:
Hi,

I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.

SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

Cheers ADC



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

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



RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Bodycombe, Andrew
If you read a bit further down:

"When traversing a graph, an object may be encountered that does not support
the Serializable interface. In this case the NotSerializableException will
be thrown and will identify the class of the non-serializable object."

If you want session serialization, you will have to make the MyLinks class
implement this interface. If you don't want the fields inside this class to
be serialized, make them transient.

Andy


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 30 January 2004 10:20
To: Tomcat Users List
Subject: RE: IOException while loading persisted sessions continued..


It says "Classes that do not implement this interface will not have any of
their state serialized or deserialized"

So, to me that means I do not have to put Serializable if I do not want my
MyLinks class to be persisted. But Tomcat is throwing an error which means
it thinks MyLinks "should" be Serialized for some reason. 

I do not want MyLinks to be Serializable. Why does Tomcat throw an error for
this object and for no others? 

Thanks ADC

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:50
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..


No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html

Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..


Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.

Vitor

-- snip --

Allistair Crossley wrote:
Hi,

I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.

SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

Cheers ADC



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanne

RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Allistair Crossley
Hi There,

I think either I am missing the point, or my message was not clear :) I totally 
understand the persistent thing. I understand the transient keyword. 

However, my real question is "why" does MyLinks have to be altered at all, when none 
of my "other" session objects have a problem. "Tomcat" seems to be picking on the 
MyLinks object in particular. For example, I have a User object in session but that is 
not Serializable. Tomcat does not complain about this. 

So my question is not about Serialization in general, it is about why Tomcat is 
deciding to throw exceptions for "1" of my session objects and not others. Why should 
it care about MyLinks and not User?

Cheers, hope this is clearer, ADC

-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:46
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..


If you read a bit further down:

"When traversing a graph, an object may be encountered that does not support
the Serializable interface. In this case the NotSerializableException will
be thrown and will identify the class of the non-serializable object."

If you want session serialization, you will have to make the MyLinks class
implement this interface. If you don't want the fields inside this class to
be serialized, make them transient.

Andy


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 30 January 2004 10:20
To: Tomcat Users List
Subject: RE: IOException while loading persisted sessions continued..


It says "Classes that do not implement this interface will not have any of
their state serialized or deserialized"

So, to me that means I do not have to put Serializable if I do not want my
MyLinks class to be persisted. But Tomcat is throwing an error which means
it thinks MyLinks "should" be Serialized for some reason. 

I do not want MyLinks to be Serializable. Why does Tomcat throw an error for
this object and for no others? 

Thanks ADC

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:50
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..


No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html

Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..


Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.

Vitor

-- snip --

Allistair Crossley wrote:
Hi,

I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.

SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

Cheers ADC



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person&#

Re: IOException while loading persisted sessions continued..

2004-01-30 Thread Jon Wingfield
Did you read as far as the NotSerializableException bit? ;)

If you don't want to make MyLinks serializable but want Tomcat to 
serialize sessions you could (amongst other things) implement a 
HttpSessionActivationListener.
Add this object to the session at the same time as your MyLinks object. 
When tomcat serializes the session to disk the sessionWillPassivate() 
method will be called. In that method you could remove the MyLinks 
object from the session. When the session is restored you could re-init 
MyLinks in the sessionDidActivate() implementation.

HTH,

Jon

Allistair Crossley wrote:
It says "Classes that do not implement this interface will not have any of their state serialized or deserialized"

So, to me that means I do not have to put Serializable if I do not want my MyLinks class to be persisted. But Tomcat is throwing an error which means it thinks MyLinks "should" be Serialized for some reason. 

I do not want MyLinks to be Serializable. Why does Tomcat throw an error for this object and for no others? 

Thanks ADC

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:50
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..
No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html
Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..
Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.
Vitor

-- snip --

Allistair Crossley wrote:
Hi,
I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.
	SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
	ion: writing aborted; java.io.NotSerializableException: 
	com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
	java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
	: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
	   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
	   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
	   at java.util.LinkedList.readObject(LinkedList.java:702)
	   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
	   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
	java:39)



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


RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Yiannis Mavroukakis
Does MyLinks perhaps implement/extend another class which has been declared
as Serializable?

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:20
To: Tomcat Users List
Subject: RE: IOException while loading persisted sessions continued..


It says "Classes that do not implement this interface will not have any of
their state serialized or deserialized"

So, to me that means I do not have to put Serializable if I do not want my
MyLinks class to be persisted. But Tomcat is throwing an error which means
it thinks MyLinks "should" be Serialized for some reason. 

I do not want MyLinks to be Serializable. Why does Tomcat throw an error for
this object and for no others? 

Thanks ADC

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:50
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..


No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html

Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..


Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.

Vitor

-- snip --

Allistair Crossley wrote:
Hi,

I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.

SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

Cheers ADC



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:_

RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Allistair Crossley
OK, I think TC5 has session persistence enabled by default for its clustering stuff. I 
do want to use clustering at some point, so I will need to add Serializable to all my 
session objects - fine. But if you do not want clustering I cannot see why session 
persistence is ON by default...

I'll keep on looking... thanks, ADC

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:40
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..


Does MyLinks perhaps implement/extend another class which has been declared
as Serializable?

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:20
To: Tomcat Users List
Subject: RE: IOException while loading persisted sessions continued..


It says "Classes that do not implement this interface will not have any of
their state serialized or deserialized"

So, to me that means I do not have to put Serializable if I do not want my
MyLinks class to be persisted. But Tomcat is throwing an error which means
it thinks MyLinks "should" be Serialized for some reason. 

I do not want MyLinks to be Serializable. Why does Tomcat throw an error for
this object and for no others? 

Thanks ADC

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:50
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..


No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html

Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..


Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.

Vitor

-- snip --

Allistair Crossley wrote:
Hi,

I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.

SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

Cheers ADC



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and 

Re: IOException while loading persisted sessions continued..

2004-01-30 Thread Vitor Buitoni
Well, i'm not sure about it, but i think that if you make the MyLinks 
class implement the Serializable interface, tomcat won't complain about 
it anymore, and probably will complain about some other not serializable 
object.

My idea is that when tomcat finds some error during the session 
deserialization it just give up the whole process. I don't know if this 
is true, but you could make a test and post the results to the list.

Vitor

Allistair Crossley wrote:

Hi There,

I think either I am missing the point, or my message was not clear :) I totally understand the persistent thing. I understand the transient keyword. 

However, my real question is "why" does MyLinks have to be altered at all, when none of my "other" session objects have a problem. "Tomcat" seems to be picking on the MyLinks object in particular. For example, I have a User object in session but that is not Serializable. Tomcat does not complain about this. 

So my question is not about Serialization in general, it is about why Tomcat is deciding to throw exceptions for "1" of my session objects and not others. Why should it care about MyLinks and not User?

Cheers, hope this is clearer, ADC

-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:46
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..
If you read a bit further down:

"When traversing a graph, an object may be encountered that does not support
the Serializable interface. In this case the NotSerializableException will
be thrown and will identify the class of the non-serializable object."
If you want session serialization, you will have to make the MyLinks class
implement this interface. If you don't want the fields inside this class to
be serialized, make them transient.
Andy

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 30 January 2004 10:20
To: Tomcat Users List
Subject: RE: IOException while loading persisted sessions continued..

It says "Classes that do not implement this interface will not have any of
their state serialized or deserialized"
So, to me that means I do not have to put Serializable if I do not want my
MyLinks class to be persisted. But Tomcat is throwing an error which means
it thinks MyLinks "should" be Serialized for some reason. 

I do not want MyLinks to be Serializable. Why does Tomcat throw an error for
this object and for no others? 

Thanks ADC

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:50
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..
No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html
Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..
Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.
Vitor

-- snip --

Allistair Crossley wrote:
Hi,
I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.
	SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
	ion: writing aborted; java.io.NotSerializableException: 
	com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
	java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
	: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
	   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
	   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
	   at java.util.LinkedList.readObject(LinkedList.java:702)
	   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
	   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
	java:39)

	Cheers ADC



 
---
QAS Ltd.
Developers of Qui

RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Bodycombe, Andrew
I suspect that the MyLinks object is just the FIRST non-serializable session
attribute encountered. Tomcat is trying to serialize the session, which
fails as soon as any non-serializable attribute is found. If you made
MyLinks serializable, you would probably start getting errors about your
other non-serializable session attributes.

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 30 January 2004 10:53
To: Tomcat Users List
Subject: RE: IOException while loading persisted sessions continued..


Hi There,

I think either I am missing the point, or my message was not clear :) I
totally understand the persistent thing. I understand the transient keyword.


However, my real question is "why" does MyLinks have to be altered at all,
when none of my "other" session objects have a problem. "Tomcat" seems to be
picking on the MyLinks object in particular. For example, I have a User
object in session but that is not Serializable. Tomcat does not complain
about this. 

So my question is not about Serialization in general, it is about why Tomcat
is deciding to throw exceptions for "1" of my session objects and not
others. Why should it care about MyLinks and not User?

Cheers, hope this is clearer, ADC

-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:46
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..


If you read a bit further down:

"When traversing a graph, an object may be encountered that does not support
the Serializable interface. In this case the NotSerializableException will
be thrown and will identify the class of the non-serializable object."

If you want session serialization, you will have to make the MyLinks class
implement this interface. If you don't want the fields inside this class to
be serialized, make them transient.

Andy


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 30 January 2004 10:20
To: Tomcat Users List
Subject: RE: IOException while loading persisted sessions continued..


It says "Classes that do not implement this interface will not have any of
their state serialized or deserialized"

So, to me that means I do not have to put Serializable if I do not want my
MyLinks class to be persisted. But Tomcat is throwing an error which means
it thinks MyLinks "should" be Serialized for some reason. 

I do not want MyLinks to be Serializable. Why does Tomcat throw an error for
this object and for no others? 

Thanks ADC

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:50
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..


No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html

Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..


Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.

Vitor

-- snip --

Allistair Crossley wrote:
Hi,

I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.

SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

Cheers ADC



 
---

RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Shapira, Yoav

Howdy,
It's funny how you got all these explanations of serialization ;)

>OK, I think TC5 has session persistence enabled by default for its
>clustering stuff. I do want to use clustering at some point, so I will
need
>to add Serializable to all my session objects - fine. But if you do not
>want clustering I cannot see why session persistence is ON by
default...

TC5 requires that session attributes be Serializable by default even
outside a cluster because TC5 persists sessions to disk by default.  If
you change the Manager used to handle sessions, you can get around the
Serializable request.

As you noted, if you plan on clustering/distributing your webapp in the
future, you will have the requirement of Serializable session attributes
no matter what, as that's mandate by the Servlet Specification.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Allistair Crossley
Thanks mate. Finally an answer that does not include what Serialization is ;)

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 13:52
To: Tomcat Users List
Subject: RE: IOException while loading persisted sessions continued..



Howdy,
It's funny how you got all these explanations of serialization ;)

>OK, I think TC5 has session persistence enabled by default for its
>clustering stuff. I do want to use clustering at some point, so I will
need
>to add Serializable to all my session objects - fine. But if you do not
>want clustering I cannot see why session persistence is ON by
default...

TC5 requires that session attributes be Serializable by default even
outside a cluster because TC5 persists sessions to disk by default.  If
you change the Manager used to handle sessions, you can get around the
Serializable request.  

As you noted, if you plan on clustering/distributing your webapp in the
future, you will have the requirement of Serializable session attributes
no matter what, as that's mandate by the Servlet Specification.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



RE: IOException: Stream closed error when using custom tags

2004-04-16 Thread Yansheng Lin
Can you do a trace to see where it fails when you use ?  Is it
in doAfterBody() or doStartTag()?
Actually I don't quite understand your problem. You said it works fine when
you try to display it, but doesn't work when you set it as an attribute of
.  Is that right?  If that's the case, normally what I would do
is break things up to two steps.  First get the url string, then set it in
the attribute.

-Yan

-Original Message-
From: shanmugampl [mailto:[EMAIL PROTECTED] 
Sent: April 14, 2004 22:30
To: [EMAIL PROTECTED]
Subject: IOException: Stream closed error when using custom tags


Hi All,

I have a custom tag, which iterates through a data and provides a 
url to be included during every iteration. When i display the url as  a 
string, everything works fine. But when i try to include it through the 
 tag i am getting the following error.

java.io.IOException: Stream closed

org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:62
4)

Once i get this error, reverting back to the old case(displaying the url as
a string) also throws the same error.
I cannot figure out the problem.

Also i have disabled tagpooling. Can anyone help me out on this.

Thanks
Shanmugam PL




-
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]



RE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Shapira, Yoav

Hi,
Make sure all your session attributes are serializable: namely, do not
put your logger in the session.  Grep your code for session.setAttribute
calls (and/or the JSP equivalent if you're using JSPs) to quickly
ascertain this.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Mark Shifman [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 22, 2004 2:10 PM
>To: Tomcat Users List
>Subject: IOException while loading persisted sessions:
>java.io.WriteAbortedException: writing aborted;
>java.io.NotSerializableException:
>org.apache.commons.logging.impl.Log4JLogger
>
>My server .xml is set out of the box with: unpackWARs="true"
>autoDeploy="true"
>If I copy a war file to webapps when there is an active session present
>i get this error:
>
>IOException while loading persisted sessions:
>java.io.WriteAbortedException: writing aborted;
>java.io.NotSerializableException:
>org.apache.commons.logging.impl.Log4JLogger
>
>I don't see any sessions in work/Catalina/localhost/myapp and I don't
>have any idea why I would be serializing
>org.apache.commons.logging.impl.Log4JLogger.
>
>do I have some permissions problem?   I am using linux and tc 5.0.19, I
>am running tomcat as myself and I can read and write all of the tc
>directories.
>
>also when I stop tomcat I don't see the active session saved?
>
>I' pretty perplexed.
>mas
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Mark Shifman
Shapira, Yoav wrote:

Hi,
Make sure all your session attributes are serializable: namely, do not
put your logger in the session.  Grep your code for session.setAttribute
calls (and/or the JSP equivalent if you're using JSPs) to quickly
ascertain this.
 

This is a very simple application in struts.  My only session attributes 
are a String , an Integer ,  an ArrayList  and a String[].  the struts 
form beans, are
DyanValidatorForm which are serializable.

Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Mark Shifman [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 2:10 PM
To: Tomcat Users List
Subject: IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JLogger
My server .xml is set out of the box with: unpackWARs="true"
autoDeploy="true"
If I copy a war file to webapps when there is an active session present
i get this error:
IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JLogger
I don't see any sessions in work/Catalina/localhost/myapp and I don't
have any idea why I would be serializing
org.apache.commons.logging.impl.Log4JLogger.
do I have some permissions problem?   I am using linux and tc 5.0.19, I
am running tomcat as myself and I can read and write all of the tc
directories.
also when I stop tomcat I don't see the active session saved?

I' pretty perplexed.
mas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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



--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Shapira, Yoav

Hi,

>This is a very simple application in struts.  My only session
attributes
>are a String , an Integer ,  an ArrayList  and a String[].  the struts
>form beans, are
>DyanValidatorForm which are serializable.

OK.  Write a simple HttpSessionAttributeListener that just logs in the
attributeAdded method the type of the attribute that's been added.  See
if that proves the logger is being added to your session.  If it does,
we'll have to figure out what's doing the adding.  If it doesn't, forget
this whole approach ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Mark Shifman
Shapira, Yoav wrote:

Hi,

 

This is a very simple application in struts.  My only session
   

attributes
 

are a String , an Integer ,  an ArrayList  and a String[].  the struts
form beans, are
DyanValidatorForm which are serializable.
   

OK.  Write a simple HttpSessionAttributeListener that just logs in the
attributeAdded method the type of the attribute that's been added.  See
if that proves the logger is being added to your session.  If it does,
we'll have to figure out what's doing the adding.  If it doesn't, forget
this whole approach ;)
 

the output of the listener follows -- the last context 
destroyed/initialized follows a copy of the war to webapps.  I have also 
copied the first few lines
of the error dump:
$ grep -e "\[/chartms\]" 
'/home/jakarta-tomcat-5.0.19/logs/localhost_log.2004-03-22.txt'
2004-03-22 15:27:43 StandardContext[/chartms]SessionListener: 
contextInitialized()
2004-03-22 15:28:13 StandardContext[/chartms]SessionListener: 
contextDestroyed()
2004-03-22 15:29:05 StandardContext[/chartms]SessionListener: 
contextInitialized()
2004-03-22 15:29:10 StandardContext[/chartms]SessionListener: 
contextDestroyed()
2004-03-22 15:29:26 StandardContext[/chartms]SessionListener: 
contextInitialized()
2004-03-22 15:29:33 StandardContext[/chartms]SessionListener: 
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'tempfiles', '[]')
2004-03-22 15:29:33 StandardContext[/chartms]SessionListener: 
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '0')
2004-03-22 15:29:33 StandardContext[/chartms]SessionListener: 
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'UploadForm', 
'[EMAIL PROTECTED]')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener: 
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 
'org.apache.struts.action.LOCALE', 'en_US')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener: 
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'UploadForm', 
'[EMAIL PROTECTED]')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener: 
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'tempfiles', 
'[E-L-013H7-DWARD-OVCA132-F1-R1.TXT]')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener: 
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'ChartForm', 
'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},offset=,xpixel=,ypixel=]')
2004-03-22 15:33:22 StandardContext[/chartms]SessionListener: 
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'ChartForm', 
'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},offset=,xpixel=,ypixel=]')
2004-03-22 15:33:23 StandardContext[/chartms]SessionListener: 
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '0')
2004-03-22 15:33:23 StandardContext[/chartms]SessionListener: 
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'rechart_files', 
'[Ljava.lang.String;@6147d9')
2004-03-22 15:33:24 StandardContext[/chartms]SessionListener: 
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'RechartForm', 
'DynaActionForm[dynaClass=RechartForm,xlow=,nthpoint=,xhigh=,yrange=,ylow=,yhigh=,offset=,xpixel=,xrange=,ypixel=]')
2004-03-22 15:35:10 StandardContext[/chartms]SessionListener: 
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'RechartForm', 
'DynaActionForm[dynaClass=RechartForm,xlow=,nthpoint=,xhigh=,yrange=,ylow=,yhigh=,offset=,xpixel=,xrange=,ypixel=]')
2004-03-22 15:35:11 StandardContext[/chartms]SessionListener: 
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '1')
2004-03-22 15:35:47 StandardContext[/chartms]SessionListener: 
contextDestroyed()
2004-03-22 15:35:48 StandardContext[/chartms]SessionListener: 
contextInitialized()

ERROR 2004-03-22 15:35:48,737 doLoad(StandardManager.java:481)
IOException while loading persisted sessions: 
java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: 
org.apache.commons.logging.impl.Log4JLogger
java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: 
org.apache.commons.logging.impl.Log4JLogger
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at 
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1376)
   at 
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:920)
   at 
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:463)
   at 
org.apache.catalina.session.StandardManager.load(StandardManager.java:390)
   at 
org.apache.catalina.session.StandardManager.start(StandardManager.java:704)
   at 
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:542)
   at 
or

RE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Shapira, Yoav

Hi,
OK, so we don't see the Logger being added as a session attribute.
Could it be a leftover from a previous version of your webapp?

If you stop tomcat, remove the session.cer file from under
$CATALINA_HOME/work, start tomcat, use your webapp (to create sessions),
then do your WAR copy and restart, do you still get the error?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Mark Shifman [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 22, 2004 3:44 PM
>To: Tomcat Users List
>Subject: Re: IOException while loading persisted sessions:
>java.io.WriteAbortedException: writing aborted;
>java.io.NotSerializableException:
>org.apache.commons.logging.impl.Log4JLogger
>
>Shapira, Yoav wrote:
>
>>Hi,
>>
>>
>>
>>>This is a very simple application in struts.  My only session
>>>
>>>
>>attributes
>>
>>
>>>are a String , an Integer ,  an ArrayList  and a String[].  the
struts
>>>form beans, are
>>>DyanValidatorForm which are serializable.
>>>
>>>
>>
>>OK.  Write a simple HttpSessionAttributeListener that just logs in the
>>attributeAdded method the type of the attribute that's been added.
See
>>if that proves the logger is being added to your session.  If it does,
>>we'll have to figure out what's doing the adding.  If it doesn't,
forget
>>this whole approach ;)
>>
>>
>the output of the listener follows -- the last context
>destroyed/initialized follows a copy of the war to webapps.  I have
also
>copied the first few lines
>of the error dump:
>$ grep -e "\[/chartms\]"
>'/home/jakarta-tomcat-5.0.19/logs/localhost_log.2004-03-22.txt'
>2004-03-22 15:27:43 StandardContext[/chartms]SessionListener:
>contextInitialized()
>2004-03-22 15:28:13 StandardContext[/chartms]SessionListener:
>contextDestroyed()
>2004-03-22 15:29:05 StandardContext[/chartms]SessionListener:
>contextInitialized()
>2004-03-22 15:29:10 StandardContext[/chartms]SessionListener:
>contextDestroyed()
>2004-03-22 15:29:26 StandardContext[/chartms]SessionListener:
>contextInitialized()
>2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'tempfiles', '[]')
>2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '0')
>2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'UploadForm',
>'[EMAIL PROTECTED]')
>2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
>attributeAdded('12967DF686489F6E34AC3035F55BFE18',
>'org.apache.struts.action.LOCALE', 'en_US')
>2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'UploadForm',
>'[EMAIL PROTECTED]')
>2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'tempfiles',
>'[E-L-013H7-DWARD-OVCA132-F1-R1.TXT]')
>2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'ChartForm',
>'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},offset=,xpixe
l=,y
>pixel=]')
>2004-03-22 15:33:22 StandardContext[/chartms]SessionListener:
>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'ChartForm',
>'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},offset=,xpixe
l=,y
>pixel=]')
>2004-03-22 15:33:23 StandardContext[/chartms]SessionListener:
>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '0')
>2004-03-22 15:33:23 StandardContext[/chartms]SessionListener:
>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'rechart_files',
>'[Ljava.lang.String;@6147d9')
>2004-03-22 15:33:24 StandardContext[/chartms]SessionListener:
>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'RechartForm',
>'DynaActionForm[dynaClass=RechartForm,xlow=,nthpoint=,xhigh=,yrange=,
>ylow=,yhigh=,offset=,xpixel=,xrange=,ypixel=]')
>2004-03-22 15:35:10 StandardContext[/chartms]SessionListener:
>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'RechartForm',
>'DynaActionForm[dynaClass=RechartForm,xlow=,nthpoint=,xhigh=,yrange=,
>ylow=,yhigh=,offset=,xpixel=,xrange=,ypixel=]')
>2004-03-22 15:35:11 StandardContext[/chartms]SessionListener:
>attributeRep

Re: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Mark Shifman
Shapira, Yoav wrote:

Hi,
OK, so we don't see the Logger being added as a session attribute.
Could it be a leftover from a previous version of your webapp? 

If you stop tomcat, remove the session.cer file from under
$CATALINA_HOME/work, start tomcat, use your webapp (to create sessions),
then do your WAR copy and restart, do you still get the error?
 

I don't see any session.cer file anywhere. $CATALINA_HOME/work, or 
anywhere along the path
work/Catalina/localhost/chartms

Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Mark Shifman [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 3:44 PM
To: Tomcat Users List
Subject: Re: IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JLogger
Shapira, Yoav wrote:

   

Hi,



 

This is a very simple application in struts.  My only session

   

attributes

 

are a String , an Integer ,  an ArrayList  and a String[].  the
   

struts
 

form beans, are
DyanValidatorForm which are serializable.
   

OK.  Write a simple HttpSessionAttributeListener that just logs in the
attributeAdded method the type of the attribute that's been added.
 

See
 

if that proves the logger is being added to your session.  If it does,
we'll have to figure out what's doing the adding.  If it doesn't,
 

forget
 

this whole approach ;)

 

the output of the listener follows -- the last context
destroyed/initialized follows a copy of the war to webapps.  I have
   

also
 

copied the first few lines
of the error dump:
$ grep -e "\[/chartms\]"
'/home/jakarta-tomcat-5.0.19/logs/localhost_log.2004-03-22.txt'
2004-03-22 15:27:43 StandardContext[/chartms]SessionListener:
contextInitialized()
2004-03-22 15:28:13 StandardContext[/chartms]SessionListener:
contextDestroyed()
2004-03-22 15:29:05 StandardContext[/chartms]SessionListener:
contextInitialized()
2004-03-22 15:29:10 StandardContext[/chartms]SessionListener:
contextDestroyed()
2004-03-22 15:29:26 StandardContext[/chartms]SessionListener:
contextInitialized()
2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'tempfiles', '[]')
2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '0')
2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'UploadForm',
'[EMAIL PROTECTED]')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18',
'org.apache.struts.action.LOCALE', 'en_US')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'UploadForm',
'[EMAIL PROTECTED]')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'tempfiles',
'[E-L-013H7-DWARD-OVCA132-F1-R1.TXT]')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'ChartForm',
'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},offset=,xpixe
   

l=,y
 

pixel=]')
2004-03-22 15:33:22 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'ChartForm',
'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},offset=,xpixe
   

l=,y
 

pixel=]')
2004-03-22 15:33:23 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '0')
2004-03-22 15:33:23 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'rechart_files',
'[Ljava.lang.String;@6147d9')
2004-03-22 15:33:24 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'RechartForm',
'DynaActionForm[dynaClass=RechartForm,xlow=,nthpoint=,xhigh=,yrange=
   

LL>,
 

ylow=,yhigh=,offset=,xpixel=,xrange=,ypixel=]')
2004-03-22 15:35:10 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'RechartForm',
'DynaActionForm[dynaClass=RechartForm,xlow=,nthpoint=,xhigh=,yrange=
   

LL>,
 

ylow=,yhigh=,offset=,xpixel=,xrange=,ypixel=]')
2004-03-22 15:35:11 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '1')
2004-03-22 15:35:47 StandardContext[/chartms]SessionListener:
contextDestroyed()
2004-03-22 15:35:48 StandardContext[/chartms]

RE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Shapira, Yoav

Hi,

>I don't see any session.cer file anywhere. $CATALINA_HOME/work, or
>anywhere along the path
>work/Catalina/localhost/chartms

Whoa ;)  Tomcat must be reading and deserializing the sessions from
somewhere, no?  Do you have a custom session manager (Manager element in
server.xml)?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Mike Curwen
did it change from SESSIONS.ser to session.cer from 4.x to 5.x ?  If
not, check for SESSIONS.ser (plural, upper case, correct extension).


> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 22, 2004 3:08 PM
> To: Tomcat Users List
> Subject: RE: IOException while loading persisted sessions: 
> java.io.WriteAbortedException: writing aborted; 
> java.io.NotSerializableException: 
> org.apache.commons.logging.impl.Log4JLogger
> 
> 
> 
> Hi,
> 
> >I don't see any session.cer file anywhere. $CATALINA_HOME/work, or 
> >anywhere along the path work/Catalina/localhost/chartms
> 
> Whoa ;)  Tomcat must be reading and deserializing the 
> sessions from somewhere, no?  Do you have a custom session 
> manager (Manager element in server.xml)?
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the individual(s) to whom it is addressed, 
> and may not be saved, copied, printed, disclosed or used by 
> anyone else.  If you are not the(an) intended recipient, 
> please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> 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]



RE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Larry Isaacs
I think Yoav may have meant SESSIONS.ser.  I'm not aware
of a name change for that file.

Note that there is an easy way to inadvertently put a
"logger" into the session.  If a object being put in the
session tries to declare a static logger variable, but
leaves out the "static", then an "instance" logger is
declared instead and that object will "carry" it into
the session.  I don't how likely one of your classes
might be doing this, or due to a bug, some dependency
class is doing it.  I know from experience that a
missing "static" can be very hard to see sometimes.

HTH.

Cheers,
Larry

> -Original Message-
> From: Mark Shifman [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 22, 2004 4:03 PM
> To: Tomcat Users List
> Subject: Re: IOException while loading persisted sessions: 
> java.io.WriteAbortedException: writing aborted; 
> java.io.NotSerializableException: 
> org.apache.commons.logging.impl.Log4JLogger
> 
> 
> Shapira, Yoav wrote:
> 
> >Hi,
> >OK, so we don't see the Logger being added as a session attribute.
> >Could it be a leftover from a previous version of your webapp? 
> >
> >If you stop tomcat, remove the session.cer file from under
> >$CATALINA_HOME/work, start tomcat, use your webapp (to 
> create sessions),
> >then do your WAR copy and restart, do you still get the error?
> >  
> >
> 
> I don't see any session.cer file anywhere. $CATALINA_HOME/work, or 
> anywhere along the path
> work/Catalina/localhost/chartms
> 
> >Yoav Shapira
> >Millennium Research Informatics
> >
> >
> >  
> >
> >>-Original Message-
> >>From: Mark Shifman [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, March 22, 2004 3:44 PM
> >>To: Tomcat Users List
> >>Subject: Re: IOException while loading persisted sessions:
> >>java.io.WriteAbortedException: writing aborted;
> >>java.io.NotSerializableException:
> >>org.apache.commons.logging.impl.Log4JLogger
> >>
> >>Shapira, Yoav wrote:
> >>
> >>
> >>
> >>>Hi,
> >>>
> >>>
> >>>
> >>>  
> >>>
> >>>>This is a very simple application in struts.  My only session
> >>>>
> >>>>
> >>>>
> >>>>
> >>>attributes
> >>>
> >>>
> >>>  
> >>>
> >>>>are a String , an Integer ,  an ArrayList  and a String[].  the
> >>>>
> >>>>
> >struts
> >  
> >
> >>>>form beans, are
> >>>>DyanValidatorForm which are serializable.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>OK.  Write a simple HttpSessionAttributeListener that just 
> logs in the
> >>>attributeAdded method the type of the attribute that's been added.
> >>>  
> >>>
> >See
> >  
> >
> >>>if that proves the logger is being added to your session.  
> If it does,
> >>>we'll have to figure out what's doing the adding.  If it doesn't,
> >>>  
> >>>
> >forget
> >  
> >
> >>>this whole approach ;)
> >>>
> >>>
> >>>  
> >>>
> >>the output of the listener follows -- the last context
> >>destroyed/initialized follows a copy of the war to webapps.  I have
> >>
> >>
> >also
> >  
> >
> >>copied the first few lines
> >>of the error dump:
> >>$ grep -e "\[/chartms\]"
> >>'/home/jakarta-tomcat-5.0.19/logs/localhost_log.2004-03-22.txt'
> >>2004-03-22 15:27:43 StandardContext[/chartms]SessionListener:
> >>contextInitialized()
> >>2004-03-22 15:28:13 StandardContext[/chartms]SessionListener:
> >>contextDestroyed()
> >>2004-03-22 15:29:05 StandardContext[/chartms]SessionListener:
> >>contextInitialized()
> >>2004-03-22 15:29:10 StandardContext[/chartms]SessionListener:
> >>contextDestroyed()
> >>2004-03-22 15:29:26 StandardContext[/chartms]SessionListener:
> >>contextInitialized()
> >>2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
> >>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 
> 'tempfiles', '[]')
> >>2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
> >>attributeAdded('12967DF686489F6E34AC3035F55BFE18&

Re: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-23 Thread Mark Shifman
Shapira, Yoav wrote:

Hi,

 

I don't see any session.cer file anywhere. $CATALINA_HOME/work, or
anywhere along the path
work/Catalina/localhost/chartms
   

Whoa ;)  Tomcat must be reading and deserializing the sessions from
somewhere, no?  Do you have a custom session manager (Manager element in
server.xml)?
 

No I am using the default out-of-the-box manager.  It worried me that I 
didn't see Session.ser (or whatever) anywhere which is what made me 
think I somehow
farkled the permissions.

Every class I have includes a line like this for logging

public final class UploadAction extends Action {
   private Log log = LogFactory.getLog(this.getClass());
   public ActionForward execute(
   .
This worked fine with tc4.  also I am using the latest log4j jar.  If 
this isn't quit right is there a more appropriate way to set the logger?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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



--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-23 Thread Shapira, Yoav

Hi,

>No I am using the default out-of-the-box manager.  It worried me that I
>didn't see Session.ser (or whatever) anywhere which is what made me
>think I somehow
>farkled the permissions.

I mispelled the file name, it's sessions.ser as others have pointed out.
(Don't delete .cer files if you have them, as they might be security
certificates, that's what I had in mind when writing my message, too
much multitasking on my part ;))

>public final class UploadAction extends Action {
>private Log log = LogFactory.getLog(this.getClass());

Make it static.  Someone else pointed out how the above will lead to
your error: Log (the commons-logging interface) may have
non-serializable implementations, making UploadAction itself not
serializable, and therefore not suitable as a session attribute.

Tomcat 5 is more restrictive about enforcing serializable session
attributes than tomcat 4 was.

When you make it static you can't use the this.getClass() construct
unfortunately.  You can use private static Log log =
LogFactory.getLog(UploadAction.class).

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-23 Thread Mark Shifman
Shapira, Yoav wrote:

Hi,

 

No I am using the default out-of-the-box manager.  It worried me that I
didn't see Session.ser (or whatever) anywhere which is what made me
think I somehow
farkled the permissions.
   

I mispelled the file name, it's sessions.ser as others have pointed out.
(Don't delete .cer files if you have them, as they might be security
certificates, that's what I had in mind when writing my message, too
much multitasking on my part ;))
 

public final class UploadAction extends Action {
  private Log log = LogFactory.getLog(this.getClass());
   

Make it static.  Someone else pointed out how the above will lead to
your error: Log (the commons-logging interface) may have
non-serializable implementations, making UploadAction itself not
serializable, and therefore not suitable as a session attribute.
Tomcat 5 is more restrictive about enforcing serializable session
attributes than tomcat 4 was.
When you make it static you can't use the this.getClass() construct
unfortunately.  You can use private static Log log =
LogFactory.getLog(UploadAction.class).
 

Thanks :-) I made the logs static and another class in another 
ActionForm static and I don't get the errors on "autodeploying".  
However, the really wierd thing is that  my 
$CATALINA_HOME/work/Catalina/localhost/myapp still doesn't show a 
SESSIONS.ser when I stop tomcat and as is to be expected, my session 
doesn't persist when I start it again.  I am not using any funny 
Manager. I also tried nesting
  in my context .xml but it didn't do 
anything.

Mark Shifman

Yoav Shapira

 



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