주식회사 누리아이티

지문카드 및 정보자산 2차 인증 보안SW 전문기업

Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference

댓글 0

▶ BaroSolution/오류집

2021. 11. 1.

현상 : 일회용 인증키가 생성하지 못하고 다음과 같은 오류 메시지 발생.
       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를 확인한 후 관리자에게 재발행 요청.

사업자 정보 표시
주식회사 누리아이티 | 이종일 | 서울시 강서구 마곡중앙2로 15, 913호(마곡동, 마곡테크노타워2) | 사업자 등록번호 : 258-87-00901 | TEL : 010-2771-4076 | Mail : mc529@nurit.co.kr | 사이버몰의 이용약관 바로가기