You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Sjur Nørstebø Moshagen <sj...@kolumbus.fi> on 2004/07/09 21:39:36 UTC

Strange site-build error: Failure updating element

When running forrest on my site, I get the following two errors:

First:
X [0]                                     specs/conv/old-db.html??       
BROKEN: No pipeline matched request: specs/conv/old-db.html??

At the end:
09.jul.2004 22:25:34  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache doUpdate
SEVERE: Failure updating element, cacheName: main, key:  
PK_G-file-file:/Volumes/Data/Users/sjur/Documents/samsandok/src/ 
documentation/content/xdocs/specs/conv/old-db.xml
java.lang.InterruptedException
         at java.lang.Object.wait(Native Method)
         at  
org.apache.jcs.utils.locking.ReadWriteLock.writeLock(ReadWriteLock.java: 
127)
         at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doUpdate(IndexedD 
iskCache.java:252)
         at  
org.apache.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePu 
t(AbstractDiskCache.java:417)
         at  
org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav 
a:440)
         at  
org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ 
ueue.java:358)
         at  
org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav 
a:327)
09.jul.2004 22:25:34 org.apache.jcs.engine.CacheEventQueue$QProcessor  
run

The file exists, similar files in the same location are all ok, all  
references to it are ok (I have double checked), file permissions are  
ok, file name is ok, encoding is ok, it is parsed without error - in  
short, I can't find any errors. And still...

Has anyone seen this error before?

Sjur


Re: Strange site-build error: Failure updating element

Posted by Sjur Nørstebø Moshagen <sj...@kolumbus.fi>.
På 9. jul. 2004 kl. 23.05 skrev Scherler, Thorsten:

> Sjur Nørstebø Moshagen wrote:
>
>> When running forrest on my site, I get the following two errors:
>> First:
>> X [0]                                     specs/conv/old-db.html??    
>>    BROKEN: No pipeline matched request: specs/conv/old-db.html??
>
> I rings a bell! ...but I only get it sometimes. Normally after doing 
> /forrest/ again the error disapear (so I have not paying much 
> attention to it).

You were right, the second error disappeared after another 'forrest'. 
The first error remains, though.

> > PK_G-file-file:/Volumes/Data/Users/sjur/Documents/samsandok/src/
> > documentation/content/xdocs/specs/conv/old-db.xml
>
> Hmmm, that file exit in that path?

Yes.

> Is that file valid?

Yes.

> Is that file wellformed?

yes.

> What happends if you delete from the location? Are other files 
> pointing to it? Are the links ok?

Other files are pointing to it, and the links are ok. I haven't yet 
tried to delete it. Will try.

Sjur


Re: Strange site-build error: Failure updating element

Posted by Sjur Nørstebø Moshagen <sj...@kolumbus.fi>.
På 19. jul. 2004 kl. 01.28 skrev Dave Brondsema:

> Sjur Nørstebø Moshagen wrote:
>> Hi,
>> I have been busy with other issues, so it took me some time to get  
>> back  on this. Sorry. If this issue is still relevant after    
>> http://marc.theaimsgroup.com/?t=108982454500004&r=1&w=2&n=4, please   
>> read on.
>
> Can you update to the latest SVN and try again?  I think the JCS  
> errors are fixed now, but it'd be good to know for sure if it solves  
> your problem.

Bad news, unfortunately. Did a 'svn up', then 'forrest'. The output is  
added below. It includes the problematic failure.

Sjur

20.jul.2004 23:59:22 org.apache.jcs.engine.CacheEventQueue destroy
INFO: Cache event queue destroyed: CacheEventQueue  
[listenerId=-564732864, cacheName=main]
20.jul.2004 23:59:22  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache optimizeFile
INFO: Optomizing file keyHash.size()=259
20.jul.2004 23:59:22  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache doUpdate
SEVERE: Failure updating element, cacheName: main, key:  
PK_G-file-file:/Volumes/Data/Users/sjur/Documents/samsandok/src/ 
documentation/content/xdocs/site.xml_T-xslt-file:/Volumes/Data/Users/ 
sjur/svn-forrest/forrest/src/core/bin/../context/resources/stylesheets/ 
absolutize-linkmap.xsl_T-xslt-file:/Volumes/Data/Users/sjur/svn- 
forrest/forrest/src/core/bin/../context/resources/stylesheets/ 
site2site-normalizetabs.xsl_T-xslt-file:/Volumes/Data/Users/sjur/svn- 
forrest/forrest/src/core/bin/../context/resources/stylesheets/ 
normalizehrefs.xsl_T-xslt-file:/Volumes/Data/Users/sjur/svn-forrest/ 
forrest/src/core/bin/../context/resources/stylesheets/site2site- 
selectnode.xsl;path=gram/sme/alfabet_no.html_T-xslt-file:/Volumes/Data/ 
Users/sjur/svn-forrest/forrest/src/core/bin/../context/resources/ 
stylesheets/relativize-linkmap.xsl;path=gram/sme/alfabet_no.html
java.lang.InterruptedException
         at  
EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock$WriterLoc 
k.acquire(Unknown Source)
         at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doUpdate(IndexedD 
iskCache.java:290)
         at  
org.apache.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePu 
t(AbstractDiskCache.java:441)
         at  
org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav 
a:573)
         at  
org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ 
ueue.java:489)
         at  
org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav 
a:461)
20.jul.2004 23:59:22 org.apache.jcs.engine.CacheEventQueue$QProcessor  
run
INFO: QProcessor exiting for CacheEventQueue [listenerId=-564732864,  
cacheName=main]
20.jul.2004 23:59:24  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache tempToPrimary
INFO: main -- oldData.length() = 2041634
20.jul.2004 23:59:24  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache tempToPrimary
INFO: main -- newData.length() = 2041634
20.jul.2004 23:59:24  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache disposeInternal
WARNING: Closing files, base filename: main
20.jul.2004 23:59:24 org.apache.jcs.engine.control.CompositeCache  
dispose
WARNING: Called close for main
Total time: 3 minutes 3 seconds,  Site size: 1?382?791 Site pages: 115
20.jul.2004 23:59:24  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache optimizeFile
INFO: Optomizing file keyHash.size()=0
20.jul.2004 23:59:24  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache tempToPrimary
INFO: groupIdCache -- oldData.length() = 0
20.jul.2004 23:59:24  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache tempToPrimary
INFO: groupIdCache -- newData.length() = 0
20.jul.2004 23:59:24  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache disposeInternal
WARNING: Closing files, base filename: groupIdCache
20.jul.2004 23:59:24 org.apache.jcs.engine.control.CompositeCache  
dispose
WARNING: Called close for groupIdCache


Re: Strange site-build error: Failure updating element

Posted by Dave Brondsema <da...@brondsema.net>.
Sjur Nørstebø Moshagen wrote:
> Hi,
> 
> I have been busy with other issues, so it took me some time to get back  
> on this. Sorry. If this issue is still relevant after   
> http://marc.theaimsgroup.com/?t=108982454500004&r=1&w=2&n=4, please  
> read on.
> 

Can you update to the latest SVN and try again?  I think the JCS errors 
are fixed now, but it'd be good to know for sure if it solves your problem.

-- 
Dave Brondsema : dave@brondsema.net
http://www.splike.com : programming
http://csx.calvin.edu : student org
http://www.brondsema.net : personal

Re: Strange site-build error: Failure updating element

Posted by Sjur Nørstebø Moshagen <sj...@kolumbus.fi>.
Hi,

I have been busy with other issues, so it took me some time to get back  
on this. Sorry. If this issue is still relevant after   
http://marc.theaimsgroup.com/?t=108982454500004&r=1&w=2&n=4, please  
read on.

På 13. jul. 2004 kl. 20.41 skrev Juan Jose Pablos:

> Sjur Nørstebø Moshagen escribió:
>> In the hope that it will help, here's a new dump from today. Actions:
>> - forrest (no such error)
>> - small document changes
>> - forrest - error
> I did a few test, and It is a bug on the jcs code somewhere. to fix it  
> we need to get a new copy of the jcs from:
>
> http://cvs.apache.org/viewcvs.cgi/jakarta-turbine-jcs/tempbuild/jcs 
> -1.0-dev.jar
>
> Could you test to move   
> forrest/trunk/lib/core/jcs-1.0-dev-20040516.jar out the way and put  
> the lib that you just download from the previous link?

I did, and it still generated the same error, but this time with more  
information. The output from after the last file processed is attached  
below. I didn't change anything else in my Forrest installation between  
the tests.

>> PS. I'm also having a very strange caching problem today, don't know   
>> whether it relates to this bug or to cocoon/Forrest at all: I made  
>> some  small changes to tabs.xml, but whatever I do, only the old  
>> version is  showing up. This happens in all browsers I have tested,  
>> even when  they're told to *not* cache, and the old version also  
>> survives shutdown  and restart of Tomcat, even though the _file_  
>> within the webapp is the  new version. IT SHOULD NOT BE POSSIBLE! Or  
>> is it? Appearently. DS.
> posibly becasue the cache is writen to disk.
> Remove  the build/tmp/cocoon-work directory

My stupid mistake. Forget it:/

Sjur

18.jul.2004 21:01:25 org.apache.jcs.engine.CacheEventQueue destroy
INFO: Cache event queue destroyed: CacheEventQueue  
[listenerId=-748435884, cacheName=main]
18.jul.2004 21:01:25  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache optimizeFile
INFO: Optomizing file keyHash.size()=258
18.jul.2004 21:01:25  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache doUpdate
SEVERE: Failure updating element, cacheName: main, key:  
PK_G-file-file:/Volumes/Data/Users/sjur/Documents/samsandok/src/ 
documentation/content/xdocs/site.xml_T-xslt-file:/Volumes/Data/Users/ 
sjur/svn-forrest/forrest/src/core/bin/../context/resources/stylesheets/ 
absolutize-linkmap.xsl_T-xslt-file:/Volumes/Data/Users/sjur/svn- 
forrest/forrest/src/core/bin/../context/resources/stylesheets/ 
site2site-normalizetabs.xsl_T-xslt-file:/Volumes/Data/Users/sjur/svn- 
forrest/forrest/src/core/bin/../context/resources/stylesheets/ 
normalizehrefs.xsl_T-xslt-file:/Volumes/Data/Users/sjur/svn-forrest/ 
forrest/src/core/bin/../context/resources/stylesheets/site2site- 
selectnode.xsl;path=specs/conv/konv-skript.html_T-xslt-file:/Volumes/ 
Data/Users/sjur/svn-forrest/forrest/src/core/bin/../context/resources/ 
stylesheets/relativize-linkmap.xsl;path=specs/conv/konv-skript.html
java.lang.InterruptedException
         at java.lang.Object.wait(Native Method)
         at  
org.apache.jcs.utils.locking.ReadWriteLock.writeLock(ReadWriteLock.java: 
127)
         at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doUpdate(IndexedD 
iskCache.java:262)
         at  
org.apache.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePu 
t(AbstractDiskCache.java:417)
         at  
org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav 
a:538)
         at  
org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ 
ueue.java:454)
         at  
org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav 
a:426)
18.jul.2004 21:01:25 org.apache.jcs.engine.CacheEventQueue$QProcessor  
run
INFO: QProcessor exiting for CacheEventQueue [listenerId=-748435884,  
cacheName=main]
18.jul.2004 21:01:30  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache doDispose
WARNING: Closing files, base filename: main
18.jul.2004 21:01:30 org.apache.jcs.engine.control.CompositeCache  
dispose
WARNING: Called close for main
18.jul.2004 21:01:30  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache optimizeFile
INFO: Optomizing file keyHash.size()=0
18.jul.2004 21:01:30  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache doDispose
WARNING: Closing files, base filename: groupIdCache
18.jul.2004 21:01:30 org.apache.jcs.engine.control.CompositeCache  
dispose
WARNING: Called close for groupIdCache
Total time: 7 minutes 7 seconds,  Site size: 1?382?791 Site pages: 115



BUILD FAILED
/Volumes/Data/Users/sjur/svn-forrest/forrest/src/core/targets/site.xml: 
44: Java returned: 1

Total time: 7 minutes 49 seconds


Re: Strange site-build error: Failure updating element

Posted by Juan Jose Pablos <ch...@che-che.com>.
Sjur Nørstebø Moshagen escribió:
> 
> In the hope that it will help, here's a new dump from today. Actions:
> 
> - forrest (no such error)
> - small document changes
> - forrest - error
> 
I did a few test, and It is a bug on the jcs code somewhere. to fix it 
we need to get a new copy of the jcs from:

http://cvs.apache.org/viewcvs.cgi/jakarta-turbine-jcs/tempbuild/jcs-1.0-dev.jar


Could you test to move  forrest/trunk/lib/core/jcs-1.0-dev-20040516.jar 
out the way and put the lib that you just download from the previous link?

> PS. I'm also having a very strange caching problem today, don't know  
> whether it relates to this bug or to cocoon/Forrest at all: I made some  
> small changes to tabs.xml, but whatever I do, only the old version is  
> showing up. This happens in all browsers I have tested, even when  
> they're told to *not* cache, and the old version also survives shutdown  
> and restart of Tomcat, even though the _file_ within the webapp is the  
> new version. IT SHOULD NOT BE POSSIBLE! Or is it? Appearently. DS.
> 
posibly becasue the cache is writen to disk.
Remove  the build/tmp/cocoon-work directory



Re: Strange site-build error: Failure updating element

Posted by Sjur Nørstebø Moshagen <sj...@kolumbus.fi>.
På 13. jul. 2004 kl. 11.50 skrev Juan Jose Pablos:

> I am sure that it is a bug somewhere, but I do not know where to start.

In the hope that it will help, here's a new dump from today. Actions:

- forrest (no such error)
- small document changes
- forrest - error

The error was triggered on a different file this time, and on a file  
that had not been touched since my last posting IIRC.

The attached dump is everything printed by CLI after the last file is  
processed, and before the BUILD FAILED message.

Sjur

PS. I'm also having a very strange caching problem today, don't know  
whether it relates to this bug or to cocoon/Forrest at all: I made some  
small changes to tabs.xml, but whatever I do, only the old version is  
showing up. This happens in all browsers I have tested, even when  
they're told to *not* cache, and the old version also survives shutdown  
and restart of Tomcat, even though the _file_ within the webapp is the  
new version. IT SHOULD NOT BE POSSIBLE! Or is it? Appearently. DS.

13.jul.2004 13:39:07 org.apache.jcs.engine.CacheEventQueue destroy
INFO: Cache event queue destroyed: listenerId=-112, cacheName=main
13.jul.2004 13:39:07  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache doUpdate
SEVERE: Failure updating element, cacheName: main, key:  
PK_G-file-file:/Volumes/Data/Users/sjur/Documents/samsandok/src/ 
documentation/content/xdocs/hist/skrifthistorie.xml
java.lang.InterruptedException
         at java.lang.Object.wait(Native Method)
         at  
org.apache.jcs.utils.locking.ReadWriteLock.writeLock(ReadWriteLock.java: 
127)
         at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doUpdate(IndexedD 
iskCache.java:252)
         at  
org.apache.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePu 
t(AbstractDiskCache.java:417)
         at  
org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav 
a:440)
         at  
org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ 
ueue.java:358)
         at  
org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav 
a:327)
13.jul.2004 13:39:07 org.apache.jcs.engine.CacheEventQueue$QProcessor  
run
INFO: QProcessor exiting for listenerId=-112, cacheName=main
13.jul.2004 13:39:07  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache optimizeFile
INFO: Optomizing file keyHash.size()=212
13.jul.2004 13:39:09  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache doDispose
WARNING: Closing files, base filename: main
13.jul.2004 13:39:09 org.apache.jcs.engine.control.CompositeCache  
dispose
WARNING: Called close for main
13.jul.2004 13:39:09 org.apache.jcs.engine.CacheEventQueue$QProcessor  
run
INFO: QProcessor exiting for listenerId=-112, cacheName=groupIdCache
13.jul.2004 13:39:09 org.apache.jcs.engine.CacheEventQueue destroy
INFO: Cache event queue destroyed: listenerId=-112,  
cacheName=groupIdCache
13.jul.2004 13:39:09  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache optimizeFile
INFO: Optomizing file keyHash.size()=0
13.jul.2004 13:39:09  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache doDispose
WARNING: Closing files, base filename: groupIdCache
13.jul.2004 13:39:09 org.apache.jcs.engine.control.CompositeCache  
dispose
WARNING: Called close for groupIdCache
Total time: 2 minutes 57 seconds,  Site size: 1?124?720 Site pages: 97


Re: Strange site-build error: Failure updating element

Posted by Juan Jose Pablos <ch...@che-che.com>.
Scherler, Thorsten escribió:
> Sjur Nørstebø Moshagen wrote:
>> Has anyone seen this error before?
>>
> 
> I rings a bell! ...but I only get it sometimes. Normally after doing 
> /forrest/ again the error disapear (so I have not paying much attention 
> to it).


This bug was introduced with cocoon 2.1.5. I could not find where to 
look for this error, but It seems related with a cache locks-up.

There is a thread that talks about issues with the cocoon store. But it 
did not get to any conclusion:

http://marc.theaimsgroup.com/?t=108921939000003&r=1&w=2

I am sure that it is a bug somewhere, but I do not know where to start.

cheers,
Cheche


Re: Strange site-build error: Failure updating element

Posted by "Scherler, Thorsten" <th...@apache.org>.
Sjur Nørstebø Moshagen wrote:

> When running forrest on my site, I get the following two errors:
> 
> First:
> X [0]                                     specs/conv/old-db.html??       
> BROKEN: No pipeline matched request: specs/conv/old-db.html??
> 
> At the end:
> 09.jul.2004 22:25:34  
> org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache doUpdate
> SEVERE: Failure updating element, cacheName: main, key:  
> PK_G-file-file:/Volumes/Data/Users/sjur/Documents/samsandok/src/ 
> documentation/content/xdocs/specs/conv/old-db.xml
> java.lang.InterruptedException
>         at java.lang.Object.wait(Native Method)
>         at  
> org.apache.jcs.utils.locking.ReadWriteLock.writeLock(ReadWriteLock.java: 
> 127)
>         at  
> org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doUpdate(IndexedD 
> iskCache.java:252)
>         at  
> org.apache.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePu 
> t(AbstractDiskCache.java:417)
>         at  
> org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav 
> a:440)
>         at  
> org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ 
> ueue.java:358)
>         at  
> org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav 
> a:327)
> 09.jul.2004 22:25:34 org.apache.jcs.engine.CacheEventQueue$QProcessor  run
> 
> The file exists, similar files in the same location are all ok, all  
> references to it are ok (I have double checked), file permissions are  
> ok, file name is ok, encoding is ok, it is parsed without error - in  
> short, I can't find any errors. And still...
> 
> Has anyone seen this error before?
> 

I rings a bell! ...but I only get it sometimes. Normally after doing 
/forrest/ again the error disapear (so I have not paying much attention 
to it).

 > PK_G-file-file:/Volumes/Data/Users/sjur/Documents/samsandok/src/
 > documentation/content/xdocs/specs/conv/old-db.xml

Hmmm, that file exit in that path?

Is that file valid?

Is that file wellformed?

What happends if you delete from the location? Are other files pointing 
to it? Are the links ok?

HTH
thorsten

> Sjur
> 
> 


-- 
<thorsten>
  <name>Thorsten Scherler</name>
  <country>Spain</country>
  <@m...@mail>
  <@cocoon-WIKI>
http://wiki.apache.org/cocoon/Scherler
</...@cocoon-WIKI>
  <acronymfinder>
http://www.acronymfinder.com/af-query.asp?String=exact&Find=Find&Acronym=
  </acronymfinder>
  <motto>
    "My task which I am trying to achieve is,
     by the power of the written word,
     [...] to make you see."
     *Joseph Conrad (1857-1924)*
  </motto>
</thorsten>