Getting jdk platform mbeans on sun jdk
I am using Weblogic 10.3.1 on sun solaris 10, sun jdk6u16.
I am using jmx to remotely get the weblogic mbeans, but i can't seem to get the platform mbeans.
I have checked 'Platform MBean Server Enabled' on the domain settings, and also set -Dcom.sun.management.jmxremote but can't query the jdk platform mbeans
eg. i am remotely connecting to the domain runtime service, and this returns an empty set
Set<ObjectName> platformMBeansSet = connection.queryNames(new ObjectName("java.lang:*"), null);
I think i have done this in the past, but with jrockit. Is it different with the Sun JDK, or am i doing something wrong?
If you connect to the runtime server directly (instead of the domain runtime mbeanserver), does it make any difference?
Have you set the PlatformMBeanServerUsed attribute?
Similar Messages
-
Different complining result between SUN JDK 1.4 and IBM JDK 1.3.1
Hi! I simplifed my code as following:
public class TestException2 {
public Object test() {
java.sql.Connection cn = null;
try {
// 1st. close
cn.close();
catch (java.sql.SQLException se) {
// 2nd. close
cn.close();
finally {
return new Object();
}But I get different compiling result betwueen SUN JDK 1.4.2 and IBM JDK 1.3.1 (I have to deploied my app to the websphere 5.0)
In Sun JDK 1.4.2, I only got a warning:
[e:\work\test]javac TestException2.java
TestException2.java:14: warning: finally clause cannot complete normally
^
1 warningIn IBM JDK 1.3.1, I got an error:
TestException2.java:10: unreported exception java.sql.SQLException; must be caught or declared to be
thrown
cn.close();
^
1 errorWhat happend? Who is right?
Thank you!
[ I believe the code should not pass the compilation ... ]Many other people agree with you, including some Sun engineers.
Perhaps Sun just feels an obligation to continue to allow it for legacy reasons.
You might also investigate the compiler that comes with Eclipse.
http://www.eclipse.org/
It has a more flexible approach: for some cases, it lets you decide what is a warning and what is an error. -
Install various SUN jdk on linux
Hi,
I am using netbeans 5.0 on linux (mandrake 10.0) running on SUN jdk 5.0 update 7.
I have to make a project using SUN jdk 1.3.1 (SUN jdk 1.3.1_18 is a requirement).
I tried to install SUN jdk 1.3.1 but it complains that there is a newer version already installed (i.e. SUN jdk 5.0 update 7).
In wanted to have both SUN jdk installed (I need 5.0 to run netbeans, and 1.3.1 is a requirement for the project). This way, I would specify SUN 1.3.1 kit for the project in netbeans using the "java platform manager" feature.
I forced SUN jdk 1.3.1 install (using rpm ,with rpm -i --nodeps jdk131.rpm), and managed to have both SUN jdk installed at the same time.
But I did not manage to include jdk 1.3.1 in netbeans java platform manager (the directory is detected as a J2SE directory, but gives an error on next screen and cannot be added).
(One possible alternative would be to use IBM or Blackdown jdk 1.3.1 (both are detected without problem in "java platform manager"))
(Another alternative, would be to try some cross compilation modifying ant scripts for boot classpath...)
(Another alternative would be to do this under windows (where both jdk can coexists and netbeans 5.0 agrees to add SUN jdk 1.3.1 without giving an error))
But I wonder if there is a way to do this under linux with both SUN jdk.
Any idea?
(I suppose I am not the first one to try to do this)
Regards> 716604
>
> also check
>
> http://java.sun.com/j2se/1.4.2/SAPsite/download.html
Unfortunately this is wrong.
On Linux x86_64 the IBM JDK is used.
Note 1172419 - Linux: Supported Java versions on the x86_64 platform
Markus -
Sun JDK 1.4.2.06 JCE Problems using SunRsaSign
I am getting the exception:
java.security.spec.InvalidKeySpecException: Key spec does not match the key.
at com.sun.rsajca.JSA_RSAKeyFactory.engineGetKeySpec(DashoA6275)
at java.security.KeyFactory.getKeySpec(KeyFactory.java:262)
at gov.dhs.client.https.security.SecurityHelper.createRSAToken(SecurityHelper.java:103)
at https.HttpsTestClient.testSecurity(HttpsTestClient.java:173)
at https.HttpsTestClient.main(HttpsTestClient.java:114)
Here is the code snippet that works in Sun JDK 1.5.0 but not in Sun JDK 1.4.2.06:
jceProvider = "SUN";
rsaProvider="SunRsaSign";
import java.security.Key;
import java.security.KeyFactory;
import java.security.spec.KeySpec;
import java.security.KeyStore;
import java.security.spec.RSAPrivateCrtKeySpec;
KeyStore ks = KeyStore.getInstance("JKS", jceProvider);
KeyFactory kf = KeyFactory.getInstance("RSA", rsaProvider);
ks.load(fis, jksPasswd);
fis.close();
Key K = ks.getKey(alias, jksPasswd);
KeySpec pvtSpec = kf.getKeySpec(K, RSAPrivateCrtKeySpec.class);
Obviously, there are differences in the implementation between the 2 JDKs. Does anyone out there have any experience with KeySpec in 1.4.2.06 that could shed some light?
Happy to follow up with any extra information on request.
Thanks for looking
David (LuvJava)Did you ever get HttpClient from Apache to work with NTLM? Our company has't standardized on 1.4.2 yet, so I'm stuck getting it to work with 1.4.1.
Any help would be greatly appreciated.
If this is a repeat post, I apologize
Dave -
[SOLVED] Dependency problems Sun JDK, OpenJDK and Soprano
Hi there,
as I need the Sun JDK for programming, I wanted to replace OpenJDK with SunJDK. Here's what's happening:
schorsch@archie:~$ sudo pacman -S jdk
resolving dependencies...
looking for inter-conflicts...
:: jdk conflicts with openjdk6. Remove openjdk6? [Y/n] Y
error: failed to prepare transaction (could not satisfy dependencies)
:: jdk: requires jre
:: soprano: requires openjdk6
schorsch@archie:~$
What's the proper way to do this? Should I avoid having more than one java version installed on my machine? I guess so...
I'm doing quite a bit of java development and sometimes really need the latest Sun Java.
TIA,
Blackhole
Last edited by blackhole (2009-02-18 18:56:53)Okay guys, I did a "pacman -Rd openjdk6 && pacman -S jdk" which worked fine:
schorsch@archie:~$ java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
schorsch@archie:~$
However when I use Konqueror and go to http://www.java.com/en/download/help/testvm.xml in order to test my java version, it doesn't work.
More precisely the applet is not displayed at all. When I go to the Konqueror settings and to "Java & JavaScript", tick the checkbox "Use KIO" and refresh the page. I at least get a big gray square where the applet should be.
Do I have to install any additional java plugin? Is anybody out there using Konqueror with the Sun Jre?
//Edit: I've come across this: http://www.konqueror.org/javahowto/ but I was wondering whether this is already included in some Arch package. I don't wanna fiddle manually if there's a proper Arch way to do things.
TIA,
Blackhole
Last edited by blackhole (2009-02-18 13:58:17) -
How to install jdk 1.5 in Sun Solaris 8
Hi All,
I have sun solaris 8 server UNIX platform.i already have JDK 1.3.3 in my server.i want to clean that and to install jdk 1.5 in my server.does any body knows how to setup JDK 1.5 in sun solaris 8 UNIX Platform and where to set JAVA_HOME Environment Variable.
Thanks in Advance.http://java.sun.com/j2se/1.5.0/install-solaris.html
r
http://www.google.com/search?q=How+to+install+jdk+1.5+in+Sun+Solaris+8+in+unix+platform+++&client=netscape-pp&rls=com.netscape:en-US -
Sun JDK installed on Fedora 8 but it is not there
I installed the Sun JDK SE rpm package on my Fedora 8 machine with installation instructions . But when I verify the installation by :
# java -version
I get,
java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b21)
IcedTea Client VM (build 1.7.0-b21, mixed mode)
where as I expect (it shoud hhave been) something like:
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
The rpm query output shows me the installed JDK (jdk-1.6.0_05-fcs).
Have I missed something during installation? How can I get it working?Roedy Green [describes it|http://mindprod.com/jgloss/icedtea.html] as "Red Hat’s bundling of the OpenJDK version of Java for Linux. They can’t call it Java, JDK or OpenJDK because Sun has these trademarked. Red Hat can use the code, but not the trademarks under GPL."
Edited by: pbrockway2 on Apr 13, 2008 10:54 AM
[iced-tea.org|http://iced-tea.org/wiki/Main_Page] and its faq page might help you figure out what you can rely on when using this software. (Frankly, it didn't clarify things for me...) -
GC taking long time when using Concurrent Mark Sweep GC with Sun JDK 150_12
We are having problem of Garbage collection taking too long. We are using Weblogic 9.2 and Sun JDK 150_12
Below are the memory arguments we are using. We are using Concurrent Mark Sweep GC. What we are observing is Young Generation is getting filled up and consequent tenured generation also hangs with long pauses.
Below are the JVM arguments we are using
-Xms2560M -Xmx2560M -Xloggc:${LOGDIR}/gc.log -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=60 -XX:NewSize=512m -XX:MaxNewSize=512m -XX:MaxPermSize=256m
I have seen many forums where there are many reported issues with Concurrent Mark Sweep garbage collection with Sun JDK, but with different recommendations. But did not find any defnite recommendation. Please advice.
- - TarunWe are having problem of Garbage collection taking too long. We are using Weblogic 9.2 and Sun JDK 150_12
Below are the memory arguments we are using. We are using Concurrent Mark Sweep GC. What we are observing is Young Generation is getting filled up and consequent tenured generation also hangs with long pauses.
Below are the JVM arguments we are using
-Xms2560M -Xmx2560M -Xloggc:${LOGDIR}/gc.log -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=60 -XX:NewSize=512m -XX:MaxNewSize=512m -XX:MaxPermSize=256m
I have seen many forums where there are many reported issues with Concurrent Mark Sweep garbage collection with Sun JDK, but with different recommendations. But did not find any defnite recommendation. Please advice.
- - Tarun -
Jrockit Mission Control for Sun JDK 1.5??
Hi,
Can JRockit Mission Control monitor non Jrockit JVM app?
Is it possible to monitor sun jdk app using Jrockit mission control?
If it is yes, How can I go it?
If there is document for it, that will be great.
Thanks.To connect to a Sun JDK 1.5, you will have to start your java application with jmxremote flags:
-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=<port> -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
(http://download.oracle.com/javase/1.5.0/docs/guide/management/agent.html)
Then you create a new connection in the Mission Control JVM Browser, to localhost and <port>, and connect to it with Console.
You will have reconfigure the graphs and dials to use other MBeans, for instance java.lang.Memory instead, and some features (Method profiler etc) won't work at all.
I'm not aware of any specific documentation for this.
Klara, Mission Control QA -
Uninstall SUN JDK 1.6_14 and install SUN JDK 1.6_18 for Weblogic
My GridControl server has all of a sudden gone wild in consuming 100% of the cpu. The process was java.exe in the Middleware folder. Somebody suggested to verify the JDK and I indeed have an older version than the one recommended.
Does anybody know where it is documented on how to uninstall and then reinstall SUN JDK 1.6_18 and have Weblogic still work afterward? (Win 2008 32 bit)
I'd hate to reinstall the entire Gridcontrol 11g because I have the wrong jdk.
Thanks.Hi,
Uninstalling SUN JDK 1.6_14 from your Box is optional step....Most of the Servers are flexible enough ...they provide us the facility to change the JDK at any point of time...Without reinstalling the Product from the scrap....
You can directly install SUN JDK 1.6_18 in your WebLogic Server Box. Then you need to make a small change in the *"<DOMAIN_HOME>\bin\setDomainEnv.cmd"* file ...to change the JAVA_HOME variable value...That's all.
Next time whenever you will start your WebLogic Servers it will pick up the SUN JDK 1.6_18 version only.
I am pasting few lines from *"setDomainEnv.cmd"*
@REM *************************************************************************
set WL_HOME=C:\bea103\wlserver_10.3
for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi
set BEA_JAVA_HOME=C:\bea103\jrockit_160_05
<b><font color=red>set SUN_JAVA_HOME=C:\all_Jdks\JDK 1.6_18</font></b>
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dwhat.is.your.name=Jay_SenSharma
if "%JAVA_VENDOR%"=="BEA" (
set JAVA_HOME=%BEA_JAVA_HOME%
) else (
if "%JAVA_VENDOR%"=="Sun" (
set JAVA_HOME=%SUN_JAVA_HOME%
) else (
set JAVA_VENDOR=Sun
set JAVA_HOME=C:\bea103\jdk160_05
@REM We need to reset the value of JAVA_HOME to get it shortened AND
@REM we can not shorten it above because immediate variable expansion will blank it
set JAVA_HOME=%JAVA_HOME%
Thanks
Jay SenSharma
http://weblogic-wonders.com/weblogic (WebLogic Wonders Are here) -
Java Generics in Ejbs WebLogic 9.2 MP1 WindowsXP Sun JDK
Hi guys,
I tried to deploy our application on Weblogic Server 9.2 MP1 (Windows, Sun JDK) and during deployment I have this error see bellow.
Can somebody tell me what is the problem with generics and EJB compiler?
Is necessary to add any path or change any server settings?
Thanks for help
Robert
location: interface
...daoadapter_DaoAdapter_rge4uk_Intf
public void batchPersist(java.util.List<T> arg0);
^
...daoadapter_DaoAdapter_rge4uk_Intf.java:20: cannot find symbol
symbol : class T
location: interface
2 errors
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:435)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:295)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:303)
at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:309)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:497)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:464)
at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:430)
at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:752)
at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:655)
at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1199)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:354)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperatio
n.java:189)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:247)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:15
7)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(Deploymen
tReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiv
erCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCal
lbackDeliverer.java:45)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)Thanks Matt for your answer.
But I don't finish my testing :)
I tried to deploy the same application on Weblogic 9.2 MP2 and then MP3 (sun jdk domain) and I didn't have problem with generics (application was correctly deployed and running).
Then something was fixed in newer versions or may be bea guys support more then is in EJB 2.x specification.
My next step, I'll try to deploy it on Jrockit domain and I give a note to conference what happen, may be it can help to somebody else.
Thanks
Robert -
Binary data problem with web services on JRockit but not Sun JDK
I have a problem with binary data in SOAP and JRockit
(jrrt-3.0.0-1.6.0-linux-x64.bin) . I have an set of web services based
on EJB 3.0 which return images as byte arrays inside a SOAP envelope
to be consumed by .NET 2 services. The host app server is Oracle
Application Server 10.3.1 on RHEL Linux update 4, on 64 bit Xeon 5500
series HP blade hardware.
While most images are fine most of the time, one particular image
gives this message when being consumed in the .NET client:
The '■' character, hexadecimal value 0x1F, cannot be included in a
name. Line 2, position 380038.
The MSDN suggests that this is usually caused by non-escaping of reserved XML characters like < but this isn't one of those.
The SOAP looks ok and for the life of me I can't see why this ought to
be a problem, especially since the problem doesn't arise running with
the SUN JDK 1.6_06 64 bit)
When making the same call from the OAS Enterprise Manager, I can make the same call with no problem (but the data is just rendered as character data in a browser) which maybe suggests some incompatibility with how JRockit is serializing the data ?
Any ideas, I would be very happy to hear - JRockit gives a 15% or so
speed boost to the website that these services power so obviously we
want to use it if possible.
Edited by: RichLiv on Nov 14, 2008 4:54 AMSeems to be the case that using MTOM stops this problem with JRockit. Strange but apparently true (so far).
-
Difference between SUN JDK V1.4.2_05 and JDK V1.4.2_07
difference between SUN JDK V1.4.2_05 and JDK V1.4.2_07 and I want to the link in SUN for that. I want to know the bug fixes between them.
Perhaps you should look at the documentation which comes with JDK 1.4.2_08.
It has the bugs fixed listed. -
Revision: 11488
Author: [email protected]
Date: 2009-11-05 17:10:10 -0800 (Thu, 05 Nov 2009)
Log Message:
Resubmitting binary distribution of xercesPatch.jar from the third party module in the SDK and compiled it with Sun JDK 1.4.2_12.
QE notes: N/A
Doc notes: N/A
Bugs:
SDK-16818 - Must open-source the code for xercesPatch.jar.
Reviewer: Discussed with Gordon
Tests run: Checkintests
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-16818
Modified Paths:
flex/sdk/trunk/lib/xercesPatch.jar
flex/sdk/trunk/modules/thirdparty/xerces-patch/build.xmlDid you try this:
http://forum.java.sun.com/thread.jsp?thread=434718&forum=60&message=1964421 -
Where can I get a java API specification for jdk 6 update 7?
Where can I get a java API specification for jdk 6 update 7?
About jdk-6u7-windows-i586-p.exeFlying_eagle wrote:
I don't know what is it called. I think maybe it's a specification about api that lists java api and explains how to use them.
Such as a html file just like a dictionary.Well, the API documentation I posted a link of in reply #1 is not an explanation of how to use the Java classes. It is more a reference. When you need a thorough explanation, I recommend doing some tutorials, or buying a book.
Maybe you are looking for
-
I don't want my surfing to tracked from site to site. Some sites require cookies be turned on in order to access the data I want or to perform a transaction. Right now, I have Firefox set to not accept cookies until I run into a site that requires co
-
webwebweb installs as part of the (now defunct ?) videodownloader professional. It seems to also take over the search engine options in Firefox. I cannot delete it from the list.
-
How can I remove all my outlook contacts from my iphone contacts
Well, Thats was the first time I`ve used Icloud, so I don`t have much experience, and I just active Icloud on my devices and I dont know why all my outlook contacts went to my iphone contacts. How can I remove it on a easy way otherwise I would delet
-
Opening Hemera .hpi images
Does anyone know if there's a way of opening Hemera .hpi images in Photoshop (CS3) other than via the clunky and unreliable (at best) Hemera browser? Thanks in advance.
-
I am upolading my first book and received the message: ERROR ITMS 9000: Index_split_001.xhtm(14): element "br" not allowed here. It says the error occurs twice. I created the ePub using Calibre and am attempting to upload is using iTunes Producer. Wh