You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/11/12 11:29:10 UTC

[jira] [Commented] (TAP5-2516) ArrayIndexOutOfBoundsException when trying to report a template parsing error

    [ https://issues.apache.org/jira/browse/TAP5-2516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15001934#comment-15001934 ] 

ASF subversion and git services commented on TAP5-2516:
-------------------------------------------------------

Commit 340257f5b1da777fb061760591d0ee48404ed365 in tapestry-5's branch refs/heads/master from [~jkemnade]
[ https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;h=340257f ]

TAP5-2516: Fix ArrayIndexOutOfBoundsException when a template resource stream cannot be opened


> ArrayIndexOutOfBoundsException when trying to report a template parsing error
> -----------------------------------------------------------------------------
>
>                 Key: TAP5-2516
>                 URL: https://issues.apache.org/jira/browse/TAP5-2516
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Jochen Kemnade
>            Priority: Minor
>
> {code}
> 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
> {code}
> The exeption that we're trying to report is an IOException:
> {code}
> 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).
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)