javax.ws.rs.WebApplicationException: java.lang.NullPointerException[\n]

Sakai JIRA | Kai St [X] | 7 years ago
  1. 0

    if neither mediaType nor mimeType are provided and the datastream to be added is new, Fedora will throw a NPE because it tries to access the mime type of the nonexisting datastream. see: http://fisheye.fedora-commons.org/browse/FCREPO/trunk/fcrepo-server/src/main/java/org/fcrepo/server/rest/DatastreamResource.java?r=8493, line 389 Here is the log: - >> "POST /fedora/objects/changeme:1006/datastreams/FFFFF?versionable=true&controlGroup=R&dsLocation=http%3A%2F%2Flocalhost%3A8080 HTTP/1.1[EOL]" - >> "Accept: */*[EOL]" - >> "Content-Length: 0[EOL]" - >> "Host: localhost:8080[EOL]" - >> "Connection: Keep-Alive[EOL]" - >> "User-Agent: Apache-HttpClient/4.0 (java 1.5)[EOL]" - >> "Cookie: JSESSIONID=DA331916CEDC7FA7365C4071A052C51A[EOL]" - >> "Cookie2: $Version=1[EOL]" - >> "Authorization: Basic xxxx=[EOL]" - >> "Accept-Encoding: gzip,deflate[EOL]" - >> "[EOL]" - << "HTTP/1.1 500 Internal Server Error[EOL]" - << "Server: Apache-Coyote/1.1[EOL]" - << "Content-Type: text/plain[EOL]" - << "Transfer-Encoding: chunked[EOL]" - << "Date: Tue, 06 Apr 2010 14:40:39 GMT[EOL]" - << "Connection: close[EOL]" - << "[EOL]" 2010-04-06 16:40:39,260 DEBUG HTTPBuilder - Parsed data to instance of: class java.io.InputStreamReader - << "1167[EOL]" - << "javax.ws.rs.WebApplicationException: java.lang.NullPointerException[\n]" - << "[0x9]at org.fcrepo.server.rest.BaseRestResource.handleException(BaseRestResource.java:164)[\n]" - << "[0x9]at org.fcrepo.server.rest.DatastreamResource.addOrUpdateDatastream(DatastreamResource.java:480)[\n]" - << "[0x9]at org.fcrepo.server.rest.DatastreamResource.addDatastream(DatastreamResource.java:322)[\n]" - << "[0x9]at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)[\n]" - << "[0x9]at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[\n]" - << "[0x9]at java.lang.reflect.Method.invoke(Method.java:597)[\n]" - << "[0x9]at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$ResponseOutInvoker._dispatch(EntityParamDispatchProvider.java:157)[\n]" - << "[0x9]at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)[\n]" - << "[0x9]at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)[\n]" - << "[0x9]at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)[\n]" - << "[0x9]at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)[\n]" - << "[0x9]at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)[\n]" - << "[0x9]at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)[\n]" - << "[0x9]at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)[\n]" - << "[0x9]at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)[\n]" - << "[0x9]at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)[\n]" - << "[0x9]at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)[\n]" - << "[0x9]at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:79)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)[\n]" - << "[0x9]at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)[\n]" - << "[0x9]at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)[\n]" - << "[0x9]at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)[\n]" - << "[0x9]at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[\n]" - << "[0x9]at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[\n]" - << "[0x9]at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)[\n]" - << "[0x9]at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)[\n]" - << "[0x9]at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)[\n]" - << "[0x9]at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)[\n]" - << "[0x9]at java.lang.Thread.run(Thread.java:637)[\n]" - << "Caused by: java.lang.NullPointerException[\n]" - << "[0x9]at org.fcrepo.server.rest.DatastreamResource.addOrUpdateDatastream(DatastreamResource.java:389)[\n]"

    Sakai JIRA | 7 years ago | Kai St [X]
    javax.ws.rs.WebApplicationException: java.lang.NullPointerException[\n]
  2. 0

    if neither mediaType nor mimeType are provided and the datastream to be added is new, Fedora will throw a NPE because it tries to access the mime type of the nonexisting datastream. see: http://fisheye.fedora-commons.org/browse/FCREPO/trunk/fcrepo-server/src/main/java/org/fcrepo/server/rest/DatastreamResource.java?r=8493, line 389 Here is the log: - >> "POST /fedora/objects/changeme:1006/datastreams/FFFFF?versionable=true&controlGroup=R&dsLocation=http%3A%2F%2Flocalhost%3A8080 HTTP/1.1[EOL]" - >> "Accept: */*[EOL]" - >> "Content-Length: 0[EOL]" - >> "Host: localhost:8080[EOL]" - >> "Connection: Keep-Alive[EOL]" - >> "User-Agent: Apache-HttpClient/4.0 (java 1.5)[EOL]" - >> "Cookie: JSESSIONID=DA331916CEDC7FA7365C4071A052C51A[EOL]" - >> "Cookie2: $Version=1[EOL]" - >> "Authorization: Basic xxxx=[EOL]" - >> "Accept-Encoding: gzip,deflate[EOL]" - >> "[EOL]" - << "HTTP/1.1 500 Internal Server Error[EOL]" - << "Server: Apache-Coyote/1.1[EOL]" - << "Content-Type: text/plain[EOL]" - << "Transfer-Encoding: chunked[EOL]" - << "Date: Tue, 06 Apr 2010 14:40:39 GMT[EOL]" - << "Connection: close[EOL]" - << "[EOL]" 2010-04-06 16:40:39,260 DEBUG HTTPBuilder - Parsed data to instance of: class java.io.InputStreamReader - << "1167[EOL]" - << "javax.ws.rs.WebApplicationException: java.lang.NullPointerException[\n]" - << "[0x9]at org.fcrepo.server.rest.BaseRestResource.handleException(BaseRestResource.java:164)[\n]" - << "[0x9]at org.fcrepo.server.rest.DatastreamResource.addOrUpdateDatastream(DatastreamResource.java:480)[\n]" - << "[0x9]at org.fcrepo.server.rest.DatastreamResource.addDatastream(DatastreamResource.java:322)[\n]" - << "[0x9]at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)[\n]" - << "[0x9]at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[\n]" - << "[0x9]at java.lang.reflect.Method.invoke(Method.java:597)[\n]" - << "[0x9]at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$ResponseOutInvoker._dispatch(EntityParamDispatchProvider.java:157)[\n]" - << "[0x9]at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)[\n]" - << "[0x9]at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)[\n]" - << "[0x9]at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)[\n]" - << "[0x9]at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)[\n]" - << "[0x9]at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)[\n]" - << "[0x9]at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)[\n]" - << "[0x9]at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)[\n]" - << "[0x9]at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)[\n]" - << "[0x9]at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)[\n]" - << "[0x9]at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)[\n]" - << "[0x9]at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:79)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]" - << "[0x9]at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]" - << "[0x9]at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)[\n]" - << "[0x9]at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)[\n]" - << "[0x9]at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)[\n]" - << "[0x9]at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)[\n]" - << "[0x9]at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[\n]" - << "[0x9]at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[\n]" - << "[0x9]at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)[\n]" - << "[0x9]at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)[\n]" - << "[0x9]at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)[\n]" - << "[0x9]at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)[\n]" - << "[0x9]at java.lang.Thread.run(Thread.java:637)[\n]" - << "Caused by: java.lang.NullPointerException[\n]" - << "[0x9]at org.fcrepo.server.rest.DatastreamResource.addOrUpdateDatastream(DatastreamResource.java:389)[\n]"

    Sakai JIRA | 7 years ago | Kai St [X]
    javax.ws.rs.WebApplicationException: java.lang.NullPointerException[\n]
  3. 0

    Drools-Guvnor hosted on jBoss 500 error

    Stack Overflow | 2 years ago | Chaturvedi Dewashish
    javax.ws.rs.WebApplicationException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    *Problem:* A "System Error" is displayed when trying to get an ics. Message: Oops - an error has occurred URL is similar to: {{https://<instance-name>/wiki/rest/calendar-services/1.0/calendar/export/subcalendar/private/2f21af192d072d23b1a6a788987e529dc8f7a0ac.ics}} Every access to a team cal .ics generates in the logs: {noformat} 2014-05-22 12:26:30.421501500 2014-05-22 12:26:30,416 ERROR [TP-Processor8] [common.error.jersey.ThrowableExceptionMapper] toResponse Server Error in REST: 500: com.sun.jersey.core.spi.factory.ResponseImpl@1432819 2014-05-22 12:26:30.421503500 -- url: /wiki/rest/calendar-services/1.0/calendar/export/subcalendar/private/2f21af192d072d23b1a6a788987e529dc8f7a0ac.ics | userName: sysadmin | referer: https://<some-url> 2014-05-22 12:26:30.421504500 javax.ws.rs.WebApplicationException: java.lang.NullPointerException 2014-05-22 12:26:30.421513500 at com.atlassian.confluence.extra.calendar3.rest.CalendarResource$19.write(CalendarResource.java:1495) 2014-05-22 12:26:30.421514500 at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71) 2014-05-22 12:26:30.421515500 at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57) 2014-05-22 12:26:30.421515500 at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306) 2014-05-22 12:26:30.421517500 at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1437) 2014-05-22 12:26:30.421518500 at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) 2014-05-22 12:26:30.421521500 at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) 2014-05-22 12:26:30.421521500 at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) 2014-05-22 12:26:30.421522500 at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) 2014-05-22 12:26:30.421523500 at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178) 2014-05-22 12:26:30.421524500 at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:795) 2014-05-22 12:26:30.421525500 at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73) ... 2014-05-22 12:26:30.422819500 at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705) 2014-05-22 12:26:30.422820500 at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898) 2014-05-22 12:26:30.422821500 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) 2014-05-22 12:26:30.422821500 at java.lang.Thread.run(Thread.java:662) 2014-05-22 12:26:30.422822500 Caused by: java.lang.NullPointerException 2014-05-22 12:26:30.422822500 at net.fortuna.ical4j.model.PropertyList.getProperty(PropertyList.java:99) 2014-05-22 12:26:30.422823500 at net.fortuna.ical4j.transform.PublishTransformer.transform(PublishTransformer.java:73) 2014-05-22 12:26:30.422824500 at com.atlassian.confluence.extra.calendar3.util.CalendarExportTransformer.transform(CalendarExportTransformer.java:72) 2014-05-22 12:26:30.422825500 at com.atlassian.confluence.extra.calendar3.DefaultICalendarExporter.getTransformedSubCalendarContent(DefaultICalendarExporter.java:144) 2014-05-22 12:26:30.422825500 at com.atlassian.confluence.extra.calendar3.DefaultICalendarExporter.export(DefaultICalendarExporter.java:64) 2014-05-22 12:26:30.422828500 at com.atlassian.confluence.extra.calendar3.rest.CalendarResource$19.write(CalendarResource.java:1491) 2014-05-22 12:26:30.422829500 ... 223 more 2014-05-22 12:26:30.423281500 2014-05-22 12:26:30,422 INFO [TP-Processor8] [atlassian.confluence.status.SystemErrorInformationLogger] writeToLog 2014-05-22 12:26:30.423282500 Request Unique ID : 6ba8962c-0ead-4732-9b3a-9f81693457e8 2014-05-22 12:26:30.423282500 -------------------------- 2014-05-22 12:26:30.423282500 JVM Stats 2014-05-22 12:26:30.423283500 -------------------------- 2014-05-22 12:26:30.423283500 allocatedHeap = 340975616 2014-05-22 12:26:30.423283500 availablePermGen = 77944008 2014-05-22 12:26:30.423284500 usedMemory = 312218008 2014-05-22 12:26:30.423288500 totalMemory = 340975616 2014-05-22 12:26:30.423289500 freeMemory = 28757608 2014-05-22 12:26:30.423289500 maxPermGen = 268435456 2014-05-22 12:26:30.423289500 usedPermGen = 190491448 2014-05-22 12:26:30.423290500 freeMemoryInMegabytes = 27 2014-05-22 12:26:30.423290500 freeAllocatedHeap = 28757608 2014-05-22 12:26:30.423290500 availableHeap = 218689128 2014-05-22 12:26:30.423290500 usedMemoryInMegabytes = 297 2014-05-22 12:26:30.423291500 maxHeap = 530907136 2014-05-22 12:26:30.423291500 usedHeap = 312218008 2014-05-22 12:26:30.423292500 totalMemoryInMegabytes = 325 2014-05-22 12:26:30.423292500 -------------------------- 2014-05-22 12:26:30.423293500 Request Information 2014-05-22 12:26:30.423293500 -------------------------- 2014-05-22 12:26:30.423293500 URL: https://<instance-name>/wiki/500page.jsp 2014-05-22 12:26:30.423294500 Scheme: https 2014-05-22 12:26:30.423294500 Server: <instance-name> 2014-05-22 12:26:30.423294500 Port: 443 2014-05-22 12:26:30.423295500 URI: /wiki/500page.jsp 2014-05-22 12:26:30.423295500 Context Path: /wiki 2014-05-22 12:26:30.423296500 Servlet Path: /500page.jsp 2014-05-22 12:26:30.423296500 Path Info: null 2014-05-22 12:26:30.423296500 Query String: null 2014-05-22 12:26:30.423297500 -------------------------- 2014-05-22 12:26:30.423297500 Attributes 2014-05-22 12:26:30.423297500 -------------------------- 2014-05-22 12:26:30.423298500 javax.servlet.forward.request_uri: /wiki/rest/calendar-services/1.0/calendar/export/subcalendar/private/2f21af192d072d23b1a6a788987e529dc8f7a0ac.ics 2014-05-22 12:26:30.423301500 javax.servlet.forward.context_path: /wiki 2014-05-22 12:26:30.423301500 javax.servlet.forward.servlet_path: /rest 2014-05-22 12:26:30.423301500 javax.servlet.forward.path_info: /500page.jsp 2014-05-22 12:26:30.423302500 os_securityfilter_already_filtered: true 2014-05-22 12:26:30.423302500 com.atlassian.seraph.auth.LoginReason: OK 2014-05-22 12:26:30.423307500 atlassian.core.seraph.original.url: /500page.jsp 2014-05-22 12:26:30.423307500 com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true 2014-05-22 12:26:30.423308500 javax.servlet.error.status_code: 500 2014-05-22 12:26:30.423308500 javax.servlet.error.servlet_name: noop 2014-05-22 12:26:30.423309500 com.opensymphony.sitemesh.USINGSTREAM: false 2014-05-22 12:26:30.423309500 com.atlassian.gzipfilter.GzipFilter_already_filtered: true 2014-05-22 12:26:30.423310500 loginfilter.already.filtered: true 2014-05-22 12:26:30.423311500 javax.servlet.error.message: Internal Server Error 2014-05-22 12:26:30.423311500 com.opensymphony.sitemesh.APPLIED_ONCE: true 2014-05-22 12:26:30.423311500 com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true 2014-05-22 12:26:30.423312500 __cleanup_recursion_counter: 0 2014-05-22 12:26:30.423312500 com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true 2014-05-22 12:26:30.423314500 javax.servlet.error.request_uri: /wiki/rest/calendar-services/1.0/calendar/export/subcalendar/private/2f21af192d072d23b1a6a788987e529dc8f7a0ac.ics 2014-05-22 12:26:30.423317500 com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter: true 2014-05-22 12:26:30.423317500 -------------------------- 2014-05-22 12:26:30.423318500 Parameters 2014-05-22 12:26:30.423318500 -------------------------- 2014-05-22 12:26:30.423318500{noformat} *Plausible Cause:* The Time Zone property is null (according to logs) and should be proper handled. *Temporary Workaround:* Restart Confluence. The error might reappear after a couple of days.

    Atlassian JIRA | 2 years ago | Duy Luong
    javax.ws.rs.WebApplicationException: java.lang.NullPointerException

    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. javax.ws.rs.WebApplicationException

      java.lang.NullPointerException[\n]

      at org.fcrepo.server.rest.BaseRestResource.handleException()
    2. org.fcrepo.server
      DatastreamResource.addDatastream
      1. org.fcrepo.server.rest.BaseRestResource.handleException(BaseRestResource.java:164)[\n]
      2. org.fcrepo.server.rest.DatastreamResource.addOrUpdateDatastream(DatastreamResource.java:480)[\n]
      3. org.fcrepo.server.rest.DatastreamResource.addDatastream(DatastreamResource.java:322)[\n]
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)[\n]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[\n]
      3. java.lang.reflect.Method.invoke(Method.java:597)[\n]
      3 frames
    4. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$ResponseOutInvoker._dispatch(EntityParamDispatchProvider.java:157)[\n]
      2. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)[\n]
      3. com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)[\n]
      4. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)[\n]
      5. com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)[\n]
      6. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)[\n]
      7. com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)[\n]
      8. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)[\n]
      9. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)[\n]
      10. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)[\n]
      10 frames
    5. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)[\n]
      1 frame
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)[\n]
      1 frame
    7. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)[\n]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]
      2 frames
    8. org.fcrepo.server
      FilterRestApiFlash.doFilter
      1. org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:79)[\n]
      1 frame
    9. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]
      2 frames
    10. org.fcrepo.server
      FilterSetup.doFilter
      1. org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]
      1 frame
    11. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]
      2 frames
    12. org.fcrepo.server
      FilterSetup.doFilter
      1. org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]
      1 frame
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]
      2 frames
    14. org.fcrepo.server
      FilterSetup.doFilter
      1. org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]
      1 frame
    15. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]
      2 frames
    16. org.fcrepo.server
      FilterSetup.doFilter
      1. org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)[\n]
      1 frame
    17. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[\n]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[\n]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)[\n]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)[\n]
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)[\n]
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)[\n]
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[\n]
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[\n]
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)[\n]
      9 frames
    18. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)[\n]
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)[\n]
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)[\n]
      3 frames