Maximo Wire - The IBM Maximo Help & Discussion Forum
February 10, 2012, 03:13:09 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: Connection to server error  (Read 1050 times)
0 Members and 1 Guest are viewing this topic.
chandan
Newbie
*

Karma: 1
Posts: 4


View Profile
« 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 .....
Logged
mona
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #1 on: September 05, 2010, 12:51:58 am »

Hi Chandan,

Even I am a new bie to maximo customization. I am trying the same thing and getting the same error. And when I run the application in debug mode it gives error at session.connect() method. Please let me know if you find any solution for this. I really appreciate your time.

Thanks in advance.

Mona.
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 299



View Profile WWW
« Reply #2 on: September 07, 2010, 07:56:34 pm »

actually i am not sure how this kinda program runs.. coz i never tried it on my own...
Maximo customization doesnt work in this way. Maximo executes its own classes based on the application and actions you are performing.
not sure if you can access maximo this way or not.
Logged

regards,

Ethen...
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!