Note that there are some explanatory texts on larger screens.

plurals
  1. POEpson Java Pos ADK Exception: It is not initialized
    text
    copied!<p>Now I try to write a Java Application what uses the Epson Java Pos ADK.</p> <p>What I did: -Installed Java 1.6.0_22 -Installed Java JDK -Installed Eclipse -Installed the Epson Java Pos ADK 1.11.8</p> <p>Then I tried my Printer using Com Port Tool, I send him Hexadecimal Chars to see if all works. It does!</p> <p>Then I started developing my Application. In the <code>jpos.xml</code> I used the SetupPOS generator within the Epson Java Pos ADK Package.</p> <p>I used a few lines to make a test print from my Application:</p> <pre><code>posPrinter = new POSPrinter(); posPrinter.open("##THE_NAME_I_SET_IN_JPOS_XML##"); posPrinter.claim(0); posPrinter.setDeviceEnabled(true); posPrinter.printNormal(station, "xxxxxxxxxxxxxxxxxx\n"); posPrinter.cutPaper(0); posPrinter.release(); posPrinter.setDeviceEnabled(false); posPrinter.close(); </code></pre> <p>But the result of this app is:</p> <blockquote> <p>jpos.JposException: It is not initialized. at jp.co.epson.upos.pntr.CommonPrinterService.checkInitialized(Unknown Source) at jp.co.epson.upos.pntr.CommonPrinterService.sendOutputData(Unknown Source) at jp.co.epson.upos.pntr.CommonPrinterService.sendOutputData(Unknown Source) at jp.co.epson.upos.pntr.CommonPrinterService.executeNormalPrint(Unknown Source) at jp.co.epson.upos.pntr.CommonPrinterService.printNormal(Unknown Source) at jpos.POSPrinter.printNormal(Unknown Source) at Printer.(Printer.java:146) at Main.main(Main.java:28)</p> </blockquote> <p>I tried this on two different PC's (Vista and XP 32bit), with the same Versions and Tools, but it's always the same.</p> <p>I also tried the JavaPos Example Test App and the EpsonHealtCheckTool. It's also the same with this tools.</p> <p>Don't know what else to try, does everyone knows the problem?</p> <p>PS: My Printer Epson TM-U220A, the serial connection seems to work, because when I try to claim the Printer and another Application uses the COM Port, My App says that the Port is not available.</p> <p>Thanks.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload