java.lang.NullPointerException

Sakai JIRA | Charles Kiplagat | 8 years ago
  1. 0

    If somehow you ended up with a Collection with no title in DSpace 1.5, SWORD will fail to generate a Service Document for anyone with submit access to that untitled Collection. Obviously, most DSpace Collections *should* have a title. However, it is possible to generate a Collection without a title. Either way, the DSpace SWORD Server should probably be smart enough to still generate a valid Service Document if it encounters a Collection without a title. The following error is generated when a collection without a title is encountered: SEVERE: Servlet.service() for servlet servicedocument threw exception java.lang.NullPointerException at org.purl.sword.base.Collection.marshall(Collection.java:367) at org.purl.sword.base.Workspace.marshall(Workspace.java:176) at org.purl.sword.base.Service.marshall(Service.java:299) at org.purl.sword.base.ServiceDocument.marshall(ServiceDocument.java:260) at org.purl.sword.server.ServiceDocumentServlet.doGet(ServiceDocumentServlet.j ava:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio nFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC hain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j ava:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j ava:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12 8) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10 4) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697 ) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.jav a:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:686) at java.lang.Thread.run(Thread.java:619)

    Sakai JIRA | 8 years ago | Charles Kiplagat
    java.lang.NullPointerException
  2. 0

    If somehow you ended up with a Collection with no title in DSpace 1.5, SWORD will fail to generate a Service Document for anyone with submit access to that untitled Collection. Obviously, most DSpace Collections *should* have a title. However, it is possible to generate a Collection without a title. Either way, the DSpace SWORD Server should probably be smart enough to still generate a valid Service Document if it encounters a Collection without a title. The following error is generated when a collection without a title is encountered: SEVERE: Servlet.service() for servlet servicedocument threw exception java.lang.NullPointerException at org.purl.sword.base.Collection.marshall(Collection.java:367) at org.purl.sword.base.Workspace.marshall(Workspace.java:176) at org.purl.sword.base.Service.marshall(Service.java:299) at org.purl.sword.base.ServiceDocument.marshall(ServiceDocument.java:260) at org.purl.sword.server.ServiceDocumentServlet.doGet(ServiceDocumentServlet.j ava:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio nFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC hain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j ava:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j ava:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12 8) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10 4) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697 ) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.jav a:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:686) at java.lang.Thread.run(Thread.java:619)

    Sakai JIRA | 8 years ago | Charles Kiplagat
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 org.purl.sword.base.Collection.marshall()
    2. org.purl.sword
      Service.marshall
      1. org.purl.sword.base.Collection.marshall(Collection.java:367)
      2. org.purl.sword.base.Workspace.marshall(Workspace.java:176)
      3. org.purl.sword.base.Service.marshall(Service.java:299)
      3 frames