$(function () { pageContext.i18n.modTalk = 'moderation talk'; pageContext.i18n.replyToComment = 'Reply'; pageContext.i18n.modTalkEmpty = 'moderation talk is empty'; pageContext.url.getModTalk = "/comments/%25ID%25/listModTalk.json"; pageContext.url.possibleCommentRecipients = "/comments/%ID%/possibleRecipients.json"; pageContext.url.commentEdit = '/comments/%25ID%25/edit.html'; pageContext.url.commentView = '/comments/%ID%/view.html'; pageContext.i18n.commentVisibility = { 'full': 'Viewable by all users', 'op': 'Viewable by the original poster', 'mod': 'Viewable by moderators', 'opAndMod': 'Viewable by moderators and the original poster', 'other': 'Advanced visibility', 'dialogTitle': 'Comment visibility', 'selectGroups': 'Visible to groups', 'selectOther': 'Other recipients', 'selectOriginalPoster': 'Original poster', 'selectModerators': 'Moderators', 'selectAssignees': 'Asked to answer users' }; pageContext.i18n.commentMenuLabels = { 'comment-edit': 'comments.menu.edit', 'comment-delete': 'comments.menu.delete', 'comment-convert': 'comments.menu.convert' };pageContext.i18n.answer= { bestAnswer: 'Best Answer', controlBar : { accept: 'Accept', unaccept: 'Unaccept', acceptCommand: 'Accept this answer as correct', cancelAcceptedCommand: 'Remove this answers accepted status' } }; window.croles = { u: false, op: false, m: false, og: false, as: false, ag: false, dc: false, doc: false, eo: false, ea: false }; tools.init({ q: { e: false, ew: false, eo: false, r: false, ro: false, d: false, dow: false, fv: false, c: false, co: false, p: false, tm: false , ms: false, mos: false }, n: { f: false, vf: false, vfo: false, vr: true, vro: true, c: false, co: false, vu: false, vd: false, w: false, wo: false, l: false }, c: { e: false, eo: false, d: false, dow: false, ta: false, tao: false, l: false }, a: { e: false, ew: false, eo: false, d: false, dow: false, a: false, aoq: false, ao: false, tc: false, tco: false, p: false, tm: false }, pc: croles }, { tc: true, nsc: true }); commandUtils.initializeLabels(); }); Skip to Content
P N

Agentry backend startup issue: JavaBackEndError (JAVA EXCEPTION CAUGHT: com.syclo.agentry.AgentryException: For input string: "")

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jun 09, 2014 at 04:16 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 11, 2014 at 04:22 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2014 at 12:31 AM

    Hi PH Ngu,

    What is the solution to this error?

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded