Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jstatd question

807589Dec 26 2006 — edited Jul 28 2008
Hello there! I'm trying to get jstad running, but I'm running with some issues.
I'm using
jstatd -J-Djava.security.policy=jstatd.all.policy where this file has:
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};

first I was getting this message:

Could not bind /JStatRemoteHost to RMI Registry
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at sun.tools.jstatd.Jstatd.bind(Jstatd.java:40)
at sun.tools.jstatd.Jstatd.main(Jstatd.java:126)

So I changed to port 1098 because I read somewhere here that JBoss binds the naming to 1099 but the socket to 1098 or something like that.
Tried jstatd -J-Djava.security.policy=jstatd.all.policy -p 1098
and now I get this message:
Could not bind //:1098/JStatRemoteHost to RMI Registry
java.rmi.NoSuchObjectException: no such object in table
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at sun.tools.jstatd.Jstatd.bind(Jstatd.java:40)
at sun.tools.jstatd.Jstatd.main(Jstatd.java:126)

What's wrong in jstatd commands I'm using?

Best regards and happy holidays
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2008
Added on Dec 26 2006
5 comments
4,476 views