java.lang.NullPointerException

Sakai JIRA | Andrea Schweer | 2 years ago
  1. 0

    Attempts to upload a file with a semicolon in the name fail during the DSpace submission upload step. The message shown to the user is "Problem in creating the Request". The DSpace log file shows 2015-03-16 17:09:19,861 ERROR org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter @ Problem in multipart filter. Unable to create request. java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.readHeaders(DSpaceMultipartParser.java:391) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.parsePart(DSpaceMultipartParser.java:190) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.parseMultiPart(DSpaceMultipartParser.java:170) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.parseParts(DSpaceMultipartParser.java:102) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.getParts(DSpaceMultipartParser.java:143) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceRequestFactory.getServletRequest(DSpaceRequestFactory.java:83) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter.doFilter(DSpaceMultipartFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:745)

    Sakai JIRA | 2 years ago | Andrea Schweer
    java.lang.NullPointerException
  2. 0

    Attempts to upload a file with a semicolon in the name fail during the DSpace submission upload step. The message shown to the user is "Problem in creating the Request". The DSpace log file shows 2015-03-16 17:09:19,861 ERROR org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter @ Problem in multipart filter. Unable to create request. java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.readHeaders(DSpaceMultipartParser.java:391) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.parsePart(DSpaceMultipartParser.java:190) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.parseMultiPart(DSpaceMultipartParser.java:170) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.parseParts(DSpaceMultipartParser.java:102) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.getParts(DSpaceMultipartParser.java:143) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceRequestFactory.getServletRequest(DSpaceRequestFactory.java:83) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter.doFilter(DSpaceMultipartFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:745)

    Sakai JIRA | 2 years ago | Andrea Schweer
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Setting -nomanifest results in multiple NPEs

    GitHub | 3 years ago | njbartlett
    java.lang.NullPointerException
  5. 0

    NPE in LDAP search

    Stack Overflow | 3 years ago | Peter Penzov
    java.lang.reflect.InvocationTargetException
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at java.util.Hashtable.put()
  2. Java RT
    Hashtable.put
    1. java.util.Hashtable.put(Hashtable.java:514)
    1 frame
  3. org.dspace.app
    DSpaceMultipartFilter.doFilter
    1. org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.readHeaders(DSpaceMultipartParser.java:391)
    2. org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.parsePart(DSpaceMultipartParser.java:190)
    3. org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.parseMultiPart(DSpaceMultipartParser.java:170)
    4. org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.parseParts(DSpaceMultipartParser.java:102)
    5. org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartParser.getParts(DSpaceMultipartParser.java:143)
    6. org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceRequestFactory.getServletRequest(DSpaceRequestFactory.java:83)
    7. org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter.doFilter(DSpaceMultipartFilter.java:107)
    7 frames
  4. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  5. DSpace Services Framework :: API and Implementation
    DSpaceWebappServletFilter.doFilter
    1. org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
    1 frame
  6. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    8 frames
  7. Embedded GlassFish Web
    ChannelSocket$SocketConnection.runIt
    1. org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    2. org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
    3. org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
    4. org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
    5. org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
    5 frames
  8. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
    1 frame
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame