javassist.CannotCompileException: [source error] no such field: java

GitHub | foal | 3 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Obscure error message when writing source files but only jars on classpath

    GitHub | 11 months ago | udalrich
    ma.glasnost.orika.MappingException: java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Orika mapping to Hibernate entity throws exception

    Stack Overflow | 3 years ago | verhage
    javassist.NotFoundException: my.pkg.MyEntity$$EnhancerByCGLIB$$a7950497
  4. 0

    Exception with Orika Mapper + Gson (JSON) + MySQL

    Stack Overflow | 2 years ago
    java.lang.IllegalArgumentException: Attempt was made to generate assignment/setter code for [destination.bytes(byte[])] which has no setter/assignment method

    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. javassist.compiler.CompileError

      no such field: java

      at javassist.compiler.MemberResolver.lookupField()
    2. Javassist
      CtNewMethod.make
      1. javassist.compiler.MemberResolver.lookupField(MemberResolver.java:313)
      2. javassist.compiler.MemberResolver.lookupFieldByJvmName(MemberResolver.java:299)
      3. javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:876)
      4. javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:803)
      5. javassist.compiler.TypeChecker.atExpr(TypeChecker.java:578)
      6. javassist.compiler.ast.Expr.accept(Expr.java:68)
      7. javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:860)
      8. javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:803)
      9. javassist.compiler.TypeChecker.atExpr(TypeChecker.java:578)
      10. javassist.compiler.ast.Expr.accept(Expr.java:68)
      11. javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:665)
      12. javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:157)
      13. javassist.compiler.ast.CallExpr.accept(CallExpr.java:46)
      14. javassist.compiler.TypeChecker.booleanExpr(TypeChecker.java:518)
      15. javassist.compiler.TypeChecker.atBinExpr(TypeChecker.java:337)
      16. javassist.compiler.ast.BinExpr.accept(BinExpr.java:41)
      17. javassist.compiler.TypeChecker.booleanExpr(TypeChecker.java:527)
      18. javassist.compiler.TypeChecker.atBinExpr(TypeChecker.java:337)
      19. javassist.compiler.ast.BinExpr.accept(BinExpr.java:41)
      20. javassist.compiler.TypeChecker.booleanExpr(TypeChecker.java:523)
      21. javassist.compiler.TypeChecker.atExpr(TypeChecker.java:592)
      22. javassist.compiler.ast.Expr.accept(Expr.java:68)
      23. javassist.compiler.TypeChecker.booleanExpr(TypeChecker.java:527)
      24. javassist.compiler.TypeChecker.atBinExpr(TypeChecker.java:337)
      25. javassist.compiler.ast.BinExpr.accept(BinExpr.java:41)
      26. javassist.compiler.TypeChecker.booleanExpr(TypeChecker.java:526)
      27. javassist.compiler.TypeChecker.atBinExpr(TypeChecker.java:337)
      28. javassist.compiler.ast.BinExpr.accept(BinExpr.java:41)
      29. javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:242)
      30. javassist.compiler.CodeGen.compileBooleanExpr(CodeGen.java:236)
      31. javassist.compiler.CodeGen.atIfStmnt(CodeGen.java:384)
      32. javassist.compiler.CodeGen.atStmnt(CodeGen.java:355)
      33. javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
      34. javassist.compiler.CodeGen.atStmnt(CodeGen.java:351)
      35. javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
      36. javassist.compiler.CodeGen.atWhileStmnt(CodeGen.java:437)
      37. javassist.compiler.CodeGen.atStmnt(CodeGen.java:357)
      38. javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
      39. javassist.compiler.CodeGen.atStmnt(CodeGen.java:351)
      40. javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
      41. javassist.compiler.CodeGen.atIfStmnt(CodeGen.java:398)
      42. javassist.compiler.CodeGen.atStmnt(CodeGen.java:355)
      43. javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
      44. javassist.compiler.CodeGen.atStmnt(CodeGen.java:351)
      45. javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
      46. javassist.compiler.CodeGen.atMethodBody(CodeGen.java:292)
      47. javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:274)
      48. javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:44)
      49. javassist.compiler.Javac.compileMethod(Javac.java:169)
      50. javassist.compiler.Javac.compile(Javac.java:95)
      51. javassist.CtNewMethod.make(CtNewMethod.java:74)
      52. javassist.CtNewMethod.make(CtNewMethod.java:45)
      52 frames
    3. Orika - core
      DefaultMapperFactory.getMapperFacade
      1. ma.glasnost.orika.impl.generator.JavassistCompilerStrategy.compileClass(JavassistCompilerStrategy.java:254)
      2. ma.glasnost.orika.impl.generator.SourceCodeContext.compileClass(SourceCodeContext.java:245)
      3. ma.glasnost.orika.impl.generator.SourceCodeContext.getInstance(SourceCodeContext.java:262)
      4. ma.glasnost.orika.impl.generator.MapperGenerator.build(MapperGenerator.java:73)
      5. ma.glasnost.orika.impl.DefaultMapperFactory.buildMapper(DefaultMapperFactory.java:1333)
      6. ma.glasnost.orika.impl.DefaultMapperFactory.build(DefaultMapperFactory.java:1160)
      7. ma.glasnost.orika.impl.DefaultMapperFactory.getMapperFacade(DefaultMapperFactory.java:820)
      7 frames
    4. org.jresearch.orika
      OrikaSpringMapper.configure
      1. org.jresearch.orika.spring.OrikaSpringMapper.configure(OrikaSpringMapper.java:91)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
      4. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
      5. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
      6. java.lang.reflect.Method.invoke(Method.java:498)
      6 frames
    6. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
      2. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:311)
      3. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:134)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1581)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:554)
      7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
      8. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
      9. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      10. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
      11. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
      12. org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:207)
      13. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1136)
      14. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064)
      15. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
      16. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
      17. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
      18. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1225)
      19. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:552)
      20. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
      21. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
      22. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      23. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
      24. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      25. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)
      25 frames
    7. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
      2. org.springframework.context.support.AbstractApplicationContext.__refresh(AbstractApplicationContext.java:542)
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java)
      3 frames
    8. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
      2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
      3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
      3 frames
    9. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
      5 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames