cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry SAP Service User problem

Former Member
0 Kudos

Hi,

please I am getting stuck with strange type of error.

Agentry application worked fine but when we were migrating to new backend and we changedservice user type from "dialog" to "communication" in sap (roles stayed same, so user have same rights) , we are getting error:

From logs: Failed to init Java Back End (Java v6.0.14.0 (JVM version 1.6.0_38, AJAPI version  build )) from ag3javabe.dll

Here is sample of our actual JavaBe.ini

[HOST]
server=[production_backend]
;  mobile application name configured in sap like

SMART_WORK_MANAGER_51, SMART_CUSTOMER_SERVICE_10,

SMART_ISU_WORK_MANAGER_10...etc
APPNAME=[APP_NAME]

[ZSKSE_Configuration]
EnableStandardFeatures=false

[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

[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=[communication_user]
UPASSWORD=[password]
UPASSWORDENCODED=false
SERVERSERIALNUM=AVXMLJIOMEBIPLKH

[PUSH_LOGON]
ENABLED=false
UID=
UPASSWORD=
UPASSWORDENCODED=false
SHAREDCONNECTION=10

[CLIENT_NUM]
CLIENT=010
;CLIENT=010

[SYSTEM_NUM]
;SYSNUM=33
SYSNUM=20

[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
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=

[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_GE

T
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=/SYCLO/HR_EMPLOYEE_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_KEYMA

P_CRT
com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMA

P_DEL
com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_U

PD
com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DE

L
com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRT

Thank you for any help

Martin Fedorko

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Issue was caused due problems on backend. There were missing some prerequerties. Thank you

ray_isada
Participant
0 Kudos

You should be able to use either one of those user types as long as they have the authorizations listed below.

***

SAP Service User Authorization for Agentry Server

All SAP service users need the following authorization.S_RFC Object

The following rights are needed for the S_RFC object:

Activity: Execute

Name of RFC:
RFC1
SDIFRUNTIME
SYST
SG00
SRFC
SYSU
/SYCLO/*

Type of RFC Object: Function Group

***

Can you confirm that the user (communication_user) set in the JavaBE.ini's [SERVICE_LOGON] section is able to log in to the SAP backend with no issues? Are you getting PASSWORD_EXPIRED errors?

Thanks,

Ray

jason_latko
Advisor
Advisor
0 Kudos

Martin,

I wouldn't think user rights would cause the java back-end to fail to initialize.  If you put that user back the way it was, does the error go away?  Please post the contents of your Agentry.ini file, and the error portion of your server.log.  This is where we need to start looking to debug this, not Javabe.ini.  Thanks,

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

I did additional tests and also change user type and error is still here. So it isn't problem of user type. But it is strange, because user have same role as in old backend, and if we change javaBe server to old backend , it works fine.

Former Member
0 Kudos

Agentry.ini:

[Agentry]
messageLogFile=messages.log
eventLogFile=events.log
logMaxSize=0
logRollTime=1:45
logRollsAtTime=true
systemName=SAP Work Manager Server v5.3.0.0

[Server]
autoRegister=true
inactiveTimeout=600
allowRelogin=true
notifyUserOnLogout=false
notifyUsersOnShutdown=false
userKey=POXNHFMHKHKGOKNP
devKey=POXFHJIHFNLGAQSP
expKey=CTTIHJGIEDFLDRSB

[Server Administration]
authenticationCertificateStore=AgentryServer.pfx
authenticationCertificateStorePassword=Rzdrj~SwixoAqzmbVxgi
authenticationCertificateStorePasswordEncoded=true
;trustedCertificateStore=
;authenticateClient=false
; If you wish to bind the Server Administration ports to specific TCP ports,
; use the settings below.  Each one takes either "port number" or
; "interface address:port number".  Only the interface name in commandPipePort
; is significant, and controls which interface both ports will be bound to.
; The statusPipePort must either contain the same host name, or only a port
; number, or the server will fail to start.  Both values default to 0, which
; causes both ports to be allocated dynamically and bound to all interfaces.
;commandPipePort=0
;statusPipePort=0

[Front Ends]
1=angelvine.dll

[ANGEL Front End]
trustedCertificateStore=
authenticationCertificateStore=AgentryServer.pfx
authenticationCertificateStorePassword=Rzdrj~SwixoAqzmbVxgi
authenticationCertificateStorePasswordEncoded=true
authenticateClient=false
timeout=300
keepAliveTime=60
;Leave the Cipher Strength settings commented out for the system to select them automatically.
;minimumCipherStrength=40
;maximumCipherStrength=512

[ANGEL Front End Ports]
1=7003
;2=127.0.0.1:7013

[TCP Front End]
listenOn=7001
timeout=300

[Configuration]
developmentServer=False
enableOverrideFile=Enables.ini
clientStringsFile=ClientText.ini
applicationStringsFile=ApplicationText.ini
applicationGlobalsFile=Globals.ini
clientStringNamesFile=ClientStringNames.ini
overrideTypesFile=OverrideTypes.ini
transmitConfigurationFile=TransmitConfigurations.ini
enableTransactionFailureHandling=false
enableFailedTransactionLogging=true
failedTransactionsQueue=FailedTransactionsQueue
failedTransactionFilenameFormat=%{userid} %{transaction_name} %{date} %{time}-%{count}.xml
apnsEnabled=true
apnsCertificateDirectory=apnsCertificates
apnsCertificatePassword=Rzdrj~SwixoAqzmbVxgi
apnsCertificatePasswordEncoded=true
localizations=sk;

[Agents]
1=ag3.dll

[System Connections]
2=ag3httpxmlbe.dll
1=ag3javabe.dll


[Web Server Front End]
listenOn=80
permitGetCGI=true
xslDirectory=xsl
resourceDirectory=resource
authenticationCertificateStore=AgentryServer.pfx
authenticationCertificateStorePassword=Rzdrj~SwixoAqzmbVxgi
authenticationCertificateStorePasswordEncoded=true

[Web Server MIME Types]
ico=image\x-icon
wmls=text/vnd.wap.wmlscript
png=image/png
gif=image/gif
css=text/css

[Server Side Clients]
1=ServerSideClient.dll

[SpinDoc]
os=windows
facePath=sql\custom;sql

;Use this section to enter TimeZoneAlias values
[TimeZoneAlias]
[HTTPXML-2]
name=HTTP-XML Back End
authenticationCertificateStore=MY
authenticationCertificateStorePassword=
authenticationCertificateStorePasswordEncoded=false
autoDequote=true
baseURL=http://localhost:8282
basicAuthenticationPassword=
basicAuthenticationPasswordEncoded=false
basicAuthenticationUserID=
constantsFile=httpxml_sd.ini
enableAuthentication=false
enablePreviousUserAuthentication=false
httpConnectTimeout=60
httpReceiveTimeout=300
httpResolveTimeout=60
httpSendTimeout=300
listenOn=8282
timeout=300
timeZoneName=
useSSL=false
xmlAllowXSLTScript=true
xmlNamespaces=
xmlResolveExternals=true
xmlValidateOnParse=true
[Java-1]
classPath=./ini4j.jar;./sapjco.jar;./Java/Agentry-v5.jar;./Java;./Java/SAPWM-5.3.0.0.jar;./Java;./Java/SAPCommon-122971.jar;
constantsFile=
deleteSource=True
enableAuthentication=True
enablePreviousUserAuthentication=True
initialHeapSize=256
maxHeapSize=512
name=Java Back End
outputDirectory=.
performCompile=False
printBusinessLogicStackTrace=False
printStackTrace=False
reduceOSSignalUse=True
scriptsPath=
serverClass=com/syclo/sap/workmanager/Server
sourceDirectory=.
nonStandardJavaOptions=
timeZoneName=

[LastUpdates]
Java-1=16:8:40 2/7/2014

jason_latko
Advisor
Advisor
0 Kudos

Martin,

Please turn on logging for the Agentry server and post the error logs here.  We need more details on the error to assist.

Jason Latko - Senior Product Developer at SAP