Figured it out -- some assumptions in WorkflowCurator.loadTaskConfig that
probably need checking (eg. not testing for number of attributes in the
config reader before trying to read them)
I can work around it by just renaming/removing
[dspace]/config/workflow-curation.xml since that'll cause WorkflowCurator to
skip the failing code in loadTaskConfig
Will see if I have time to patch it quickly tonight, otherwise will raise
JIRA ticket for others to pick up
-k.
---------- Forwarded message ----------
From: Kim Shepherd <[email protected]>
Date: 1 November 2010 11:12
Subject: trunk r5699 submission in JSPUI and XMLUI is broken - any clues?
To: DSpace Developer List <[email protected]>
Cc: Graham Triggs <[email protected]>, [email protected]
Trunk revision 5699:
Just wondered if anyone else has noticed submissions throwing exceptions at
the final step in JSPUI and XMLUI.
It *seems* to be related to curation (?) but I can't quite put my finger on
what is going wrong, yet.
If a fresh install + basic setup + submission of latest trunk works fine for
you, please let me/the list know.
JSPUI:
----
First attempt throws an exception like this:
2010-11-01 11:01:45,044 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jspui].[submit]
@ Servlet.service() for servlet submit threw exc
eption
java.lang.IllegalArgumentException: Invalid index 1; current element has
only 1 attributes
at
com.ctc.wstx.sr.AttributeCollector.throwIndex(AttributeCollector.java:310)
at
com.ctc.wstx.sr.AttributeCollector.getValue(AttributeCollector.java:227)
at
com.ctc.wstx.sr.BasicStreamReader.getAttributeValue(BasicStreamReader.java:636)
at
org.dspace.curate.WorkflowCurator.loadTaskConfig(WorkflowCurator.java:288)
at
org.dspace.curate.WorkflowCurator.<clinit>(WorkflowCurator.java:62)
at
org.dspace.workflow.WorkflowManager.advance(WorkflowManager.java:394)
.....
Subsequent steps throw exceptions like this:
2010-11-01 11:01:58,801 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jspui].[submit]
@ Servlet.service() for servlet submit threw exception
java.lang.NoClassDefFoundError: Could not initialize class
org.dspace.curate.WorkflowCurator
at
org.dspace.workflow.WorkflowManager.advance(WorkflowManager.java:394)
at
org.dspace.workflow.WorkflowManager.advance(WorkflowManager.java:363)
at
org.dspace.workflow.WorkflowManager.start(WorkflowManager.java:206)
at
org.dspace.submit.step.CompleteStep.doProcessing(CompleteStep.java:116)
......
XMLUI:
Always seems to throw this an UnsupportedOperationException which is caused
at:
......
Caused by: java.lang.UnsupportedOperationException
at java.util.AbstractList.remove(AbstractList.java:144)
at
org.dspace.app.xmlui.wing.element.SimpleHTMLFragment.translate(SimpleHTMLFragment.java:522)
at
org.dspace.app.xmlui.wing.element.SimpleHTMLFragment.toSAX(SimpleHTMLFragment.java:141)
at
org.dspace.app.xmlui.wing.element.Division.toSAX(Division.java:957)
at
org.dspace.app.xmlui.wing.element.Division.toSAX(Division.java:957)
at
org.dspace.app.xmlui.wing.element.Division.toSAX(Division.java:957)
at org.dspace.app.xmlui.wing.element.Body.toSAX(Body.java:250)
at
org.dspace.app.xmlui.wing.AbstractWingTransformer.endElement(AbstractWingTransformer.java:310)
... 149 more
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel