주식회사 누리아이티

정보자산의 보안강화를 위한 2차인증 보안SW 및 지문인식 OTP/출입/보안카드 전문기업

▶ BaroSolution/오류 메시지

일회용 인증키(OTA, One-Time Authentication key)가 생성하지 못하고 다음과 같은 오류 메시지 발생.

누리아이티 2022. 5. 25. 08:44

현상 : 일회용 인증키가 생성하지 못하고 다음과 같은 오류 메시지 발생.
       java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
           at com.barokey.barokey.str2Hex(barokey.java:241)
           at com.barokey.barokey.generateKEYP(barokey.java:293)
           at com.baro.pam.info.PAMCreateACT.onAuthKey(PAMCreateACT.java:223)
           at com.baro.pam.info.PAMCreateACT.getIntentData(PAMCreateACT.java:150)
           at com.baro.pam.info.PAMCreateACT.onCreate(PAMCreateACT.java:59)
           at android.app.Activity.performCreate(Activity.java:6877)
           at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3208)
           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3351)
           at android.app.ActivityThread.access$1100(ActivityThread.java:222)
           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1796)
           at android.os.Handler.dispatchMessage(Handler.java:102)
           at android.os.Looper.loop(Looper.java:158)
           at android.app.ActivityThread.main(ActivityThread.java:7230)
           at java.lang.reflect.Method.invoke(Native Method)
           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
       java.lang.StringIndexOutOfBoundsException: length=0; regionStart=0; regionLength=3
           at java.lang.String.startEndAndLength(String.java:298)
           at java.lang.String.substring(String.java:1087)
           at com.baro.pam.info.PAMCreateACT.onAuthKey(PAMCreateACT.java:227)
           at com.baro.pam.info.PAMCreateACT.getIntentData(PAMCreateACT.java:150)
           at com.baro.pam.info.PAMCreateACT.onCreate(PAMCreateACT.java:59)
           at android.app.Activity.performCreate(Activity.java:6877)
           at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3208)
           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3351)
           at android.app.ActivityThread.access$1100(ActivityThread.java:222)
           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1796)
           at android.os.Handler.dispatchMessage(Handler.java:102)
           at android.os.Looper.loop(Looper.java:158)
           at android.app.ActivityThread.main(ActivityThread.java:7230)
           at java.lang.reflect.Method.invoke(Native Method)
           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

 

원인 : Secure key가 잘못 입력된 경우에 발생.

 

조치 : Secure key를 확인한 후 관리자에게 재발행 요청.

1 2 3 4 5 6 7 ··· 48