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

libresource.so: symbol JVM_GetManagementExt, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference #101

Closed
lyssphacker opened this issue Sep 17, 2016 · 11 comments

Comments

@lyssphacker
Copy link

I'm using latest release of DCEVM and HotswapAgent with JDK 1.8.0_77 and WebLogic on Ubuntu 14.04.5 LTS. I cannot start WebLogic because of the following error:

$HOME/Oracle/Middleware/Oracle_Home/oracle_common/jdk/bin/java: relocation error: $HOME/Oracle/Middleware/Oracle_Home/oracle_common/jdk/jre/lib/amd64/libresource.so: symbol JVM_GetManagementExt, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference

I am getting the same error on Fedora 25, but not on Windows 10. I tried to use different JDK versions, but without success. Is this known issue on some GNU/Linux distributions?

On HotswapAgent Issues page I got the following answer for my issue:

It is DCEVM related problem, not HotswapAgent. But you're probably mixing Oracle JVM libs with OpenJDK runtime.

I pretty sure I am not mixing Oracle JVM libs with OpenJDK runtime.

@android-leha
Copy link

android-leha commented Nov 29, 2017

I have same issue with weblogic

starting weblogic server...
HOTSWAP AGENT: 07:49:15.177 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {1.1.0-SNAPSHOT} - unlimited runtime class redefinition.
HOTSWAP AGENT: 07:49:16.512 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [Hotswapper, WatchResources, AnonymousClassPatch, ClassInitPlugin, Hibernate, Hibernate3JPA, Hibernate3, Spring, Jersey1, Jersey2, Jetty, Tomcat, ZK, Logback, Log4j2, MyFaces, Mojarra, Seam, ELResolver, WildFlyELResolver, OsgiEquinox, Owb, Proxy, WebObjects, Weld, JBossModules, ResteasyRegistry, Deltaspike, JavaBeans, GlassFish]
Listening for transport dt_socket at address: 30199
java: relocation error: /usr/java/jdk1.8.0_131/jre/lib/amd64/libresource.so: symbol JVM_GetManagementExt, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference

java -version is OK:

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Dynamic Code Evolution 64-Bit Server VM (build 25.71-b01-dcevmlight-9, mixed mode)

@lyssphacker
Copy link
Author

I've been able to resolve the issue by using OpenJDK 1.8.0_91.

@skybber skybber closed this as completed May 25, 2018
@hktalent
Copy link

@lyssphacker @skybber

see https://www.linuxquestions.org/questions/linux-desktop-74/java-issue-in-my-linux-machine-943077/

rm /usr/bin/java
update-alternatives --config java
rm /usr/bin/javac
update-alternatives --config javac


/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/jli/libjli.so

rm /usr/lib/jvm/java-8-openjdk-amd64/bin/java
ln -s /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java /usr/lib/jvm/java-8-openjdk-amd64/bin/java

@Neetesh0145
Copy link

I have same issue with weblogic

starting weblogic server...
HOTSWAP AGENT: 07:49:15.177 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {1.1.0-SNAPSHOT} - unlimited runtime class redefinition.
HOTSWAP AGENT: 07:49:16.512 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [Hotswapper, WatchResources, AnonymousClassPatch, ClassInitPlugin, Hibernate, Hibernate3JPA, Hibernate3, Spring, Jersey1, Jersey2, Jetty, Tomcat, ZK, Logback, Log4j2, MyFaces, Mojarra, Seam, ELResolver, WildFlyELResolver, OsgiEquinox, Owb, Proxy, WebObjects, Weld, JBossModules, ResteasyRegistry, Deltaspike, JavaBeans, GlassFish]
Listening for transport dt_socket at address: 30199
java: relocation error: /usr/java/jdk1.8.0_131/jre/lib/amd64/libresource.so: symbol JVM_GetManagementExt, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference

java -version is OK:

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Dynamic Code Evolution 64-Bit Server VM (build 25.71-b01-dcevmlight-9, mixed mode)

I'm facing same issue, can you help

@skybber
Copy link
Contributor

skybber commented Jun 16, 2021

Most likely version of alternative JVM (dcevm) does not match version of hosting JVM

@Nahalovka
Copy link

I have same issue with weblogic

starting weblogic server...
HOTSWAP AGENT: 07:49:15.177 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {1.1.0-SNAPSHOT} - unlimited runtime class redefinition.
HOTSWAP AGENT: 07:49:16.512 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [Hotswapper, WatchResources, AnonymousClassPatch, ClassInitPlugin, Hibernate, Hibernate3JPA, Hibernate3, Spring, Jersey1, Jersey2, Jetty, Tomcat, ZK, Logback, Log4j2, MyFaces, Mojarra, Seam, ELResolver, WildFlyELResolver, OsgiEquinox, Owb, Proxy, WebObjects, Weld, JBossModules, ResteasyRegistry, Deltaspike, JavaBeans, GlassFish]
Listening for transport dt_socket at address: 30199
java: relocation error: /usr/java/jdk1.8.0_131/jre/lib/amd64/libresource.so: symbol JVM_GetManagementExt, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference

java -version is OK:

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Dynamic Code Evolution 64-Bit Server VM (build 25.71-b01-dcevmlight-9, mixed mode)

I'm facing same issue, can you help

Hello, i have same problem with weblogic, and oracle jdk 1.8.0_181. Did you solve this issue?

@Nahalovka
Copy link

I've been able to resolve the issue by using OpenJDK 1.8.0_91.

Weblogic doesnt work with openjdk

@hktalent
Copy link

I've been able to resolve the issue by using OpenJDK 1.8.0_91.

Weblogic doesnt work with openjdk

@Nahalovka

git clone https://github.com/vulhub/vulhub
cd vulhub/weblogic/CVE-2020-14882
docker-compose up -d
docker ps -a
docker  cp  ${docker id}:/root/jdk/jdk1.6.0_45 .

@Nahalovka
Copy link

Nahalovka commented Oct 24, 2021

How you use openjdk with weblogic?

I m using weblogic 12c oracle jdk, how resolve this issue?

@tporeba
Copy link

tporeba commented Jan 17, 2022

Any luck with this one? Anybody? Downgrading weblogic's oracle jdk to the same version as dcevm 8 (1.8.0_181) doesn't seem to help.

@tporeba
Copy link

tporeba commented Jan 18, 2022

@Nahalovka @Neetesh0145 I found WLS will start only on these two combination of dcevm and openjdk versions:

  • oraclejdk 1.8.0_05 + dcevm installer-light-jdk8u5.52.jar (25.5-b02-dcevmlight-58)
  • oraclejdk 1.8.0_25 + dcevm DCEVM-light-8u45-installer.jar (25.45-b02-dcevmlight-15
    NOTE: These versions are ancient and probably have lots of security vulnerabilities, use at your own risk.

For other combinations WLS usually crashes with this SUNWprivate_1.1 not defined in file libjvm.so error.
see this answer on SO for more details.

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

7 participants