java/166844: openjdk7 can't open library when remote debug enabled
Liang Xu
lxu at sandvine.com
Wed Apr 11 14:20:12 UTC 2012
>Number: 166844
>Category: java
>Synopsis: openjdk7 can't open library when remote debug enabled
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-java
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 11 14:20:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Liang Xu
>Release: FreeBSD8
>Organization:
Sandvine Incorporated
>Environment:
FreeBSD TPC-C1-21.phaedrus.sandvine.com 8.82.0109-RELEASE-p5 FreeBSD 8.82.0109-RELEASE-p5 #111: Tue Feb 28 15:27:17 EST 2012 root at wtllab-bsdbuild-9.phaedrus.sandvine.com:/usr/obj/usr/src/sys/SPB amd64
>Description:
We upgrade the openjdk on Freebsd8 from 6 to 7. Now when the remote debug is enabled, the JVM cant start and throw following errors:
Apr 5 16:08:56 TPC-D16-14 appsrv[90192]:
Apr 5 16:09:06 TPC-D16-14 appsrv[90192]: Launching a JVM...
Apr 5 16:09:06 TPC-D16-14 appsrv[90192]: JVM exited while loading the application.
Apr 5 16:09:06 TPC-D16-14 appsrv[90192]: NPT ERROR: Cannot open library
It turns out to be on library no found by the JVM. Then, I find a workaround by creating a link under /usr/local/lib/
ln -s /usr/local/openjdk7/jre/lib/amd64/libnpt.so /usr/local/lib/libnpt.so
Thanks.
>How-To-Repeat:
1. Install openjdk7
ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/java/openjdk-7.2.13.tbz
2. enable remote debug
wrapper.java.additional.43=-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:8000,server=y,suspend=n
3. java program fail to start
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-java
mailing list