OK - thanks for spotting - I can fix it.

RIchard
On Oct 31, 2010, at 6:45 PM, Graham Triggs wrote:

I've got the same issues locally... some sort of out of bounds issue in reading the configuration file by the looks of it.

I removed the curation code from the workflowmanager in my working copy so that I could get on with some other stuff, but it needs fixing.

On 31 October 2010 22:12, Kim Shepherd <kim.shepherd@gmail.com> wrote:
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