Hi Vikrant,

The POS currently uses the 1.8 javaPOS version (jpos18-controls.jar). Did you 
try with the corresponding ADK ?  
Also don't forget to copy the epsonJposService*.jar from 
EPSON_JPOS_ADK\JavaPOS\lib to specialpurpose/pos/lib

Jacques
  ----- Message d'origine ----- 
  De : [EMAIL PROTECTED] 
  À : [email protected] 
  Envoyé : lundi 2 avril 2007 05:38
  Objet : POS problems


  Hi Everyone,

   

  Has been trying to setup Epson JavaPOS with ofbiz and found the errors. Using 
the Epson JavaPOS ADK version 1.9.2 setup a POSPrinter in jpos.xml file. Also 
the JavaPOS drivers were copied to the jre ext/ directory. The test program 
supplied with ADK works fine and detects the printer.

   

  When I try the same settings with pos-containers.xml and change the printer 
to "POSPrinter" the pos do now start and throws an error. I have attached the 
error message along with the above 2 files.

   

  Any help would be appreciated.

   

  Thanks

  With best regards,

  Vikrant

  ---------JPOS XML entry for POSPrinter--------

  <JposEntry logicalName="POSPrinter">

          <creation 
factoryClass="jp.co.epson.uposcommon.util.EpsonJposServiceInstanceFactory" 
serviceClass="jp.co.epson.upos.pntr.U220DService"/>

          <vendor name="SEIKO EPSON" url="http://www.epson.co.jp"/>

          <jpos category="POSPrinter" version="1.9.2"/>

          <product description="EPSON TM-U220D Printer Device Service" 
name="EPSON Services for JavaPOS(TM) Standard" url="http://www.epson.co.jp"/>

   

          <!--Other non JavaPOS required property (mostly vendor properties and 
bus specific properties i.e. RS232 )-->

          <prop name="Halftone" type="String" value="0"/>

          <prop name="FlowType" type="String" value="1"/>

          <prop name="PhysicalPrinterName" type="String" value="TM-U220D"/>

          <prop name="NVRAMControlLevel" type="String" value="1"/>

          <prop name="Stamp" type="String" value="0"/>

          <prop name="OutputCompleteType" type="String" value="2"/>

          <prop name="StatusThreadInterval" type="String" value="100"/>

          <prop name="OutputTimeout" type="String" value="500"/>

          <prop name="PortType" type="String" value="0"/>

          <prop name="OutputBufferSize" type="String" value="4096"/>

          <prop name="UsedNVRAM" type="String" value="0"/>

          <prop name="FirmRecordLog" type="String" value="1"/>

          <prop name="ReceiveTimeout" type="String" value="1000"/>

          <prop name="SlpReverseEject" type="String" value="0"/>

          <prop name="PortName" type="String" value="COM1"/>

          <prop name="OfflineRetryIntervalTime" type="String" value="25"/>

          <prop name="DefaultSlpClampTime" type="String" value="0"/>

          <prop name="epson.trace.file" type="String" value="trace.log"/>

          <prop name="AsyncProcessingSize" type="String" value="1"/>

          <prop name="StopBits" type="String" value="0"/>

          <prop name="KanjiTwoWaysPrint" type="String" value="0"/>

          <prop name="PortInterfaceName" type="String" value="Serial"/>

          <prop name="U375Compatible" type="String" value="0"/>

          <prop name="BitLength" type="String" value="8"/>

          <prop name="Parity" type="String" value="0"/>

          <prop name="epson.tracing" type="String" value="false"/>

          <prop name="epson.trace.max.size" type="String" value="1000"/>

          <prop name="RecPaperSize" type="String" value="76"/>

          <prop name="DeviceDesc" type="String" value="EPSON TM-U220D 
POSPrinter"/>

          <prop name="PageModeExt" type="String" value="0"/>

          <prop name="SupportStatistics" type="String" value="1"/>

          <prop name="FirmProgressRange" type="String" value="10"/>

          <prop name="OutputErrorOption" type="String" value="0"/>

          <prop name="SupportFirmware" type="String" value="0"/>

          <prop name="InputTimeout" type="String" value="100"/>

          <prop name="AutoPowerOff" type="String" value="0"/>

          <prop name="SlpMoreColumns" type="String" value="0"/>

          <prop name="RecPaperType" type="String" value="0"/>

          <prop name="MemorySwitch" type="String" value="0"/>

          <prop name="ReadThreadInterval" type="String" value="-1"/>

          <prop name="QueuingOfflineTimeout" type="String" value="1000"/>

          <prop name="InitializeThreadTime" type="String" value="1000"/>

          <prop name="TwoColor" type="String" value="0"/>

          <prop name="BaudRate" type="String" value="9600"/>

          <prop name="TwoByteCharacter" type="String" value="0"/>

          <prop name="FirmLogFileSize" type="String" value="1000"/>

          <prop name="Peeler" type="String" value="0"/>

          <prop name="ConfigurationFile" type="String" 
value="epson/xml/Setting/TM-U220DSetting.xml"/>

          <prop name="Custom1Color" type="String" value="0xFF0000"/>

          <prop name="FirmNotifyAllProgressEvents" type="String" value="0"/>

          <prop name="InitializeResponseTimeout" type="String" value="1000"/>

          <prop name="ReceiveRetryTime" type="String" value="25"/>

          <prop name="PrinterTransmitTimeout" type="String" value="30000"/>

          <prop name="RecMoreColumns" type="String" value="0"/>

          <prop name="UsedInterCharacterSet" type="String" value="0"/>

          <prop name="WriteThreadInterval" type="String" value="-1"/>

          <prop name="RecNearEndSensor" type="String" value="0"/>

          <prop name="LogObject" type="String" value=""/>

          <prop name="Cutter" type="String" value="0"/>

          <prop name="PhysicalDevice" type="String" value="TM-U220D"/>

          <prop name="FirmLogFileName" type="String" value="Firmware.log"/>

          <prop name="UsedPeeler" type="String" value="0"/>

          <prop name="InputBufferSize" type="String" value="84"/>

          <prop name="TransmitTimeout" type="String" value="5000"/>

          <prop name="OfflineCount" type="String" value="2"/>

          <prop name="TransmitRetryTime" type="String" value="100"/>

          <prop name="DirectIOEventTimeout" type="String" value="5000"/>

  </JposEntry>

  ---------------------------------------------------------------

  -------error---------

  2007-04-02 11:31:00,037 (main) [       DeviceLoader.java:118:ERROR]

  ---- exception report 
----------------------------------------------------------

   

  JPOS Exception

  Exception: jpos.JposException

  Message: The information is not described in XML.

  ---- stack trace 
---------------------------------------------------------------

   

  jpos.JposException: The information is not described in XML.

  jp.co.epson.upos.pntr.CommonPrinterService.initializeClassSetting(Unknown 
Source

  )

  jp.co.epson.upos.pntr.CommonPrinterService.open(Unknown Source)

  jpos.BaseJposControl.open(Unknown Source)

  org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44)

  org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:116)

  org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50)

  org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)

  org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

  org.ofbiz.base.start.Start.startServer(Start.java:314)

  org.ofbiz.base.start.Start.start(Start.java:318)

  org.ofbiz.base.start.Start.main(Start.java:404)

  
--------------------------------------------------------------------------------

   

   

  2007-04-02 11:31:00,069 (main) [JposDeviceContainer.java:52 :INFO ] 
************

  ******************************************

  2007-04-02 11:31:00,069 (main) [JposDeviceContainer.java:53 :INFO ] Please 
verif

  y that your receipt printer is connected !

  2007-04-02 11:31:00,084 (main) [JposDeviceContainer.java:54 :INFO ] 
************

  ******************************************

  org.ofbiz.base.start.StartupException: Cannot start() 
org.ofbiz.pos.container.Jp

  osDeviceContainer (null)

          at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8

  2)

          at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

          at org.ofbiz.base.start.Start.startServer(Start.java:314)

          at org.ofbiz.base.start.Start.start(Start.java:318)

          at org.ofbiz.base.start.Start.main(Start.java:404)

  org.ofbiz.base.container.ContainerException

          at 
org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer

  .java:55)

          at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8

  0)

          at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

          at org.ofbiz.base.start.Start.startServer(Start.java:314)

          at org.ofbiz.base.start.Start.start(Start.java:318)

          at org.ofbiz.base.start.Start.main(Start.java:404)

  org.ofbiz.base.util.GeneralException

          at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:119)

          at 
org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer

  .java:50)

          at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8

  0)

          at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

          at org.ofbiz.base.start.Start.startServer(Start.java:314)

          at org.ofbiz.base.start.Start.start(Start.java:318)

          at org.ofbiz.base.start.Start.main(Start.java:404)

  jp.co.epson.uposcommon.util.XML.XMLParserException

          at jp.co.epson.uposcommon.util.XML.XMLParser.executeParser(Unknown 
Sourc

  e)

          at 
jp.co.epson.upos.pntr.CommonPrinterService.initializeClassSetting(Unk

  nown Source)

          at jp.co.epson.upos.pntr.CommonPrinterService.open(Unknown Source)

          at jpos.BaseJposControl.open(Unknown Source)

          at org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44)

          at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:116)

          at 
org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer

  .java:50)

          at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8

  0)

          at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

          at org.ofbiz.base.start.Start.startServer(Start.java:314)

          at org.ofbiz.base.start.Start.start(Start.java:318)

          at org.ofbiz.base.start.Start.main(Start.java:404)

  org.ofbiz.base.container.ContainerException

          at 
org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer

  .java:55)

          at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8

  0)

          at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

          at org.ofbiz.base.start.Start.startServer(Start.java:314)

          at org.ofbiz.base.start.Start.start(Start.java:318)

          at org.ofbiz.base.start.Start.main(Start.java:404)

  org.ofbiz.base.util.GeneralException

          at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:119)

          at 
org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer

  .java:50)

          at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8

  0)

          at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

          at org.ofbiz.base.start.Start.startServer(Start.java:314)

          at org.ofbiz.base.start.Start.start(Start.java:318)

          at org.ofbiz.base.start.Start.main(Start.java:404)

  jp.co.epson.uposcommon.util.XML.XMLParserException

          at jp.co.epson.uposcommon.util.XML.XMLParser.executeParser(Unknown 
Sourc

  e)

          at 
jp.co.epson.upos.pntr.CommonPrinterService.initializeClassSetting(Unk

  nown Source)

          at jp.co.epson.upos.pntr.CommonPrinterService.open(Unknown Source)

          at jpos.BaseJposControl.open(Unknown Source)

          at org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44)

          at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:116)

          at 
org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer

  .java:50)

          at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8

  0)

          at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

          at org.ofbiz.base.start.Start.startServer(Start.java:314)

          at org.ofbiz.base.start.Start.start(Start.java:318)

          at org.ofbiz.base.start.Start.main(Start.java:404)

  org.ofbiz.base.util.GeneralException

          at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:119)

          at 
org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer

  .java:50)

          at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8

  0)

          at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

          at org.ofbiz.base.start.Start.startServer(Start.java:314)

          at org.ofbiz.base.start.Start.start(Start.java:318)

          at org.ofbiz.base.start.Start.main(Start.java:404)

  jp.co.epson.uposcommon.util.XML.XMLParserException

          at jp.co.epson.uposcommon.util.XML.XMLParser.executeParser(Unknown 
Sourc

  e)

          at 
jp.co.epson.upos.pntr.CommonPrinterService.initializeClassSetting(Unk

  nown Source)

          at jp.co.epson.upos.pntr.CommonPrinterService.open(Unknown Source)

          at jpos.BaseJposControl.open(Unknown Source)

          at org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44)

          at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:116)

          at 
org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer

  .java:50)

          at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8

  0)

          at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

          at org.ofbiz.base.start.Start.startServer(Start.java:314)

          at org.ofbiz.base.start.Start.start(Start.java:318)

          at org.ofbiz.base.start.Start.main(Start.java:404)

  jp.co.epson.uposcommon.util.XML.XMLParserException

          at jp.co.epson.uposcommon.util.XML.XMLParser.executeParser(Unknown 
Sourc

  e)

          at 
jp.co.epson.upos.pntr.CommonPrinterService.initializeClassSetting(Unk

  nown Source)

          at jp.co.epson.upos.pntr.CommonPrinterService.open(Unknown Source)

          at jpos.BaseJposControl.open(Unknown Source)

          at org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44)

          at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:116)

          at 
org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer

  .java:50)

          at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8

  0)

          at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

          at org.ofbiz.base.start.Start.startServer(Start.java:314)

          at org.ofbiz.base.start.Start.start(Start.java:318)

          at org.ofbiz.base.start.Start.main(Start.java:404)

  2007-04-02 11:31:00,256 (OFBiz_Shutdown_Hook) [    ContainerLoader.java:93 
:INFO

   ] Shutting down containers

  2007-04-02 11:31:00,272 (OFBiz_Shutdown_Hook) [       
DeviceLoader.java:241:ERRO

  R]

  ---- exception report 
----------------------------------------------------------

   

  JPOS Exception

  Exception: jpos.JposException

  Message: Control not opened

  ---- stack trace 
---------------------------------------------------------------

   

  jpos.JposException: Control not opened

  jpos.BaseJposControl.release(Unknown Source)

  org.ofbiz.pos.device.GenericDevice.close(GenericDevice.java:55)

  org.ofbiz.pos.device.DeviceLoader.stop(DeviceLoader.java:235)

  org.ofbiz.pos.container.JposDeviceContainer.stop(JposDeviceContainer.java:63)

  org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:99)

  org.ofbiz.base.start.Start.shutdownServer(Start.java:300)

  org.ofbiz.base.start.Start.access$000(Start.java:43)

  org.ofbiz.base.start.Start$1.run(Start.java:277)

  
--------------------------------------------------------------------------------

   

   

  2007-04-02 11:31:00,287 (OFBiz_Shutdown_Hook) [JposDeviceContainer.java:66 
:ERRO

  R]

  ---- exception report 
----------------------------------------------------------

   

  Exception: org.ofbiz.base.util.GeneralException

  Message: null

  ---- stack trace 
---------------------------------------------------------------

   

  org.ofbiz.base.util.GeneralException

  org.ofbiz.pos.device.DeviceLoader.stop(DeviceLoader.java:242)

  org.ofbiz.pos.container.JposDeviceContainer.stop(JposDeviceContainer.java:63)

  org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:99)

  org.ofbiz.base.start.Start.shutdownServer(Start.java:300)

  org.ofbiz.base.start.Start.access$000(Start.java:43)

  org.ofbiz.base.start.Start$1.run(Start.java:277)

  
--------------------------------------------------------------------------------

   

   

  2007-04-02 11:31:00,319 (OFBiz_Shutdown_Hook) [JposDeviceContainer.java:68 
:INFO

   ] JPOS Devices released and closed

Reply via email to