org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content

XWiki.org JIRA | daniel j | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    All code macros in the wiki fails with: Failed to execute the [code] macro org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:108) at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:48) at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:146) at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:51) 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:7605) at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7554) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:836) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:785) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:879) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:557) at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) 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:342) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:188) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:153) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1873) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1811) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:848) at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) 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:342) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:188) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:153) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1924) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1843) 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:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [role = [org.xwiki.rendering.parser.HighlightParser] hint = [default]] at org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:368) at org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:126) at org.xwiki.component.internal.DefaultComponentManager.lookup(DefaultComponentManager.java:85) at org.xwiki.rendering.internal.macro.code.CodeMacro.highlight(CodeMacro.java:144) at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:105) ... 93 more Caused by: java.lang.NullPointerException at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:110) at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:92) at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:64) at org.xwiki.rendering.internal.parser.pygments.PygmentsParser.initialize(PygmentsParser.java:154) at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:429) at org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:361) ... 97 more

    XWiki.org JIRA | 6 years ago | daniel j
    org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content
  2. 0

    Null pointer exception when instantiating Jython interpreter

    Google Groups | 1 decade ago | Robert Oschler
    java.lang.NullPointerException
  3. 0

    [test] security manager problem with python plugin on windows

    GitHub | 2 years ago | brwe
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.python.util.PythonInterpreter.<init>()
    2. Jython
      PythonInterpreter.<init>
      1. org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:110)
      2. org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:92)
      3. org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:64)
      3 frames
    3. org.xwiki.rendering
      PygmentsParser.initialize
      1. org.xwiki.rendering.internal.parser.pygments.PygmentsParser.initialize(PygmentsParser.java:154)
      1 frame
    4. org.xwiki.component
      DefaultComponentManager.lookup
      1. org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:429)
      2. org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:361)
      3. org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:126)
      4. org.xwiki.component.internal.DefaultComponentManager.lookup(DefaultComponentManager.java:85)
      4 frames
    5. org.xwiki.rendering
      DefaultTransformationManager.performTransformations
      1. org.xwiki.rendering.internal.macro.code.CodeMacro.highlight(CodeMacro.java:144)
      2. org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:105)
      3. org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:48)
      4. org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:146)
      5. org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:51)
      6. org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:184)
      7. org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:129)
      8. org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
      8 frames
    6. com.xpn.xwiki
      Document.getRenderedContent
      1. com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7605)
      2. com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7554)
      3. com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:836)
      4. com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:785)
      5. com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:879)
      6. com.xpn.xwiki.api.Document.getRenderedContent(Document.java:557)
      6 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3. java.lang.reflect.Method.invoke(Unknown Source)
      3 frames
    8. Apache Velocity
      SimpleNode.render
      1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
      2. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
      3. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
      4. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
      5. org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
      6. org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
      7. org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
      8. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      9. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
      10. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
      11. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
      11 frames
    9. org.xwiki.velocity
      DefaultVelocityEngine.evaluate
      1. org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:188)
      2. org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:153)
      2 frames
    10. com.xpn.xwiki
      XWiki.parseTemplate
      1. com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
      2. com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1873)
      3. com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1811)
      4. com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:848)
      4 frames
    11. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3. java.lang.reflect.Method.invoke(Unknown Source)
      3 frames
    12. Apache Velocity
      SimpleNode.render
      1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
      2. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
      3. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
      4. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
      5. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
      6. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      7. org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
      8. org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
      9. org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
      10. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
      11. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      12. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
      13. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      14. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
      15. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
      16. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
      16 frames
    13. org.xwiki.velocity
      DefaultVelocityEngine.evaluate
      1. org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:188)
      2. org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:153)
      2 frames
    14. com.xpn.xwiki
      XWikiAction.execute
      1. com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
      2. com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1924)
      3. com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1843)
      4. com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:154)
      5. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
      6. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
      6 frames
    15. struts
      ActionServlet.doGet
      1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      3. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      4. org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      4 frames
    16. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    17. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
      2 frames
    18. com.xpn.xwiki
      ActionFilter.doFilter
      1. com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
      1 frame
    19. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    20. org.xwiki.wysiwyg
      ConversionFilter.doFilter
      1. org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
      1 frame
    21. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    22. com.xpn.xwiki
      XWikiDavFilter.doFilter
      1. com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
      1 frame
    23. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    24. org.xwiki.container
      SavedRequestRestorerFilter.doFilter
      1. org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
      1 frame
    25. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    26. org.xwiki.container
      SetCharacterEncodingFilter.doFilter
      1. org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
      1 frame
    27. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      10. org.mortbay.jetty.Server.handle(Server.java:326)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      16 frames
    28. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame