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

Tim Donohue commented on DS-1174:
---------------------------------

Here's the line in itemUpdate that seems to "hide" the error stack trace, by 
just returning "e.toString()" instead of something like e.printStackTrace()

https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/itemupdate/ItemUpdate.java#L456
                
> 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