Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/201.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android JavaBinder:未捕获的远程异常!(尚未跨流程支持异常?_Android_Json_Aidl_Thermal Printer - Fatal编程技术网

Android JavaBinder:未捕获的远程异常!(尚未跨流程支持异常?

Android JavaBinder:未捕获的远程异常!(尚未跨流程支持异常?,android,json,aidl,thermal-printer,Android,Json,Aidl,Thermal Printer,当我尝试用aidl类打印纸张时 异常在我的片段类中抛出 com.iposprinter.iposprinterservice E/JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.) java.lang.ArrayIndexOutOfBoundsException: length=4032; index=4032 下面是片段类中的其他代码

当我尝试用aidl类打印纸张时 异常在我的片段类中抛出

       com.iposprinter.iposprinterservice E/JavaBinder: *** Uncaught remote exception!  (Exceptions are not yet supported across processes.)
java.lang.ArrayIndexOutOfBoundsException: length=4032; index=4032
下面是片段类中的其他代码

             01-28 14:09:12.820 3450-3719/com.iposprinter.iposprinterservice E/JavaBinder: *** Uncaught remote exception!  (Exceptions are not yet supported across processes.)
java.lang.ArrayIndexOutOfBoundsException: length=4032; index=4032
    at com.iposprinter.iposprinterservice.corealgorithm.FontMethod.getPrintDataFromFont(FontMethod.java:552)
    at com.iposprinter.iposprinterservice.corealgorithm.PrinterInteractiveMethod.printerPrintSpecTypeText(PrinterInteractiveMethod.java:344)
    at com.iposprinter.iposprinterservice.IPosPrintService$1.printSpecifiedTypeText(IPosPrintService.java:186)
    at com.iposprinter.iposprinterservice.IPosPrinterService$Stub.onTransact(IPosPrinterService.java:152)
第一个是启动打印机

       public void initPrinter() {
ThreadPoolManager.getInstance().executeTask(new Runnable() {
    @Override
    public void run() {
        try {
            mIPosPrinterService.printerInit(callback);
        } catch (RemoteException e) {
            e.printStackTrace();
        }
    }
});}
这是在打印机状态为就绪时打印文本的代码

             public void printText()
{
    ThreadPoolManager.getInstance().executeTask(new Runnable()
    {

        @Override
        public void run()
        {


            try {
                mIPosPrinterService.printSpecifiedTypeText("  GLOWSIS TECHNOLOGIES\n", "ST", 42, callback);
                mIPosPrinterService.printSpecifiedTypeText("         " + "Educare IT Park,Tiroorangadi\n", "ST", 24, callback);
                mIPosPrinterService.printSpecifiedTypeText("04942405643,9633332673\n", "ST", 42, callback);
                mIPosPrinterService.printSpecifiedTypeText("--------------------------------\n", "ST", 24, callback);
                mIPosPrinterService.printerPerformPrint(160,  callback);
            }catch (RemoteException e){
                e.printStackTrace();
            }
        }
    });
}
我的日志在下面

             01-28 14:09:12.820 3450-3719/com.iposprinter.iposprinterservice E/JavaBinder: *** Uncaught remote exception!  (Exceptions are not yet supported across processes.)
java.lang.ArrayIndexOutOfBoundsException: length=4032; index=4032
    at com.iposprinter.iposprinterservice.corealgorithm.FontMethod.getPrintDataFromFont(FontMethod.java:552)
    at com.iposprinter.iposprinterservice.corealgorithm.PrinterInteractiveMethod.printerPrintSpecTypeText(PrinterInteractiveMethod.java:344)
    at com.iposprinter.iposprinterservice.IPosPrintService$1.printSpecifiedTypeText(IPosPrintService.java:186)
    at com.iposprinter.iposprinterservice.IPosPrinterService$Stub.onTransact(IPosPrinterService.java:152)