Skip to content
-1day edited this page Dec 18, 2021 · 11 revisions

1. 打包失败情况

ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project jose4j: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/pro/MyProject/jrasp-opensource-plan/jrasp-agent/jrasp-jose4j/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]

解决方法:由于低版本的jdk8不兼容JWT导致,建议用jdk1.8.0_301或者更高的版本重新build即可

2. attach时出现告警

2021-12-03 08:37:47.047 [jrasp] 开启RASP安全防护,技术支持: https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=e35l9ee2-a000-45ba-8863-75b5ca2cdbe6
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jrasp.core.util.RASPReflectUtils (file:/Users/xxx/Desktop/jrasp-agent/bin/../lib/jrasp-core.jar) to field java.net.URLClassLoader.acc
WARNING: Please consider reporting this to the maintainers of com.jrasp.core.util.RASPReflectUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

jdk9以上版本对于反射有告警日志,但不影响当前项目运行

3. maven 编译出错

[ERROR]Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
[ERROR] 不再支持源选项 6。请使用 7 或更高版本。 
[ERROR] 不再支持目标选项 6。请使用 7 或更高版本

建议使用maven3.2.5版本构建

Clone this wiki locally