Error reporting java.lang.reflect.InvocationTargetException after the new environment is packaged

Background: Business scenario: The MySQL database periodically synchronizes a small amount of data from the Oracle database, every few minutes Version information: server jdk1.8.0_171, development and compilation environment jdk1.8.0_181 idea2023.1.2 Technical framework: Maven was used to manage dependencies, and no traces of frameworks such as spring were found Description of the problem After a small […]

Nacos, seata 1.5.2 installation integration and error message, Exception in thread “main” java.lang.reflect.InvocationTargetException.

seata download website download center (seata.io) The version I installed this time is seata.1.5.2 because the version of spring-cloud used in my project is 2021.0.4. I originally wanted to use seata1.6.1, but after my search, it is not compatible with the version I am currently using. My version is: <spring-cloud.version>2021.0.4</spring-cloud.version> <spring-cloud-alibaba.version>2021.0.4.0</spring-cloud-alibaba.version> After downloading, I uploaded […]

[Solved] The solution to java.lang.reflect.InvocationTargetException when Java calls Hbase

The solution of java.lang.reflect.InvocationTargetException when Java calls Hbase problem background solution Lyric: You and I are in the same world Question Background When connecting to Hbase, I get a reflection error Exception in thread “main” 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:498) at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:64) Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/protobuf/generated/MasterProtos$MasterService$BlockingInterface at java.lang.Class.forName0(Native Method) at […]

[Solved] The solution to java.lang.reflect.InvocationTargetException when Java calls Hbase

The solution of java.lang.reflect.InvocationTargetException when Java calls Hbase problem background solution Lyric: You and I are in the same world Question Background When connecting to Hbase, I get a reflection error Exception in thread “main” 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:498) at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:64) Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/protobuf/generated/MasterProtos$MasterService$BlockingInterface at java.lang.Class.forName0(Native Method) at […]

[Solved] com.alibaba.nacos.api.exception.NacosException: java.lang.reflect.InvocationTargetException

com.alibaba.nacos.api.exception.NacosException: endpoint is blank com.alibaba.nacos.api.exception.NacosException: java.lang.reflect.InvocationTargetException exception information exception handling Anomaly Analysis bootstrap.yml vs application.yml com.alibaba.nacos.api.exception.NacosException: endpoint is blank com.alibaba.nacos.api.exception.NacosException: java.lang.reflect.InvocationTargetException) Exception information After springCloud alibaba configures Nacos to start the service, it will report an error com.alibaba.nacos.api.exception.NacosException: java.lang.reflect.InvocationTargetException at com.alibaba.nacos.api.config.ConfigFactory.createConfigService(ConfigFactory.java:45) ~[nacos-api-1.1.1.jar:na] at com.alibaba.nacos.api.NacosFactory.createConfigService(NacosFactory.java:43) ~[nacos-api-1.1.1.jar:na] at com.alibaba.cloud.nacos.NacosConfigProperties.configServiceInstance(NacosConfigProperties.java:346) ~[spring-cloud-alibaba-nacos-config-2.1.0.RELEASE.jar:2.1.0.RELEASE] at com.alibaba.cloud.nacos.NacosConfigAutoConfiguration.nacosContextRefresher(NacosConfigAutoConfiguration.java:64) [spring-cloud-alibaba-nacos-config-2.1.0.RELEASE.jar:2.1.0.RELEASE] at com.alibaba.cloud.nacos.NacosConfigAutoConfiguration$$EnhancerBySpringCGLIB$$a65c2a5b.CGLIB$nacosContextRefresher$2(<generated>) [spring-cloud-alibaba-nacos-config-2.1.0.RELEASE.jar:2.1.0.RELEASE ] […]

[Solved] Reflection exception java.lang.reflect.InvocationTargetException handling

InvocationTargetException is thrown by the Method.invoke(obj, args…) method. This exception is received when the called method internally throws an exception and is not caught. A problem is that when we use reflection to call the underlying code, an error java.lang.reflect.InvocationTargetException is reported, and scala information is printed Just throw a java.lang.reflect.InvocationTargetException exception, and then there […]

[Solved] java.lang.reflect.InvocationTargetException and java.lang.IllegalArgumentException

Problem: java.lang.reflect.InvocationTargetException, Caused by: org.mybatis.spring.MyBatisSystemException, Caused by: org.apache.ibatis .reflection.ReflectionException, Caused by: java.lang.IllegalArgumentException <!–Correspondence between entity classes and database table fields–> <resultMap id=”resultMap” type=”Staff”> <id property=”id” column=”id” javaType=”Integer”/><!–If the field corresponding to the database is the primary key, use the id tag–> <result property=”account” column=”account” javaType=”String”/> <result property=”password” column=”password” javaType=”String”/> <result property=”status” column=”status” javaType=”String”/> <result property=”did” […]

[Solved] android gets java.lang.reflect.InvocationTargetException for system cache

android gets java.lang.reflect.InvocationTargetException for system cache Today I will share with you a method for obtaining the cache information of android mobile phone applications and the adaptation of versions above androidO. If the adaptation is not compatible, a java.lang.reflect.InvocationTargetException error will be reported. The method we used to obtain is as follows: public void getPackageSizeInfo(String […]

[Solved] json data conversion exception java.lang.reflect.InvocationTargetException

It’s been a long time without any movement, and I’ve been busy with the development of the project. Sometimes I don’t have time to study and analyze the reasons when I encounter annoying bugs and exceptions. Now that I have time, I will quickly share the problems I encountered in the project with everyone. Maybe […]

[Solved] Caused by: java.lang.reflect.InvocationTargetException

When packaging Apk recently, an exception often occurs: Caused by: java.lang.reflect.InvocationTargetException Detailed exception information: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:lintVitalRelease’. > Lint infrastructure error Caused by: 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:498) at com.android.tools.lint.gradle.api.ReflectiveLintRunner.runLint(ReflectiveLintRunner.kt:38) at com.android.build.gradle.tasks.LintBaseTask.runLint(LintBaseTask.java:114) at com.android.build.gradle.tasks.LintPerVariantTask.lint(LintPerVariantTask.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at […]