chandan
Newbie
Karma: 1
Posts: 4
|
 |
« on: February 11, 2009, 02:36:42 pm » |
|
I wrote a simple class to connect to maximo 7.1 server, code goes like ... This package and project contain only one class
servername is correct and is : 01hw119112:9080
package company.show;
import java.rmi.RemoteException; import psdi.util.MXException; import psdi.util.MXSession;
public class TestCompShow {
/** * @param args */ public static void main(String[] args) throws RemoteException, MXException{ // TODO Auto-generated method stub
MXSession ms = MXSession.getSession(); ms.setHost("01hw119112:9080"); ms.setUserName("maxadmin"); ms.setPassword("maxadmin"); ms.connect(); System.out.println("MAXADMIN logged in successfully"); ms.disconnect(); System.out.println("MAXADMIN logged out successfully"); //System.out.println("Hello World"); } }
when i try to execute it following error is flashed .....
psdi.util.MXSystemException: system#notboundexception at psdi.util.RMISession.connect(RMISession.java:110) at company.show.TestCompShow.main(TestCompShow.java:22) Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketTimeoutException: Read timed out at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) at sun.rmi.server.UnicastRef.newCall(Unknown Source) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at java.rmi.Naming.lookup(Unknown Source) at psdi.util.RMISession.getMXServer(RMISession.java:232) at psdi.util.RMISession.connect(RMISession.java:52) ... 1 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.DataInputStream.readByte(Unknown Source) ... 8 more Exception in thread "main"
please help me to get started with my first maximo program ..... please suggest me the solution for this .....
|