Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2516

ArrayIndexOutOfBoundsException when trying to report a template parsing error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
      	at java.util.ArrayList.elementData(ArrayList.java:418) ~[na:1.8.0_72-internal]
      	at java.util.ArrayList.get(ArrayList.java:431) ~[na:1.8.0_72-internal]
      	at org.apache.tapestry5.internal.services.XMLTokenStream.token(XMLTokenStream.java:433) ~[tapestry-core-5.4-rc-1.jar:na]
      	at org.apache.tapestry5.internal.services.XMLTokenStream.getLocation(XMLTokenStream.java:478) ~[tapestry-core-5.4-rc-1.jar:na]
      	at org.apache.tapestry5.internal.services.SaxTemplateParser.parse(SaxTemplateParser.java:181) ~[tapestry-core-5.4-rc-1.jar:na]
      	at org.apache.tapestry5.internal.services.TemplateParserImpl$1.invoke(TemplateParserImpl.java:61) ~[tapestry-core-5.4-rc-1.jar:na]
      	at org.apache.tapestry5.internal.services.TemplateParserImpl$1.invoke(TemplateParserImpl.java:58) ~[tapestry-core-5.4-rc-1.jar:na]
      	at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:82) ~[tapestry-ioc-5.4-rc-1.jar:na]
      	... 158 common frames omitted
      

      The exeption that we're trying to report is an IOException:

      java.io.IOException: Cannot open a steam for a resource that references a directory inside a JAR file (jar:file:/home/jochen/.gradle/caches/modules-2/files-2.1/org.apache.tapestry/tapestry-core/5.4-rc-1/94f01ef2bc48c66a8927cd814c885d218caab3fe/tapestry-core-5.4-rc-1.jar!/org/apache/tapestry5/corelib/components/Grid.tml).
      

        Attachments

          Activity

            People

            • Assignee:
              jkemnade Jochen Kemnade
              Reporter:
              jkemnade Jochen Kemnade
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: