java.lang.reflect.InvocationTargetException: null

Root problem Looks like bug https://hibernate.atlassian.net/browse/HHH-12368 They recommended set property (I believe it’s the best workaround): as workaround is to disable hibernate to detect this function by setting flag hibernate.jdbc.lob.non_contextual_creation=true The other solution described here: http://vkuzel.blogspot.com.cy/2016/03/spring-boot-jpa-hibernate-atomikos.html Disable feature detection by this undocumented parameter. Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details. spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false So you can also … Read more

Spring boot error:java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

The solution can vary based on actual incompatibility root cause. The best way how to investigate such the issue is to follow this line: and put breakpoint into constructor of class ‘TypeNotPresentExceptionProxy’ (there is only one). After execution in debug mode you should see what exactly is wrong and based on your findings you can … Read more

Java file outside of source root intelliJ

If you do an ‘import from git’, IntelliJ doesn’t import the project structure from maven (or gradle) automatically. One way to do this afterwards is to right-click on the pom.xml file in the root directory, and select ‘Add as maven project’. Then the folders will be marked correctly, and dependent libraries will be imported. There … Read more

java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

How do you run the application? It’s probably because you use Gradle as the build system and JDK14 and the Gradle version is old. Reference: https://github.com/gradle/gradle/issues/10248 If you use Gradle Wrapper then refer to $PROJECT_ROOT/gradle/wrapper/gradle-wrapper.properties. Property distributionUrl should be: distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip If it’s an older version then change it, run ./gradlew clean build and try again.

tech