From rapiere@renaissance.homeip.net  Sat Feb 19 11:56:27 2005
Return-Path: <rapiere@renaissance.homeip.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0E5FE16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Feb 2005 11:56:27 +0000 (GMT)
Received: from renaissance.homeip.net (m197.net81-67-151.noos.fr [81.67.151.197])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A88D343D45
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Feb 2005 11:56:26 +0000 (GMT)
	(envelope-from rapiere@renaissance.homeip.net)
Received: by renaissance.homeip.net (Postfix, from userid 1001)
	id 554DD2079; Sat, 19 Feb 2005 12:56:25 +0100 (CET)
Message-Id: <20050219115625.554DD2079@renaissance.homeip.net>
Date: Sat, 19 Feb 2005 12:56:25 +0100 (CET)
From: Anthony Ginepro <anthony.ginepro@laposte.net>
Reply-To: Anthony Ginepro <anthony.ginepro@laposte.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] Java Management not working with jdk1.5.0-p1
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         77725
>Category:       java
>Synopsis:       [PATCH] Java Management not working with jdk1.5.0-p1
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-java
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 19 12:00:39 GMT 2005
>Closed-Date:    Mon Mar 21 05:50:09 GMT 2005
>Last-Modified:  Mon Mar 21 05:50:09 GMT 2005
>Originator:     Anthony Ginepro
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD renaissance.homeip.net 5.3-STABLE FreeBSD 5.3-STABLE #6: Thu Feb 17 18:58:50 CET 2005 rapiere@renaissance.homeip.net:/usr/obj/usr/src/sys/CUSTOM_20050210 i386
java version "1.5.0-p1"

>Description:
	Launching tomcat 5.5 with "-Dcom.sun.management.jmxremote" and
	connecting to it with jconsole breaks jconsole. 
	
>How-To-Repeat:
	export JAVA_OPTS="-Dcom.sun.management.jmxremote"
	launch tomcat
	launch jconsole
	connect jconsole to tomcat's JVM
>Fix:

	Apply following patch in order to fix missing symbol (typo) :

--- work/j2se/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c.p1 Sat Feb 19 12:50:03 2005
+++ work/j2se/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c    Fri Feb 18 20:26:04 2005
@@ -283,7 +283,7 @@
 
     mib[0] = CTL_HW;
     mib[1] = HW_PHYSMEM;
-    rlen = sizof(result);
+    rlen = sizeof(result);
     if (sysctl(mib, 2, &result, &rlen, NULL, 0) == -1)
        result = 256 * MB;



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Mon Mar 21 05:49:47 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77725 
>Unformatted:
