Hi all
We have a 1.8.2 installation and we've been experiencing some strange
"hidden" exceptions. Here's one case:
When a user clicks the "Cancel" button in the "Resume Submission" page
for any item, the form is submitted and (because of the continuation)
the flowscript "submission.js" is resumed from the line 210 ( where
the sendPageAndWait was invoked). Next, the redirectTo() in the line
221 is executed and the flowscript finishes.
For some reason we are getting the following exception in the cocoon
log (which is also emailed), while the browser receives the redirected
page without any problem.
org.apache.cocoon.ProcessingException: Could not read resource
cocoon://DRI/2/handle/10915/203/submit/420e2b6a423911244d8a15601554555148776441.continue
at <map:serialize type="xml"> -
resource://aspects/XMLWorkflow/sitemap.xmap:151:48
at <map:transform type="Navigation"> -
resource://aspects/XMLWorkflow/sitemap.xmap:80:55
at <map:generate> - resource://aspects/XMLWorkflow/sitemap.xmap:78:36
at <map:serialize type="xml"> -
jndi:/localhost/dspace/aspects/aspects.xmap:85:34
at <map:generate> - jndi:/localhost/dspace/aspects/aspects.xmap:83:22
...
Caused by: java.lang.NullPointerException
at
org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292)
at
org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:148)
at
org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:62)
at
org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:153)
at
org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:183)
at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:99)
at org.dspace.app.xmlui.cocoon.AspectGenerator.setup(AspectGenerator.java:81)
...
It seems to me that here there is some problem related with the
pipeline definitions or the pipeline processing after a redirection,
but I couldn't find the exact cause.
This is just one case. This problem occurs in every redirectTo() in
the submission and xmlworkflow (I haven't tested the entire app yet).
I discovered the following workaround for this:
add a cocoon.sendPage() before the redirectTo() , such as:
cocoon.sendPage("submit/finalize"); )
and add the corresponding match to the pipeline, with only a <map:serialize>:
<map:match pattern="submit/finalize">
<map:serialize>
</map:match>
This seems to work in all cases so far, but I think this isn't the solution.
I've seen the ticket https://jira.duraspace.org/browse/DS-605, but it
doesn't seems to be related to this.
So, does anyone have any clue on this?
Thanks in advance
Nestor
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel