[
https://jira.duraspace.org/browse/DS-1081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25902#comment-25902
]
Nestor Oviedo commented on DS-1081:
-----------------------------------
We found that the XmlWorkflow doesn't work with Java 7: when the submission
process is finished and the item should go to the workflow, the following
exception is shown to the user:
org.dspace.xmlworkflow.WorkflowConfigurationException.
We also tested OpenJDK (both Java 6 and Java 7), and the result was the same.
Also, when a user has some items claimed, the submission page shows a table
with error messages instead of items.
It's worth to mention that the test was made on a fresh dspace installation,
with default configuration.
Digging a little on this we saw the original expcetion was the following:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'claimaction' defined in file
[.../config/spring/api/workflow-actions.xml]: Error setting property values;
nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'processingAction' of bean class
[org.dspace.xmlworkflow.state.actions.UserSelectionActionConfig]: Bean property
'processingAction' is not writable or has an invalid setter method. Does the
parameter type of the setter match the return type of the getter?
The relevant stacktrace is:
SpringServiceManager.getServiceByName(String, Class<T>) line: 102
DSpaceServiceManager.getServiceByName(String, Class<T>) line: 265
WorkflowFactory.createUserAssignmentActionConfig(String) line: 175
WorkflowFactory.createFirstStep(Workflow, Node) line: 109
WorkflowFactory.getWorkflow(Collection) line: 69
XmlWorkflowManager.start(Context, WorkspaceItem) line: 56
CompleteStep.doProcessing(Context, HttpServletRequest, HttpServletResponse,
SubmissionInfo) line: 90
It seems the problem is related with some validation Spring is issuing on the
involved classes. If you take a look at the classes you will see that:
UserSelectionActionConfig extends from WorkflowActionConfig.
WorkflowActionConfig has the processingAction's accessors with the type Action,
while UserSelectionActionConfig redefines the getter to make a type cast from
Action to UserSelectionAction. Thus, the processingAction's getter defined in
UserSelectionActionConfig is of type UserSelectionAction.
Now, the strange thing is that UserSelectionAction extends from Action, so they
are compatible types.
Seems like there is a bug on either Spring 3.0.5 or Java 7 that doesn't allow
to do this kind of extensions. (??)
Finally, we try two things (separately):
1) Add a processingAction's setter to UserSelectionActionConfig of type
UserSelectionAction
2) Change Spring dependency's version to 3.1.0.RELEASE
Both workarrounds worked very well, in Oracle Java 7 and also in OpenJDK 6 and
7.
Has anyone faced some similar problem? any ideas on this ?
> Ensure that DSpace can run on java 7
> ------------------------------------
>
> Key: DS-1081
> URL: https://jira.duraspace.org/browse/DS-1081
> Project: DSpace
> Issue Type: New Feature
> Reporter: Kevin Van de Velde
> Priority: Major
> Fix For: 3.0
>
>
> The reason why DSpace would not operate well on java 7 was due to solr/lucene
> issues. These issues should be resolved with the first update to java 7.
> (http://lucene.apache.org/solr/#26+October+2011+-+Java+7u1+fixes+index+corruption+and+crash+bugs+in+Apache+Lucene+Core+and+Apache+Solr)
> So we should start testing if there are any other issues with DSpace & java 7.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
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