java.lang.ArrayIndexOutOfBoundsException: -31163

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.ArrayIndexOutOfBoundsException: -31163
  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.ArrayIndexOutOfBoundsException: -31163
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    This exception occurs in the BND tool while scanning the classes in order to calculate the package imports. {code} 2011-05-26 15:20:53,323 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /source/com/atlassian/studio/trunk/studio-fireball/target/home/jira-home/plugins/.bundled-plugins/jira-ical-feed-1.0.jar (1303156310000) 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:302) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:250) 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:150) at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:59) at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:1380) at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:254) at com.atlassian.jira.ComponentManager.start(ComponentManager.java:237) at com.atlassian.jira.upgrade.ConsistencyLauncher.launchConsistencyChecker(ConsistencyLauncher.java:61) at com.atlassian.jira.upgrade.ConsistencyLauncher.start(ConsistencyLauncher.java:39) at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:39) 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 attached the com.atlassian.jira.extra:jira-ical-feed:1.0 artifact causing the problem, maybe it helps isolating the bug in BND or to improve the exception handling.- Edit (BRENDEN): This is actually caused when generating the OSGi manafest in JIM (and not the ical plugin like we have thought). After talking to Pawel Niewiadomski it looks like he has seen this error for a while and it causes not problems for JIM. The exception is thrown while trying to process "org/sqlite/SQLite" for its dependencies. BND actually catches the exception logs it and then continues onto the other classes in the plugin. This causes no problems for JIM because SQLite has no external dependencies. This is a bug in the bndlib that we ship in JIRA (0.0.255) and the one used by AMPS (0.0.311). It appears to be fixed in (0.0.357). There in BND there is a class called {{Clazz}} that is designed to parse a Java Class File. It does this: {code} for (Iterator e = classes.iterator(); e.hasNext();) { int class_index = ((Integer) e.next()).shortValue(); doClassReference((String) pool[class_index]); } {code} This is broken because pool (Java Constant Pool) is indexed by an unsigned 16-bit integer but this code tries to index it by a signed 16-bit integer which is where the negative comes from. This bug will happen with any class with a large constant pool (e.g. a large class). JIRA seems to ship {{Clazz}} twice: once as an OSGi bundle in bundled plugins and once in atlassian-plugins-osgi. Both have the bug. The AMPS plugin uses maven-bundle-plugin-2.0.0 -> bndlib-0.0.311 which also has the bug (the source of bndlib-0.0.311 is incorrect and does not match its actual artifact). AMPS appears to have maven-bundle-plugin-2.0.0 hardcoded internally which makes it hard to choose another version from a POM. I guess we have to update BND everywhere we use this.

    Ecosystem JIRA | 6 years ago | Fabian Kraemer
    java.lang.ArrayIndexOutOfBoundsException: -31163

    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.ArrayIndexOutOfBoundsException

      -31163

      at aQute.lib.osgi.Clazz.parseClassFile()
    2. aQute
      Analyzer.calcManifest
      1. aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:213)
      2. aQute.lib.osgi.Clazz.<init>(Clazz.java:65)
      3. aQute.lib.osgi.Processor.analyzeJar(Processor.java:159)
      4. aQute.lib.osgi.Processor.analyzeBundleClasspath(Processor.java:97)
      5. aQute.lib.osgi.Analyzer.analyze(Analyzer.java:194)
      6. aQute.lib.osgi.Builder.analyze(Builder.java:94)
      7. aQute.lib.osgi.Analyzer.calcManifest(Analyzer.java:293)
      7 frames
    3. com.atlassian.plugin
      OsgiPluginFactory.create
      1. com.atlassian.plugin.osgi.factory.transform.stage.GenerateManifestStage.execute(GenerateManifestStage.java:154)
      2. com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer.transform(DefaultPluginTransformer.java:200)
      3. com.atlassian.plugin.osgi.factory.OsgiPluginFactory.createOsgiPluginJar(OsgiPluginFactory.java:298)
      4. com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:246)
      4 frames
    4. com.atlassian.jira
      MasterPluginFactory.create
      1. com.atlassian.jira.plugin.MasterPluginFactory.create(MasterPluginFactory.java:78)
      1 frame
    5. com.atlassian.plugin
      DefaultPluginManager.init
      1. com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:116)
      2. com.atlassian.plugin.loaders.ScanningPluginLoader.loadAllPlugins(ScanningPluginLoader.java:89)
      3. com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:136)
      3 frames
    6. com.atlassian.jira
      LauncherContextListener$1.create
      1. com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:61)
      2. com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:684)
      3. com.atlassian.jira.ComponentManager.startPluginSystem(ComponentManager.java:243)
      4. com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:236)
      5. com.atlassian.jira.ComponentManager.start(ComponentManager.java:221)
      6. com.atlassian.jira.upgrade.PluginSystemLauncher.start(PluginSystemLauncher.java:23)
      7. com.atlassian.jira.startup.DefaultJiraLauncher$3.run(DefaultJiraLauncher.java:101)
      8. com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:250)
      9. com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:149)
      10. com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:94)
      11. com.atlassian.jira.startup.DefaultJiraLauncher.access$100(DefaultJiraLauncher.java:24)
      12. com.atlassian.jira.startup.DefaultJiraLauncher$1.run(DefaultJiraLauncher.java:61)
      13. com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:33)
      14. com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:56)
      15. com.atlassian.jira.startup.LauncherContextListener$1.create(LauncherContextListener.java:57)
      16. com.atlassian.jira.startup.LauncherContextListener$1.create(LauncherContextListener.java:52)
      16 frames
    7. com.atlassian.multitenant
      DefaultMultiTenantManager.startAll
      1. com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.get(MultiTenantComponentMapImpl.java:121)
      2. com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.onTenantStart(MultiTenantComponentMapImpl.java:165)
      3. com.atlassian.multitenant.impl.DefaultMultiTenantManager$1.consume(DefaultMultiTenantManager.java:134)
      4. com.atlassian.multitenant.impl.DefaultMultiTenantManager$1.consume(DefaultMultiTenantManager.java:131)
      5. com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForEachListener(DefaultMultiTenantManager.java:256)
      6. com.atlassian.multitenant.impl.DefaultMultiTenantManager.startTenant(DefaultMultiTenantManager.java:130)
      7. com.atlassian.multitenant.impl.DefaultMultiTenantManager.startAll(DefaultMultiTenantManager.java:203)
      7 frames
    8. com.atlassian.jira
      LauncherContextListener.contextInitialized
      1. com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:85)
      1 frame
    9. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
      3. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      4. org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
      5. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      6. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      7. org.apache.catalina.core.StandardService.start(StandardService.java:516)
      8. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      9. org.apache.catalina.startup.Catalina.start(Catalina.java:583)
      9 frames
    10. 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
    11. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      2 frames