Comments (2)
@kingsant 我用Graalvm,可是MyBatis不支持,你有办法吗,我编译什么的都正常结束,可是运行可执行文件文件的时候报如下错:
java.lang.ExceptionInInitializerError: null
at org.mybatis.spring.mapper.MapperScannerConfigurer.postProcessBeanDefinitionRegistry(MapperScannerConfigurer.java:363) ~[web.exe:3.0.1]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:344) ~[na:na]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:145) ~[na:na]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:747) ~[web.exe:6.0.8]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:565) ~[web.exe:6.0.8]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[web.exe:3.0.6]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732) ~[web.exe:3.0.6]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434) ~[web.exe:3.0.6]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:310) ~[web.exe:3.0.6]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1304) ~[web.exe:3.0.6]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1293) ~[web.exe:3.0.6]
at com.adil.bms.web.BmsApplication.main(BmsApplication.java:19) ~[web.exe:na]
Caused by: org.apache.ibatis.logging.LogException: Error creating logger for logger org.mybatis.spring.mapper.ClassPathMapperScanner. Cause: java.lang.NullPointerException
at org.apache.ibatis.logging.LogFactory.getLog(LogFactory.java:54) ~[na:na]
at org.apache.ibatis.logging.LogFactory.getLog(LogFactory.java:47) ~[na:na]
at org.mybatis.logging.LoggerFactory.getLogger(LoggerFactory.java:32) ~[na:na]
at org.mybatis.spring.mapper.ClassPathMapperScanner.<clinit>(ClassPathMapperScanner.java:61) ~[na:na]
... 12 common frames omitted
Caused by: java.lang.NullPointerException: null
at org.apache.ibatis.logging.LogFactory.getLog(LogFactory.java:52) ~[na:na]
... 15 common frames omitted
如果您有办法的话 教我怎么解决,Graalvm确实是很棒,非常安全 没法反编译什么的。可是MyBatis不支持 非常糟糕。
from xjar.
1 -DisableAttachMechanism 启动,同时自己编译一个jdk版本,将一个特殊的文件的md5(比如java.exe)编码进go文件,然后自己写代码校验jdk和md5
2 混淆构建xjar的go代码 而不是直接go build
from xjar.
Related Issues (20)
- jdk11启动加密后jar失败,是不是xjar与jdk11不兼容呢? HOT 4
- 配置了HTTPS加密后jar包启动提示启动端口被占用
- 能不能也支持一下:Solon 框架啊?
- xjar命令之后之后报错ArrayIndexOutOfBoundsException HOT 1
- 控制台Scanner nextLine()获取用户输入执行报错 HOT 5
- 请问,加密后Nacos、Spring Cloud 等能正常使用吗?
- 使用xjar启动器启动集成了seata-all-1.3.0.jar的加密后的Spring Cloud项目时发生异常 HOT 3
- 请问,jdk15,打包加密启动报错
- springmvc项目出错
- jsp加密运行出错
- Springboot3 + Java17 打包后运行报错 HOT 3
- tomcat 扫描包出错 HOT 1
- 被杀毒软件报毒 HOT 2
- -Dxjar.excludes=static/** 无法排除static目录下文件不加密
- 启动时报主类错误 Incompatible magic value
- 针对quarkus等框架打包出来的legacy-jar也能运行吗?JDK17
- 升级了Java版到21,现在运行的时候,没法启动 HOT 2
- 有大佬用WinSW服务部署过吗
- Xjar启动异常:尚不支持新的Java类文件版本 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xjar.