java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException

XWiki.org JIRA | Petr Praus | 4 years ago
  1. 0

    Creating a simple code fragment (see below) in any page on my xwiki installation results in the error "Failed to execute the [code] macro" (see stack trace below). The stack trace says it can't locate component PygmentsParser. EDIT: just upgraded to 4.4.1 and the problem persists EDIT2: Works flawlessly with Tomcat 7.0.35 EDIT3: Jython 2.5.4RC1 and 2.7b1 fix this issue, see the comments. {code} {{code language="html"}} <html> <head>Cool!</head> </html> {{/code}} {code} {code} 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:115) at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:51) at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:141) at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:53) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:185) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:132) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:87) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:250) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54) at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80) at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38) at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113) at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50) at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67) at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:916) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:895) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:926) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:603) at sun.reflect.GeneratedMethodAccessor398.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) 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:228) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1765) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1705) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:854) at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) 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:228) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1765) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:155) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:241) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) 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:734) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) 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:372) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) at java.lang.Thread.run(Thread.java:722) Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.rendering.internal.parser.pygments.PygmentsParser] identifier by [role = [interface org.xwiki.rendering.parser.HighlightParser] hint = [default]] at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348) at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161) at org.xwiki.rendering.internal.macro.code.CodeMacro.highlight(CodeMacro.java:147) at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:112) ... 99 more Caused by: Traceback (most recent call last): File "<string>", line 1, in <module> File "__pyclasspath__/pygments/__init__.py", line 37, in <module> File "__pyclasspath__/pygments/util.py", line 12, in <module> File "__pyclasspath__/re$py.class", line 279, in <module> java.lang.ArrayIndexOutOfBoundsException java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException at org.python.core.Py.JavaError(Py.java:495) at org.python.core.PyTableCode.call(PyTableCode.java:168) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:391) at org.python.core.util.importer.importer_load_module(importer.java:109) at org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63) at org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown Source) at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47) at org.python.core.imp.loadFromLoader(imp.java:518) at org.python.core.imp.find_module(imp.java:472) at org.python.core.imp.import_next(imp.java:718) at org.python.core.imp.import_first(imp.java:748) at org.python.core.imp.import_module_level(imp.java:837) at org.python.core.imp.importName(imp.java:917) at org.python.core.ImportFunction.__call__(__builtin__.java:1220) at org.python.core.PyObject.__call__(PyObject.java:357) at org.python.core.__builtin__.__import__(__builtin__.java:1173) at org.python.core.imp.importOne(imp.java:936) at pygments.util$py.f$0(__pyclasspath__/pygments/util.py:232) at pygments.util$py.call_function(__pyclasspath__/pygments/util.py) at org.python.core.PyTableCode.call(PyTableCode.java:165) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:391) at org.python.core.util.importer.importer_load_module(importer.java:109) at org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63) at org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown Source) at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47) at org.python.core.imp.loadFromLoader(imp.java:518) at org.python.core.imp.find_module(imp.java:472) at org.python.core.PyModule.impAttr(PyModule.java:100) at org.python.core.imp.import_next(imp.java:720) at org.python.core.imp.import_logic(imp.java:782) at org.python.core.imp.import_module_level(imp.java:842) at org.python.core.imp.importName(imp.java:917) at org.python.core.ImportFunction.__call__(__builtin__.java:1220) at org.python.core.PyObject.__call__(PyObject.java:357) at org.python.core.__builtin__.__import__(__builtin__.java:1173) at org.python.core.imp.importFromAs(imp.java:1011) at org.python.core.imp.importFrom(imp.java:987) at pygments$py.f$0(__pyclasspath__/pygments/__init__.py:91) at pygments$py.call_function(__pyclasspath__/pygments/__init__.py) at org.python.core.PyTableCode.call(PyTableCode.java:165) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:391) at org.python.core.util.importer.importer_load_module(importer.java:109) at org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63) at org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown Source) at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47) at org.python.core.imp.loadFromLoader(imp.java:518) at org.python.core.imp.find_module(imp.java:472) at org.python.core.imp.import_next(imp.java:718) at org.python.core.imp.import_module_level(imp.java:827) at org.python.core.imp.importName(imp.java:917) at org.python.core.ImportFunction.__call__(__builtin__.java:1220) at org.python.core.PyObject.__call__(PyObject.java:357) at org.python.core.__builtin__.__import__(__builtin__.java:1173) at org.python.core.imp.importOne(imp.java:936) at org.python.pycode._pyx6.f$0(<string>:6) at org.python.pycode._pyx6.call_function(<string>) at org.python.core.PyTableCode.call(PyTableCode.java:165) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1275) at org.python.core.Py.exec(Py.java:1319) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206) at org.xwiki.rendering.internal.parser.pygments.PygmentsParser.initialize(PygmentsParser.java:165) at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323) at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ... 102 more Caused by: java.lang.ArrayIndexOutOfBoundsException {code}

    XWiki.org JIRA | 4 years ago | Petr Praus
    java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException
  2. 0

    settings.py must be populated

    Google Groups | 8 years ago | Josh Juneau
    java.lang.ArrayIndexOutOfBoundsException: 7936
  3. 0

    Yarn Client error when it tries to get AM queue info

    Stack Overflow | 11 months ago | neiron21
    java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java version "1.6.0_111" Java(TM) SE Runtime Environment (build 1.6.0_111-b12) Oracle JRockit(R) (build R28.3.9-14-169974-1.6.0_111-20160104-1427-linux-x86_64, compiled mode) Submitter's app runs fine for serveral hours but then encounters the following exception : encryption/6 03.16 16:03:41.565 Failed to decrypt text in decryptUsingKey() due to exception:java.lang.ArrayIndexOutOfBoundsException: 96 java.lang.ArrayIndexOutOfBoundsException: 96 encryption/6 03.16 16:03:41.565 at com.sun.crypto.provider.AESCrypt.decryptBlock(AESCrypt.java:393) encryption/6 03.16 16:03:41.565 at com.sun.crypto.provider.CipherBlockChaining.decrypt(CipherBlockChaining.java:1 82) encryption/6 03.16 16:03:41.565 at com.sun.crypto.provider.FeedbackCipher.decryptFinal(FeedbackCipher.java:178) encryption/6 03.16 16:03:41.565 at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:842) encryption/6 03.16 16:03:41.565 at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:786) encryption/6 03.16 16:03:41.565 at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:657) encryption/6 03.16 16:03:41.565 at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:298) encryption/6 03.16 16:03:41.565 at javax.crypto.Cipher.doFinal(Cipher.java:1961) encryption/6 03.16 16:03:41.565 at intradoc.conversion.SymmetricEncryptionUtils.decryptUsingKey(SymmetricEncryptionUtils.java:174) encryption/6 03.16 16:03:41.565 at intradoc.conversion.SymmetricEncryptionUtils.decrypt(SymmetricEncryptionUtils.java:143) encryption/6 03.16 16:03:41.565 at intradoc.conversion.SymmetricEncryptionUtils.decrypt(SymmetricEncryptionUtils.java:134) Code causing exception : 386 /** 387 * Decrypt exactly one block of plaintext. 388 */ 389 void decryptBlock(byte[] in, int inOffset, 390 byte[] out, int outOffset) 391 { 392 int keyOffset = 4; 393 int t0 = ((in[inOffset++] ) << 24 | 394 (in[inOffset++] & 0xFF) << 16 | 395 (in[inOffset++] & 0xFF) << 8 | 396 (in[inOffset++] & 0xFF) ) ^ K[keyOffset++]; 397 int t1 = ((in[inOffset++] ) << 24 | 398 (in[inOffset++] & 0xFF) << 16 | 399 (in[inOffset++] & 0xFF) << 8 | 400 (in[inOffset++] & 0xFF) ) ^ K[keyOffset++];

    JDK Bug System | 8 months ago | Shadow Bug
    java.lang.ArrayIndexOutOfBoundsException: 96 java.lang.ArrayIndexOutOfBoundsException: 96
  6. 0

    Primefaces: Orderlist: index out of bound exception while reordering

    Stack Overflow | 3 years ago | LStrike
    java.lang.ArrayIndexOutOfBoundsException: -1: java.lang.ArrayIndexOutOfBoundsException: -1

    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. java.lang.ArrayIndexOutOfBoundsException

      java.lang.ArrayIndexOutOfBoundsException

      at org.python.core.Py.JavaError()
    2. Jython
      imp.importOne
      1. org.python.core.Py.JavaError(Py.java:495)
      2. org.python.core.PyTableCode.call(PyTableCode.java:168)
      3. org.python.core.PyCode.call(PyCode.java:18)
      4. org.python.core.imp.createFromCode(imp.java:391)
      5. org.python.core.util.importer.importer_load_module(importer.java:109)
      6. org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63)
      7. org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown Source)
      8. org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
      9. org.python.core.imp.loadFromLoader(imp.java:518)
      10. org.python.core.imp.find_module(imp.java:472)
      11. org.python.core.imp.import_next(imp.java:718)
      12. org.python.core.imp.import_first(imp.java:748)
      13. org.python.core.imp.import_module_level(imp.java:837)
      14. org.python.core.imp.importName(imp.java:917)
      15. org.python.core.ImportFunction.__call__(__builtin__.java:1220)
      16. org.python.core.PyObject.__call__(PyObject.java:357)
      17. org.python.core.__builtin__.__import__(__builtin__.java:1173)
      18. org.python.core.imp.importOne(imp.java:936)
      18 frames