AppWorx, Dollar Universe and Sysload Community

java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 69

  • 1.  java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 69

    Posted 11-05-2019 03:57 AM
    Edited by Abdul Majeed Khan 11-05-2019 03:57 AM

    We have done a fresh #applicationsmanager install which went fine 

    then vertificate created as per the suggestions( keytool -genkey -keyalg RSA -alias user_keystore -keystore user_keystore -storepass password -validity 365 -keysize 2048) 

    Then we checked the status using awstat where all the services are running 


    awstat

    Agent                          Program      Status  Sleep   Last Act   Pid

    RMSPOC                         awcomm       Running 0        3 minutes 22252

    RMSPOC                         watchworx    Running 0        3 minutes XXXXXX

    RMSPOC                         agentservice Running 0        3 minutes 22339

    RMSPOC                         rmiserver    Running 0        3 minutes 22263´


    awexe node returns error 


    awexe node

    231 Error number from open pipe 2. /erppoc/am/POC/pipe/AWAPI_RMSPOC_PIPE

    334 Check that the API server is running.

    Could not open server pipe.


    so we startso all which returns

    awapi failed to respond

    startso done


    then we did stopso all and awstat is 


    Agent                          Program      Status  Sleep   Last Act   Pid

    RMSPOC                         awcomm       Running 0        5 minutes 22252

    RMSPOC                         watchworx    Offline 0       11 seconds 0

    RMSPOC                         agentservice Offline 0        9 seconds 22339

    RMSPOC                         rmiserver    Offline 0        6 seconds 22263


    After this startso all which is successfull 


      starting rmiserver.

        startup complete for rmiserver

       Tue Nov 05 09:17:11 CET 2019 RmiServer starting

       Initializing JCE: AES 256

       Data decrypted Initialized JCE

       JCE Initialized successfully 78

       Initializing JCE: AES 256

       Data decrypted Initialized JCE

       JCE Initialized successfully 0

       Applications Manager RMI Server

       Copyright (C) 1999-2014 Automic Software Gmbh. All Rights Reserved.

       Release: v9.3.1_29106_29189  Build: 29189 Fri Oct  4 16:10:19 PDT 2019

       6.5.2+build.1  2019-08-14 17:22

       Java VM: OpenJDK Runtime Environment 11.0.2


       Tue Nov 05 09:17:12 CET 2019

       RMSPOClxoraerp01.lindex.local

       Oracle JDBC driver 18.3.0.0.0

       Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production

       Version 18.6.0.0.0

       RMSPOClxoraerp01.lindex.local

       Oracle JDBC driver 18.3.0.0.0

       Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production

       Version 18.6.0.0.0

       RmiServer started successfully

      starting agentservice

    .

        startup complete for agentservice


      scanning log file

       Tue Nov 05 09:17:16 CET 2019 AgentService starting

       Initializing JCE: AES 256

       Data decrypted Initialized JCE

       JCE Initialized successfully 76

       Initializing JCE: AES 256

       Data decrypted Initialized JCE

       JCE Initialized successfully 1

       Applications Manager Agent Service

       Copyright (C) 1999-2014 Automic Software Gmbh. All Rights Reserved.

       Release: v9.3.1_29106_29189  Build: 29189 Fri Oct  4 16:10:19 PDT 2019

       6.5.2+build.1  2019-08-14 17:22

       Java VM: OpenJDK Runtime Environment 11.0.2

       Tue Nov 05 09:17:17 CET 2019

       agentservice.lock file is /erppoc/am/POC/status/agentservice.lock

       AgentService pid is 23397

      waiting for java awapi to start

        startup complete for java awapi


    startso done


    Awstat is 

    Agent                          Program      Status  Sleep   Last Act   Pid

    RMSPOC                         awcomm       Running 0        6 minutes 22252

    RMSPOC                         watchworx    Offline 0       46 seconds 0

    RMSPOC                         agentservice Running 0       23 seconds 23397

    RMSPOC                         rmiserver    Running 0       28 seconds 23321


    Still Master and Agent is in stopped status


    {ampoc@lxappampoc01}: /erppoc/am/POC/web$ awexe node

    RMSPOC                         Stopped 00:03:45     M   99     0   0   0   0   0

    RMSPOC                         Stopped 00:08:01     A   99     1   0   0   0   0


    Tried to start the agent manually, wereas master is not started

    {ampoc@lxappampoc01}: /erppoc/am/POC/web$ startso RMSPOC

      starting agent RMSPOC.

        startup complete for agent RMSPOC

    startso done


    {ampoc@lxappampoc01}: /erppoc/am/POC/web$ awexe node

    RMSPOC                         Stopped 00:04:44     M   99     0   0   0   0   0

    RMSPOC                         Running 00:00:06     A   99     1   0   0   0   0


    After this  RmiServer1911050917.log is piling up with 


    -rw-rw-r-- 1 ampoc ampoc 190108936 Nov  5 09:33 RmiServer1911050917.log

    ErrorMsg: AwE-9999 Internal error (11/5/19, 9:19 AM)

    Details: null

    java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 69

            at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)

            at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)

            at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)

            at java.base/java.util.Objects.checkIndex(Objects.java:372)

            at java.base/java.util.ArrayList.get(ArrayList.java:458)

            at com.appworx.shared.data.Job.getAwSeq(Job.java:711)

            at com.appworx.server.data.JobsData.A(JobsData.java:1531)

            at com.appworx.server.data.JobsData.A(JobsData.java:76)

            at com.appworx.server.data.JobsData$9.run(JobsData.java:2767)


    We were able to install and configure the applications manager before and it was working fine.

    After the RHEL 7 has been updated we have this problem.

    Any suggestions appreciated. 



    ------------------------------
    Regards,
    Ansari
    ------------------------------