Jetty 运行报错,java.lang.ArrayIndexOutOfBoundsException: 32935 at org.objectweb.asm.ClassReader.<...

1. 错误log

java.lang.ArrayIndexOutOfBoundsException: 32935
    at org.objectweb.asm.ClassReader. (Unknown Source)
    at org.objectweb.asm.ClassReader. (Unknown Source)
    at org.objectweb.asm.ClassReader. (Unknown Source)
    at org.eclipse.jetty.annotations.AnnotationParser.scanClass (AnnotationParser.java:898)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:755)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:744)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:744)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:744)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:744)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:744)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:744)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:744)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:744)
    at org.mortbay.jetty.plugin.MavenAnnotationConfiguration.doParse (MavenAnnotationConfiguration.java:73)
    at org.mortbay.jetty.plugin.MavenAnnotationConfiguration.parseWebInfClasses (MavenAnnotationConfiguration.java:52)
    at org.eclipse.jetty.annotations.AnnotationConfiguration.configure (AnnotationConfiguration.java:119)
    at org.eclipse.jetty.webapp.WebAppContext.configure (WebAppContext.java:468)
    at org.eclipse.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1237)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.java:717)
    at org.eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:494)
    at org.mortbay.jetty.plugin.JettyWebAppContext.doStart (JettyWebAppContext.java:298)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerCollection.doStart (HandlerCollection.java:229)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart (ContextHandlerCollection.java:172)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerCollection.doStart (HandlerCollection.java:229)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart (HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart (Server.java:282)
    at org.mortbay.jetty.plugin.JettyServer.doStart (JettyServer.java:65)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:520)
    at org.mortbay.jetty.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:365)
    at org.mortbay.jetty.plugin.JettyRunMojo.execute (JettyRunMojo.java:523)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
    at org.codehaus.classworlds.Launcher.main (Launcher.java:47)

2. 解决方式

升级jetty-maven-plugin版本


    org.eclipse.jetty
    jetty-maven-plugin
    9.4.26.v20200117

你可能感兴趣的:(Jetty 运行报错,java.lang.ArrayIndexOutOfBoundsException: 32935 at org.objectweb.asm.ClassReader.<...)