[cal10n-dev] [JIRA] Commented: (CAL-29) StringIndexOutOfBoundsException when loading resource bundle

Stuart Douglas (JIRA) noreply-jira at qos.ch
Mon Jun 6 23:13:51 CEST 2011


    [ http://jira.qos.ch/browse/CAL-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12025#action_12025 ] 

Stuart Douglas commented on CAL-29:
-----------------------------------

Fix is here:

https://github.com/ceki/cal10n/pull/1

> StringIndexOutOfBoundsException when loading resource bundle 
> -------------------------------------------------------------
>
>                 Key: CAL-29
>                 URL: http://jira.qos.ch/browse/CAL-29
>             Project: CAL10N
>          Issue Type: Bug
>            Reporter: Stuart Douglas
>            Assignee: Ceki Gulcu
>
> I get this with 0.7.4, there is no problem with 0.7.2
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:881) [:1.6.0_22]
>         at java.lang.StringBuilder.substring(StringBuilder.java:55) [:1.6.0_22]
>         at java.lang.AbstractStringBuilder.subSequence(AbstractStringBuilder.java:858) [:1.6.0_22]
>         at java.lang.StringBuilder.subSequence(StringBuilder.java:55) [:1.6.0_22]
>         at ch.qos.cal10n.util.LexicalUtil.convertSpecialCharacters(LexicalUtil.java:42)
>         at ch.qos.cal10n.util.TokenStream.tokenizeLine(TokenStream.java:146)
>         at ch.qos.cal10n.util.TokenStream.tokenize(TokenStream.java:67)
>         at ch.qos.cal10n.util.Parser.<init>(Parser.java:56)
>         at ch.qos.cal10n.util.CAL10NResourceBundle.read(CAL10NResourceBundle.java:56)
>         at ch.qos.cal10n.util.CAL10NResourceBundle.<init>(CAL10NResourceBundle.java:50)
>         at ch.qos.cal10n.util.CAL10NResourceBundleFinder.makePropertyResourceBundle(CAL10NResourceBundleFinder.java:83)
>         at ch.qos.cal10n.util.CAL10NResourceBundleFinder.getBundle(CAL10NResourceBundleFinder.java:51)
>         at ch.qos.cal10n.MessageConveyor.lookup(MessageConveyor.java:111)
>         at ch.qos.cal10n.MessageConveyor.getMessage(MessageConveyor.java:77)
>         at org.jboss.weld.logging.WeldMessageConveyor.getMessage(WeldMessageConveyor.java:78) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
>         at org.slf4j.cal10n.LocLogger.error(LocLogger.java:164)
>         at org.jboss.weld.bean.ManagedBean.destroy(ManagedBean.java:358) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
>         at org.jboss.weld.context.ForwardingContextual.destroy(ForwardingContextual.java:34) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
>         at org.jboss.weld.context.AbstractContext.destroy(AbstractContext.java:155) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
>         at org.jboss.weld.context.AbstractContext.destroy(AbstractContext.java:172) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
>         at org.jboss.weld.context.AbstractManagedContext.deactivate(AbstractManagedContext.java:50) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
>         at org.jboss.weld.context.AbstractBoundContext.deactivate(AbstractBoundContext.java:82) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
>         at org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:115) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT]
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT]
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT]
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT]
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT]
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:658) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT]
>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT]
>         at java.lang.Thread.run(Thread.java:680) [:1.6.0_22]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cal10n-dev mailing list