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

cannot inherit from final class.. #20153

Closed
stianSjoli opened this issue Mar 28, 2016 · 8 comments
Closed

cannot inherit from final class.. #20153

stianSjoli opened this issue Mar 28, 2016 · 8 comments
Milestone

Comments

@stianSjoli
Copy link

Hey,
I am suddenly getting this error while trying to follow some of your code in the higher level server API. Any new changes making it a problem?

Exception in thread "main" java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at akka.http.impl.settings.ParserSettingsImpl$.fromSubConfig(ParserSettingsImpl.scala:63)
at akka.http.impl.settings.ParserSettingsImpl$.fromSubConfig(ParserSettingsImpl.scala:53)
at akka.http.impl.util.SettingsCompanion.apply(SettingsCompanion.scala:44)
at akka.http.scaladsl.settings.ParserSettings$.apply(ParserSettings.scala:122)
at akka.http.scaladsl.settings.ParserSettings$.apply(ParserSettings.scala:95)
at akka.http.scaladsl.settings.SettingsCompanion$class.apply(SettingsCompanion.scala:16)
at akka.http.scaladsl.settings.ParserSettings$.apply(ParserSettings.scala:95)
at akka.http.scaladsl.settings.SettingsCompanion$class.default(SettingsCompanion.scala:17)
at akka.http.scaladsl.settings.ParserSettings$.default(ParserSettings.scala:95)
at HttpAkka$.run(HttpAkka.scala:39)
at CmdUI$.main(CmdUI.scala:12)

@ktoso
Copy link
Member

ktoso commented Mar 28, 2016

Please include your config and akka version

@stianSjoli
Copy link
Author

I think maybe I got it to work after all. I will remove the issue, and resubmit if I get it again..

@ktoso
Copy link
Member

ktoso commented Mar 28, 2016

Sure, thanks. Please explain though what the issue was – in case someone bumps into the same thing 😉

@ktoso ktoso closed this as completed Mar 28, 2016
@ktoso ktoso added this to the invalid milestone Mar 28, 2016
@ryanskinner
Copy link

I hit this exact same issue. How was it resolved? @stianSjoli

@ktoso
Copy link
Member

ktoso commented Apr 6, 2016

Most likely you're mixing versions of Akka – please make sure all dependencies are of the same version, i.e. 2.4.3

@stianSjoli
Copy link
Author

yes, I believe I changed my dependencies - dependencies are all over the
place (some experimental etc. etc.)

On Wed, Apr 6, 2016 at 6:58 PM, Konrad Malawski notifications@github.com
wrote:

Most likely you're mixing versions of Akka – please make sure all
dependencies are of the same version, i.e. 2.4.3


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#20153 (comment)

@ktoso
Copy link
Member

ktoso commented Apr 6, 2016

Please keep "the akka version" consistent though, you can't pick and choose "version X actor, but version Y cluster" – that may end up on weird things.

We do guarantee binary compatibility between versions (which libraries care about mostly), but please don't use werid mixes of versions :)

@ryanskinner
Copy link

I was able to figure it out as well and it was that I needed to move off of some of the "experimental" jars. Thanks all for the help.

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

No branches or pull requests

3 participants