java.lang.NullPointerException

Sakai JIRA | Charles Kiplagat | 8 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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

    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