Date: Wed, 11 Apr 2012 14:12:05 GMT From: Liang Xu <lxu@sandvine.com> To: freebsd-gnats-submit@FreeBSD.org Subject: java/166844: openjdk7 can't open library when remote debug enabled Message-ID: <201204111412.q3BEC5iT025351@red.freebsd.org> Resent-Message-ID: <201204111420.q3BEKB44094858@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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 can’t 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204111412.q3BEC5iT025351>