Mukesh Netedge

Greenhorn
+ Follow
since Apr 17, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mukesh Netedge

Thanks nathan for your support.
19 years ago
Hi Nathan,
I was going through http tunneling but i am not clear where i have to make changes so that to incorporate tunneling.
How rmi client(applet) will communicate to servlet?
Please guide me.
Thanks and regards,
Mukesh
19 years ago
Thanks alot nathan,
You are abosolutely right. When i open my applet on a machine which directly connects to internet the chat is working fine.
Now please suggest me some solution to run my chat across the firewall/proxy server.
Thanks in advance.
Mukesh
19 years ago
Thanks Nathan,
The ip address you have pointed is the local ip in my intranet.
This ip is not coded and not registered in any poperties file.
Let me explain the working of my rmi chat.
Chat applet is for client opens up from any desktop m/c like 192.168.2.155.
This applet then invoke another applet which is at different m/c. When any user start a new chat session the second applet automatically notify the user for new session.
Please guide me.
Mukesh
19 years ago
Hi All,
When i run chat applet on client machine it throwing an error as follow:
java.rmi.ConnectIOException: Exception creating connection to: 192.168.2.155; ne
sted exception is:
java.net.NoRouteToHostException: Operation timed out: no further informa
tion
java.net.NoRouteToHostException: Operation timed out: no further information
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at SMH.SMHchatterImp_Stub.openWindow(Unknown Source)
at SMHserver.SMHdatabaseServerImpl.assign(Unknown Source)
at SMHserver.SMHdatabaseServerImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
ce)
at java.lang.Thread.run(Unknown Source)
Please help me....
Thanks in advance.
Mukesh.
19 years ago
Thanks Nathan,
Here is the policy file which i am using....
// Standard extensions get all permissions by default
grant codeBase "file:${java.home}/lib/ext/*" {
permission java.security.AllPermission;
};
// default permissions granted to all domains
grant {
// Allows any thread to stop itself using the java.lang.Thread.stop()
// method that takes no argument.
// Note that this permission is granted by default only to remain
// backwards compatible.
// It is strongly recommended that you either remove this permission
// from this policy file or further restrict it to code sources
// that you specify, because Thread.stop() is potentially unsafe.
// See "http://java.sun.com/notes" for more information.
permission java.lang.RuntimePermission "stopThread";
// allows anyone to listen on un-privileged ports
// allows anyone to listen on un-privileged ports
permission java.net.SocketPermission "*:1024-65535", "connect,accept";
permission java.net.SocketPermission "*:80", "connect";
permission java.net.SocketPermission "*:1024-", "listen";
permission java.net.SocketPermission "*:1099-", "accept, connect, listen, resolve";
permission java.net.SocketPermission "*:8080-", "accept, connect, listen, resolve";

// "standard" properies that can be read by anyone
permission java.util.PropertyPermission "java.version", "read";
permission java.util.PropertyPermission "java.vendor", "read";
permission java.util.PropertyPermission "java.vendor.url", "read";
permission java.util.PropertyPermission "java.class.version", "read";
permission java.util.PropertyPermission "os.name", "read";
permission java.util.PropertyPermission "os.version", "read";
permission java.util.PropertyPermission "os.arch", "read";
permission java.util.PropertyPermission "file.separator", "read";
permission java.util.PropertyPermission "path.separator", "read";
permission java.util.PropertyPermission "line.separator", "read";
permission java.util.PropertyPermission "java.specification.version", "read";
permission java.util.PropertyPermission "java.specification.vendor", "read";
permission java.util.PropertyPermission "java.specification.name", "read";
permission java.util.PropertyPermission "java.vm.specification.version", "read";
permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
permission java.util.PropertyPermission "java.vm.specification.name", "read";
permission java.util.PropertyPermission "java.vm.version", "read";
permission java.util.PropertyPermission "java.vm.vendor", "read";
permission java.util.PropertyPermission "java.vm.name", "read";

};

Thanks
19 years ago
Thanks raimondas zemaitis,
I have seen the java console. It shows secutiry exeception and prmpt for permission on port no 1099. When i given the permission on this port then it shows the same error with different port no. I also used "1024-" for permissioning but of no use.
Please help me.
Mukesh
19 years ago
Yeh Sanjeev,
It might be possible that your column are not compatible with an ite value.
I'll suggest to try with long type or any other big numeric type.
Cheers
Hi JiaPei Jen ,
It seems you need count of the result set returns from the query according to the parameter passed.
Try the following query:
String query = "SELECT count(*****) as countNo FROM message_thread WHERE message_receiver = '" + memberName + "'";
or
String query = "SELECT count(*****) as countNo FROM message_thread WHERE message_receiver like '%" + memberName + "%'";
Then usinf your resultset retrieve the first element as
String noOfMembers=rs.getString("countNo")
Hope it will hepl you.
Mukesh
Dear All,
I have created a chat server using RMI.
The chat client is developed as java applets.
I am using tomcat 4.1.X web server.
When i deploy the chat server on our intranet then
applet interacts with the RMI server and creates chat
session as per the functionality.
When i deployed the same application on our webserver
(on internet) the the application is not working at all.
I have tried few things like changing the java policy
files, running the tomcat with -security option, but all
in vein.
Please help me.
Thanks in advance.
Mukesh
19 years ago