Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.9.1.RC3 Regression] java.lang.VerifyError: class scala.Boolean overrides final method getClass.()Ljava/lang/Class; #4931

Closed
scabug opened this issue Aug 20, 2011 · 4 comments
Assignees

Comments

@scabug
Copy link

@scabug scabug commented Aug 20, 2011

When I launch Tomcat with a WAR that includes the Scala library from Scala 2.9.1 RC3, I get a VerifyError:

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Aug 20, 2011

Imported From: https://issues.scala-lang.org/browse/SI-4931?orig=1
Reporter: @ijuma
Affected Versions: 2.9.1

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Aug 20, 2011

@ijuma said:
This was submitted while I was still editing. Personally this is a must fix before the final release of 2.9.1.

The full error is:

Aug 20, 2011 12:31:06 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive ROOT.war
java.lang.VerifyError: class scala.Boolean overrides final method getClass.()Ljava/lang/Class;
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1148)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1643)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
        at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:1956)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1919)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1806)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1765)
        at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1751)
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1255)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:882)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:317)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5081)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:379)
        at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:324)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041)
        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Aug 20, 2011

Commit Message Bot (anonymous) said:
(extempore in r25531) Kludge: don't let getClass make it into bytecode.
References #4931, no review.

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Aug 21, 2011

Commit Message Bot (anonymous) said:
(extempore in r25534) Maybe that last commit was closer than I thought. Don't let
0-arg getClass reach bytecode. References #4931, no review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.