调用收银SDK的时候发生错误
参数准备完毕,Action:1, Params:{body=食品, app_thread=Thread[main,5,main], app_package=com.yxc.simulation.member, invoke_time=1534487899327, origin=com.yxc.simulation.member, notify_url=http://192.168.0.1/test, sdk_version=1.4, time_start=20180817143819, out_trade_no=20180817143817, app_name=旺收银外部调用Demo, trade_type=consume, operator=Kevin, print_note=新店开业,会员8折! 20180817143817, time_expire=20180817143919, goods_detail=一只苹果手机, pay_type=2, attach=我是一条胖胖的附加数据,从哪里来,返回到哪里去!, total_fee=100, app_process=com.yxc.simulation.member, app_id=58f74953eb6700331e4773b3}
bindService
服务未绑定,绑定服务
08-17 14:38:19.323 D/AndroidRuntime: Shutting down VM
08-17 14:38:19.323 W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41619d58)
08-17 14:38:19.323 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.yxc.simulation.member, PID: 16785
java.lang.NullPointerException
at android.content.Intent.<init>(Intent.java:3820)
at com.wangpos.by.cashier3.CashierHelper.bindService(CashierHelper.java:486)
at com.wangpos.by.cashier3.CashierHelper.unifyHandleCall(CashierHelper.java:302)
at com.wangpos.by.cashier3.CashierHelper.consume(CashierHelper.java:88)
at com.yxc.simulation.member.biz.ConsumeActivity.consume(ConsumeActivity.java:183)
at com.yxc.simulation.member.biz.ConsumeActivity.onClick(ConsumeActivity.java:105)
at com.yxc.simulation.member.biz.ConsumeActivity_ViewBinding$1.doClick(ConsumeActivity_ViewBinding.java:59)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18439)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5069)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
用的是CashierInvoke_v1.4_201708281915.jar,官方提供的demo。
08-17 14:38:19.313 I/CashierHelper: unifyHandleCall, action:1, params:{print_note=新店开业,会员8折! 20180817143817, time_expire=20180817143919, goods_detail=一只苹果手机, body=食品, pay_type=2, attach=我是一条胖胖的附加数据,从哪里来,返回到哪里去!, total_fee=100, notify_url=http://192.168.0.1/test, time_start=20180817143819, app_id=58f74953eb6700331e4773b3, out_trade_no=20180817143817, operator=Kevin}
checkParams参数准备完毕,Action:1, Params:{body=食品, app_thread=Thread[main,5,main], app_package=com.yxc.simulation.member, invoke_time=1534487899327, origin=com.yxc.simulation.member, notify_url=http://192.168.0.1/test, sdk_version=1.4, time_start=20180817143819, out_trade_no=20180817143817, app_name=旺收银外部调用Demo, trade_type=consume, operator=Kevin, print_note=新店开业,会员8折! 20180817143817, time_expire=20180817143919, goods_detail=一只苹果手机, pay_type=2, attach=我是一条胖胖的附加数据,从哪里来,返回到哪里去!, total_fee=100, app_process=com.yxc.simulation.member, app_id=58f74953eb6700331e4773b3}
bindService
服务未绑定,绑定服务
08-17 14:38:19.323 D/AndroidRuntime: Shutting down VM
08-17 14:38:19.323 W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41619d58)
08-17 14:38:19.323 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.yxc.simulation.member, PID: 16785
java.lang.NullPointerException
at android.content.Intent.<init>(Intent.java:3820)
at com.wangpos.by.cashier3.CashierHelper.bindService(CashierHelper.java:486)
at com.wangpos.by.cashier3.CashierHelper.unifyHandleCall(CashierHelper.java:302)
at com.wangpos.by.cashier3.CashierHelper.consume(CashierHelper.java:88)
at com.yxc.simulation.member.biz.ConsumeActivity.consume(ConsumeActivity.java:183)
at com.yxc.simulation.member.biz.ConsumeActivity.onClick(ConsumeActivity.java:105)
at com.yxc.simulation.member.biz.ConsumeActivity_ViewBinding$1.doClick(ConsumeActivity_ViewBinding.java:59)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18439)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5069)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
- 回复:0条
- 发布人:yibin.wang@6double.com
- 时间:2018-08-17 14:41:14