Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.6
-
None
Description
The following request should add content to a resource, but produces a NullpointerException.
curl -X PUT -i -H "Content-Type: text/plain; rel=content" -d 'This is textual content of the resource' http://localhost:8080/LMF/content/text/plain/1234
Feb 18, 2013 5:32:22 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [default] in context with path [/LMF] threw exception
org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:365)
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:233)
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:209)
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:557)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)
at org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:169)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:212)
at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at kiwi.core.servlet.KiWiResourceFilter$LMFFilterChain.doFilter(KiWiResourceFilter.java:184)
at kiwi.core.filters.ModuleResourceFilter.doFilter(ModuleResourceFilter.java:161)
at kiwi.core.filters.ModuleResourceFilter$Proxy$$$_WeldClientProxy.doFilter(ModuleResourceFilter$Proxy$$$_WeldClientProxy.java)
at kiwi.core.servlet.KiWiResourceFilter$LMFFilterChain.doFilter(KiWiResourceFilter.java:179)
at kiwi.core.filters.TemplatingFilter.doFilter(TemplatingFilter.java:173)
at kiwi.core.filters.TemplatingFilter$Proxy$$$_WeldClientProxy.doFilter(TemplatingFilter$Proxy$$$_WeldClientProxy.java)
at kiwi.core.servlet.KiWiResourceFilter$LMFFilterChain.doFilter(KiWiResourceFilter.java:179)
at kiwi.core.filters.LMFServerNameFilter.doFilter(LMFServerNameFilter.java:102)
at kiwi.core.servlet.KiWiResourceFilter$LMFFilterChain.doFilter(KiWiResourceFilter.java:179)
at at.newmedialab.lmf.versioning.filter.MementoFilter.doFilter(MementoFilter.java:104)
at at.newmedialab.lmf.versioning.filter.MementoFilter$Proxy$$$_WeldClientProxy.doFilter(MementoFilter$Proxy$$$_WeldClientProxy.java)
at kiwi.core.servlet.KiWiResourceFilter$LMFFilterChain.doFilter(KiWiResourceFilter.java:179)
at kiwi.core.servlet.KiWiResourceFilter$LMFFilterChain.doFilter(KiWiResourceFilter.java:181)
at kiwi.core.servlet.KiWiResourceFilter$LMFFilterChain.doFilter(KiWiResourceFilter.java:181)
at at.newmedialab.lmf.security.filters.LMFAccessControlFilter.doFilter(LMFAccessControlFilter.java:140)
at at.newmedialab.lmf.security.filters.LMFAccessControlFilter$Proxy$$$_WeldClientProxy.doFilter(LMFAccessControlFilter$Proxy$$$_WeldClientProxy.java)
at kiwi.core.servlet.KiWiResourceFilter$LMFFilterChain.doFilter(KiWiResourceFilter.java:179)
at at.newmedialab.lmf.user.filters.LMFAuthenticationFilter.doFilter(LMFAuthenticationFilter.java:161)
at at.newmedialab.lmf.user.filters.LMFAuthenticationFilter$Proxy$$$_WeldClientProxy.doFilter(LMFAuthenticationFilter$Proxy$$$_WeldClientProxy.java)
at kiwi.core.servlet.KiWiResourceFilter$LMFFilterChain.doFilter(KiWiResourceFilter.java:179)
at kiwi.core.servlet.KiWiResourceFilter.doFilter(KiWiResourceFilter.java:130)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at kiwi.core.servlet.LMFOptionsFilter.doFilter(LMFOptionsFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at kiwi.core.servlet.KiWiPreStartupFilter.doFilter(KiWiPreStartupFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at kiwi.core.services.content.ContentServiceImpl.setContentStream(ContentServiceImpl.java:190)
at kiwi.core.services.content.ContentServiceImpl$Proxy$$$_WeldClientProxy.setContentStream(ContentServiceImpl$Proxy$$$_WeldClientProxy.java)
at kiwi.core.webservices.resource.ContentWebService.putContent(ContentWebService.java:315)
at kiwi.core.webservices.resource.ContentWebService.putContent(ContentWebService.java:302)
at kiwi.core.webservices.resource.ContentWebService.putContentLocal(ContentWebService.java:145)
at kiwi.core.webservices.resource.ContentWebService$Proxy$$$_WeldClientProxy.putContentLocal(ContentWebService$Proxy$$$_WeldClientProxy.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542)
... 49 more