cancel
Showing results for 
Search instead for 
Did you mean: 

Custom app Java back end error in SMP 3.0

Former Member
0 Kudos

Hi All,

I am working on custom SAP Work Manager 6.2 application om SMP 3.0.

I have created the agentry app in cockpit and published my front end definitions to development server.

Modified the javaBE.ini file to connect to the custom mobile application with standard front end definitions and java code. Here the app is working fine with out any errors.

Now I have customized some of the front end definitions and java code and I published the definitions to the development server and modified the Java class path with custom .jar file in Agentry.ini file.

And made some parameter changes in config panel with custom java classes and BAPI_WRAPPERS. I have made changes to the standard SAP WM source code by changing the package and some some custom code in side the classes and POJO object. Same classes and objects are mapped to the respective BAPI_WRAPPERS, STEPHANDLERS & SAPOBJECTS in config panel.

I have modified the java class path in Agentry.ini file , I haven't changed anything in cockpit back end connections because I thought the java class path would get updated when ever the SMP server got restarted.

But unfortunately, when doing the app test I got "Communications Error" in device and I could not able to see "I am here" message in browser.

Please refer to below SMP Server Logs & Events log and suggest if I missed any configuration changes

SMP Server log error:

2015 02 25 12:11:02#+1000#ERROR#org.osgi.service.log.LogService##anonymous#org.eclipse.virgo.medic.log.osgi.OSGiLogServiceListener@58b900b8###Bundle com.sap.it.ictools.mapping.core.valuemapping_1.16.3, [SCR] Component definition XMLs not found in bundle com.sap.it.ictools.mapping.core.valuemapping. The component header value is OSGI-INF/*.xml |

2015 02 25 12:11:02#+1000#ERROR#org.osgi.service.log.LogService##anonymous#org.eclipse.virgo.medic.log.osgi.OSGiLogServiceListener@58b900b8###Bundle org.eclipse.equinox.ds_1.4.0.v20120112-1400, [SCR] Component definition XMLs not found in bundle com.sap.it.ictools.mapping.core.valuemapping. The component header value is OSGI-INF/*.xml |

2015 02 25 12:11:38#+1000#ERROR#System.err##anonymous#Start Level Event Dispatcher###log4j:WARN No appenders could be found for logger (com.sap.mobile.platform.server.general.dbstatus.Activator). |

2015 02 25 12:11:38#+1000#ERROR#System.err##anonymous#Start Level Event Dispatcher###log4j:WARN Please initialize the log4j system properly. |

2015 02 25 12:11:38#+1000#ERROR#System.err##anonymous#Start Level Event Dispatcher###log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. |

2015 02 25 14:16:09#+1000#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread###com.syclo.agentry.LoginBlockedException: Invalid Credentials |

2015 02 25 14:16:09#+1000#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.Server.login(Server.java:521) |

2015 02 25 14:16:09#+1000#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.Server.createServiceUser(Server.java:1749) |

2015 02 25 14:16:09#+1000#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.Server.getServiceUser(Server.java:1867) |

2015 02 25 14:16:09#+1000#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.Server.loadSAPProperties(Server.java:854) |

2015 02 25 14:16:09#+1000#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.Server.initServer(Server.java:297) |

2015 02 25 14:16:09#+1000#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.Server.<init>(Server.java:272) |

2015 02 25 14:16:09#+1000#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.workmanager.Server.<init>(Server.java:30) |

2015 02 25 14:16:09#+1000#ERROR#com.sap.mobile.platform.server.agentry.console##anonymous#Agentry Dev Def Load Loop Thread###Exception: 14:16:09 02/25/2015 : 20 (Agentry3), JavaBackEndError (JAVA EXCEPTION CAUGHT: com.syclo.agentry.AgentryException: Invalid Credentials),  |

2015 02 25 16:59:06#+1000#ERROR#com.sap.mobile.platform.server.agentry.console##anonymous#Agentry SAPWM62 Worker Thread###Exception: 16:59:06 02/25/2015 : 3 (Agentry), XFailedToSendResponse (202, 4, 26, XXXX, ), ..\agentry\netmsg.cpp#280:NetMessage::respond |

Thanks in Advance,

Roopa.

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

From the error messages you posted it appears as if the Agentry server is unable to connect to your backend SAP system. 

14:16:09#+1000#ERROR#com.sap.mobile.platform.server.agentry.console##anonymous#Agentry Dev Def Load Loop Thread###Exception: 14:16:09 02/25/2015 : 20 (Agentry3), JavaBackEndError (JAVA EXCEPTION CAUGHT: com.syclo.agentry.AgentryException: Invalid Credentials),

It looks like the user / password is invalid.  Please confirm your JavaBE.ini settings.  Also, any changes to your backend settings in the Agentry.ini should be done through the Management Cockpit and not directly on the Agentry.ini file.

--Bill

Former Member
0 Kudos

Hi Bill,

Many thanks for the reply.

Below is my JavaBE.ini file. Where I need to maintain the credentials for successful back end connection.

[HOST]

server=XXXXXXXXX

;  mobile application name configured in sap like SMART_WORK_MANAGER_51, SMART_CUSTOMER_SERVICE_10, SMART_ISU_WORK_MANAGER_10...etc

APPNAME=ZSAP_WORK_MANAGER_62

[CONFIG]

;  Used to get the SAP Configutaions from SAP if source=SAP or from JavaBE ini file

;  SAP Configurations are [ENABLE_TABLE], [TABLE_CHECK], [TABLE_REFRESH], [BAPI_WRAPPER],

;  [SAPOBJECT], [CT_SAPOBJECT], [CT_BAPI_WRAPPER], [CT_RETURN_TABLE], [CT_DELETE_TABLE].....etc

source=SAP

[JCO]

CLASS=JCO3

[TEST_LOGON]

UID=

UPASSWORD=

UGUID=

SERVERSERIALNUM=

;  Service login user is used to get the SAP Configutaions from SAP if source=SAP

;  Set ENABLED=true if source=SAP or ENABLED=false if source=INI

;  If ENABLED=true, set the UID, UPASSWORD and SERVERSERIALNUM

;  SERVERSERIALNUM is the Agentry server serial number

[SERVICE_LOGON]

ENABLED=true

UID=RFC_AGE_ECC

UPASSWORD=llewie?:$~m}jpmh414h

UPASSWORDENCODED=true

SERVERSERIALNUM=ZSAP_WORK_MANAGER_62

[PUSH_LOGON]

ENABLED=true

UID=RFC_AGE_ECC

UPASSWORD=llewie?:$~m}jpmh414h

UPASSWORDENCODED=true

SHAREDCONNECTION=10

[CLIENT_NUM]

CLIENT=400

;CLIENT=010

[SYSTEM_NUM]

;SYSNUM=33

SYSNUM=03

[LANGUAGE]

LANG=EN

[LOGGING]

;1=Fatal, 2=Error, 3=Warning, 4=Info, 5=debug, 6=trace

Level=4

[LOGON_METHOD]

;  USER_AUTH if standard UID/Password authentication is used

;  USER_AUTH_GLOBAL if pooled connections using single UID/Password is used

;  USER_AUTH_GROUP if UID/Password authentication with SAP Message Server

;   (load balancing) is used

;  USER_AUTH_SSO if SSO2 ticket authentication with SAP Portal Server is used

;  USER_AUTH_CUSTOM for a custom login module setup

LOGON_METHOD=USER_AUTH

[GLOBAL_LOGON]

;  referenced when LOGON_METHOD=USER_AUTH_GLOBAL

;  uses a pool of connections to the SAP backend all utilizing a single

;    UID/password

UID=

UPASSWORD=

SHAREDCONNECTION=100

[GROUP_LOGON]

;  referenced when LOGON_METHOD=USER_AUTH_GROUP

;  individual user authentication using an SAP Message Server which distributes

;  client connections among a "group" of SAP application servers based on load

;  balancing criteria

;

UID=

UPASSWORD=

SHAREDCONNECTION=

;  host name or IP address of SAP Message Server

MESSAGE_SERVER=

R3_NAME=

GROUP_NAME=

SYSTEM_ID=

CLIENT=

SHAREDCONNECTIONS=

[USER_AUTH_SSO]

; referenced when LOGON_METHOD=USER_AUTH_SSO

; SSO related information for use in LoginModuleSSO to facilitate login to

; an SAP system using tickets from a message server.

;

PORTAL_URL=https://server:port/irj/portal

; verificaiton file from the portal. Not required, but if portal names are different from the authenticated username, it will be needed to decode the name.

VERIFICATION_USE=false

;VERIFICATION_FILENAME=verify.pse

;VERIFICATION_PASSWORD=

;VERIFICATION_PASSWORD_ENCODED=false

; key store for client authentication to the server if required

KEY_STORE_USE=false

;KEY_STORE_TYPE=WINDOWS-MY

;KEY_STORE_FILENAME=keystoreFileName

;KEY_STORE_PASSWORD=

;KEY_STORE_PASSWORD_ENCODED=false

; trust store for server authentication to the client (accepting only trusted servers to prevent MITM attacks)

TRUST_STORE_USE=true

TRUST_STORE_TYPE=WINDOWS-ROOT

;TRUST_STORE_FILENAME=truststoreFileName

;TRUST_STORE_PASSWORD=

;TRUST_STORE_PASSWORD_ENCODED=false

COOKIE=MYSAPSSO2

HTTPTYPE=https

SSL_VERSION=SSLv3

JAVA_SECURITY_DEBUG=false

JAVA_NET_DEBUG=false

; classes to instantiate for the sso client and the callback handler

SSOCLIENT_CLASS=com.mysap.sso.SSOClient

CALLBACK_HANDLER_CLASS=com.syclo.sap.auth.CallbackHandler

[USER_AUTH_CUSTOM]

; referenced when LOGON_METHOD=USER_AUTH_CUSTOM

; custom defined login configuration that use JAAS for authentication

;

MODULE_CLASS_1=com.syclo.sap.auth.LoginModuleBasic

MODULE_CLASS_1_FLAG=REQUIRED

MODULE_CLASS_1_OPTION_1_KEY=CLIENT_NUM

MODULE_CLASS_1_OPTION_1_VALUE=clientNum

MODULE_CLASS_1_OPTION_2_KEY=HOST

MODULE_CLASS_1_OPTION_2_VALUE=serverHostName

MODULE_CLASS_1_OPTION_3_KEY=SYS_NUM

MODULE_CLASS_1_OPTION_3_VALUE=sysNum

;MODULE_CLASS_2=

;MODULE_CLASS_2_FLAG=

;

;MODULE_CLASS_3=

;MODULE_CLASS_3_FLAG=

; class to instantiate for the callback handler

CALLBACK_HANDLER_CLASS=com.syclo.sap.auth.CallbackHandler

[REQUIRED_BAPI_WRAPPER]

com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK

com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT

com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET

com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET

com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD

com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD

com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET

com.syclo.sap.bapi.GetEmployeeDataBAPI=/SMERP/HR_DOEMPLOYEE_DATA_GET

com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL

com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET

com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD

com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT

com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL

com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET

com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD

com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT

com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL

com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET

com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD

com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL

com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL

com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD

com.syclo.sap.bapi.SignatureCaptureBAPI=/SMERP/CORE_DOBDSDOCUMENT_CRT

[REQUIRED_BAPI_CLASS_MAPPING]

ChangePasswordBAPI=com.syclo.sap.bapi.ChangePasswordBAPI

CTBAPI=com.syclo.sap.bapi.CTBAPI

CTConfirmationBAPI=com.syclo.sap.bapi.CTConfirmationBAPI

DTBAPI=com.syclo.sap.bapi.DTBAPI

GetEmployeeDataBAPI=com.syclo.sap.bapi.GetEmployeeDataBAPI

GetUserDetailBAPI=com.syclo.sap.bapi.GetUserDetailBAPI

GetUserProfileDataBAPI=com.syclo.sap.bapi.GetUserProfileDataBAPI

LoginCheckBAPI=com.syclo.sap.bapi.LoginCheckBAPI

PushClearUserQueueBAPI=com.syclo.sap.bapi.PushClearUserQueueBAPI

PushResetUserQueueBAPI=com.syclo.sap.bapi.PushResetUserQueueBAPI

PushStatusUpdateBAPI=com.syclo.sap.bapi.PushStatusUpdateBAPI

RemoteObjectCreateBAPI=com.syclo.sap.bapi.RemoteObjectCreateBAPI

RemoteObjectDeleteBAPI=com.syclo.sap.bapi.RemoteObjectDeleteBAPI

RemoteObjectGetBAPI=com.syclo.sap.bapi.RemoteObjectGetBAPI

RemoteParameterGetBAPI=com.syclo.sap.bapi.RemoteParameterGetBAPI

RemoteReferenceCreateBAPI=com.syclo.sap.bapi.RemoteReferenceCreateBAPI

RemoteReferenceDeleteBAPI=com.syclo.sap.bapi.RemoteReferenceDeleteBAPI

RemoteReferenceGetBAPI=com.syclo.sap.bapi.RemoteReferenceGetBAPI

RemoteUserCreateBAPI=com.syclo.sap.bapi.RemoteUserCreateBAPI

RemoteUserDeleteBAPI=com.syclo.sap.bapi.RemoteUserDeleteBAPI

SignatureCaptureBAPI=com.syclo.sap.bapi.SignatureCaptureBAPI

SystemInfoBAPI=com.syclo.sap.bapi.SystemInfoBAPI

Please Suggest.

Thanks & Regards,

Roopa

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

The login credentials are set in the following section.

[SERVICE_LOGON]

ENABLED=true

UID=RFC_AGE_ECC

UPASSWORD=llewie?:$~m}jpmh414h

UPASSWORDENCODED=true

SERVERSERIALNUM=ZSAP_WORK_MANAGER_62

If you change the password and enter a new one in the .ini file you will also need to set UPASSWORDENCODED=false.

--Bill