cancel
Showing results for 
Search instead for 
Did you mean: 

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

Marçal_Oliveras
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

mark_pe
Active Contributor
0 Kudos

Marcal,

Just checking is this still an issue for you?  The reason for this question is we in support have an open request to our dev team to improve the documentation for SSO login + Loadbalancing setup.  Currently we are still waiting for it.

Our known documentation is pointing to the customer to set it up themselves.

See Reference KBA # 2041039 - Enable Stateful Connection (See very bottom).   Your other SAP KBA listed above showed some other example but we are also asking for a better doc from SAP side.

Just wondering if this is still an issue as we realized it was submitted on May.

Regards,

SAP Mobile Support Team

Marçal_Oliveras
Active Contributor
0 Kudos

Hi Mark,

I forgot to update this one.

I found the solution myself. I had to add an entry to windows services file of the server where SMP is installed (C:\Windows\System32\drivers\etc\services) with the hostname and its port, something like this:

SAPBackendHostName  portNumber/tcp

I hope you can add it to the official documentation.

mark_pe
Active Contributor
0 Kudos

Marcal,

Thanks for Sharing.  This will help the SAP community of users.

Have a great day.

Regards,

Mark Pe
SAP Platinum Support Engineer

Answers (0)