Skip to Content
0
Former Member
Mar 09, 2009 at 10:52 AM

Error while logging into CR server using SDK API

59 Views

I have crystal reports server 2008 running on Redhat linux machine. The CMS server (running on port 6400)and other servers are all up and running.

When I try to communicate to the server using the SDK API I am getting error message. Can someone help me. I tried many things like shutting down firewall at the server etc bit nothing work . The netstat -na command shows server is running on port 6400. I am going mad.

              String  authentication = "secEnterprise" 
              ISessionMgr sm = CrystalEnterprise.getSessionMgr();
		enterpriseSession = sm.logon(userName,password,cms,authentication)

Exception:

com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$CommunicationError: Communication error occurred when trying to connect to server 15.7.204.107:6400 (FWM 01009)

cause:com.crystaldecisions.thirdparty.org.omg.CORBA.TRANSIENT: attempt to establish connection failed: java.net.ConnectException: Connection timed out: connect minor code: 0x4f4f0001 completed: No

detail:Communication error occurred when trying to connect to server 15.7.204.107:6400 (FWM 01009) attempt to establish connection failed: java.net.ConnectException: Connection timed out: connect

at com.crystaldecisions.enterprise.ocaframework.RawAPSDirectory.find(RawAPSDirectory.java:252)

at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildAPSClusterInfo(APSServerHandler.java:425)

at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildServerInfo(APSServerHandler.java:142)

at com.crystaldecisions.enterprise.ocaframework.ServerController.redirectServer(ServerController.java:546)

at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.redirectServer(ServiceMgr.java:1060)

at com.crystaldecisions.enterprise.ocaframework.ManagedSessions.get(ManagedSessions.java:250)

at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(ServiceMgr.java:694)

at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:504)

at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:648)

at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:295)

at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:162)

at com.crystaldecisions.sdk.framework.internal.SessionMgr.authenticate(SessionMgr.java:598)