[ 
https://jira.duraspace.org/browse/DS-1174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24916#comment-24916
 ] 

Hardy Pottinger commented on DS-1174:
-------------------------------------

Here are the commands I've been using:

sudo su - dspace
cd /dspace && bin/dspace itemupdate -e [email protected] -s 
/path/to/update/files -A -v --test

Note that passing --test calls code which should print a stack trace, even 
using standard DSpace (no patch required). No stack trace is passed. I am 
looking at the code to see if there may be another non-obvious place where the 
stack trace is "eaten", but I may be in over my head here, so I thought I'd 
share this info.
                
> exception handling for itemUpdate hides the stack trace, which obstructs 
> troubleshooting efforts
> ------------------------------------------------------------------------------------------------
>
>                 Key: DS-1174
>                 URL: https://jira.duraspace.org/browse/DS-1174
>             Project: DSpace
>          Issue Type: Bug
>          Components: DSpace API
>    Affects Versions: 1.7.2, 1.8.0, 1.8.1, 1.8.2
>            Reporter: Hardy Pottinger
>            Assignee: Hardy Pottinger
>             Fix For: 3.0
>
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> In troubleshooting an NPE that keeps cropping up whenever I attempt to run an 
> itemupdate, I was a bit frustrated trying to locate the full stack trace for 
> the error. It wasn't visible in dspace.log or catalina.out. Tim Donohue found 
> that the problem was with the exception handling in 
> DSpace/dspace-api/src/main/java/org/dspace/app/itemupdate/ItemUpdate.java. I 
> will attach a patch file by tomorrow, as soon as I confirm it is working.

--
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

Reply via email to