on 02-05-2016 12:44 PM
Hi All
I use next document
How-to Build an Agentry Based Mobile App from Scratch Connecting to an SAP Back-end Part 1
to understand How-to Build an Agentry Based Mobile App from Scratch Connecting to an SAP Back-end Part 1
I use
- Java 8 update 66
- Eclipse Version: 4.2.2
Build id: M20130204-1200
- Agentry Editor Plugin 70.10.0.9 com.syclo.agentry.editor.feature.feature.group SAP AG
from Agentry_70.10.0_EditorPlugin_x86_64.zip
On the page 109 it is read:
16. Save the Agentry.ini file
17. Start your Agentry Server (Restart if it is already running)
18. Your Agentry Server should now start without any error.
When I restarted the SMP I got next errors in the
C:\SAP\MobilePlatform3\Server\log\agentry\events.log
-----
02/05/2016 13:56:45, 0, 0, 0, Thr 2220, New files opened events.log, messages.log
02/05/2016 13:56:45, 0, 0, 2, Thr 2220, Loading the Agentry Runtime's public/private key for password exchanges.
02/05/2016 13:56:45, 0, 0, 2, Thr 2220, Key pair loaded successfully.
02/05/2016 13:56:45, 0, 0, 2, Thr 2220, Agentry Startup
02/05/2016 13:56:45, 0, 1, 4, Thr 2220, Agentry Server Agent v130.7.0.4
02/05/2016 13:56:46, 0, 20, 150, Thr 4692, Loading Development application definitions
02/05/2016 13:56:47, 1, 20, 28, Thr 4692, Error starting Java System Connection Java-1: java.lang.NoClassDefFoundError: com/syclo/sap/Server
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:888)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:511)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:423)
at java.net.URLClassLoader$1.run(URLClassLoader.java:417)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:416)
at java.lang.ClassLoader.loadClass(ClassLoader.java:488)
at java.lang.ClassLoader.loadClass(ClassLoader.java:421)
Caused by: java.lang.ClassNotFoundException: com.syclo.sap.Server
at java.net.URLClassLoader$1.run(URLClassLoader.java:425)
at java.net.URLClassLoader$1.run(URLClassLoader.java:417)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:416)
at java.lang.ClassLoader.loadClass(ClassLoader.java:488)
at java.lang.ClassLoader.loadClass(ClassLoader.java:421)
... 11 more
Caused by: java.io.IOException: invalid header field name: Implementation-Build Number (C:\SAP\MobilePlatform3\Server\work\com.sap.mobile.platform.server.agentry.application.FlightBooking\4025878905697843920\4492238632760306006\SAPCommon-130881.jar:7)
at java.util.jar.Attributes.read(Attributes.java:457)
at java.util.jar.Manifest.read(Manifest.java:280)
at java.util.jar.Manifest.<init>(Manifest.java:87)
at java.util.jar.JarFile.getManifestFromReference(JarFile.java:182)
at java.util.jar.JarFile.getManifest(JarFile.java:166)
at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:771)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:478)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:423)
... 16 more
; (resolved class path: C:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.server.agentry.application.FlightBooking\ini4j.jar;C:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.server.agentry.application.FlightBooking\sapjco.jar;C:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.server.agentry.application.FlightBooking\SAPCommon-130881.jar;C:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.server.agentry.application.FlightBooking\ZFlightBooking.jar)javaBE.cpp#357:JavaBackEnd::init
02/05/2016 13:56:47, 0, 20, 152, Thr 4692, Loading Development application definitions for default localization
02/05/2016 13:56:47, 0, 20, 151, Thr 4692, Finished loading Development application definitions
02/05/2016 13:56:47, 0, 17, 14, Thr 2220, FlightBooking v130.7.0.4
02/05/2016 13:56:47, 0, 20, 4, Thr 2220, FlightBooking v130.7.0.4
02/05/2016 13:56:47, 0, 21, 4, Thr 2220, SAPWM62 v130.7.0.4
02/05/2016 13:56:47, 0, 22, 4, Thr 2220, SAPWM62_NEW v130.7.0.4
02/05/2016 13:56:47, 0, 17, 10, Thr 2220, FlightBooking v130.7.0.4
02/05/2016 13:56:47, 0, 0, 0, Thr 2220, Old log files moved into C:\SAP\MobilePlatform3\Server\log\agentry\rolled\2016-02-05-135644
02/05/2016 13:56:47, 0, 0, 23, Thr 2220, Agentry startup is complete.
02/05/2016 13:56:49, 0, 21, 5, Thr 2220, SAPWM62
02/05/2016 13:56:50, 0, 21, 150, Thr 4708, Loading Production application definitions using file "SAPWM-v1-0-0-app"
02/05/2016 13:56:50, 0, 21, 152, Thr 4708, Loading Production application definitions for default localization
02/05/2016 13:56:54, 0, 24, 4, Thr 4708, Loaded HTTP-XML Back End (HTTPXML v130.7.0.4) from ag3httpxmlbe.dll
02/05/2016 13:56:56, 0, 23, 4, Thr 4708, Loaded Java Back End (Java v130.7.0.4) from ag3javabe.dll
02/05/2016 13:56:57, 0, 21, 153, Thr 4708, Finished loading Production application definitions for default localization
02/05/2016 13:56:57, 0, 21, 151, Thr 4708, Finished loading Production application definitions using file "SAPWM-v1-0-0-app"
02/05/2016 13:56:57, 0, 17, 14, Thr 2220, SAPWM62 v130.7.0.4
02/05/2016 13:56:57, 0, 21, 4, Thr 2220, SAPWM62 v130.7.0.4
02/05/2016 13:56:57, 0, 17, 10, Thr 2220, SAPWM62 v130.7.0.4
02/05/2016 13:57:40, 0, 22, 5, Thr 2220, SAPWM62_NEW
02/05/2016 13:57:42, 0, 22, 150, Thr 4940, Loading Production application definitions using file "SAPWM-v1-0-0-app"
02/05/2016 13:57:43, 0, 22, 152, Thr 4940, Loading Production application definitions for default localization
02/05/2016 13:58:03, 0, 24, 4, Thr 4940, Loaded HTTP-XML Back End (HTTPXML v130.7.0.4) from ag3httpxmlbe.dll
02/05/2016 13:58:11, 0, 23, 4, Thr 4940, Loaded Java Back End (Java v130.7.0.4) from ag3javabe.dll
02/05/2016 13:58:11, 0, 22, 153, Thr 4940, Finished loading Production application definitions for default localization
02/05/2016 13:58:12, 0, 22, 151, Thr 4940, Finished loading Production application definitions using file "SAPWM-v1-0-0-app"
02/05/2016 13:58:12, 0, 22, 150, Thr 4940, Loading Production application definitions using file "SAPWM-v1-0-5-app"
02/05/2016 13:58:12, 0, 22, 152, Thr 4940, Loading Production application definitions for default localization
02/05/2016 13:58:28, 0, 22, 153, Thr 4940, Finished loading Production application definitions for default localization
02/05/2016 13:58:29, 0, 22, 151, Thr 4940, Finished loading Production application definitions using file "SAPWM-v1-0-5-app"
02/05/2016 13:58:29, 0, 22, 150, Thr 4940, Loading Production application definitions using file "SAPWM-v1-0-6-app"
02/05/2016 13:58:29, 0, 22, 152, Thr 4940, Loading Production application definitions for default localization
02/05/2016 13:58:42, 0, 22, 153, Thr 4940, Finished loading Production application definitions for default localization
02/05/2016 13:58:42, 0, 22, 151, Thr 4940, Finished loading Production application definitions using file "SAPWM-v1-0-6-app"
02/05/2016 13:58:43, 0, 22, 150, Thr 4940, Loading Production application definitions using file "SAPWM-v1-0-7-app"
02/05/2016 13:58:43, 0, 22, 152, Thr 4940, Loading Production application definitions for default localization
02/05/2016 13:59:01, 0, 22, 153, Thr 4940, Finished loading Production application definitions for default localization
02/05/2016 13:59:02, 0, 22, 151, Thr 4940, Finished loading Production application definitions using file "SAPWM-v1-0-7-app"
02/05/2016 13:59:02, 0, 22, 150, Thr 4940, Loading Production application definitions using file "SAPWM-v1-0-8-app"
02/05/2016 13:59:03, 0, 22, 152, Thr 4940, Loading Production application definitions for default localization
02/05/2016 13:59:20, 0, 22, 153, Thr 4940, Finished loading Production application definitions for default localization
02/05/2016 13:59:28, 0, 22, 151, Thr 4940, Finished loading Production application definitions using file "SAPWM-v1-0-8-app"
02/05/2016 13:59:28, 0, 22, 150, Thr 4940, Loading Production application definitions using file "SAPWM-v1-0-9-app"
02/05/2016 13:59:28, 0, 22, 152, Thr 4940, Loading Production application definitions for default localization
02/05/2016 13:59:43, 0, 22, 153, Thr 4940, Finished loading Production application definitions for default localization
02/05/2016 13:59:47, 0, 22, 151, Thr 4940, Finished loading Production application definitions using file "SAPWM-v1-0-9-app"
02/05/2016 13:59:47, 0, 22, 150, Thr 4940, Loading Production application definitions using file "SAPWM-v1-0-11-app"
02/05/2016 13:59:47, 0, 22, 152, Thr 4940, Loading Production application definitions for default localization
02/05/2016 14:00:10, 0, 22, 153, Thr 4940, Finished loading Production application definitions for default localization
02/05/2016 14:00:11, 0, 22, 151, Thr 4940, Finished loading Production application definitions using file "SAPWM-v1-0-11-app"
02/05/2016 14:00:19, 0, 17, 14, Thr 2220, SAPWM62_NEW v130.7.0.4
02/05/2016 14:00:19, 0, 22, 4, Thr 2220, SAPWM62_NEW v130.7.0.4
02/05/2016 14:00:22, 1, 2, 48, Thr 4940, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/05/2016 14:00:25, 1, 2, 48, Thr 4940, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/05/2016 14:00:25, 1, 2, 48, Thr 4940, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/05/2016 14:00:25, 1, 2, 48, Thr 4940, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/05/2016 14:00:25, 1, 2, 48, Thr 4940, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/05/2016 14:00:25, 1, 2, 48, Thr 4940, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/05/2016 14:00:40, 0, 17, 10, Thr 2220, SAPWM62_NEW v130.7.0.4
02/05/2016 14:56:45, 0, 0, 7, Thr 4628,
-----
startup.log also looks not Ok
---
13:56:44 02/05/2016: Starting Agentry (64-bit Windows)
13:56:45 02/05/2016: Reading system ini file.
13:56:45 02/05/2016: Starting log file.
13:56:45 02/05/2016: Loading message groups.
13:56:45 02/05/2016: Starting threads.
13:56:45 02/05/2016: 1 initial threads. Threads will auto-scale.
13:56:45 02/05/2016: Event: 0, 2, Loading the Agentry Runtime's public/private key for password exchanges.
13:56:45 02/05/2016: Event: 0, 2, Key pair loaded successfully.
13:56:45 02/05/2016: Starting Agentry: Agentry Server Agent v130.7.0.4
13:56:45 02/05/2016: Event: 0, 2, Agentry Startup
13:56:45 02/05/2016: Loading 0 front ends
13:56:45 02/05/2016: Starting Agentry Server Agent
13:56:45 02/05/2016: Agentry Server Agent: Starting threads.
13:56:45 02/05/2016: 1 initial threads. Threads will auto-scale.
13:56:45 02/05/2016: Agentry Server Agent: Adding messages.
13:56:45 02/05/2016: Event: 1, 4, Agentry Server Agent v130.7.0.4
13:56:45 02/05/2016: Loading agent from ag3.dll
13:56:45 02/05/2016: Starting FlightBooking
13:56:45 02/05/2016: FlightBooking: reading config file
13:56:46 02/05/2016: Event: 20, 150, Loading Development application definitions
13:56:46 02/05/2016: Initializing Java-BackendSAPConnection from ag3javabe.dll
13:56:46 02/05/2016: BackendSAPConnection: Reading configuration information.
13:56:46 02/05/2016: BackendSAPConnection: Setting name to 'Java-1'.
13:56:46 02/05/2016: Java-1: Initialized.
13:56:46 02/05/2016: Java-1: Java Virtual Machine already initialized.
13:56:47 02/05/2016: Exception: 13:56:47 02/05/2016 : 20 (Agentry3), BackEndInitError (Error starting Java System Connection Java-1: java.lang.NoClassDefFoundError: com/syclo/sap/Server
), at java.lang.ClassLoader.defineClass1(Native Method)
13:56:47 02/05/2016: Failed to init Java-1 (Java v130.7.0.4) from ag3javabe.dll
13:56:47 02/05/2016: Event: 20, 152, Loading Development application definitions for default localization
13:56:47 02/05/2016: Event: 20, 151, Finished loading Development application definitions
13:56:47 02/05/2016: FlightBooking: Starting threads.
13:56:47 02/05/2016: 1 initial threads. Threads will auto-scale.
13:56:47 02/05/2016: Loading front end from angelvine
13:56:47 02/05/2016: FlightBooking: loading configuration
13:56:47 02/05/2016: Event: 17, 14, FlightBooking v130.7.0.4
13:56:47 02/05/2016: Event: 20, 4, FlightBooking v130.7.0.4
13:56:47 02/05/2016: Loading agent from ag3.dll
13:56:47 02/05/2016: Starting SAPWM62
13:56:47 02/05/2016: Event: 21, 4, SAPWM62 v130.7.0.4
13:56:47 02/05/2016: Loading agent from ag3.dll
13:56:47 02/05/2016: Starting SAPWM62_NEW
13:56:47 02/05/2016: Event: 22, 4, SAPWM62_NEW v130.7.0.4
13:56:47 02/05/2016: Starting front ends
13:56:47 02/05/2016: Starting front end FlightBooking
13:56:47 02/05/2016: FlightBooking: Opening WebSockets servlet for sub-URL /FlightBooking
13:56:47 02/05/2016: Event: 17, 10, FlightBooking v130.7.0.4
13:56:47 02/05/2016: Event: 0, 0, Old log files moved into C:\SAP\MobilePlatform3\Server\log\agentry\rolled\2016-02-05-135644
13:56:47 02/05/2016: Event: 0, 23, Agentry startup is complete.
---
My Agentry.ini file contains next info
----
[Configuration]
developmentServer=true
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
gcmEnabled=true
gcmServerLink=https://android.googleapis.com/gcm/send
gcmServerAuthorizationKey=Authorization:key=AIzaSyDi0qWQEewdbmNSV_o9QNtSQrlxPnBXtBM
trustedCertificateStore=
[SpinDoc]
facePath=sql\custom;sql
;Use this section to enter TimeZoneAlias values
[TimeZoneAlias]
[Java-1]
enableAuthentication=true
classPath=./Java/Agentry-v5.jar;ini4j.jar;sapjco.jar;SAPCommon-130881.jar;ZFlightBooking.jar;
serverClass=com/syclo/sap/sflight/server/Server
----
and JavaBE.ini
---
[HOST]
server=192.168.0.192
APPNAME=Z00_FLIGHTBOOKING
[CONFIG]
source=SAP
[CLIENT_NUM]
CLIENT=100
[SYSTEM_NUM]
SYSNUM=00
[SERVICE_LOGON]
ENABLED=true
UID=DBOLSHAKOV
UPASSWORD=rbw,64;~yup2;-4sdq66
SERVERSERIALNUM=
[LANGUAGE]
LANG=EN
[LOGGING]
Level=4
[LOGON_METHOD]
LOGON_METHOD=USER_AUTH
;LOGON_METHOD=<logon method to SAP system>
;USER _AUTH - Standard User ID and password authentication is used.
;USER_AUTH_GLOBAL - Pooled connections using a single user ID and password; requires the section [GLOBAL_LOGON] to also be created.
;USER_AUTH_GROUP - User ID and password authentication with the SAP Message Server (load balancing) is used; requires the section [GROUP_LOGON] to also be created.
[GLOBAL_LOGON]
UID=
UPASSWORD=
SHAREDCONNECTION=100
[GROUP_LOGON]
MESSAGE_SERVER=
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_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
---
I would recommend changing the Agentry.ini Java section.
[Java-JavaConnection]
classPath={your classpath here}
constantsFile=
deleteSource=True
enableAuthentication=True
enablePreviousUserAuthentication=True
name=Java-JavaConnection
outputDirectory=.
performCompile=True
printBusinessLogicStackTrace=True
printStackTrace=True
scriptsPath=
serverClass={your server class here}
sourceDirectory=.
timeZoneName=
It's been a while since I played with the flight booker tutorial. I will have to go back and run through it again this week (time permitting).
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bill
I removed ./Java/Agentry-v5.jar from classPath and moved ZFlightBooking.jar into Java subfolder
So my FLIGHTBOOKING folder looks like this:
C:\SAP\MOBILEPLATFORM3\SERVER\CONFIGURATION\COM.SAP.MOBILE.PLATFORM.SERVER.AGENTRY.APPLICATION.FLIGHTBOOKING
│ Agentry.ini
│ ClientTextBase.ini
│ ini4j.jar
│ JavaBE.ini
│ log.txt
│ SAPCommon-130881.jar
│ sapjco.jar
│ sapjco3.jar
│
├───Application
│ └───Development
│ │ FlightBooking-app.agdz
│ │ FlightBooking-app.ini
│ │
│ ├───Modules
│ │ │ FlightBookingModule-mod.agdz
│ │ │
│ │ └───FlightBookingModule
│ │ ├───Actions
│ │ │ CloseThisScreenSet-act.agdz
│ │ │ ShowFlightScheduleDetails-act.agdz
│ │ │ Transmit-act.agdz
│ │ │
│ │ ├───Fetches
│ │ │ MainFetch-fet.agdz
│ │ │
│ │ ├───Objects
│ │ │ FlightSchedule-obj.agdz
│ │ │ MainObject-obj.agdz
│ │ │
│ │ ├───ScreenSets
│ │ │ ShowFlightScheduleDetails-scr.agdz
│ │ │ ShowFlightSchedules-scr.agdz
│ │ │
│ │ └───Steps
│ │ NewJavaSteplet1-stp.agdz
│ │
│ ├───Scripts
│ │ └───FlightBookingModule
│ │ NewJavaSteplet1.java
│ │
│ ├───SystemConnections
│ │ BackendSAPConnection-conn.agdz
│ │
│ └───TransmitConfigurations
│ Network-xmt.agdz
│
├───Java
│ ZFlightBooking.jar
│
└───OverrideInfoTable
OverrideInfoTable_Dev.bst
Agenty.ini
[Configuration]
developmentServer=true
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
gcmEnabled=true
gcmServerLink=https://android.googleapis.com/gcm/send
gcmServerAuthorizationKey=Authorization:key=AIzaSyDi0qWQEewdbmNSV_o9QNtSQrlxPnBXtBM
trustedCertificateStore=
[SpinDoc]
facePath=sql\custom;sql
;Use this section to enter TimeZoneAlias values
[TimeZoneAlias]
[Java-1]
enableAuthentication=true
classPath=./Java/ZFlightBooking.jar;ini4j.jar;sapjco.jar;SAPCommon-130881.jar;
serverClass=com/syclo/sap/sflight/server/Server
I restared SMP and got next log
02/08/2016 14:51:24, 0, 0, 0, Thr 5568, New files opened events.log, messages.log
02/08/2016 14:51:24, 0, 0, 2, Thr 5568, Loading the Agentry Runtime's public/private key for password exchanges.
02/08/2016 14:51:24, 0, 0, 2, Thr 5568, Key pair loaded successfully.
02/08/2016 14:51:24, 0, 0, 2, Thr 5568, Agentry Startup
02/08/2016 14:51:24, 0, 1, 4, Thr 5568, Agentry Server Agent v130.7.0.4
02/08/2016 14:51:26, 0, 20, 150, Thr 4320, Loading Development application definitions
02/08/2016 14:51:26, 1, 20, 28, Thr 4320, Error starting Java System Connection Java-1: java.lang.NoClassDefFoundError: com/syclo/sap/Server
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:888)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:511)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:423)
at java.net.URLClassLoader$1.run(URLClassLoader.java:417)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:416)
at java.lang.ClassLoader.loadClass(ClassLoader.java:488)
at java.lang.ClassLoader.loadClass(ClassLoader.java:421)
Caused by: java.lang.ClassNotFoundException: com.syclo.sap.Server
at java.net.URLClassLoader$1.run(URLClassLoader.java:425)
at java.net.URLClassLoader$1.run(URLClassLoader.java:417)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:416)
at java.lang.ClassLoader.loadClass(ClassLoader.java:488)
at java.lang.ClassLoader.loadClass(ClassLoader.java:421)
... 11 more
Caused by: java.io.IOException: invalid header field name: Implementation-Build Number (C:\SAP\MobilePlatform3\Server\work\com.sap.mobile.platform.server.agentry.application.FlightBooking\5439939750224648138\7554010748843796215\SAPCommon-130881.jar:7)
at java.util.jar.Attributes.read(Attributes.java:457)
at java.util.jar.Manifest.read(Manifest.java:280)
at java.util.jar.Manifest.<init>(Manifest.java:87)
at java.util.jar.JarFile.getManifestFromReference(JarFile.java:182)
at java.util.jar.JarFile.getManifest(JarFile.java:166)
at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:771)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:478)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:423)
... 16 more
; (resolved class path: C:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.server.agentry.application.FlightBooking\Java\ZFlightBooking.jar;C:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.server.agentry.application.FlightBooking\ini4j.jar;C:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.server.agentry.application.FlightBooking\sapjco.jar;C:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.server.agentry.application.FlightBooking\SAPCommon-130881.jar)javaBE.cpp#357:JavaBackEnd::init
02/08/2016 14:51:26, 0, 20, 152, Thr 4320, Loading Development application definitions for default localization
02/08/2016 14:51:26, 0, 20, 151, Thr 4320, Finished loading Development application definitions
02/08/2016 14:51:26, 0, 17, 14, Thr 5568, FlightBooking v130.7.0.4
02/08/2016 14:51:26, 0, 20, 4, Thr 5568, FlightBooking v130.7.0.4
02/08/2016 14:51:26, 0, 21, 4, Thr 5568, SAPWM62 v130.7.0.4
02/08/2016 14:51:26, 0, 22, 4, Thr 5568, SAPWM62_NEW v130.7.0.4
02/08/2016 14:51:26, 0, 17, 10, Thr 5568, FlightBooking v130.7.0.4
02/08/2016 14:51:26, 0, 0, 0, Thr 5568, Old log files moved into C:\SAP\MobilePlatform3\Server\log\agentry\rolled\2016-02-08-145124
02/08/2016 14:51:26, 0, 0, 23, Thr 5568, Agentry startup is complete.
02/08/2016 14:51:29, 0, 21, 5, Thr 5568, SAPWM62
02/08/2016 14:51:29, 0, 21, 150, Thr 5712, Loading Production application definitions using file "SAPWM-v1-0-0-app"
02/08/2016 14:51:29, 0, 21, 152, Thr 5712, Loading Production application definitions for default localization
02/08/2016 14:51:33, 0, 24, 4, Thr 5712, Loaded HTTP-XML Back End (HTTPXML v130.7.0.4) from ag3httpxmlbe.dll
02/08/2016 14:51:36, 0, 23, 4, Thr 5712, Loaded Java Back End (Java v130.7.0.4) from ag3javabe.dll
02/08/2016 14:51:37, 0, 21, 153, Thr 5712, Finished loading Production application definitions for default localization
02/08/2016 14:51:37, 0, 21, 151, Thr 5712, Finished loading Production application definitions using file "SAPWM-v1-0-0-app"
02/08/2016 14:51:37, 0, 17, 14, Thr 5568, SAPWM62 v130.7.0.4
02/08/2016 14:51:37, 0, 21, 4, Thr 5568, SAPWM62 v130.7.0.4
02/08/2016 14:51:37, 0, 17, 10, Thr 5568, SAPWM62 v130.7.0.4
02/08/2016 14:52:13, 0, 22, 5, Thr 5568, SAPWM62_NEW
02/08/2016 14:52:17, 0, 22, 150, Thr 4228, Loading Production application definitions using file "SAPWM-v1-0-0-app"
02/08/2016 14:52:18, 0, 22, 152, Thr 4228, Loading Production application definitions for default localization
02/08/2016 14:52:44, 0, 24, 4, Thr 4228, Loaded HTTP-XML Back End (HTTPXML v130.7.0.4) from ag3httpxmlbe.dll
02/08/2016 14:52:50, 0, 23, 4, Thr 4228, Loaded Java Back End (Java v130.7.0.4) from ag3javabe.dll
02/08/2016 14:52:51, 0, 22, 153, Thr 4228, Finished loading Production application definitions for default localization
02/08/2016 14:52:51, 0, 22, 151, Thr 4228, Finished loading Production application definitions using file "SAPWM-v1-0-0-app"
02/08/2016 14:52:51, 0, 22, 150, Thr 4228, Loading Production application definitions using file "SAPWM-v1-0-5-app"
02/08/2016 14:52:51, 0, 22, 152, Thr 4228, Loading Production application definitions for default localization
02/08/2016 14:53:05, 0, 22, 153, Thr 4228, Finished loading Production application definitions for default localization
02/08/2016 14:53:09, 0, 22, 151, Thr 4228, Finished loading Production application definitions using file "SAPWM-v1-0-5-app"
02/08/2016 14:53:09, 0, 22, 150, Thr 4228, Loading Production application definitions using file "SAPWM-v1-0-6-app"
02/08/2016 14:53:09, 0, 22, 152, Thr 4228, Loading Production application definitions for default localization
02/08/2016 14:53:25, 0, 22, 153, Thr 4228, Finished loading Production application definitions for default localization
02/08/2016 14:53:28, 0, 22, 151, Thr 4228, Finished loading Production application definitions using file "SAPWM-v1-0-6-app"
02/08/2016 14:53:28, 0, 22, 150, Thr 4228, Loading Production application definitions using file "SAPWM-v1-0-7-app"
02/08/2016 14:53:28, 0, 22, 152, Thr 4228, Loading Production application definitions for default localization
02/08/2016 14:53:43, 0, 22, 153, Thr 4228, Finished loading Production application definitions for default localization
02/08/2016 14:53:59, 0, 22, 151, Thr 4228, Finished loading Production application definitions using file "SAPWM-v1-0-7-app"
02/08/2016 14:53:59, 0, 22, 150, Thr 4228, Loading Production application definitions using file "SAPWM-v1-0-8-app"
02/08/2016 14:53:59, 0, 22, 152, Thr 4228, Loading Production application definitions for default localization
02/08/2016 14:54:23, 0, 22, 153, Thr 4228, Finished loading Production application definitions for default localization
02/08/2016 14:54:24, 0, 22, 151, Thr 4228, Finished loading Production application definitions using file "SAPWM-v1-0-8-app"
02/08/2016 14:54:24, 0, 22, 150, Thr 4228, Loading Production application definitions using file "SAPWM-v1-0-9-app"
02/08/2016 14:54:24, 0, 22, 152, Thr 4228, Loading Production application definitions for default localization
02/08/2016 14:54:51, 0, 22, 153, Thr 4228, Finished loading Production application definitions for default localization
02/08/2016 14:54:51, 0, 22, 151, Thr 4228, Finished loading Production application definitions using file "SAPWM-v1-0-9-app"
02/08/2016 14:54:51, 0, 22, 150, Thr 4228, Loading Production application definitions using file "SAPWM-v1-0-11-app"
02/08/2016 14:54:51, 0, 22, 152, Thr 4228, Loading Production application definitions for default localization
02/08/2016 14:55:11, 0, 22, 153, Thr 4228, Finished loading Production application definitions for default localization
02/08/2016 14:55:11, 0, 22, 151, Thr 4228, Finished loading Production application definitions using file "SAPWM-v1-0-11-app"
02/08/2016 14:55:43, 0, 17, 14, Thr 5568, SAPWM62_NEW v130.7.0.4
02/08/2016 14:55:44, 0, 22, 4, Thr 5568, SAPWM62_NEW v130.7.0.4
02/08/2016 14:55:49, 1, 2, 48, Thr 4228, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/08/2016 14:55:51, 1, 2, 48, Thr 4228, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/08/2016 14:55:51, 1, 2, 48, Thr 4228, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/08/2016 14:55:51, 1, 2, 48, Thr 4228, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/08/2016 14:55:51, 1, 2, 48, Thr 4228, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/08/2016 14:55:51, 1, 2, 48, Thr 4228, EADDRINUSE, Attempt to listen on an address in use, ..\Socket\win32\sockets.cpp#1438:ListeningStreamSocket::OSListeningSocket::listenOn
02/08/2016 14:56:15, 0, 17, 10, Thr 5568, SAPWM62_NEW v130.7.0.4
Error starting Java System Connection Java-1: java.lang.NoClassDefFoundError: com/syclo/sap/Server
looks strange
I have Server class in
path | /ZFlightBooking/src/com/syclo/sap/sflight/server/Server.java |
Konstantin,
Hi. This error: "java.lang.NoClassDefFoundError: com/syclo/sap/Server" <-- still thinks that the Java package designed should get the values from a Syclo Java package. There is something old in what you are using as it still thinks that the files or Server files is in the com.syclo.sap package tree.
In newer designed application in SMP 3.0, there was a push to make sure that the SMP 3.0 needs to know where the javaBE.ini or any of the Agentry.ini is located at. This means in the older server (Agentry 6.0 and earlier) most of the ini files is under: /AgentryServer/ServerDev(or Prod)/<ini files or exe files here>
In SMP 3.0 the files are located under: /SMP/Server/Configuration/com.sap.*.applicationID.
If you compare the two directories, during startup the SMP 3.0 or your Java libraries or Server Libraries thinks that the ini files still exist in the old directory structure (first directory structure above).
Most of newer application had to tweak the server.jar to point to the new directory structure. If I have to make a guess there is something wrong with how the server is being defined.
Here is how your's is setup from above:
serverClass=com/syclo/sap/sflight/server/Server <-- This is a java structure that still points to the old server directory. Most likely this is throwing off your SMP 3.0 startup. If you compare all the new applications, they have a newer Server.jar that really points to the new directory structure. Either you have to revise this Server.java or compare with some of the out of the box to fix it (knowing the idea that the old system still thinks that you are using the old directory structure versus the new one above).
This is my best guess on why you are not properly functioning. In short if you do not get a new server.class file you will not get this to work.
Here is an example: http://service.sap.com/sap/support/notes/2173554 (In this example, the resolution is a new Server.jar file). This is to tell SMP 3.0 where to find the new ini files. Note this is not going to really work in the setup above it is only for reference from other application that needs to work in newer SMP 3.0.
Best Regards,
Mark Pe
SAP Platinum Support Engineer
Hello Bill
I performed all the steps of Part1.
But I can't start SMP with delpoyed application
.
When I restarted the SMP I got next errors in the
C:\SAP\MobilePlatform3\Server\log\agentry\events.log file
13:48:24 02/11/2016: Starting Agentry (64-bit Windows)
13:48:34 02/11/2016: Reading system ini file.
13:48:34 02/11/2016: Starting log file.
13:48:34 02/11/2016: Loading message groups.
13:48:34 02/11/2016: Starting threads.
13:48:34 02/11/2016: 1 initial threads. Threads will auto-scale.
13:48:34 02/11/2016: Event: 0, 2, Loading the Agentry Runtime's public/private key for password exchanges.
13:48:34 02/11/2016: Event: 0, 2, Key pair loaded successfully.
13:48:34 02/11/2016: Starting Agentry: Agentry Server Agent v130.7.0.4
13:48:34 02/11/2016: Event: 0, 2, Agentry Startup
13:48:34 02/11/2016: Loading 0 front ends
13:48:34 02/11/2016: Starting Agentry Server Agent
13:48:34 02/11/2016: Agentry Server Agent: Starting threads.
13:48:34 02/11/2016: 1 initial threads. Threads will auto-scale.
13:48:34 02/11/2016: Agentry Server Agent: Adding messages.
13:48:34 02/11/2016: Event: 1, 4, Agentry Server Agent v130.7.0.4
13:48:34 02/11/2016: Loading agent from ag3.dll
13:48:34 02/11/2016: Starting FlightBooking
13:48:35 02/11/2016: FlightBooking: reading config file
13:48:37 02/11/2016: Event: 20, 150, Loading Development application definitions
13:48:37 02/11/2016: Initializing Java-BackendSAPConnection from ag3javabe.dll
13:48:37 02/11/2016: BackendSAPConnection: Reading configuration information.
13:48:37 02/11/2016: BackendSAPConnection: Setting name to 'Java-1'.
13:48:37 02/11/2016: Java-1: Initialized.
13:48:37 02/11/2016: Java-1: Java Virtual Machine already initialized.
13:48:37 02/11/2016: Exception: 13:48:37 02/11/2016 : 20 (Agentry3), BackEndInitError (Error starting Java System Connection Java-1: java.lang.NoClassDefFoundError: com/syclo/sap/Server
), at java.lang.ClassLoader.defineClass1(Native Method)
13:48:37 02/11/2016: Failed to init Java-1 (Java v130.7.0.4) from ag3javabe.dll
13:48:37 02/11/2016: Event: 20, 152, Loading Development application definitions for default localization
13:48:37 02/11/2016: Event: 20, 151, Finished loading Development application definitions
13:48:37 02/11/2016: FlightBooking: Starting threads.
13:48:37 02/11/2016: 1 initial threads. Threads will auto-scale.
13:48:37 02/11/2016: Loading front end from angelvine
13:48:37 02/11/2016: FlightBooking: loading configuration
13:48:38 02/11/2016: Event: 17, 14, FlightBooking v130.7.0.4
13:48:38 02/11/2016: Event: 20, 4, FlightBooking v130.7.0.4
13:48:38 02/11/2016: Loading agent from ag3.dll
13:48:38 02/11/2016: Starting SAPWM62
13:48:38 02/11/2016: Event: 21, 4, SAPWM62 v130.7.0.4
13:48:38 02/11/2016: Loading agent from ag3.dll
13:48:38 02/11/2016: Starting SAPWM62_NEW
13:48:38 02/11/2016: Event: 22, 4, SAPWM62_NEW v130.7.0.4
13:48:38 02/11/2016: Starting front ends
13:48:38 02/11/2016: Starting front end FlightBooking
13:48:38 02/11/2016: FlightBooking: Opening WebSockets servlet for sub-URL /FlightBooking
13:48:38 02/11/2016: Event: 17, 10, FlightBooking v130.7.0.4
13:48:38 02/11/2016: Event: 0, 0, Old log files moved into C:\SAP\MobilePlatform3\Server\log\agentry\rolled\2016-02-11-134824
13:48:38 02/11/2016: Event: 0, 23, Agentry startup is complete.
Looks like it tries to find class "com/syclo/sap/Server".
Stange name for class with slashes. I didn't create such a class in my project.
I have Server class that extend com.syclo.sap.Server class in the package com.syclo.sap.sflight.server.
It is in the ZFlightBooking project.
I wrote path to ZFlightBooking.jar
classPath=./Java/ZFlightBooking.jar;ini4j.jar;sapjco.jar;SAPCommon-130881.jar;
serverClass=com/syclo/sap/sflight/server/Server
in the Agentry.ini file
and serverClass parameter = com/syclo/sap/sflight/server/Server
not com/syclo/sap/Server
Using this SAPCommon I had to make some changes to the Java to get it to compile using jco3 which SAPCommon assumes and also so it could find my files correctly under SMP3. I took SAPCommon, ini4j and the sapjco files from my Work Manager 6.2 installation.
Here is my classpath and serverClass from my Agentry.ini
classPath=./Java/ini4j.jar;sapjco3.jar;./Java/SAPCommon-133461.jar;./Java/ZFlightBooking.jar;
serverClass=com.syclo.sap.sflight.server.Server
Given that this was originally for Agentry 6.1/SMP2.3, I was not surprised I had to make some tweaks.
Also, how did you publish to your SMP3 server? Did you upload a zip or directly publish to the directory?
--Bill
Hello Bill
Also, how did you publish to your SMP3 server? Did you upload a zip or directly publish to the directory?
I published the application exactly as described in the instruction.
Publish as a Development version doesn't create zip file.
So i didn't perform Publish in thу "SAP Management Cockpit".
Hello Bill
I can't build proect with libraries
ini4j.jar
SAPCommon-130881.jar
sapjco3.jar
In the eclpise it says
Description | Resource | Path | Location | Type |
The last publish was a Development version published on 02/10/2016 at 06:53:23 PM to C:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.server.agentry.application.FlightBooking\Application\Development. | FlightBooking | "FlightBooking" Application | Application | Definition Information |
The type com.syclo.agentry.Server cannot be resolved. It is indirectly referenced from required .class files | Server.java | /ZFlightBooking/src/com/syclo/sap/sflight/server | line 1 | Java Problem |
The project was not built since its build path is incomplete. Cannot find the class file for com.syclo.agentry.Server. Fix the build path then try building this project | ZFlightBooking | Unknown | Java Problem | |
Build path specifies execution environment JavaSE-1.6. There are no JREs installed in the workspace that are strictly compatible with this environment. | ZFlightBooking | Build path | JRE System Library Problem |
Strange that it tries to resolve com.syclo.agentry.Server
I don't have com.syclo.agentry.Server class
I have com.syclo.sap.Server.
I included Agentry-v5.jar.
New erros.
I can't use JCoTable table here as
public abstract class com.syclo.sap.SAPObject implements com.syclo.sap.SAPObjectI {
requires "com.sap.mw.jco.JCO.Table"
// Compiled from SAPObject.java (version 1.5 : 49.0, super bit)
public abstract class com.syclo.sap.SAPObject implements com.syclo.sap.SAPObjectI {
......
// Method descriptor #84 (Lcom/sap/mw/jco/JCO$Table;)V
public abstract void setNotes(com.sap.mw.jco.JCO.Table arg0) throws java.lang.Exception;
// Method descriptor #84 (Lcom/sap/mw/jco/JCO$Table;)V
public abstract void setProperties(com.sap.mw.jco.JCO.Table arg0) throws java.lang.Exception;
......
}
but I can't use JCO.Table as
sapjco3.jar
don't have JCO.Table any more
Konstantin,
Hi. This document was written probably 3~4 ago. This was done on the early stages of the integration of Agentry into SMP 2.3 or 3.0.
You said:
~~~~~~~~~start~~~~~~~~~~
Agentry Editor Plugin 70.10.0.9 com.syclo.agentry.editor.feature.feature.group SAP AG
from Agentry_70.10.0_EditorPlugin_x86_64.zip
~~~~~~~~~~~~~end~~~~~~~~~~~~~~~~~
This means that the libraries defined in that document is old.
For example from your ini file:
classPath=./Java/Agentry-v5.jar;ini4j.jar;sapjco.jar;SAPCommon-130881.jar;ZFlightBooking.jar;
The Agentry-v5.jar is dated. It is not used in SMP 3.0.
Your errors are missing files or libraries.
~~~~~~~your error~~~~~~~~~~
3:56:47 02/05/2016: Exception: 13:56:47 02/05/2016 : 20 (Agentry3), BackEndInitError (Error starting Java System Connection Java-1: java.lang.NoClassDefFoundError: com/syclo/sap/Server
~~~~~~~~~end~~~~~~~~~~~~~
All of your errors are most likely tied to missing correct libraries.
To create SAP Backend connection, you will need the appropriate ERP/CRM Mobile Add-on. But this add on is based on an SAP out of the box product. By creating your own interface, you will need to have Java stephandlers that will communicate with the SAP BAPIs to write out. Most customers take the out of the box Work Manager or Inventory Manager or Service Manager and modify this to their own liking as the ERP Mobile interface addons were developed. By doing this by yourself, you need to design the application interface.
This is what we can tell from your issues above. We are not familiar if the document was modified by SAP Rapid Deployment group.
Regards,
SAP Mobile Support Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.