Hi Dell,
Thanks for your reply.
Actually server is installed in another system. I am trying to connect to the server from a different system, both are in same network.
In the developer guide it specifying that we can log on to the system using statement :
IEnterpriseSession enterpriseSession = sessionManager.logon("username", "password", "<cms>:<port>", "secEnterprise");
From the Central management console, in settings I got the following details.
CMS Name: | ERPBOP.CentralManagementServer (ERPBOP.xxx:6400) |
Cluster Name: | @ERPBOP.xxx:6400 |
Cluster Members: | ERPBOP.CentralManagementServer (ERPBOP.xxx:6400) |
So when I used the above details in connecting with the server I am getting the following errors :
enterpriseSession = enterpriseSessionMgr.logon(userName, password, systemName, authType);
1) when I am using systemName = ERPBOP.xxx:6400
Error :
com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$NotFoundInDirectory: Server ERPBOP.xxx:6400 not found or server may be down (FWM 01003)
cause:java.net.ConnectException: Connection refused: connect
detail:Server ERPBOP.xxx:6400 not found or server may be down (FWM 01003) Connection refused: connect
at com.crystaldecisions.enterprise.ocaframework.RawSocketDirectory.find(RawSocketDirectory.java:237)
at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildBootstrapAPSInfo(APSServerHandler.java:256)
at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildAPSClusterInfo(APSServerHandler.java:514)
at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildServerInfo(APSServerHandler.java:192)
at com.crystaldecisions.enterprise.ocaframework.ServerController.redirectServer(ServerController.java:531)
at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.redirectServer(ServiceMgr.java:933)
at com.crystaldecisions.enterprise.ocaframework.ManagedSessions.get(ManagedSessions.java:254)
at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService_aroundBody4(ServiceMgr.java:516)
at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(ServiceMgr.java:1)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:643)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:814)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:208)
at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:203)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody0(SessionMgr.java:457)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody1$advice(SessionMgr.java:512)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)
at com.sap.bibo.service.SampleService.main(SampleService.java:26)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:75)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:337)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:198)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at com.crystaldecisions.enterprise.ocaframework.RawSocketDirectory.find(RawSocketDirectory.java:194)
... 16 more
2)When I am using systemName = @ERPBOP.xxx:6400
Error :
com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$ServiceConnection: Unable to connect to service from server via CMS (FWM 01006)
at com.crystaldecisions.enterprise.ocaframework.ServerController.redirectServer(ServerController.java:561)
at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.redirectServer(ServiceMgr.java:933)
at com.crystaldecisions.enterprise.ocaframework.ManagedSessions.get(ManagedSessions.java:254)
at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService_aroundBody4(ServiceMgr.java:516)
at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(ServiceMgr.java:1)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:643)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:814)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:208)
at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:203)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody0(SessionMgr.java:457)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody1$advice(SessionMgr.java:512)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)
at com.sap.bibo.service.SampleService.main(SampleService.java:40)
Please help me how can I resolve these errors.
Thank you.
Regards
Vijay