on 06-09-2014 12:43 PM
Hi everyone,
I follow the sample flightbooking sample to create an Agentry app (Material Management) which simply load material info from SAP server.
I face this issue when Agentry server starts. I dont know why it's input string ""
2014 06 09 18:18:59#+0700#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread###java.lang.InstantiationException: For input string: "" |
2014 06 09 18:18:59#+0700#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.Server.setInitialParameters(Server.java:277) |
2014 06 09 18:18:59#+0700#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.Server.initServer(Server.java:164) |
2014 06 09 18:18:59#+0700#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.Server.<init>(Server.java:147) |
2014 06 09 18:18:59#+0700#ERROR#System.err##anonymous#Agentry Dev Def Load Loop Thread### at com.syclo.sap.material.server.Server.<init>(Server.java:12) |
2014 06 09 18:18:59#+0700#ERROR#com.sap.mobile.platform.server.agentry.console##anonymous#Agentry Dev Def Load Loop Thread###Exception: 18:18:59 06/09/2014 : 20 (Agentry3), JavaBackEndError (JAVA EXCEPTION CAUGHT: com.syclo.agentry.AgentryException: For input string: ""), |
My Server.java which is copied from Flightbooking Sample
public class Server extends com.syclo.sap.Server{
String test="ot ";
public Server() throws Exception {
super();
}
public User createUser(String name)
{
Logger log = new Logger(this, "createUser(String name)");
User u = null;
try {
u = new User(name, this);
log.info("done");
}
catch (Exception e) {
log.fatal(e.getMessage());
}
return u;
}
@Override
public PushSession createPushSession(String pushName, SessionData sessionData) {
Logger log = new Logger(this, this.getClass().getName() + "::createPushSession::" + pushName, Logger.DEBUG);
log.debug("--------------------------------");
return new PushSession(pushName, this, sessionData);
}
@Override
public PushUserSession createPushUserSession(String pushName, SessionData sessionData, com.syclo.agentry.User user) {
Logger log = new Logger(this, this.getClass().getName() + "::createPushUserSession::" + pushName + "::" + user.getName() , Logger.DEBUG);
log.debug("--------------------------------");
return new PushUserSession(pushName, this, sessionData, (com.syclo.sap.User) user);
}
@Override
protected void setAppName() {
}
}
Please help me figure it out. Thank you very much.
Hi PH Ngu,
What is the solution to this error?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Add the following to your javabe.ini file and test once
[TEST_LOGON]
UID=username
UPASSWORD=user password
UGUID=
SERVERSERIALNUM=server serial number
Thanks & Regards,
Sravanthi Polu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My javaBE is as follows. Can you help to check if i miss anything in my file
[HOST]
server=be1.vdc.csc.com
APPNAME=ZCH_MATERIALLIST
[CONFIG]
source=SAP
[CLIENT_NUM]
CLIENT=800
[SYSTEM_NUM]
SYSNUM=01
[LOGGING]
Level=3
[LOGON_METHOD]
LOGON_METHOD=USER_AUTH
[SERVICE_LOGON]
UID=hngu3
UPASSWORD=xxxxx
[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=/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_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.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ph,
I think the issue may be due to your Service Login section of the JavaBE.
[SERVICE_LOGON]
ENABLED=true
UID={usernamehere}
UPASSWORD={passwordhere}
UPASSWORDENCODED=false
SERVERSERIALNUM={myserialnumber}
Here is my service login section for my flight booker app. I would guess it is the UPASSWORDENCODED that it is looking for that is missing. Try adding in these to your JavaBE and see if it solves the current error.
--Bill
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.