myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Comment Edited] (EXTSCRIPT-165) java.lang.StringIndexOutOfBoundsException: String index out of range: 1 after upgrade to 1.0.3 version
Date Tue, 29 May 2012 07:16:24 GMT

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

Werner Punz edited comment on EXTSCRIPT-165 at 5/29/12 7:14 AM:
----------------------------------------------------------------

It was the usual from a jdk perspective non fixable windows regexp backslash JDK bug. I did
not call our fix routine for that one in exactly this area, I will do additional windows testing
later this week to make sure the next release will be watertight also on windows, in the meanwhile
give the latest trunk a shot.
 You can get OpenWebbeans support with it out of the box as well.

                
      was (Author: werpu):
    It was the usual from a jdk perspective non fixable windows regexp backslash JDK bug,
I will do additional windows testing later this week to make sure the next release will be
watertight also on windows, in the meanwhile give the latest trunk a shot.
 You can get OpenWebbeans support with it out of the box as well.

                  
> java.lang.StringIndexOutOfBoundsException: String index out of range: 1 after upgrade
to 1.0.3  version
> -------------------------------------------------------------------------------------------------------
>
>                 Key: EXTSCRIPT-165
>                 URL: https://issues.apache.org/jira/browse/EXTSCRIPT-165
>             Project: MyFaces Extensions Scripting
>          Issue Type: Bug
>          Components: MyFaces 2.0 Extension
>    Affects Versions: 1.0.3-FINAL
>         Environment: run on maven-jetty-plugin, MyFaces 2.1.7 CODI, OpenWebBeans, ExtScripting
1.0.3
> web.xml
> <listener>
> 		<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> 	</listener>
> 	 <description>MyProject web.xml</description>
>     <context-param>
>         <description>
>             Initializes the plugins for our groovy handlers
>         </description>
>         <param-name>org.apache.myfaces.FACES_INIT_PLUGINS</param-name>
>         <param-value>org.apache.myfaces.extensions.scripting.jsf.startup.StartupServletContextPluginChainLoader
>         </param-value>
>     </context-param>
>     <context-param>
>         <description>Additional comma separated loader paths to allow direct editing
on the sources directory instead
>             of the deployment dir
>         </description>
>         <param-name>org.apache.myfaces.extensions.scripting.java.LOADER_PATHS</param-name>
>         <param-value>D:/indygo/workspace/top/top-www/src/main/java</param-value>
>     </context-param>
>     <context-param>
>         <description>a redirecting Facelet resource resolver which allows to pick
up templates and resources from our
>             source dir
>         </description>
>         <param-name>facelets.RESOURCE_RESOLVER</param-name>
>         <param-value>org.apache.myfaces.extensions.scripting.jsf.facelet.MyFacesReroutingResourceResolver</param-value>
>     </context-param>
>            Reporter: Mirek
>            Assignee: Werner Punz
>            Priority: Blocker
>             Fix For: 1.0.4-SNAPSHOT
>
>
> After upgrading from 1.0.2 version to 1.0.3(change config) I got
> java.lang.StringIndexOutOfBoundsException: String index out of range: 1
> 	at java.lang.String.charAt(String.java:686)
> 	at java.util.regex.Matcher.appendReplacement(Matcher.java:703)
> 	at java.util.regex.Matcher.replaceAll(Matcher.java:813)
> 	at java.lang.String.replaceAll(String.java:2189)
> 	at org.apache.myfaces.extensions.scripting.core.monitor.ClassResource.needsRecompile(ClassResource.java:181)
> 	at org.apache.myfaces.extensions.scripting.core.engine.BaseEngine.scanForAddedDeleted(BaseEngine.java:110)
> 	at org.apache.myfaces.extensions.scripting.core.api.WeavingContext.fullScan(WeavingContext.java:307)
> 	at org.apache.myfaces.extensions.scripting.core.monitor.ResourceMonitor.performMonitoringTask(ResourceMonitor.java:131)
> 	at org.apache.myfaces.extensions.scripting.jsf.startup.StartupServletContextPluginChainLoader.preInit(StartupServletContextPluginChainLoader.java:62)
> 	at org.apache.myfaces.webapp.StartupServletContextListener.dispatchInitializationEvent(StartupServletContextListener.java:328)
> 	at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:118)
> 	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
> 	at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
> 	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
> 	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
> 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
> 	at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> 	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> 	at org.mortbay.jetty.Server.doStart(Server.java:224)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
> 	at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)
> 	at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)
> 	at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
> 	at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message