Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I run the java program to print but unable to take print.

Error Log:

E [07/Aug/2013:11:49:36 +0530] [Job 140] Job stopped due to filter errors; please consult the error_log file for details.
D [07/Aug/2013:11:49:36 +0530] [Job 140] The following messages were recorded from 11:49:36 to 11:49:36
D [07/Aug/2013:11:49:36 +0530] [Job 140] Adding start banner page "none".
D [07/Aug/2013:11:49:36 +0530] [Job 140] Queued on "Star" by "sterna".
D [07/Aug/2013:11:49:36 +0530] [Job 140] Auto-typing file...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Request file type is application/postscript.
D [07/Aug/2013:11:49:36 +0530] [Job 140] File of type application/postscript queued by "sterna".
D [07/Aug/2013:11:49:36 +0530] [Job 140] Adding end banner page "none".
D [07/Aug/2013:11:49:36 +0530] [Job 140] job-sheets=none,none
D [07/Aug/2013:11:49:36 +0530] [Job 140] argv[0]="Star"
D [07/Aug/2013:11:49:36 +0530] [Job 140] argv[1]="140"
D [07/Aug/2013:11:49:36 +0530] [Job 140] argv[2]="sterna"
D [07/Aug/2013:11:49:36 +0530] [Job 140] argv[3]=" Java Printing"
D [07/Aug/2013:11:49:36 +0530] [Job 140] argv[4]="1"
D [07/Aug/2013:11:49:36 +0530] [Job 140] argv[5]="finishings=3 media=Letter number-up=1 output-bin=face-down print-color-mode=monochrome print-quality=4 job-uuid=urn:uuid:de67744f-3de3-3c3e-79af-ab9d83fd0afe job-originating-host-name=localhost time-at-creation=1375856376 time-at-processing=1375856376 PageSize=Letter"
D [07/Aug/2013:11:49:36 +0530] [Job 140] argv[6]="/var/spool/cups/d00140-001"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[8]="HOME=/var/spool/cups/tmp"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[10]="SERVER_ADMIN=root@sterna"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[11]="SOFTWARE=CUPS/1.5.3"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[13]="USER=root"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[16]="IPP_PORT=631"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[17]="CHARSET=utf-8"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[18]="LANG=en_IN.UTF-8"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[19]="PPD=/etc/cups/ppd/Star.ppd"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[20]="RIP_MAX_CACHE=128m"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[21]="CONTENT_TYPE=application/postscript"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[22]="DEVICE_URI=usb://Star/TSP743II%20(STR_T-001)"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[23]="PRINTER_INFO=Star"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[24]="PRINTER_LOCATION=sterna"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[25]="PRINTER=Star"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[26]="PRINTER_STATE_REASONS=none"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[27]="CUPS_FILETYPE=document"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[28]="FINAL_CONTENT_TYPE=printer/Star"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[29]="AUTH_I****"
D [07/Aug/2013:11:49:36 +0530] [Job 140] Started filter /usr/lib/cups/filter/pstopdf (PID 4930)
D [07/Aug/2013:11:49:36 +0530] [Job 140] Started filter /usr/lib/cups/filter/pdftopdf (PID 4931)
D [07/Aug/2013:11:49:36 +0530] [Job 140] Started filter /usr/lib/cups/filter/gstoraster (PID 4932)
D [07/Aug/2013:11:49:36 +0530] [Job 140] Started filter /usr/lib/cups/filter/rastertostar (PID 4933)
D [07/Aug/2013:11:49:36 +0530] [Job 140] Started backend /usr/lib/cups/backend/usb (PID 4934)
D [07/Aug/2013:11:49:36 +0530] [Job 140] pstopdf 6 args: 140 sterna  Java Printing 1 finishings=3 media=Letter number-up=1 output-bin=face-down print-color-mode=monochrome print-quality=4 job-uuid=urn:uuid:de67744f-3de3-3c3e-79af-ab9d83fd0afe job-originating-host-name=localhost time-at-creation=1375856376 time-at-processing=1375856376 PageSize=Letter /var/spool/cups/d00140-001
D [07/Aug/2013:11:49:36 +0530] [Job 140] PPD: /etc/cups/ppd/Star.ppd
D [07/Aug/2013:11:49:36 +0530] [Job 140] Printing on printer with URI: usb://Star/TSP743II%20(STR_T-001)
D [07/Aug/2013:11:49:36 +0530] [Job 140] libusb_get_device_list=5
D [07/Aug/2013:11:49:36 +0530] [Job 140] pageType = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] focusArea = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] printSpeed = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] topSearch = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] pageCutType = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] docCutType = 1
D [07/Aug/2013:11:49:36 +0530] [Job 140] cashDrawerSetting = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] cashDrawer1PulseWidth = 2
D [07/Aug/2013:11:49:36 +0530] [Job 140] peripheralSetting = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] peripheralActionPulseWidth = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] presenterAction = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] presenterTimeout = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] mediaType = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] labelDetect = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] printDensity = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] snoutControl = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] snout1Interval = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] snout2Interval = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] bytesPerScanLine = 80
D [07/Aug/2013:11:49:36 +0530] [Job 140] buzzer1Setting = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] buzzer1OnTime = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] buzzer1OffTime = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] buzzer1Repeat = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] buzzer2Setting = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] buzzer2OnTime = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] buzzer2OffTime = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] buzzer2Repeat = 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] documentTopSound = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] documentBottomSound = -1
D [07/Aug/2013:11:49:36 +0530] [Job 140] dataTreatmentRecoverFromError = 1
D [07/Aug/2013:11:49:36 +0530] [Job 140] Resolution: 
D [07/Aug/2013:11:49:36 +0530] [Job 140] Page size: Letter
D [07/Aug/2013:11:49:36 +0530] [Job 140] Width: 612, height: 792, absolute margins: 0.0, 0.0, 612.0, 792.0
D [07/Aug/2013:11:49:36 +0530] [Job 140] Relative margins: 0.0, 0.0, 0, 0
D [07/Aug/2013:11:49:36 +0530] [Job 140] PPD options: -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
D [07/Aug/2013:11:49:36 +0530] [Job 140] PostScript to be injected: 
D [07/Aug/2013:11:49:36 +0530] [Job 140] Running cat | /usr/bin/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoRotatePages=/None -dAutoFilterColorImages=false                -dNOPLATFONTS -dPARANOIDSAFER -dNOINTERPOLATE -sstdout=%stderr -dColorImageFilter=/FlateEncode                 -dPDFSETTINGS=/printer                 -dColorConversionStrategy=/LeaveColorUnchanged -dDoNumCopies -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -sOutputFile=-  -c .setpdfwrite -f -
D [07/Aug/2013:11:49:36 +0530] [Job 140] STATE: +connecting-to-device
D [07/Aug/2013:11:49:36 +0530] [Job 140] STATE: -connecting-to-device
D [07/Aug/2013:11:49:36 +0530] [Job 140] Printer found with device ID: MFG:Star;CMD:STAR;MDL:TSP743II (STR_T-001);CLS:PRINTER; Device URI: usb://Star/TSP743II%20(STR_T-001)
D [07/Aug/2013:11:49:36 +0530] [Job 140] Device protocol: 2
D [07/Aug/2013:11:49:36 +0530] [Job 140] Sending data to printer.
D [07/Aug/2013:11:49:36 +0530] [Job 140] Set job-printer-state-message to "Sending data to printer.", current level=INFO
D [07/Aug/2013:11:49:36 +0530] [Job 140] Error: /undefined in ÿØÿà
D [07/Aug/2013:11:49:36 +0530] [Job 140] Operand stack:
D [07/Aug/2013:11:49:36 +0530] [Job 140] 
D [07/Aug/2013:11:49:36 +0530] [Job 140] Execution stack:
D [07/Aug/2013:11:49:36 +0530] [Job 140] %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1914   1   3   %oparray_pop   1913   1   3   %oparray_pop   1897   1   3   %oparray_pop   1787   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
D [07/Aug/2013:11:49:36 +0530] [Job 140] Dictionary stack:
D [07/Aug/2013:11:49:36 +0530] [Job 140] --dict:1172/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--
D [07/Aug/2013:11:49:36 +0530] [Job 140] Current allocation mode is local
D [07/Aug/2013:11:49:36 +0530] [Job 140] GPL Ghostscript 9.05: Unrecoverable error, exit code 1
D [07/Aug/2013:11:49:36 +0530] [Job 140] PPD uses qualifier 'Gray..'
D [07/Aug/2013:11:49:36 +0530] [Job 140] Calling FindDeviceById(Star)
D [07/Aug/2013:11:49:36 +0530] [Job 140] Failed to send: org.freedesktop.ColorManager.Failed:device id 'Star' does not exists
D [07/Aug/2013:11:49:36 +0530] [Job 140] Failed to get profile filename!
D [07/Aug/2013:11:49:36 +0530] [Job 140] no profiles specified in PPD
D [07/Aug/2013:11:49:36 +0530] [Job 140] Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -r67x67 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 -scupsPageSizeName=Letter -I/usr/share/cups/fonts -c -f -_
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[8]="HOME=/var/spool/cups/tmp"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[10]="SERVER_ADMIN=root@sterna"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[11]="SOFTWARE=CUPS/1.5.3"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[12]="USER=root"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[13]="CUPS_SERVER=/var/run/cups/cups.sock"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[14]="CUPS_ENCRYPTION=IfRequested"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[15]="IPP_PORT=631"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[16]="CHARSET=utf-8"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[17]="LANG=en_IN.UTF-8"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[18]="PPD=/etc/cups/ppd/Star.ppd"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[19]="RIP_MAX_CACHE=128m"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[20]="CONTENT_TYPE=application/postscript"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[21]="DEVICE_URI=usb://Star/TSP743II%20(STR_T-001)"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[22]="PRINTER_INFO=Star"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[23]="PRINTER_LOCATION=sterna"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[24]="PRINTER=Star"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[25]="PRINTER_STATE_REASONS=none"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[26]="CUPS_FILETYPE=document"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[27]="FINAL_CONTENT_TYPE=printer/Star"
D [07/Aug/2013:11:49:36 +0530] [Job 140] envp[28]="AUTH_INFO_REQUIRED=none"
D [07/Aug/2013:11:49:36 +0530] [Job 140] Start rendering...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Processing page 1...
D [07/Aug/2013:11:49:36 +0530] [Job 140] PAGE: 1 1
D [07/Aug/2013:11:49:36 +0530] [Job 140] Printing page 1, 0% complete...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Printing page 1, 17% complete...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Printing page 1, 34% complete...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Printing page 1, 52% complete...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Printing page 1, 69% complete...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Printing page 1, 86% complete...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Processing page 2...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Rendering completed
D [07/Aug/2013:11:49:36 +0530] [Job 140] Ready to print.
D [07/Aug/2013:11:49:36 +0530] [Job 140] Read 81 bytes of print data...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Wrote 81 bytes of print data...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Sent 81 bytes...
D [07/Aug/2013:11:49:36 +0530] [Job 140] Waiting for read thread to exit...
D [07/Aug/2013:11:49:36 +0530] [Job 140] End of messages
D [07/Aug/2013:11:49:36 +0530] [Job 140] printer-state=3(idle)
D [07/Aug/2013:11:49:36 +0530] [Job 140] printer-state-message="Ready to print."
D [07/Aug/2013:11:49:36 +0530] [Job 140] printer-state-reasons=none
share|improve this question
    
Have you tried with other applications? Does this only happen with Java or is it a wider CUPS/printer issue? –  Oli Aug 7 '13 at 9:03
    
i could take print from text editior ,firefox , odt and pdf. when i take print out from java application its not working . i am using Oracle JDK instead of open JDK . –  SuReN Aug 7 '13 at 9:46
    
i am using Oracle jdk 1.7.0 –  SuReN Aug 7 '13 at 9:56
    
By all accounts this should work, could you get a self test from the printer please? (Turn the printer off --> press and hold the feed button --> and turn the printer on with the feed button held) From here can you tell me the USB mode you're using? –  davbren Aug 8 '13 at 8:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.