As I read in the documentation, there is the possibility too to use the
serial number of the printer. But I tried with the following jpos.xml too
where - for usb - the device name i.e. TM-T88IV is to be set:

But it does not work eighter. Have you or anybody an idea what thes port
name error means?

Thanks!



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE JposEntries PUBLIC "-//JavaPOS//DTD//EN"
                             "jpos/res/jcl.dtd">
<JposEntries>
<!--Saved by JavaPOS jpos.config/loader (JCL) version 2.2.0 on 23.05.09
21:55-->
    
    <JposEntry logicalName="POSPrinter">
        <creation
factoryClass="jp.co.epson.uposcommon.util.EpsonJposServiceInstanceFactory"
serviceClass="jp.co.epson.upos.pntr.T88IVService"/>
        <vendor name="SEIKO EPSON" url="http://www.epson.com"/>
        <jpos category="POSPrinter" version="1.12.2"/>
        <product description="EPSON TM-T88IV Printer Device Service"
name="EPSON Services for JavaPOS(TM) Standard" url="http://www.epson.com"/>

        <!--Other non JavaPOS required property (mostly vendor properties
and bus specific properties i.e. RS232 )-->
        <prop name="Halftone" type="String" value="0"/>
        <prop name="PhysicalPrinterName" type="String" value="TM-T88IV"/>
        <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="2"/>
        <prop name="OutputBufferSize" type="String" value="65536"/>
        <prop name="UsedNVRAM" type="String" value="1"/>
        <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="TM-T88IV"/>
        <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="2"/>
        <prop name="RecCharactersPerLine" type="String" value="42"/>
        <prop name="KanjiTwoWaysPrint" type="String" value="0"/>
        <prop name="PulseStep" type="String" value="100"/>
        <prop name="PortInterfaceName" type="String" value="USB"/>
        <prop name="OutPipe" type="String" value="0"/>
        <prop name="U375Compatible" type="String" value="0"/>
        <prop name="PortNameType" type="String" value="0"/>
        <prop name="preCutterFunction" 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="80"/>
        <prop name="DeviceDesc" type="String" value="EPSON TM-T88IV
POSPrinter"/>
        <prop name="PageModeExt" type="String" value="0"/>
        <prop name="RecLineSpacing" type="String" value="30"/>
        <prop name="SupportStatistics" type="String" value="1"/>
        <prop name="OutputErrorOption" type="String" value="0"/>
        <prop name="FirmProgressRange" type="String" value="10"/>
        <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="TwoColor" type="String" value="0"/>
        <prop name="InitializeThreadTime" type="String" value="1000"/>
        <prop name="TwoByteCharacter" type="String" value="0"/>
        <prop name="FirmLogFileSize" type="String" value="1000"/>
        <prop name="Peeler" type="String" value="0"/>
        <prop name="InPipe" type="String" value="1"/>
        <prop name="ConfigurationFile" type="String"
value="epson/xml/Setting/TM-T88IVSetting.xml"/>
        <prop name="Custom1Color" type="String" value="0xFF0000"/>
        <prop name="preEndorseFunction" type="String" value="0"/>
        <prop name="Upos.Spec_c" type="String" value="false"/>
        <prop name="FirmNotifyAllProgressEvents" type="String" value="0"/>
        <prop name="ReceiveRetryTime" type="String" value="25"/>
        <prop name="InitializeResponseTimeout" type="String" value="1000"/>
        <prop name="UsedInterCharacterSet" type="String" value="0"/>
        <prop name="RecMoreColumns" type="String" value="0"/>
        <prop name="PrinterTransmitTimeout" type="String" value="30000"/>
        <prop name="WriteThreadInterval" type="String" value="-1"/>
        <prop name="preORCBFunction" type="String" value="0"/>
        <prop name="RecNearEndSensor" type="String" value="1"/>
        <prop name="LogObject" type="String" value=""/>
        <prop name="Cutter" type="String" value="1"/>
        <prop name="PhysicalDevice" type="String" value="TM-T88IV"/>
        <prop name="FirmLogFileName" type="String" value="Firmware.log"/>
        <prop name="UsedPeeler" type="String" value="0"/>
        <prop name="InputBufferSize" type="String" value="4096"/>
        <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>
    
</JposEntries>


jacques.le.roux wrote:
> 
> Should you not specify a PortName ? Like this for RS232 :
> <prop name="PortName" type="String" value="COM1"/> <!-- Windows -->
> <!--prop name="PortName" type="String" value="/dev/ttyS0"/-> <!- Linux -->
> 
> From: "ceugster" <[email protected]>
>>
>> Hi,
>>
>> I try to install the Epson POSPrinter TM-T88IV using a USB port. Driver
>> installation is ok and I am able to do a test print from the printers
>> Propertiespanel. I am working on a Windows xp SP3 box. JavaPOS is
>> installed
>> (jcl v2.3, jpos1.12.2, Epson JavaPOS ADK_1.11.6.0
>>
>> jpos.xml is set up, the path to jpos.xml is defined in jpos.properties
>>
>> Testing all by CheckHealthToll throws JposException: The port name is
>> illegal. or couldn't be connected to the device. It seams to me, that
>> JavaPOS tries to print to one of the COM-Ports. But the Printer is
>> attached
>> to a usb port.
>>
>> Has anyone suggestions what is going wrong? Thank you in advance!
>>
>> *******************************************************
>>
>> The jpos.xml contents:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE JposEntries PUBLIC "-//JavaPOS//DTD//EN"
>>                             "jpos/res/jcl.dtd">
>> <JposEntries>
>> <!--Saved by JavaPOS jpos.config/loader (JCL) version 2.2.0 on 06.09.09
>> 10:39-->
>>
>>    <JposEntry logicalName="POSPrinter">
>>        <creation
>> factoryClass="jp.co.epson.uposcommon.util.EpsonJposServiceInstanceFactory"
>> serviceClass="jp.co.epson.upos.pntr.T88IVService"/>
>>        <vendor name="SEIKO EPSON" url="http://www.epson.com"/>
>>        <jpos category="POSPrinter" version="1.12.2"/>
>>        <product description="EPSON TM-T88IV Printer Device Service"
>> name="EPSON Services for JavaPOS(TM) Standard"
>> url="http://www.epson.com"/>
>>
>>        <!--Other non JavaPOS required property (mostly vendor properties
>> and bus specific properties i.e. RS232 )-->
>>        <prop name="Halftone" type="String" value="0"/>
>>        <prop name="PhysicalPrinterName" type="String" value="TM-T88IV"/>
>>        <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="2"/>
>>        <prop name="OutputBufferSize" type="String" value="65536"/>
>>        <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="J4EG001592"/>
>>        <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="2"/>
>>        <prop name="RecCharactersPerLine" type="String" value="42"/>
>>        <prop name="KanjiTwoWaysPrint" type="String" value="0"/>
>>        <prop name="PulseStep" type="String" value="100"/>
>>        <prop name="PortInterfaceName" type="String" value="USB"/>
>>        <prop name="OutPipe" type="String" value="0"/>
>>        <prop name="U375Compatible" type="String" value="0"/>
>>        <prop name="PortNameType" type="String" value="2"/>
>>        <prop name="preCutterFunction" type="String" value="0"/>
>>        <prop name="epson.tracing" type="String" value="true"/>
>>        <prop name="epson.trace.max.size" type="String" value="1000"/>
>>        <prop name="RecPaperSize" type="String" value="80"/>
>>        <prop name="DeviceDesc" type="String" value="EPSON TM-T88IV
>> POSPrinter"/>
>>        <prop name="PageModeExt" type="String" value="0"/>
>>        <prop name="RecLineSpacing" type="String" value="30"/>
>>        <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="TwoByteCharacter" type="String" value="0"/>
>>        <prop name="FirmLogFileSize" type="String" value="1000"/>
>>        <prop name="Peeler" type="String" value="0"/>
>>        <prop name="InPipe" type="String" value="1"/>
>>        <prop name="ConfigurationFile" type="String"
>> value="epson/xml/Setting/TM-T88IVSetting.xml"/>
>>        <prop name="Custom1Color" type="String" value="0xFF0000"/>
>>        <prop name="preEndorseFunction" type="String" value="0"/>
>>        <prop name="Upos.Spec_c" type="String" value="true"/>
>>        <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="preORCBFunction" type="String" value="0"/>
>>        <prop name="RecNearEndSensor" type="String" value="1"/>
>>        <prop name="LogObject" type="String" value=""/>
>>        <prop name="Cutter" type="String" value="1"/>
>>        <prop name="PhysicalDevice" type="String" value="TM-T88IV"/>
>>        <prop name="FirmLogFileName" type="String" value="Firmware.log"/>
>>        <prop name="UsedPeeler" type="String" value="0"/>
>>        <prop name="InputBufferSize" type="String" value="4096"/>
>>        <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>
>>
>> </JposEntries>
>>
>> ************************************************************
>>
>> The StackTrace:
>>
>> ErrorCode : 106
>> ErrorCodeExtended : 1001
>> Message :
>> The port name is illegal. or couldn't be connected to the device.
>> !! StackTrace !!
>> jpos.JposException: The port name is illegal. or couldn't be connected to
>> the device.
>> at
>> jp.co.epson.upos.pntr.CommonUPOSExceptionCreator.createJposException(Unknown
>> Source)
>> at
>> jp.co.epson.upos.pntr.CommonUPOSExceptionCreator.createJposException(Unknown
>> Source)
>> at jp.co.epson.upos.pntr.CommonPrinterService.openPort(Unknown Source)
>> at jp.co.epson.upos.pntr.CommonPrinterService.claim(Unknown Source)
>> at jpos.BaseJposControl.claim(Unknown Source)
>> at checkhealthtool.CheckHealthTool.executeCheckHealth(Unknown Source)
>> at checkhealthtool.CheckHealthTool.checkHealthButton_Click(Unknown
>> Source)
>> at checkhealthtool.CheckHealthTool.actionPerformed(Unknown Source)
>> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
>> Source)
>> at java.awt.Component.processMouseEvent(Unknown Source)
>> at javax.swing.JComponent.processMouseEvent(Unknown Source)
>> at java.awt.Component.processEvent(Unknown Source)
>> at java.awt.Container.processEvent(Unknown Source)
>> at java.awt.Component.dispatchEventImpl(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Window.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.EventQueue.dispatchEvent(Unknown Source)
>> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>> at java.awt.EventDispatchThread.run(Unknown Source)
>>
>> ---------InnerException-----------
>> Message :
>> The port name is illegal.
>> !! StackTrace !!
>> jp.co.epson.pos.comm.CommControlException: The port name is illegal.
>> at jp.co.epson.pos.comm.CommonPortIO.throwCommException(Unknown Source)
>> at jp.co.epson.pos.comm.CommonPortIO.throwCommException(Unknown Source)
>> at jp.co.epson.pos.comm.WinUsbIO.getUsePortName(Unknown Source)
>> at jp.co.epson.pos.comm.WinUsbIO.portOpenImpl(Unknown Source)
>> at jp.co.epson.pos.comm.CommonUsbIO.portOpen(Unknown Source)
>> at jp.co.epson.pos.comm.PortControl.openPort(Unknown Source)
>> at jp.co.epson.upos.pntr.CommonPrinterService.openPort(Unknown Source)
>> at jp.co.epson.upos.pntr.CommonPrinterService.claim(Unknown Source)
>> at jpos.BaseJposControl.claim(Unknown Source)
>> at checkhealthtool.CheckHealthTool.executeCheckHealth(Unknown Source)
>> at checkhealthtool.CheckHealthTool.checkHealthButton_Click(Unknown
>> Source)
>> at checkhealthtool.CheckHealthTool.actionPerformed(Unknown Source)
>> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
>> Source)
>> at java.awt.Component.processMouseEvent(Unknown Source)
>> at javax.swing.JComponent.processMouseEvent(Unknown Source)
>> at java.awt.Component.processEvent(Unknown Source)
>> at java.awt.Container.processEvent(Unknown Source)
>> at java.awt.Component.dispatchEventImpl(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Window.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.EventQueue.dispatchEvent(Unknown Source)
>> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>> at java.awt.EventDispatchThread.run(Unknown Source)
>>
>>
>>
>> -- 
>> View this message in context: 
>> http://www.nabble.com/POSPrinter-on-USB-port%3A-JPosException-when-claiming-printer-tp25375511p25375511.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/POSPrinter-on-USB-port%3A-JPosException-when-claiming-printer-tp25375511p25378025.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to