general_jspui_error

64 views
Skip to first unread message

Freddy Guerrero

unread,
Sep 24, 2018, 1:09:49 AM9/24/18
to DSpace Technical Support
Please can you help me with this query, I use dspace version 6.3 (JSPUI), this error occurs when I search for example the word "Inteligencia", in xmlui it works well.


2018-09-24 00:00:04,194 INFO  org.dspace.app.webui.discovery.DiscoverySearchRequestProcessor @ anonymous:session_id=FB3898400884E853E071EB0B361094E4:ip_addr=190.131.162.9:search:scope=null,query="Inteligencia ",results=(0,0,10)
2018-09-24 00:00:04,226 WARN  org.dspace.app.webui.servlet.DSpaceServlet @ anonymous:session_id=FB3898400884E853E071EB0B361094E4:ip_addr=190.131.162.9:general_jspui_error:javax.servlet.ServletException\colon; org.apache.jasper.JasperException\colon; java.lang.NullPointerException
javax.servlet.ServletException: org.apache.jasper.JasperException: java.lang.NullPointerException
at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:71)
at org.dspace.app.webui.discovery.DiscoverySearchRequestProcessor.doSimpleSearch(DiscoverySearchRequestProcessor.java:458)
at org.dspace.app.webui.servlet.SimpleSearchServlet.doDSGet(SimpleSearchServlet.java:63)
at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:126)
at org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1136)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.jasper.JasperException: java.lang.NullPointerException
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:561)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:743)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:64)
... 29 more
Caused by: java.lang.NullPointerException

Tim Donohue

unread,
Sep 24, 2018, 11:26:42 AM9/24/18
to Freddy Guerrero, DSpace Technical Support
Hi Freddy,

Your error stack trace in your previous email looks to be cut off.  The most important part of the stack trace would likely be the section immediately *after* "Caused by: java.lang.NullPointerException", but that line is the last line of your email.

Please send along the second part of your stack trace to this mailing list, and hopefully someone here will recognize the error and be able to help you.

Tim


--
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...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

Freddy Guerrero

unread,
Sep 24, 2018, 11:33:20 AM9/24/18
to tdon...@duraspace.org, dspac...@googlegroups.com
Thanks Tim for answering my email, copy the lines of my LOG file this is what I get:

2018-09-24 10:24:04,287 WARN  org.dspace.app.webui.servlet.DSpaceServlet @ anonymous:session_id=53741F36891CF45C93CC7CCB64877589:ip_addr=54.38.255.116:general_jspui_error:javax.servlet.ServletException\colon; org.apache.jasper.JasperException\colon; java.lang.NullPointerException
javax.servlet.ServletException: org.apache.jasper.JasperException: java.lang.NullPointerException
at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:71)
at org.dspace.app.webui.servlet.HandleServlet.collectionHome(HandleServlet.java:773)
at org.dspace.app.webui.servlet.HandleServlet.doDSGet(HandleServlet.java:305)
at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:126)
at org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.dspace.rdf.negotiation.NegotiationFilter.doFilter(NegotiationFilter.java:52)
... 32 more
Caused by: java.lang.NullPointerException
2018-09-24 10:24:08,634 INFO  org.dspace.app.webui.servlet.HandleServlet @ anonymous:session_id=44BB79B9681EEC83C2BBA17ED03596B1:ip_addr=54.38.255.116:view_item:handle=10469/13954
2018-09-24 10:24:08,650 INFO  org.dspace.usage.LoggerUsageEventListener @ anonymous:session_id=44BB79B9681EEC83C2BBA17ED03596B1:ip_addr=54.38.255.116:view_item:handle=10469/13954


Tim Donohue

unread,
Sep 24, 2018, 11:52:17 AM9/24/18
to Freddy Guerrero, dspac...@googlegroups.com
Hi Freddy,

According to the line numbers in that error message, DSpace cannot seem to find your "collection-home.jsp".  Here's the line where the error seems to be occurring:
https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/HandleServlet.java#L773

If you have renamed or moved this JSP, that could be the cause.  Otherwise, you might want to look at whether there's something else you may have changed in DSpace that could be causing this error to occur.

I'm not entirely sure why this error would be happening, as that JSP is provided by DSpace (and is required).  Unfortunately, I'm not as well versed in the JSPUI these days (as I know the XMLUI a bit better).  But, I'm hoping maybe this will give you a clue as to what the cause could be -- or maybe someone else on this list will have seen this problem before.

Another thing you might want to look around for is any other errors that appear in the logs (if any).  It's possible something else in your JSPUI is not working properly and it ends up causing this odd error.

- Tim

Freddy Guerrero

unread,
Sep 26, 2018, 1:49:50 AM9/26/18
to DSpace Technical Support
Hi Tim

It happens that a collection was not opened, reviewing the items I found that I had a file on that item that was corrupt, delete the file and the collection was already displayed. Then I have two questions:

1.- How can I detect corrupt files in other items?
2.- I have configured in my local.cfg file like this:
assetstore.dir = ${dspace.dir}/assetstore
assetstore.dir.1 = ${dspace.dir}/assetstore2

What change should I make in the file:

 DSPACE/config/spring/api/bitstore.xml 

<bean name="localStore" class="org.dspace.storage.bitstore.DSBitStoreService" scope="singleton">
        <property name="baseDir" value="${assetstore.dir}"/>
    </bean>

Please help

Freddy

Freddy Guerrero

unread,
Sep 27, 2018, 12:22:36 AM9/27/18
to DSpace Technical Support
I found the error, this record has a damaged file (Image attaches). The image was not generated (Thumbnail), this causes that the collection to which it belongs doesn't open (deleting this file fixes the problem). I have several cases of this type. Does someone has an idea of how to locate this type of records with corrupted files?

error3.jpg


Regards,

Freddy

José Geraldo

unread,
Aug 21, 2019, 9:34:55 AM8/21/19
to DSpace Technical Support
Hi Freddy,

Did you get a way to identify items that have corrupted files?

José Geraldo

unread,
Aug 23, 2019, 8:27:00 AM8/23/19
to DSpace Technical Support
I turned on DEBUG mode and was able to find an error collection in the log.

In the database, I deleted the collection in error and the application worked perfectly.

Turning on Debugging - https://wiki.duraspace.org/display/DSPACE/Troubleshoot+an+error


--
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...@googlegroups.com.


--
At.te,

José Geraldo

Freddy Guerrero

unread,
Aug 23, 2019, 6:10:17 PM8/23/19
to José Geraldo, DSpace Technical Support
Hi José

This error occurred when I updated to version 6.3, at that time I could not solve the problem and I had to return to version 6.2, I think it is still very useful what you tell me and I will perform the tests.

regards

You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/vuQ4caDLVhg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/CANP4ikTFc4GtsZiTQQOGuRZ-xBhnMDZSsdY0ETwXHXqV7Hq2fw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages