Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java agent installation failing #478

Open
sagarvyas277 opened this issue Oct 28, 2024 · 0 comments
Open

java agent installation failing #478

sagarvyas277 opened this issue Oct 28, 2024 · 0 comments

Comments

@sagarvyas277
Copy link

Bug report

Oct 28, 2024 3:59:26 PM com.baidu.openrasp.nativelib.NativeLibraryUtil loadNativeLibrary
WARNING: No native library available for this platform.
[OpenRASP] Failed to load native library, please refer to https://rasp.baidu.com/doc/install/software.html#faq-v8-load for possible solutions.
java.io.IOException: Couldn't load library openrasp_v8_java
        at com.baidu.openrasp.nativelib.NativeLoader.loadLibrary(NativeLoader.java:138)
        at com.baidu.openrasp.v8.Loader.load(Loader.java:12)
        at com.baidu.openrasp.EngineBoot.start(EngineBoot.java:57)
        at com.baidu.openrasp.ModuleContainer.start(ModuleContainer.java:78)
        at com.baidu.openrasp.ModuleLoader.<init>(ModuleLoader.java:89)
        at com.baidu.openrasp.ModuleLoader.load(ModuleLoader.java:117)
        at com.baidu.openrasp.Agent.init(Agent.java:94)
        at com.baidu.openrasp.Agent.premain(Agent.java:71)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
        at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
Caused by: java.lang.UnsatisfiedLinkError: no openrasp_v8_java in java.library.path: [/Users/sagar.vyas/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .]
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2678)
        at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
        at java.base/java.lang.System.loadLibrary(System.java:1890)
        at com.baidu.openrasp.nativelib.NativeLoader.loadLibrary(NativeLoader.java:134)
        ... 13 more


To help us debug your issue please explain:

  • Install java agent and run with springboot application
  • Application run gave error, openRasp initialisation failed

And please include the following information:

  • Mac 64x ARM

  • springboot 2.6.6 java-11

  • OpenRASP latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant