Re: [dspace-tech] Null pointer exception when submitting an item via a file

2019-06-10 Thread Marc

Hi Riccardo,

I have logged a issue in the DSpace CRIS GitHub Repo for this issue

https://github.com/4Science/DSpace/issues/84

This is actually quite an important issue for us, as we want to allow 
researchers to upload items using files. I am afraid my knowledge of 
DSpace CRIS is lacking otherwise I would try and fix it myself. I am not 
sure what is trying to be accomplished using the BTE Transformation.


Kind regards
Marc

On 6 Jun 2019, at 15:05, Marc wrote:


Dear Riccardo,

I think I may have determined one reason why the file upload is not 
working.


In SubmissionLookupJSONRequest.java when doing the BTE transformation, 
it

creates a new TransformationSpec, but the creation fails with a null
pointer error. Line 293.

I will create a new issue against the GitHub repository for Dspace 
CRIS to

avoid spamming this mailing list

kind regards
Marc

--
All messages to this mailing list should adhere to the DuraSpace Code 
of Conduct: https://duraspace.org/about/policies/code-of-conduct/

---
You received this message because you are subscribed to the Google 
Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/96aab5cc-7414-4edd-bf7e-bdd34b7fd48a%40googlegroups.com.



--
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/890CFB42-784A-4205-981D-614853445923%40gmail.com.


Re: [dspace-tech] Null pointer exception when submitting an item via a file

2019-06-06 Thread Marc
Dear Riccardo,

I think I may have determined one reason why the file upload is not working.

In SubmissionLookupJSONRequest.java when doing the BTE transformation, it 
creates a new TransformationSpec, but the creation fails with a null 
pointer error. Line 293.

I will create a new issue against the GitHub repository for Dspace CRIS to 
avoid spamming this mailing list

kind regards
Marc

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/96aab5cc-7414-4edd-bf7e-bdd34b7fd48a%40googlegroups.com.


Re: [dspace-tech] Null pointer exception when submitting an item via a file

2019-06-05 Thread Marc
Dear Riccardo,

Thank you for the quick response. The New Submission, import a file is no 
longer stopping and no error is logged in dspace log. 

But no data is being read from the file, both in preview mode and direct 
import into a collection.

I will try and debug into the code a little more and get back

On Wednesday, June 5, 2019 at 3:15:47 PM UTC+1, Fazio Riccardo wrote:
>
> Dear Marc, 
>
> I put a fix ( 
>
> https://github.com/4Science/DSpace/commit/49bf2bcb60d13163a7aeac61c24c2280fe7b382e
>  
> ) into github dspace-5_x_x-cris branch; 
> try to update 
> thanks for pointing this out 
>
> regards 
> Riccardo 
>
> On Tue, 2019-06-04 at 08:58 -0700, Marc wrote: 
> > Dear List, 
> > 
> > As requested, I am reposting this issue 
> > 
> > When using the submission form and selecting to submit an item using 
> > a bibliographic file, 
> > when clicking the process button the loading dialog just sits there 
> > and nothing seems to happen. 
> > Checking the dspace log the error below is logged. 
> > 
> > Debian Stretch 9 
> > Java OpenJDK version 1.8 
> > Tomcat 8.5 
> > DSpace CRIS 5.10 
> > ORCID is configured to use the sandbox. 
> > NginX used as a reverse proxy and for SSL 
> > 
> > Putting a breakpoint at the code in 
> > `MultipleSubmissionLookupDataLoader.java` line 76, reveals that the 
> > `identifiers` map variable on line 91 is null and is causing the 
> > error. I am not that familiar with the DSpace code, but I am assuming 
> > that this map variable is populated from the `bte.xml` configuration 
> > file, but I could be wrong. We have not modified the `bte.xml` file 
> > yet. 
> > 
> > Any advice would be gratefully received 
> > 
> > Regards 
> > Marc 
> > 
> > 2019-06-04 15:45:06,527 
> > WARN  org.dspace.app.webui.servlet.InternalErrorServlet @ 
> > :session_id=08BA154A01067A1C0AA1908B81D6E56B:internal_error:-- URL 
> > Was: http://wytham1.ouce.ox.ac.uk/json/submissionLookup 
> > -- Method: POST 
> > -- Parameters were: 
> > 
> > java.lang.RuntimeException 
> > at 
> > org.dspace.app.webui.servlet.JSONServlet.doDSGet(JSONServlet.java:76) 
> > at 
> > org.dspace.app.webui.servlet.JSONServlet.doDSPost(JSONServlet.java:33 
> > ) 
> > at 
> > org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServl 
> > et.java:115) 
> > at 
> > org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java: 
> > 73) 
> > at 
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:661) 
> > at 
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:742) 
> > at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown 
> > Source) 
> > at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces 
> > sorImpl.java:43) 
> > at java.lang.reflect.Method.invoke(Method.java:498) 
> > at 
> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282 
> > ) 
> > at 
> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279 
> > ) 
> > at java.security.AccessController.doPrivileged(Native Method) 
> > at 
> > javax.security.auth.Subject.doAsPrivileged(Subject.java:549) 
> > at 
> > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:3 
> > 14) 
> > at 
> > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil. 
> > java:170) 
> > at 
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl 
> > icationFilterChain.java:225) 
> > at 
> > org.apache.catalina.core.ApplicationFilterChain.access$000(Applicatio 
> > nFilterChain.java:47) 
> > at 
> > org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilt 
> > erChain.java:149) 
> > at 
> > org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilt 
> > erChain.java:145) 
> > at java.security.AccessController.doPrivileged(Native Method) 
> > at 
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF 
> > ilterChain.java:144) 
> > at 
> > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52 
> > ) 
> > at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown 
> > Source) 
> > at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces 
> > sorImpl.java:43) 
> > at java.lang.reflect.Method.invoke(Method.java:498) 
> > at 
> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282 
> > ) 
> > at 
> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279 
> > ) 
> > at java.security.AccessController.doPrivileged(Native Method) 
> > at 
> > javax.security.auth.Subject.doAsPrivileged(Subject.java:549) 
> > at 
> > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:3 
> > 14) 
> > at 
> > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil. 
> > java:253) 
> > at 
> > 

Re: [dspace-tech] Null pointer exception when submitting an item via a file

2019-06-05 Thread Fazio Riccardo
Dear Marc,

I put a fix ( 
https://github.com/4Science/DSpace/commit/49bf2bcb60d13163a7aeac61c24c2280fe7b382e
) into github dspace-5_x_x-cris branch;
try to update 
thanks for pointing this out

regards
Riccardo

On Tue, 2019-06-04 at 08:58 -0700, Marc wrote:
> Dear List,
> 
> As requested, I am reposting this issue
> 
> When using the submission form and selecting to submit an item using
> a bibliographic file, 
> when clicking the process button the loading dialog just sits there
> and nothing seems to happen. 
> Checking the dspace log the error below is logged.
> 
> Debian Stretch 9
> Java OpenJDK version 1.8
> Tomcat 8.5
> DSpace CRIS 5.10
> ORCID is configured to use the sandbox.
> NginX used as a reverse proxy and for SSL
> 
> Putting a breakpoint at the code in
> `MultipleSubmissionLookupDataLoader.java` line 76, reveals that the
> `identifiers` map variable on line 91 is null and is causing the
> error. I am not that familiar with the DSpace code, but I am assuming
> that this map variable is populated from the `bte.xml` configuration
> file, but I could be wrong. We have not modified the `bte.xml` file
> yet.
> 
> Any advice would be gratefully received
> 
> Regards
> Marc
> 
> 2019-06-04 15:45:06,527
> WARN  org.dspace.app.webui.servlet.InternalErrorServlet @
> :session_id=08BA154A01067A1C0AA1908B81D6E56B:internal_error:-- URL
> Was: http://wytham1.ouce.ox.ac.uk/json/submissionLookup
> -- Method: POST
> -- Parameters were:
> 
> java.lang.RuntimeException
> at
> org.dspace.app.webui.servlet.JSONServlet.doDSGet(JSONServlet.java:76)
> at
> org.dspace.app.webui.servlet.JSONServlet.doDSPost(JSONServlet.java:33
> )
> at
> org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServl
> et.java:115)
> at
> org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:
> 73)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
> at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown
> Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282
> )
> at
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279
> )
> at java.security.AccessController.doPrivileged(Native Method)
> at
> javax.security.auth.Subject.doAsPrivileged(Subject.java:549)
> at
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:3
> 14)
> at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.
> java:170)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:225)
> at
> org.apache.catalina.core.ApplicationFilterChain.access$000(Applicatio
> nFilterChain.java:47)
> at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilt
> erChain.java:149)
> at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilt
> erChain.java:145)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:144)
> at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52
> )
> at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown
> Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282
> )
> at
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279
> )
> at java.security.AccessController.doPrivileged(Native Method)
> at
> javax.security.auth.Subject.doAsPrivileged(Subject.java:549)
> at
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:3
> 14)
> at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.
> java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:191)
> at
> org.apache.catalina.core.ApplicationFilterChain.access$000(Applicatio
> nFilterChain.java:47)
> at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilt
> erChain.java:149)
> at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilt
> erChain.java:145)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:144)
> at
> org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWeb
> appServletFilter.java:78)
> at