Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via XWiki.org JIRA by Arnaud Bourree, 1 year ago
Failed to get Attachment content for [name = [daisydiff.jar], type = [ATTACHMENT], parent = [name = [WikiDev:daisydiff], type = [DOCUMENT], parent = [name = [WikiDev], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]]]
java.lang.NullPointerException: 	at com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getAttachmentContent(DefaultDocumentAccessBridge.java:528)	at org.xwiki.classloader.internal.protocol.attachmentjar.AttachmentURLConnection.getInputStream(AttachmentURLConnection.java:69)	at org.xwiki.classloader.internal.protocol.jar.JarProxy.getJarInputStream(JarProxy.java:162)	at org.xwiki.classloader.internal.protocol.jar.JarProxy.openJarFile(JarProxy.java:111)	at org.xwiki.classloader.internal.protocol.jar.JarURLConnection.connect(JarURLConnection.java:78)	at org.xwiki.classloader.internal.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:90)	at org.xwiki.classloader.internal.ResourceLoader$JarInfo.getJarFileIfPossiblyContains(ResourceLoader.java:535)	at org.xwiki.classloader.internal.ResourceLoader$JarInfo.getResource(ResourceLoader.java:427)	at org.xwiki.classloader.internal.ResourceLoader.findResource(ResourceLoader.java:354)	at org.xwiki.classloader.internal.ResourceLoader.access$400(ResourceLoader.java:87)	at org.xwiki.classloader.internal.ResourceLoader$ResourceEnumeration.fetchNext(ResourceLoader.java:820)	at org.xwiki.classloader.internal.ResourceLoader$ResourceEnumeration.hasMoreElements(ResourceLoader.java:797)	at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)	at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)	at sun.misc.Service$LazyIterator.hasNext(Service.java:272)	at javax.script.ScriptEngineManager.initEngines(ScriptEngineManager.java:125)	at javax.script.ScriptEngineManager.access$000(ScriptEngineManager.java:55)	at javax.script.ScriptEngineManager$1.run(ScriptEngineManager.java:98)	at java.security.AccessController.doPrivileged(Native Method)	at javax.script.ScriptEngineManager.init(ScriptEngineManager.java:96)	at javax.script.ScriptEngineManager.(ScriptEngineManager.java:69)	at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.getScriptEngine(AbstractJSR223ScriptMacro.java:256)	at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:166)	at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:52)	at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:190)	at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:57)	at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:184)	at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:129)	at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)	at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7471)	at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7420)	at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:835)	at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:783)	at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:878)	at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:537)	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:616)	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)	at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)	at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)	at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)	at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1895)	at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1833)	at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:860)	at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:616)	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)	at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)	at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)	at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)	at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)	at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1943)	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1865)	at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:154)	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)	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.coyote.http11.Http11Processor.process(Http11Processor.java:857)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)	at java.lang.Thread.run(Thread.java:636)