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

Problem running with Java 8 #11

Closed
syrinx2012 opened this issue Sep 15, 2014 · 1 comment
Closed

Problem running with Java 8 #11

syrinx2012 opened this issue Sep 15, 2014 · 1 comment

Comments

@syrinx2012
Copy link

Hi Henrique,

It seems like there is an issue with woinject on Java 8. We upgraded our server to Java 8 this weekend and my only app using wounit doesn't want to start. Are you aware of this problem?

Thanks a lot!

Martin

Exception in thread "main" java.lang.Error: Cannot initialize the application to take advantage of WOInject features.
at com.woinject.WOInject.init(WOInject.java:89)
at com.app.AppRunner.main(AppRunner.java:8)
Caused by: java.lang.RuntimeException: java.io.IOException: invalid constant type: 18 at 15
at javassist.CtClassType.getClassFile2(CtClassType.java:204)
at javassist.CtClassType.subtypeOf(CtClassType.java:304)
at javassist.CtClassType.subtypeOf(CtClassType.java:319)
at javassist.CtClassType.subtypeOf(CtClassType.java:315)
at javassist.CtClassType.subtypeOf(CtClassType.java:315)
at javassist.compiler.MemberResolver.compareSignature(MemberResolver.java:235)
at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:107)
at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:84)
at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:711)
at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:688)
at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:157)
at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46)
at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:242)
at javassist.compiler.CodeGen.compileExpr(CodeGen.java:229)
at javassist.compiler.CodeGen.atReturnStmnt2(CodeGen.java:598)
at javassist.compiler.JvstCodeGen.atReturnStmnt(JvstCodeGen.java:425)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:363)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
at javassist.compiler.Javac.compileStmnt(Javac.java:569)
at javassist.CtBehavior.insertBefore(CtBehavior.java:721)
at javassist.CtBehavior.insertBefore(CtBehavior.java:701)
at com.woinject.WOInject.init(WOInject.java:73)
... 1 more
Caused by: java.io.IOException: invalid constant type: 18 at 15
at javassist.bytecode.ConstPool.readOne(ConstPool.java:1044)
at javassist.bytecode.ConstPool.read(ConstPool.java:984)
at javassist.bytecode.ConstPool.(ConstPool.java:125)
at javassist.bytecode.ClassFile.read(ClassFile.java:770)
at javassist.bytecode.ClassFile.(ClassFile.java:114)
at javassist.CtClassType.getClassFile2(CtClassType.java:191)
... 24 more

@alextu
Copy link

alextu commented Oct 30, 2014

Hi, you should try with the latest version of javassist (3.18.2-GA)

@hprange hprange modified the milestone: woinject-1.1.1 Feb 4, 2015
@hprange hprange closed this as completed in ac68deb Feb 4, 2015
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