Skip to Content
0
May 11, 2016 at 11:12 AM

Error when setting Agentry (Work Manager 6.2) SSO logon + Load Balancing

196 Views

Hi,

I'm trying to setup JavaBE.ini to use SSO and load balancing at the same time. SSO through SAP Portal was already working, so in order to enable load balancing I uncommented the following lines and set value to the last 3 parameters, as in note https://launchpad.support.sap.com/#/notes/2314297/E

[JCO3_CUSTOM_PROPERTIES]

jco.client.ashost=

jco.client.sysnr=

jco.client.mshost=FQDN_Message_Server_hostname

jco.client.r3name=XXX

jco.client.group=XXXXXX

I left LOGON_METHOD=USER_AUTH_SSO and all [GROUP_LOGON] parameters are blank from before.

After doing that, I deploy the Agentry application and I get the below error in the log, and I'm not sure why. There are a couple of things in the log.

1. I'm not sure if this DEST=DESTINATION_SERVICE is a parameter that I should set somewhere. I didn't set any value for it

2. The error says something about Unicode and service ? unknown. Maybe something is missing in my configuration file?

See the log (I masked user name, host names and SAP parameters for obvious reasons):

05/11/2016 11:57:49, 1, 20, 18, Thr 8940, JAVA EXCEPTION CAUGHT: com.syclo.agentry.AgentryException: Could not login user SERVICEUSER - com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Initialization of destination DESTINATION_SERVICE failed: Connect to message server host failed

Connection parameters: TYPE=B DEST=DESTINATION_SERVICE MSHOST=FQDNhostname R3NAME=XXX GROUP=XXXXXX PCS=1

LOCATION CPIC (TCP/IP) on local host hostname with Unicode

ERROR service '?' unknown

TIME Wed May 11 11:57:49 2016

RELEASE 720

COMPONENT NI (network interface)

VERSION 40

RC -3

DETAIL NiErrSet

COUNTER 2

at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:899)

at com.sap.conn.jco.rt.RfcDestination.ping(RfcDestination.java:1304)

at com.syclo.sap.jco.JCo3Connection.beginDestination(JCo3Connection.java:288)

at com.syclo.sap.jco.JCo3Connection.openConnection(JCo3Connection.java:494)

at com.syclo.sap.jco.JCo3Connection.openCustomConnection(JCo3Connection.java:481)

at com.syclo.sap.auth.AbstractLoginModule.createClient(AbstractLoginModule.java:156)

at com.syclo.sap.auth.LoginModuleSSO.login(LoginModuleSSO.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)

at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)

at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)

at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)

at javax.security.auth.login.LoginContext.login(LoginContext.java:587)

at com.syclo.sap.User.handleJAASLogin(User.java:2680)

at com.syclo.sap.User.initSession(User.java:844)

at com.syclo.sap.Server.login(Server.java:483)

at com.syclo.sap.Server.createServiceUser(Server.java:1756)

at com.syclo.sap.Server.getServiceUser(Server.java:1874)

at com.syclo.sap.Server.loadSAPProperties(Server.java:854)

at com.syclo.sap.Server.initServer(Server.java:297)

at com.syclo.sap.Server.<init>(Server.java:272)

at com.syclo.sap.workmanager.Server.<init>(Server.java:26)

Caused by: com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Connect to message server host failed

Connection parameters: TYPE=B DEST=DESTINATION_SERVICE MSHOST=FQDNHostname R3NAME=XXX GROUP=XXXXXX PCS=1

LOCATION CPIC (TCP/IP) on local host hostname with Unicode

ERROR service '?' unknown

TIME Wed May 11 11:57:49 2016

RELEASE 720

COMPONENT NI (network interface)

VERSION 40

RC -3

DETAIL NiErrSet

COUNTER 2

at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:685)

at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1433)

at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:725)

at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:115)

at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:350)

at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:46)

at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:324)

at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:894)

... 26 more