Re: [Dspace-tech] Any hints for StreamCorruptedException

2011-07-14 Thread Jennifer Whalan
Tim,

It turns out that I didn't actually need to do even that much. I had to shut 
down tomcat for another reason, and after I started it back up, the error 
stopped.

Sigh technology~


Thanks for the help


Jennifer

Jennifer Whalan
Systems Support Officer | Innovation  Access
Northern Territory Library 'Celebrating 30 Years'
Department of Natural Resources, Environment, The Arts and Sport
Northern Territory Government 

Phone:  (08) 8922 0752
Fax:(08) 8922 0722
Email:  jennifer.wha...@nt.gov.au
Web:www.ntl.nt.gov.au

The information contained in this message and any attachments may be 
confidential information and may be subject to legal privilege, public interest 
or legal profession privilege. If you are not the intended recipient, any use, 
disclosure or copying of this message or any attachments is unauthorised. If 
you have received this document in error, please advise the sender. No 
representation or warranty is given that attached files are free from viruses 
or other defects. The recipient assumes all responsibility for any loss or 
damage resulting directly or indirectly from the use of any attached files.

-Original Message-
From: Tim Donohue [mailto:tdono...@duraspace.org] 
Sent: Thursday, 14 July 2011 12:43 AM
To: Jennifer Whalan
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Any hints for StreamCorruptedException

Hi Jennifer,

I've never actually seen that error before either.  But, a little bit of 
Google searching seems to imply that somehow your XMLUI/Cocoon Cache has 
been corrupted (not sure what the cause could have been though).

http://web.archiveorange.com/archive/v/fTi8LIEB3AxnszySzs8E

The solution they give is to actually remove your Cocoon Cache 
altogether and restart the web application.

To clear you XMLUI/Cocoon Cache in DSpace, you'd do the following:
(1) Stop Tomcat

(2) Go into Tomcat's 'work' directory, and look for a folder named 
xmlui (or whatever the name of your XMLUI webapp folder is, if you 
renamed it).  It likely should be at a path similar to:
[tomcat]/work/Catalina/localhost/xmlui/

(This path may be slightly different based on how your Tomcat is 
configured locally)

(3) Inside that xmlui folder, you'll find a cache-dir folder.  This 
folder contains the Cocoon Cache (you'll see files named 
'cocoon-ehcache.*' in that folder). Delete that entire folder and all 
its contents.

(4) Now, restart Tomcat. As XMLUI/Cocoon starts back up, it will 
recreate its cache automatically.

I've been looking around on the web to see if there's any easier way to 
do this (without having to reboot Tomcat), but it doesn't seem like 
there is.

Good luck. Let us know if this resolves the problems or not.

- TIm

On 7/12/2011 5:27 PM, Jennifer Whalan wrote:
 Just having a look through the logs today, I've noticed a lot of a
 particular error popping up. I've never seen it before, and a google
 search didn't really give me much about it (or at least anything that I
 could understand).
 Has anyone seen this error, or have any idea what might be causing it.
 Thanks
 Jennifer

 2011-07-13 07:53:18,627 ERROR net.sf.ehcache.store.DiskStore @ 
 cocoon-ehcacheCache: Could not read disk store element for key 
 PK_G-aspect-cocoon://DRI/3/password-login?pipelinehash=6295047711776200716. 
 Error was invalid stream header: 
 java.io.StreamCorruptedException: invalid stream header: 
   at 
 java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
   at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
   at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)
   at 
 net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:279)
   at net.sf.ehcache.store.DiskStore.get(DiskStore.java:250)



 2011-07-13 07:53:18,867 ERROR net.sf.ehcache.store.DiskStore @ 
 cocoon-ehcacheCache: Could not read disk store element for key 
 PK_G-aspect-cocoon://DRI/4/?pipelinehash=4201346776282703005_T-SystemwideAlerts-1_T-Navigation-131656041572558754.
  Error was invalid stream header: 
 java.io.StreamCorruptedException: invalid stream header: 
   at 
 java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
   at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
   at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)
   at 
 net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:279)
   at net.sf.ehcache.store.DiskStore.get(DiskStore.java:250)
   at net.sf.ehcache.Cache.searchInDiskStore(Cache.java:846)



 2011-07-13 07:53:18,933 ERROR net.sf.ehcache.store.DiskStore @ 
 cocoon-ehcacheCache: Could not read disk store element for key 
 PK_G-aspect-cocoon://DRI/3/?pipelinehash=-6508156652230851455. Error was 
 invalid stream header: 
 java.io.StreamCorruptedException: invalid stream header: 
   at 
 java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783

Re: [Dspace-tech] Any hints for StreamCorruptedException

2011-07-13 Thread Tim Donohue
Hi Jennifer,

I've never actually seen that error before either.  But, a little bit of 
Google searching seems to imply that somehow your XMLUI/Cocoon Cache has 
been corrupted (not sure what the cause could have been though).

http://web.archiveorange.com/archive/v/fTi8LIEB3AxnszySzs8E

The solution they give is to actually remove your Cocoon Cache 
altogether and restart the web application.

To clear you XMLUI/Cocoon Cache in DSpace, you'd do the following:
(1) Stop Tomcat

(2) Go into Tomcat's 'work' directory, and look for a folder named 
xmlui (or whatever the name of your XMLUI webapp folder is, if you 
renamed it).  It likely should be at a path similar to:
[tomcat]/work/Catalina/localhost/xmlui/

(This path may be slightly different based on how your Tomcat is 
configured locally)

(3) Inside that xmlui folder, you'll find a cache-dir folder.  This 
folder contains the Cocoon Cache (you'll see files named 
'cocoon-ehcache.*' in that folder). Delete that entire folder and all 
its contents.

(4) Now, restart Tomcat. As XMLUI/Cocoon starts back up, it will 
recreate its cache automatically.

I've been looking around on the web to see if there's any easier way to 
do this (without having to reboot Tomcat), but it doesn't seem like 
there is.

Good luck. Let us know if this resolves the problems or not.

- TIm

On 7/12/2011 5:27 PM, Jennifer Whalan wrote:
 Just having a look through the logs today, I've noticed a lot of a
 particular error popping up. I've never seen it before, and a google
 search didn't really give me much about it (or at least anything that I
 could understand).
 Has anyone seen this error, or have any idea what might be causing it.
 Thanks
 Jennifer

 2011-07-13 07:53:18,627 ERROR net.sf.ehcache.store.DiskStore @ 
 cocoon-ehcacheCache: Could not read disk store element for key 
 PK_G-aspect-cocoon://DRI/3/password-login?pipelinehash=6295047711776200716. 
 Error was invalid stream header: 
 java.io.StreamCorruptedException: invalid stream header: 
   at 
 java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
   at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
   at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)
   at 
 net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:279)
   at net.sf.ehcache.store.DiskStore.get(DiskStore.java:250)



 2011-07-13 07:53:18,867 ERROR net.sf.ehcache.store.DiskStore @ 
 cocoon-ehcacheCache: Could not read disk store element for key 
 PK_G-aspect-cocoon://DRI/4/?pipelinehash=4201346776282703005_T-SystemwideAlerts-1_T-Navigation-131656041572558754.
  Error was invalid stream header: 
 java.io.StreamCorruptedException: invalid stream header: 
   at 
 java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
   at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
   at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)
   at 
 net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:279)
   at net.sf.ehcache.store.DiskStore.get(DiskStore.java:250)
   at net.sf.ehcache.Cache.searchInDiskStore(Cache.java:846)



 2011-07-13 07:53:18,933 ERROR net.sf.ehcache.store.DiskStore @ 
 cocoon-ehcacheCache: Could not read disk store element for key 
 PK_G-aspect-cocoon://DRI/3/?pipelinehash=-6508156652230851455. Error was 
 invalid stream header: 
 java.io.StreamCorruptedException: invalid stream header: 
   at 
 java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
   at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
   at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)





 2011-07-13 07:53:20,760 ERROR net.sf.ehcache.store.DiskStore @ 
 cocoon-ehcacheCache: Could not read disk store element for key 
 PK_G-aspect-cocoon://DRI/3/login?pipelinehash=7875940280639898231_T-Navigation--41994303761790368.
  Error was invalid stream header: 
 java.io.StreamCorruptedException: invalid stream header: 
   at 
 java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
   at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
   at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)
   at 
 net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:279)





 2011-07-13 07:53:20,765 ERROR net.sf.ehcache.store.DiskStore @ 
 cocoon-ehcacheCache: Could not read disk store element for key 
 PK_G-aspect-cocoon://DRI/2/login?pipelinehash=6981133072217521487. Error was 
 invalid stream header: 
 java.io.StreamCorruptedException: invalid stream header: 
   at 
 java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
   at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
   at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)
   at 
 

[Dspace-tech] Any hints for StreamCorruptedException

2011-07-12 Thread Jennifer Whalan
Just having a look through the logs today, I've noticed a lot of a particular 
error popping up. I've never seen it before, and a google search didn't really 
give me much about it (or at least anything that I could understand).

Has anyone seen this error, or have any idea what might be causing it.


Thanks
Jennifer


2011-07-13 07:53:18,627 ERROR net.sf.ehcache.store.DiskStore @ 
cocoon-ehcacheCache: Could not read disk store element for key 
PK_G-aspect-cocoon://DRI/3/password-login?pipelinehash=6295047711776200716. 
Error was invalid stream header: 
java.io.StreamCorruptedException: invalid stream header: 
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)
at 
net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:279)
at net.sf.ehcache.store.DiskStore.get(DiskStore.java:250)




2011-07-13 07:53:18,867 ERROR net.sf.ehcache.store.DiskStore @ 
cocoon-ehcacheCache: Could not read disk store element for key 
PK_G-aspect-cocoon://DRI/4/?pipelinehash=4201346776282703005_T-SystemwideAlerts-1_T-Navigation-131656041572558754.
 Error was invalid stream header: 
java.io.StreamCorruptedException: invalid stream header: 
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)
at 
net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:279)
at net.sf.ehcache.store.DiskStore.get(DiskStore.java:250)
at net.sf.ehcache.Cache.searchInDiskStore(Cache.java:846)



2011-07-13 07:53:18,933 ERROR net.sf.ehcache.store.DiskStore @ 
cocoon-ehcacheCache: Could not read disk store element for key 
PK_G-aspect-cocoon://DRI/3/?pipelinehash=-6508156652230851455. Error was 
invalid stream header: 
java.io.StreamCorruptedException: invalid stream header: 
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)





2011-07-13 07:53:20,760 ERROR net.sf.ehcache.store.DiskStore @ 
cocoon-ehcacheCache: Could not read disk store element for key 
PK_G-aspect-cocoon://DRI/3/login?pipelinehash=7875940280639898231_T-Navigation--41994303761790368.
 Error was invalid stream header: 
java.io.StreamCorruptedException: invalid stream header: 
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)
at 
net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:279)





2011-07-13 07:53:20,765 ERROR net.sf.ehcache.store.DiskStore @ 
cocoon-ehcacheCache: Could not read disk store element for key 
PK_G-aspect-cocoon://DRI/2/login?pipelinehash=6981133072217521487. Error was 
invalid stream header: 
java.io.StreamCorruptedException: invalid stream header: 
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)
at 
net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:279)





2011-07-13 07:53:20,769 ERROR net.sf.ehcache.store.DiskStore @ 
cocoon-ehcacheCache: Could not read disk store element for key 
PK_G-aspect-cocoon://DRI/1/login?pipelinehash=1996924818330829280_T-PageNotFound--113502122049614.
 Error was invalid stream header: 
java.io.StreamCorruptedException: invalid stream header: 
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
at net.sf.ehcache.store.DiskStore$1.init(DiskStore.java:284)



Jennifer Whalan
Systems Support Officer | Innovation  Access
Northern Territory Library 'Celebrating 30 Years'
Department of Natural Resources, Environment, The Arts and Sport
Northern Territory Government

Phone:  (08) 8922 0752
Fax:(08) 8922 0722
Email:  jennifer.wha...@nt.gov.aumailto:jennifer.wha...@nt.gov.au
Web:www.ntl.nt.gov.auhttp://www.ntl.nt.gov.au/

The information contained in this message and any attachments may be 
confidential information and may be subject to legal privilege, public interest 
or legal profession privilege. If you are not the intended recipient, any use, 
disclosure or copying of this message or any attachments is unauthorised. If 
you have received this document in error, please advise the sender. No 
representation or warranty is given that attached files are free