M. Teasdale February 2016

How do I correct "Injection of autowired dependencies failed; nested exception is java.lang.NoSuchFieldError"

I'm using IntelliJ IDEA 14 to package and execute my program. When I use IntelliJ's Make and Run, the program compiles and executes perfectly. When I attempt to execute the JAR file, which is built through Maven, I get the following exception:

    Exception in Application start method
java.lang.reflect.InvocationTargetException
    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:497)
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    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:497)
    at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryDslGcasRepository': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.vdts.ghmanufacturing.repository.LotRepository com.vdts.ghmanufacturing.repository.QueryDslGcasRepository.queryDslLotRepository; nested exception is org.springframework.beans.factory.BeanCreationException: E        

Answers


Diyoda February 2016

There is a issue in one of your queries in QueryDslTestRepository, were the Entity (Hopefully JPA) that you are specifying in QueryDslTestRepository, Do not have the wicketholeoffset attribute

Post Status

Asked in February 2016
Viewed 2,590 times
Voted 14
Answered 1 times

Search




Leave an answer