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

Mark H. Wood commented on DS-672:
---------------------------------

Discussed in weekly meeting 26-Jan-2011:

(15:08:29) tdonohue: Nullpointer exception when bogus information is entered in 
the Embargo date field during submission : 
https://jira.duraspace.org/browse/DS-672
(15:09:32) mhwood: Should not NPE, that's for sure.
(15:09:38) sandsfish: do we have a standard solution/library for javascript 
validation of fields?
(15:09:41) tdonohue: Any volunteers to verify & perhaps resolve DS-672
(15:09:44) sandsfish: jQuery or the like?
(15:09:58) mhwood: Give it to me.  I hate NPEs.
(15:10:06) tdonohue: jQuery is in some XMLUI themes (Mirage, I believe) -- but 
not in JSPUI
(15:10:22) tdonohue: ok, assign DS-672 to mhwood for testing & analysis.
(15:10:54) tdonohue: (although, if we wanted, this could be a nice opportunity 
to "standardize" on jQuery validation -- worth possibly looking at, mhwood, if 
it helps)
(15:10:55) sandsfish: it would be great to have a standard way to validate & 
give immediate UI feedback.  (just sayin')
(15:11:05) sandsfish: yup
(15:11:08) ***tdonohue and sandsfish said same thing


> Nullpointer exception when bogus information is entered in the Embargo date 
> field during submission
> ---------------------------------------------------------------------------------------------------
>
>                 Key: DS-672
>                 URL: https://jira.duraspace.org/browse/DS-672
>             Project: DSpace
>          Issue Type: Bug
>          Components: XMLUI
>    Affects Versions: 1.6.2
>         Environment: The XMLUI on dspace.demo.org
>            Reporter: Bram Luyten (@mire)
>            Assignee: Mark H. Wood
>
> Under the submitter demo account I submitted an item in the Sample Items 
> collection.
> I was able to enter something like "qsdf" in the embargo date field and 
> proceed until the last step of the submission.
> When finishing the submission, following nullpointer is thrown:
> An error has occurred
> java.lang.NullPointerException:
> Cocoon stacktrace [show]
> Error calling continuation
> context:/resource://aspects/Submission/submission.js - 538:-1         
> processPage
> context:/resource://aspects/Submission/submission.js - 474:-1         
> doNextPage
> context:/resource://aspects/Submission/sitemap.xmap - 129:44  <map:call>
> context:/resource://aspects/Submission/sitemap.xmap - 128:61  <map:match>
> context:/resource://aspects/Submission/sitemap.xmap - 96:48   <map:select 
> type="AuthenticatedSelector">
> context:/jndi:/localhost/xmlui/aspects/aspects.xmap - 119:72  <map:mount>
> context:/jndi:/localhost/xmlui/aspects/aspects.xmap - 109:34  <map:select 
> type="parameter">
> context:/jndi:/localhost/xmlui/aspects/aspects.xmap - 108:36  <map:match 
> type="AspectMatcher">
> context:/jndi:/localhost/xmlui/sitemap.xmap - 430:108         <map:mount>
> context:/jndi:/localhost/xmlui/sitemap.xmap - 429:53  <map:match>
> context:/resource://aspects/Statistics/sitemap.xmap - 70:31   <map:serialize 
> type="xml">
> context:/resource://aspects/Statistics/sitemap.xmap - 38:55   <map:transform 
> type="Navigation">
> context:/resource://aspects/Statistics/sitemap.xmap - 33:19   <map:generate>
> context:/jndi:/localhost/xmlui/aspects/aspects.xmap - 115:34  <map:serialize 
> type="xml">
> context:/jndi:/localhost/xmlui/aspects/aspects.xmap - 114:43  <map:transform 
> type="PageNotFound">
> context:/jndi:/localhost/xmlui/aspects/aspects.xmap - 113:22  <map:generate>
> context:/jndi:/localhost/xmlui/themes/Reference/sitemap.xmap - 184:62         
> <map:serialize type="xhtml">
> context:/jndi:/localhost/xmlui/themes/Reference/sitemap.xmap - 181:112        
> <map:transform type="NamespaceFilter">
> context:/jndi:/localhost/xmlui/themes/Reference/sitemap.xmap - 180:106        
> <map:transform type="NamespaceFilter">
> context:/jndi:/localhost/xmlui/themes/Reference/sitemap.xmap - 174:68         
> <map:transform type="i18n">
> context:/jndi:/localhost/xmlui/themes/Reference/sitemap.xmap - 170:72         
> <map:transform>
> context:/jndi:/localhost/xmlui/themes/Reference/sitemap.xmap - 155:87         
> <map:transform type="IncludePageMeta">
> context:/jndi:/localhost/xmlui/themes/Reference/sitemap.xmap - 131:83         
> <map:generate type="file">
> context:/jndi:/localhost/xmlui/themes/Reference/sitemap.xmap - 128:49         
> <map:match>
> context:/jndi:/localhost/xmlui/themes/themes.xmap - 63:45     <map:mount>
> context:/jndi:/localhost/xmlui/themes/themes.xmap - 62:35     <map:match 
> type="ThemeMatcher">
> context:/jndi:/localhost/xmlui/sitemap.xmap - 550:94  <map:mount>
> Java stacktrace [hide]
> java.lang.NullPointerException
>       at 
> org.dspace.embargo.EmbargoManager.getEmbargoDate(EmbargoManager.java:166)
>       at org.dspace.content.InstallItem.installItem(InstallItem.java:94)
>       at org.dspace.content.InstallItem.installItem(InstallItem.java:71)
>       at org.dspace.workflow.WorkflowManager.archive(WorkflowManager.java:660)
>       at org.dspace.workflow.WorkflowManager.doState(WorkflowManager.java:614)
>       at org.dspace.workflow.WorkflowManager.doState(WorkflowManager.java:590)
>       at org.dspace.workflow.WorkflowManager.doState(WorkflowManager.java:554)
>       at org.dspace.workflow.WorkflowManager.doState(WorkflowManager.java:514)
>       at org.dspace.workflow.WorkflowManager.start(WorkflowManager.java:199)
>       at 
> org.dspace.submit.step.CompleteStep.doProcessing(CompleteStep.java:116)
> So either the submitter should be forced to either enter a correct date in 
> the submission step, or the bogus embargo date should be thrown out upon 
> archiving.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to