java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Atlassian JIRA | Brydie McCoy [Atlassian] | 5 years ago
  1. 0

    In our functional tests for the JBAM plugin we are seeing a lot of these: {code} 2011-07-20 05:35:42,877 http-1990-10 ERROR admin 335x3699x1 17byk3d 127.0.0.1 /browse/RZQIR [velocity] Method formatDMY threw exception for reference $outlookdate in template templates/plugins/jira/projectpanels/versions-panel.vm at [47,50] 2011-07-20 05:35:42,877 http-1990-10 ERROR admin 335x3699x1 17byk3d 127.0.0.1 /browse/RZQIR [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) at com.atlassian.jira.timezone.TimeZoneServiceImpl.getRegionFromTimeZoneId(TimeZoneServiceImpl.java:86) at com.atlassian.jira.timezone.TimeZoneServiceImpl.getTimeZoneInfo(TimeZoneServiceImpl.java:138) at com.atlassian.jira.timezone.TimeZoneServiceImpl.getJVMTimeZoneInfo(TimeZoneServiceImpl.java:145) at com.atlassian.jira.timezone.TimeZoneServiceImpl.getDefaultTimeZoneInfo(TimeZoneServiceImpl.java:49) at com.atlassian.jira.timezone.TimeZoneServiceImpl.getUserTimeZoneInfo(TimeZoneServiceImpl.java:223) at com.atlassian.jira.timezone.TimeZoneServiceCachingDecorator.getUserTimeZoneInfo(TimeZoneServiceCachingDecorator.java:87) at com.atlassian.jira.datetime.DateTimeFormatterFactoryImpl$SettingsSupplier.timeZoneFor(DateTimeFormatterFactoryImpl.java:173) at com.atlassian.jira.datetime.DateTimeFormatterImpl$AuthContextTimeZone.get(DateTimeFormatterImpl.java:195) at com.atlassian.jira.datetime.DateTimeFormatterImpl$AuthContextTimeZone.get(DateTimeFormatterImpl.java:190) at com.atlassian.jira.datetime.DateTimeFormatterImpl.format(DateTimeFormatterImpl.java:48) at com.atlassian.jira.web.util.OutlookDate.formatDMY(OutlookDate.java:211) 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.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:234) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:422) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:56) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:109) at com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel.getHtml(AbstractProjectTabPanel.java:41) at com.atlassian.jira.plugin.projectpanel.impl.VersionsProjectTabPanel.getHtml(VersionsProjectTabPanel.java:59) at com.atlassian.jira.web.action.browser.BrowseProject.getTabHtml(BrowseProject.java:275) 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 webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.util.ValueStack.findValue(ValueStack.java:414) at webwork.util.ValueStack.findValue(ValueStack.java:213) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:62) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at org.apache.jsp.secure.views.browser.browseproject_jsp._jspx_meth_ww_005fproperty_005f18(browseproject_jsp.java:993) at org.apache.jsp.secure.views.browser.browseproject_jsp._jspService(browseproject_jsp.java:337) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) {code} It may be completely unrelated but there was also this one during start up {code} 2011-07-20 05:31:22,951 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /media/ephemeral0/bamboo-working-dir/BPLUG-JBAM-JIRA44/target/jira/home/plugins/.bundled-plugins/jira-ical-feed-1.0.1.jar (1308382942000) created java.lang.ArrayIndexOutOfBoundsException: -31163 at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:213) at aQute.lib.osgi.Clazz.<init>(Clazz.java:65) at aQute.lib.osgi.Processor.analyzeJar(Processor.java:159) at aQute.lib.osgi.Processor.analyzeBundleClasspath(Processor.java:97) at aQute.lib.osgi.Analyzer.analyze(Analyzer.java:194) at aQute.lib.osgi.Builder.analyze(Builder.java:94) at aQute.lib.osgi.Analyzer.calcManifest(Analyzer.java:293) at com.atlassian.plugin.osgi.factory.transform.stage.GenerateManifestStage.execute(GenerateManifestStage.java:154) at com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer.transform(DefaultPluginTransformer.java:200) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.createOsgiPluginJar(OsgiPluginFactory.java:298) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:246) at com.atlassian.jira.plugin.MasterPluginFactory.create(MasterPluginFactory.java:78) at com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:116) at com.atlassian.plugin.loaders.ScanningPluginLoader.loadAllPlugins(ScanningPluginLoader.java:89) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:136) at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:61) at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:684) at com.atlassian.jira.ComponentManager.startPluginSystem(ComponentManager.java:243) at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:236) at com.atlassian.jira.ComponentManager.start(ComponentManager.java:221) at com.atlassian.jira.upgrade.PluginSystemLauncher.start(PluginSystemLauncher.java:23) at com.atlassian.jira.startup.DefaultJiraLauncher$3.run(DefaultJiraLauncher.java:101) at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:250) at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:149) at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:94) at com.atlassian.jira.startup.DefaultJiraLauncher.access$100(DefaultJiraLauncher.java:24) at com.atlassian.jira.startup.DefaultJiraLauncher$1.run(DefaultJiraLauncher.java:61) at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:33) at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:56) at com.atlassian.jira.startup.LauncherContextListener$1.create(LauncherContextListener.java:57) at com.atlassian.jira.startup.LauncherContextListener$1.create(LauncherContextListener.java:52) at com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.get(MultiTenantComponentMapImpl.java:121) at com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.onTenantStart(MultiTenantComponentMapImpl.java:165) at com.atlassian.multitenant.impl.DefaultMultiTenantManager$1.consume(DefaultMultiTenantManager.java:134) at com.atlassian.multitenant.impl.DefaultMultiTenantManager$1.consume(DefaultMultiTenantManager.java:131) at com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForEachListener(DefaultMultiTenantManager.java:256) at com.atlassian.multitenant.impl.DefaultMultiTenantManager.startTenant(DefaultMultiTenantManager.java:130) at com.atlassian.multitenant.impl.DefaultMultiTenantManager.startAll(DefaultMultiTenantManager.java:203) at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:85) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) {code} I will attach the full logs.

    Atlassian JIRA | 5 years ago | Brydie McCoy [Atlassian]
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. 0

    In our functional tests for the JBAM plugin we are seeing a lot of these: {code} 2011-07-20 05:35:42,877 http-1990-10 ERROR admin 335x3699x1 17byk3d 127.0.0.1 /browse/RZQIR [velocity] Method formatDMY threw exception for reference $outlookdate in template templates/plugins/jira/projectpanels/versions-panel.vm at [47,50] 2011-07-20 05:35:42,877 http-1990-10 ERROR admin 335x3699x1 17byk3d 127.0.0.1 /browse/RZQIR [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) at com.atlassian.jira.timezone.TimeZoneServiceImpl.getRegionFromTimeZoneId(TimeZoneServiceImpl.java:86) at com.atlassian.jira.timezone.TimeZoneServiceImpl.getTimeZoneInfo(TimeZoneServiceImpl.java:138) at com.atlassian.jira.timezone.TimeZoneServiceImpl.getJVMTimeZoneInfo(TimeZoneServiceImpl.java:145) at com.atlassian.jira.timezone.TimeZoneServiceImpl.getDefaultTimeZoneInfo(TimeZoneServiceImpl.java:49) at com.atlassian.jira.timezone.TimeZoneServiceImpl.getUserTimeZoneInfo(TimeZoneServiceImpl.java:223) at com.atlassian.jira.timezone.TimeZoneServiceCachingDecorator.getUserTimeZoneInfo(TimeZoneServiceCachingDecorator.java:87) at com.atlassian.jira.datetime.DateTimeFormatterFactoryImpl$SettingsSupplier.timeZoneFor(DateTimeFormatterFactoryImpl.java:173) at com.atlassian.jira.datetime.DateTimeFormatterImpl$AuthContextTimeZone.get(DateTimeFormatterImpl.java:195) at com.atlassian.jira.datetime.DateTimeFormatterImpl$AuthContextTimeZone.get(DateTimeFormatterImpl.java:190) at com.atlassian.jira.datetime.DateTimeFormatterImpl.format(DateTimeFormatterImpl.java:48) at com.atlassian.jira.web.util.OutlookDate.formatDMY(OutlookDate.java:211) 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.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:234) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:422) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:56) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:109) at com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel.getHtml(AbstractProjectTabPanel.java:41) at com.atlassian.jira.plugin.projectpanel.impl.VersionsProjectTabPanel.getHtml(VersionsProjectTabPanel.java:59) at com.atlassian.jira.web.action.browser.BrowseProject.getTabHtml(BrowseProject.java:275) 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 webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.util.ValueStack.findValue(ValueStack.java:414) at webwork.util.ValueStack.findValue(ValueStack.java:213) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:62) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at org.apache.jsp.secure.views.browser.browseproject_jsp._jspx_meth_ww_005fproperty_005f18(browseproject_jsp.java:993) at org.apache.jsp.secure.views.browser.browseproject_jsp._jspService(browseproject_jsp.java:337) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) {code} It may be completely unrelated but there was also this one during start up {code} 2011-07-20 05:31:22,951 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /media/ephemeral0/bamboo-working-dir/BPLUG-JBAM-JIRA44/target/jira/home/plugins/.bundled-plugins/jira-ical-feed-1.0.1.jar (1308382942000) created java.lang.ArrayIndexOutOfBoundsException: -31163 at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:213) at aQute.lib.osgi.Clazz.<init>(Clazz.java:65) at aQute.lib.osgi.Processor.analyzeJar(Processor.java:159) at aQute.lib.osgi.Processor.analyzeBundleClasspath(Processor.java:97) at aQute.lib.osgi.Analyzer.analyze(Analyzer.java:194) at aQute.lib.osgi.Builder.analyze(Builder.java:94) at aQute.lib.osgi.Analyzer.calcManifest(Analyzer.java:293) at com.atlassian.plugin.osgi.factory.transform.stage.GenerateManifestStage.execute(GenerateManifestStage.java:154) at com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer.transform(DefaultPluginTransformer.java:200) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.createOsgiPluginJar(OsgiPluginFactory.java:298) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:246) at com.atlassian.jira.plugin.MasterPluginFactory.create(MasterPluginFactory.java:78) at com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:116) at com.atlassian.plugin.loaders.ScanningPluginLoader.loadAllPlugins(ScanningPluginLoader.java:89) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:136) at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:61) at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:684) at com.atlassian.jira.ComponentManager.startPluginSystem(ComponentManager.java:243) at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:236) at com.atlassian.jira.ComponentManager.start(ComponentManager.java:221) at com.atlassian.jira.upgrade.PluginSystemLauncher.start(PluginSystemLauncher.java:23) at com.atlassian.jira.startup.DefaultJiraLauncher$3.run(DefaultJiraLauncher.java:101) at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:250) at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:149) at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:94) at com.atlassian.jira.startup.DefaultJiraLauncher.access$100(DefaultJiraLauncher.java:24) at com.atlassian.jira.startup.DefaultJiraLauncher$1.run(DefaultJiraLauncher.java:61) at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:33) at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:56) at com.atlassian.jira.startup.LauncherContextListener$1.create(LauncherContextListener.java:57) at com.atlassian.jira.startup.LauncherContextListener$1.create(LauncherContextListener.java:52) at com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.get(MultiTenantComponentMapImpl.java:121) at com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.onTenantStart(MultiTenantComponentMapImpl.java:165) at com.atlassian.multitenant.impl.DefaultMultiTenantManager$1.consume(DefaultMultiTenantManager.java:134) at com.atlassian.multitenant.impl.DefaultMultiTenantManager$1.consume(DefaultMultiTenantManager.java:131) at com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForEachListener(DefaultMultiTenantManager.java:256) at com.atlassian.multitenant.impl.DefaultMultiTenantManager.startTenant(DefaultMultiTenantManager.java:130) at com.atlassian.multitenant.impl.DefaultMultiTenantManager.startAll(DefaultMultiTenantManager.java:203) at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:85) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) {code} I will attach the full logs.

    Atlassian JIRA | 5 years ago | Brydie McCoy [Atlassian]
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  3. 0

    Steps to reproduce : # Add a DBList property ('propName') to class X # Make sure 'Use suggest' is checked # Make sure 'Display Type' is set on 'input' # Add the following query : {code} select doc.fullName,doc.title from XWikiDocument as doc {code} # Save the class # Create a sheet for class X and display the property : {code} $doc.display('propName') {code} # Add an object of type X to document Y # Edit document Y (in inline mode) The result is empty, but there is the following error in logs : {code} WARN c.x.x.d.XWikiDocument - Failed to display field [propName] in [edit] mode for Object of Class [xwiki:Main.Y] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) ~[na:1.6.0_37] at com.xpn.xwiki.objects.classes.DBListClass.getValue(DBListClass.java:448) ~[xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.objects.classes.DBListClass.displayEdit(DBListClass.java:513) ~[xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2810) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2749) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2698) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2675) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2648) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.api.Document.display(Document.java:1407) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_37] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_37] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_37] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_37] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) [velocity-1.7.jar:1.7] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) [velocity-1.7.jar:1.7] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124) [xwiki-platform-rendering-macro-velocity-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:50) [xwiki-platform-rendering-macro-velocity-4.5-milestone-1.jar:na] at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:302) [xwiki-platform-rendering-macro-script-4.5-milestone-1.jar:na] at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:198) [xwiki-platform-rendering-macro-script-4.5-milestone-1.jar:na] at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:59) [xwiki-platform-rendering-macro-script-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:185) [xwiki-rendering-transformation-macro-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:132) [xwiki-rendering-transformation-macro-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:87) [xwiki-rendering-legacy-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:250) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:253) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.applySheet(SheetDocumentDisplayer.java:212) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.maybeDisplayWithSheet(SheetDocumentDisplayer.java:164) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:102) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:917) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:896) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:927) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:603) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_37] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_37] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_37] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_37] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) [velocity-1.7.jar:1.7] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) [velocity-1.7.jar:1.7] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluate(DefaultPrivilegedTemplateRenderer.java:125) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluateTemplate(DefaultPrivilegedTemplateRenderer.java:75) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1769) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1709) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:854) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_37] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_37] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) [velocity-1.7.jar:1.7] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) [velocity-1.7.jar:1.7] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluate(DefaultPrivilegedTemplateRenderer.java:125) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluateTemplate(DefaultPrivilegedTemplateRenderer.java:75) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1769) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:155) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:241) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) [struts-1.2.9.jar:1.2.9] at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [servlet-api-2.5.jar:2.5] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5.jar:2.5] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) [xwiki-platform-wysiwyg-server-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) [xwiki-platform-webdav-server-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) [xwiki-platform-container-servlet-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) [xwiki-platform-container-servlet-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517) [jetty-security-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.Server.handle(Server.java:346) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601) [jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214) [jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535) [jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) [jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529) [jetty-util-7.4.5.v20110725.jar:7.4.5.v20110725] at java.lang.Thread.run(Thread.java:680) [na:1.6.0_37] {code}

    XWiki.org JIRA | 4 years ago | Raluca Stavro
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem with wicketstuff-TinyMCE 1.4.19 lazyloading in windows

    GitHub | 5 years ago | Flygefisk
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  6. 0

    A fresh CAS instance

    GitHub | 3 years ago | jtal
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1

  1. archenroot 17 times, last 2 weeks ago
  2. Alexandru Popa 2 times, last 3 weeks ago
  3. poroszd 3 times, last 4 weeks ago
  4. DoktorDoener666 6 times, last 1 month ago
  5. eti22 3 times, last 1 month ago
16 more registered users
58 unregistered visitors
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.StringIndexOutOfBoundsException

    String index out of range: -1

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1937)
    1 frame
  3. com.atlassian.jira
    OutlookDate.formatDMY
    1. com.atlassian.jira.timezone.TimeZoneServiceImpl.getRegionFromTimeZoneId(TimeZoneServiceImpl.java:86)
    2. com.atlassian.jira.timezone.TimeZoneServiceImpl.getTimeZoneInfo(TimeZoneServiceImpl.java:138)
    3. com.atlassian.jira.timezone.TimeZoneServiceImpl.getJVMTimeZoneInfo(TimeZoneServiceImpl.java:145)
    4. com.atlassian.jira.timezone.TimeZoneServiceImpl.getDefaultTimeZoneInfo(TimeZoneServiceImpl.java:49)
    5. com.atlassian.jira.timezone.TimeZoneServiceImpl.getUserTimeZoneInfo(TimeZoneServiceImpl.java:223)
    6. com.atlassian.jira.timezone.TimeZoneServiceCachingDecorator.getUserTimeZoneInfo(TimeZoneServiceCachingDecorator.java:87)
    7. com.atlassian.jira.datetime.DateTimeFormatterFactoryImpl$SettingsSupplier.timeZoneFor(DateTimeFormatterFactoryImpl.java:173)
    8. com.atlassian.jira.datetime.DateTimeFormatterImpl$AuthContextTimeZone.get(DateTimeFormatterImpl.java:195)
    9. com.atlassian.jira.datetime.DateTimeFormatterImpl$AuthContextTimeZone.get(DateTimeFormatterImpl.java:190)
    10. com.atlassian.jira.datetime.DateTimeFormatterImpl.format(DateTimeFormatterImpl.java:48)
    11. com.atlassian.jira.web.util.OutlookDate.formatDMY(OutlookDate.java:211)
    11 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. Apache Velocity
    VelocityEngine.mergeTemplate
    1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:234)
    2. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:203)
    3. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
    4. org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)
    5. org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51)
    6. org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95)
    7. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
    8. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
    9. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
    10. org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
    11. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
    12. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
    13. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
    14. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89)
    15. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
    16. org.apache.velocity.Template.merge(Template.java:256)
    17. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:422)
    17 frames
  6. com.atlassian.velocity
    DefaultVelocityManager.getEncodedBody
    1. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77)
    2. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61)
    3. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:56)
    3 frames
  7. com.atlassian.jira
    BrowseProject.getTabHtml
    1. com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:109)
    2. com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel.getHtml(AbstractProjectTabPanel.java:41)
    3. com.atlassian.jira.plugin.projectpanel.impl.VersionsProjectTabPanel.getHtml(VersionsProjectTabPanel.java:59)
    4. com.atlassian.jira.web.action.browser.BrowseProject.getTabHtml(BrowseProject.java:275)
    4 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  9. webwork.util
    ValueStack.findValue
    1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
    2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
    3. webwork.util.ValueStack.findValue(ValueStack.java:414)
    4. webwork.util.ValueStack.findValue(ValueStack.java:213)
    4 frames
  10. webwork.view.taglib
    BasicPropertyTag.doStartTag
    1. webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:62)
    2. webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54)
    2 frames
  11. org.apache.jsp
    browseproject_jsp._jspService
    1. org.apache.jsp.secure.views.browser.browseproject_jsp._jspx_meth_ww_005fproperty_005f18(browseproject_jsp.java:993)
    2. org.apache.jsp.secure.views.browser.browseproject_jsp._jspService(browseproject_jsp.java:337)
    2 frames
  12. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  13. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  14. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    3 frames
  15. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  16. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  17. com.atlassian.plugin
    DelegatingPluginFilter$1.doFilter
    1. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
    2. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
    2 frames
  18. com.atlassian.applinks
    ContextFilter.doFilter
    1. com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)
    1 frame
  19. com.atlassian.plugin
    ServletFilterModuleContainerFilter.doFilter
    1. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
    2. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
    3. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)
    4. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)
    4 frames
  20. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  21. com.atlassian.plugin
    ServletFilterModuleContainerFilter.doFilter
    1. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
    2. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)
    2 frames