question

ismdcf avatar image
ismdcf asked chanel Deactivated commented

"StaticReceiptPrintJob - Print" Notifies with printing error.

We are using the following code to print orders receipts on our android application,
by using the following code

new StaticReceiptPrintJob.Builder().order(mOrder).build().print(currentActivity, account, printer);
Printing was working as expected in the Devkit, recently we are facing an issue, where the printer does not print but it shows an error notification and we get the following error on the logcat
W/SeikoMini: onHandleIntent(PrinterIntentService.java:404): print failed, printer: Printer{uuid=6KMYS7D92MK48, type=SEIKO_MINI_USB, name=Mini, mac=null, ip=null, category=RECEIPT}
                                             java.lang.NullPointerException
                                                 at com.clover.engine.services.ReceiptPrinterPlugins.ReceiptGenerator.createReceiptView(ReceiptGenerator.java:256)
                                                 at com.clover.engine.services.ReceiptPrinterPlugins.ReceiptGenerator.createReceiptView(ReceiptGenerator.java:227)
                                                 at com.clover.engine.services.ReceiptPrinterPlugins.seiko.SeikoMini.printReceipt(SeikoMini.java:76)
                                                 at com.clover.engine.services.PrinterIntentService.onHandleIntent(PrinterIntentService.java:323)
                                                 at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
                                                 at android.os.Handler.dispatchMessage(Handler.java:102)
                                                 at android.os.Looper.loop(Looper.java:136)
                                                 at android.os.HandlerThread.run(HandlerThread.java:61)
What could be the reason for this null pointer exception, We have also tried to update to the latest version of clover android sdk (191.3) but the error is still not fixed.
OrdersPrintDevKit
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

Welcome to the
Clover Developer Community