JConsole with JDK1.5
Hi there,
I am new to JMX and trying sample programs wherein I have instrumented some of the Java classes as MBeans. I used
ManagementFactory.getPlatformMBeanServer(); to get the platform MBean server and registered the MBeans in it.
When I try to execute this on JConsole in JDK1.6 it just works fine and show me the process and the MBeans. But, it doesn't work with JDK1.5 , the process is shown as inactive process. Please suggest me how to register MBeans using JDK1.5
Thanks in advance.
Regards,
-Sushama
Do you run on Java 5.0 ore higher?
The -Dcom.sun.management.jmxremote option must be passed on the java command line:
java -Dcom.sun.management.jmxremote <other JVM options> <mainclass> <args...>
For some appservers you shouldn't pass -Dcom.sun.management.jmxremote option.
Instead the you need to start the admin console and enable JMX management from there, then
have a look at the appserver log file and look for something like:
service:jmx:rmi://....
This is the JMXServiceURL at which the server is listening....
I believe that for Sun AppServer 8.1 you need to follow the procedure described here:
[http://docs.sun.com/app/docs/doc/819-2554/ablwi?a=view|http://docs.sun.com/app/docs/doc/819-2554/ablwi?a=view]
There's also some info of interest here:
[http://developers.sun.com/appserver/reference/techart/mgmt_monitoring.html|http://developers.sun.com/appserver/reference/techart/mgmt_monitoring.html]
-- daniel
[http://blogs.sun.com/jmxetc|http://blogs.sun.com/jmxetc]
Similar Messages
-
does anyone know of a way to get jconsole working with CF8? i
tried adding the appropriate params into the jvm options, but when
i open jconsole it doesn't show up.
thanks for any advice.
MarcSweet, thanks Tom. I run CF under a different account than my
login so I was
trying to get it working by connecting to it remotely. didn't
even think
about trying it with the PID b/c of the login stuff, but it
definitely works
when i change CF login to my logged-in account.
it's weird that I can't get it working remotely though. i
specify a port,
tell it not to use authentication, but i just can't get in. I
tried doing it
with authentication as the docs explain, but that didn't work
either. very
weird.
but hey, no matter, because this was what i needed. thanks
again!
"TomD_2" <[email protected]> wrote in message
news:f9vel9$4ng$[email protected]..
> Find the PID of the JRun process and start jconsole with
this as an
> argument.
>
> For example (Windows): if TaskManager shows that 2831 is
the PID for the
> jrun.exe process,
>
> C:\jdk1.6.0_02\bin> jconsole.exe 2831
>
> No JVM options are needed.
> -
Weblogic 10.0 Comatability with JDK1.6
I have installed weblogic 10.0 on unix machine. And when i istalled it JDK1.5 will automatically installed with it inside weblogic folder.
And when i create a new instance of weblogic with existing JDK1.5 the instace will start properly and application executes also.
But when i point the weblogic to JDK1.6 at the time of instace creting. it will not work properly. When i stop the server below error is display.
javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.StreamCorruptedException: invalid type code: 88]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:74)
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:32)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:773)
org.python.pycode._pyx18.f$0(/newpluto/weblogic10/bea/citiSchedPayliteDomain/vb2java/shutdown.py:1)
at org.python.pycode._pyx18.call_function(/newpluto/weblogic10/bea/citiSchedPayliteDomain/vb2java/shutdown.py)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1135)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
at weblogic.management.scripting.WLST.main(WLST.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.WLST.main(WLST.java:29)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.StreamCorruptedException: invalid type code: 88
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:222)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:224)
at weblogic.common.internal.RMIBootServiceImpl_1002_WLStub.authenticate(Unknown Source)
at weblogic.security.acl.internal.Security$1.run(Security.java:185)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.acl.internal.Security.authenticate(Security.java:181)
My question is that Weblogic 10.0 is only comapatable with jdk1.5 only or either any way so we can point it to JDK1.6WLS 10.0 is not supported for JDK 6.
This is strict violation that you need to use only JDK 5 -
JTable selection problem with jdk1.5.0_05
Today I tried the new jdk1.5.0_05 release and noticed with a JTable I can only select a single column and row with the mouse. With jdk1.5.0_05 I could select multiple cols and rows with the mouse. I looking at the listselectionmodel for the jtable i see it is set to mulitple. Is this a bug in the new java 1.5 release?
Yeah, the .jar files are definitely there and the
small class I just wrote is in the Classes directory.Yes, but you're calling javac.exe, not some jars. Did you check that javac.exe is there? Stupid question, yes, but I've seen it all...
I changed the path in Control Panel -> System ->
Advanced -> Environment Variables. I've also beendoing this is the command prompt:
set
CLASSPATH=%CLASSPATH%;C:\Java\jdk1.5.0\bin;C:\Java\Cla
ssesNo need to add the /bin directory to the classpath, there are no classes in it... -
Java webdynpro development with jdk1.5.7
hi,
I have installed the CE server and the Netweaver Developer Studio, to try some java developments.
I was working with jdk1.5.7, but the server has only version 1.5.017.
Is it possible to upgrade the java in the server, so it can work with the current jdk version?
thx,
Erikhi again,
I could solve the problem:
in the developer studio you can chose to compile for lower versions.
To do so, go to windows>preferences>java-->compiler and chose compliance level 5 or 1.4(it was on 6), and now the development works fine. -
Signed applet with jdk1.4.2
Hello, friends! I'm having difficulties running an applet with jdk1.4.2. This applet was working properly with the previous version, jdk1.4.1. Perhaps I've forgotten some details or some changes in the new version. Any idea?
Thank you.Hi there,
I am also facing similar problem. Please read the following.
I have a query regarding JRE 1.4.2_03. What does it have, which makes it differ from JRE 1.4.1_02 ? Actually, I am asking this question, because I have a signed JApplet where, user's select a file displayed in client JApplet's JTable and stores it to the specified location on his/her local drive. The JApplet runs perfectly well running in IE 6.0 with JRE 1.4.1_02. But, gives error on IE 6.0 with JRE 1.4.2_03.
Any help regarding the same will be helpful...
I tried a Signed applet with no GUI in it which runs well on JRE 1.4.2_03.
Both the applets are signed with jdk1.1.6.
Thanking you in advance,
Ganesh A Baviskar. -
Weblogic 5.1 SP8 with JDK1.3 installed as an NT Service Fails
I've just completed the installation of sp8 of Weblogic Server. I used wlconfig to set the environment parameters as outlined in the sp8_readme.html file. I have Weblogic Server installed as a NT Service. When I start the service with Weblogic configured to use JDK1.2 it works just fine. However, when I switch Weblogic to use the JDK1.3, using wlconfig, I receive an Application error stating:"The instruction at "0x04e4d0d6" referenced memory at "0x00000000". The memory could not be written."If I start the WEblogic Server from the command line and configure the environment to use the JDK1.3, everything works fine. It's only when you are trying to run the Weblogic server as an NT Service.Any suggestions?
I don't think this problem was specific at all to SP8 - I ran into
this with an earlier version of the fixpack and just decided to run it
from the startweblogic.cmd file, instead. I never did try to set the
compiler to none as you did. BTW - it wasn't just as a service that
this problem existed for me - it also happened if you used the program
shortcut to start the server - i.e. any way you started it that used
those registry settings would experience the problem.
How has the stability been under 1.3 - have you seen any problems with
that? I was running with 1.3 and the Sun Server Hotspot VM and the
server kept crashing after just a few pages being displayed from my
site. This problem could have also been the -noclassgc switch though
since with that switch I was still seeing the problem under 1.2 - just
not as fast.
On Tue, 23 Jan 2001 09:49:05 -0800, "Christopher A. Mathrusse"
<[email protected]> wrote:
Seeing as no one has come up with a solution for me, I thought I would at
least post the fix. If you use JDK1.3 with WLS and are running the server as
an NT Service, you will need to set your JAVA_HOME value to the JDK1.3 using
wlconfig, and then set your java.compiler=NONE using
wlconfig -Djava.copiler=NONE. After completing these changes, WLS will run
as a service with JDK1.3.
"Christopher Mathrusse" <[email protected]> wrote in
message news:[email protected]...
I've just completed the installation of sp8 of Weblogic Server. I usedwlconfig to set the environment parameters as outlined in the
sp8_readme.html file. I have Weblogic Server installed as a NT Service. When
I start the service with Weblogic configured to use JDK1.2 it works just
fine. However, when I switch Weblogic to use the JDK1.3, using wlconfig, I
receive an Application error stating:"The instruction at "0x04e4d0d6"
referenced memory at "0x00000000". The memory could not be written."If I
start the WEblogic Server from the command line and configure the
environment to use the JDK1.3, everything works fine. It's only when you are
trying to run the Weblogic server as an NT Service.Any suggestions? -
XSQL with jdk1.2.2 - javai.dll error
I successfully used the xsqlCommandLine utility with jdk1.1.7. When I try with jdk1.2.2, I get an error that javai.dll is not in the path. If I put javai.dll from the 1.1.7/jre/bin in my path, the xsqlCommandLine process runs without end, as if windows (NT) is searching for something else. I'm using the latest classes12.zip and the xmlparserv2.jar files. Any help?
Thanks.robert strzelinski (guest) wrote:
: Running a small sample program to test connection to Oracle
: 7.3.4 server. Works OK using thin client connection mode. Using
: OCI connection causes run-time exception labelled:
: "java.exe - Unable To Locate DLL"
: The text in the popup complains of not finding the dynamic link
: library "javai.dll".
: This DLL does not exist anywhere in my java distribution tree.
: What is this library, where does it come from, and where should
: it be found?
: -- rjs
no oracle jdbc oci driver for jdk 1.2 yet ---
also --
The only oracle JDBC driver that can run with JDK 1.2.x is in the
OTN download area and is named "816SDK for JDK 1.2"
it will work with the JDK 1.2.X using the JDBC 1.22 spec from JDK
1.1.X.
IT DOES NOT PROVIDE THE FULL JDBC 2.0 FEATURES/ FUNCTIONALITY
THAT ARE INCLUDED IN THE JDK 1.2.X CLASSES.
you're using a jdk 1.2.x/jdbc 2.0 feature -- which is anticipated
to be included in the 816 driver later this year -- it's not in
the "816SDK" JDBC driver you're using now..
816SDK can be thought of as stepping stone between 815 using jdk
1.1.x and 816 supporting jdk 1.1.x and 1.2.x.
i think of it as "8.1.5 and a half" to avoid the naming confusion
between "816sdk" and "816" .
SEE the following FAQ link for additional details :
http://technet.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
i hope this helps ...
null -
Oracle 8i connectivity with JDK1.4.2 - Failure - Help Needed
I'm new to Java-ORACLE connectivity.
I have installed Oracle 8i v8.1.5 in my Windows 2K Adv. Server with JDK1.4.2.
But I could connect to Oracle from Java neither thru JDBC-ODBC nor JDBC thin drivers.
What are the files ( or classes ) needed for connectivity and where can I download them.
Do the Oracle8i 8.1.7 JDBC drivers have backward compatibility with Oracle8i 8.1.5 ?
Please help me in this regard with utmost information possible and sample code.
Thanks in Advance.
Hara GopalFor your kind information (more)
When I used JDBC-ODBC Bridge,
It just gave an error message : [Microsoft ODBC for Oracle]
and
when I tried the command at DOS prompt,
javap oracle.jdbc.driver.OracleDriver
it gave message ERROR: javap oracle.jdbc.driver.OracleDriver could not be found
Please Help me
Hara Gopal -
Problem with jdk1.3 and WLS5.1.0
I have a problem a when I start WLS5.1.0 with jdk1.3.0
I get AccessControlException when I try to create connection pool.
<WebLogicServer> Failed to invoke startup
class weblogic.jdbc.common.internal.JdbcStartup=weblogic.jdbc.common.inte
rnal.JdbcStartup
java.security.AccessControlException: access denied (java.sql.SQLPermission
setLog)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.sql.DriverManager.setLogStream(DriverManager.java:397)
at weblogic.jdbc.common.internal.JdbcInfo.initLog(JdbcInfo.java:66)
atweblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:187)
at
weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)Thanks in Advance,
Anil
RealPrompt, Inc.
575 Harrison Street, Suite 206
San Francisco, CA 94105
415.546.5600 ext. 204
415.546.0202 fax
510.526.6508 Res.
http://www.realprompt.comCheck the documentation on how to correctly configure your policy file.
Michael Girdley
BEA Systems Inc
"Anil Kumar Kona" <[email protected]> wrote in message
news:39d29030$[email protected]..
I have a problem a when I start WLS5.1.0 with jdk1.3.0
I get AccessControlException when I try to create connection pool.
<WebLogicServer> Failed to invoke startup
class weblogic.jdbc.common.internal.JdbcStartup=weblogic.jdbc.common.inte
rnal.JdbcStartup
java.security.AccessControlException: access denied
(java.sql.SQLPermission
setLog)
atjava.security.AccessControlContext.checkPermission(AccessControlContext.jav
a
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.sql.DriverManager.setLogStream(DriverManager.java:397)
at
weblogic.jdbc.common.internal.JdbcInfo.initLog(JdbcInfo.java:66)
atweblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:187)
at
weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)Thanks in Advance,
Anil
RealPrompt, Inc.
575 Harrison Street, Suite 206
San Francisco, CA 94105
415.546.5600 ext. 204
415.546.0202 fax
510.526.6508 Res.
http://www.realprompt.com -
Is there any change in the constant pool entires with JDK1.4?
Hi,
Here is my simple java class,
class Base
String manuf = "MRF";
class Derived extends Base
Derived() {
manuf = "ABC";
After compiling this class with JDK 1.3 and JDK1.4, i could see the difference in constant pool entries
so please let me know more about these cahnges.
P.S. : written a java program TClass.java to browse the constant pool entries.
i.e if compiled with JDK1.3 , constant pool entries looks as follows,
E:\bugs\jdk1.4\pramila>java TClass E:\bugs\jdk1.4\pramila\Derived.class
There are 21 + 1 entries in the Constant Pool:
Index Tag Reference(s)/Value(s)
1 10 5 15
2 8 16
3 9 5 17
4 7 18
5 7 19
6 1 <init>
7 1 ()V
8 1 Code
9 1 LineNumberTable
10 1 LocalVariableTable
11 1 this
12 1 LDerived;
13 1 SourceFile
14 1 Test.java
15 12 6 7
16 1 ABC
17 12 20 21
18 1 Derived
19 1 Base
20 1 manuf
21 1 Ljava/lang/String;
There are 1 methods:
Code array in method <init> of length 11 starting at byte 231.
If compiled with JDK1.4 constant pool entries looks as follows,
E:\bugs\jdk1.4\pramila>java TClass E:\bugs\jdk1.4\pramila\Derived.class
There are 21 + 1 entries in the Constant Pool:
Index Tag Reference(s)/Value(s)
1 10 5 15
2 8 16
3 9 4 17
4 7 18
5 7 19
6 1 <init>
7 1 ()V
8 1 Code
9 1 LineNumberTable
10 1 LocalVariableTable
11 1 this
12 1 LDerived;
13 1 SourceFile
14 1 Test.java
15 12 6 7
16 1 ABC
17 12 20 21
18 1 Derived
19 1 Base
20 1 manuf
21 1 Ljava/lang/String;
There are 1 methods:
Code array in method <init> of length 11 starting at byte 231.
There is a change in the index 3 can be noticed.
i.e
with JDK1.3 it is "3 9 5 17"
with JDK1.4 it is "3 9 4 17"
Thanks in advance.
Pramilajavac v1.4 emits by default Java 1.2 compatible .class files while all javac implementations since between 1.1.0 and 1.3.1 emit byte default Java 1.1 .class files.
Check to see what effect using the -target option in javac to get the two versions to produce Java 1.1, 1.2, or 1.3 .class files.
Chuck -
How to start weblogic with jdk1.4.0
anybody can tell how to start weblogic with jdk1.4.0 correctly?
"jacky" <[email protected]> wrote in message news:<[email protected]>...
anybody can tell how to start weblogic with jdk1.4.0 correctly?Take a look at:
http://www.genuitec.com/products/JDK14_WLS61.pdf -
JDeveloper Build Error with JDK1.3beta
Dear JDev Team,
I have a project that uses SQLJ and has been compiling fine with both JDK1.2.2 and 1.3beta. This morning it stopped working. There have been no great code changes. Once it fails using 1.3beta it will also fail using 1.2.2.
There error message in the window is as follows. Your help would be very much appreciated, as this project cannot be built.
Many thanks,
Richard
JniPortal for D:\Program Files\JDeveloper 3.0\java1.2\jre\bin\ferrari\jvm.dll reported
InnerClasses attribute
java.lang.IncompatibleClassChangeError: InnerClasses attribute
int sqlj.runtime.profile.util.CustomizerHarness.customizeProfile(sqlj.runtime.profile.util.ProfileIOContext)
void oracle.jdeveloper.sqlj.TranslatorInternal.customizeProfiles(borland.compiler.interfaces.Log)
void oracle.jdeveloper.sqlj.TranslatorSystemImpl.customizeProfiles(borland.jbuilder.jipcbmj.portal.ComLog)
void oracle.jdeveloper.sqlj.TranslatorSystem_JavaDispatch.invoke(int, borland.javaport.JavaCallStack)Richard,
SQLJ is not supported with JDK1.2 in JDev 3.0:
(from the release notes)
Using SQLJ under JDK 1.2
The 8.1.5 SQLJ version distributed with this release of JDeveloper only supports JDK 1.1.X, it does not run under JDK 1.2. A future version of SQLJ will support JDK 1.2
Having said that it looks like you have it working anyway :-)
There have been no great code changes. Once >it fails using 1.3beta it will also fail >using 1.2.2.Try the following :
-Locate the output directory from Project|Project Properties
-Close JDeveloper
-Go to the output directory and delete all the classes and profiles related to your SQLJ project
-Restart JDev and recompile
Hope this helps.
Regards,
Arun
null -
Where can I get the source code of the jconsole in jdk1.5
Where can I get the source code of the jconsole in jdk1.5?
Hi,
The JConsole 5 source code is not publicly available but you can get JConsole 6/7 source code from http://openjdk.java.net.
Regards,
Luis-Miguel Alventosa - JMX/JConsole dev team - http://blogs.sun.com/lmalventosa -
EA1 EA2 EA3 don't start on linux with jdk1.7 but work with jdk1.6!!!
I install SQLDeveloper EA1 then EA2 and now EA3 on my Linux (Fedora 19), but the result is the same.
If i start SQLDeveloper with root it work, but if i start with my user the application crash. I tested to change owner of all component, but the result is the same.
Then because I started the application with jdk1.6 (I used the EA1 who did not warning about the java version) and it work fine!!!
I opened two "Report a HotSpot Crash", but I never received a response.
No one any idea? Nobody has ever happened?
Thanks,
EnricoThis sounds like
Re: 4EA1: Not starting on Ubuntu. Unkown protocol sqldev.temp
Maybe you are looking for
-
Can I use airport express to extend my network AND stream iTunes???
I have an airport extreme connected to the cable modem and sending a signal out to my home network. I also have a powerbook and an airport express connected to the home stereo. My question is, can i use the express to extend my extreme signal (to rea
-
I have a IPHONE 3G and recently I downloaded the latest version for my phone and since some of my songs that I downloaded thru itunes will not play in it's entirety
-
I want to use my ipod with multiple computers
I use 3 computers for my music (office, home and laptop). I want to put music on my ipod from all 3 computers. I have an Ipod Classic - 160gb
-
How open an interactive form in a tabstrip of Firefox
Hi , I have developped an application which involves interactive form . Now I want to display the pdf in a new tabstrip of Firefox.(after clicking on a button). Do you have an idea to display an interactive form in a new tabstrip,please? Actually to
-
Issue of invoice with reference to service frame work order
Hi Gurus, i am creating service framework purchase order for a service material. in item detail of service framework po in condition tab i maintain vat % condition. then i create service entry sheet with reference to that po and post the entry. whe