Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11227

Can't print orders at Find Order screen

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: order
    • Labels:
      None

      Description

      As mentioned in OFBIZ-10972 some printers might not print orders. The error is:

      2019-09-30 19:07:47,314 |OFBiz-JobQueue-1     |ContentUrlTag                 |W| Request was null in appendContentPrefix; this probably means this was used where it shouldn't be, like using ofbizContentUrl in a screen rendered through a
      service; using best-bet behavior: standard prefix from url.properties (no WebSite or security setting known)
      2019-09-30 19:07:47,322 |OFBiz-JobQueue-1     |ScreenFactory                 |I| Got 42 screens in 0.008s from: file:/C:/projectsASF/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
      2019-09-30 19:07:47,322 |OFBiz-JobQueue-1     |UtilProperties                |W| Error converting String "" to Integer; using defaultNumber 60.
      2019-09-30 19:07:47,352 |OFBiz-JobQueue-1     |FOP                           |D| target-resolution set to: 72.0dpi (px2mm=0.35277778)
      2019-09-30 19:07:47,353 |OFBiz-JobQueue-1     |FOP                           |D| User configuration found for MIME type application/pdf
      2019-09-30 19:07:47,353 |OFBiz-JobQueue-1     |FOP                           |D| User configuration found for MIME type application/pdf
      2019-09-30 19:07:47,479 |OFBiz-JobQueue-1     |FOUserAgent                   |W| Font "NotoSans,normal,700" not found. Substituting with "NotoSans,normal,400".
      2019-09-30 19:07:47,506 |OFBiz-JobQueue-1     |FOUserAgent                   |W| The contents of fo:region-before on page 1 exceed the available area in the block-progression direction by 19200 millipoints. (See position 28:58)
      2019-09-30 19:07:47,522 |OFBiz-JobQueue-1     |OutputServices                |I| Using printer: Samsung ML-2160 Series
      2019-09-30 19:07:47,522 |OFBiz-JobQueue-1     |ObjectType                    |E| null
      java.lang.ClassNotFoundException: No converter found for javax.print.DocFlavor$INPUT_STREAM->java.lang.String
              at org.apache.ofbiz.base.conversion.Converters.getConverter(Converters.java:84) ~[main/:?]
              at org.apache.ofbiz.base.util.ObjectType.simpleTypeOrObjectConvert(ObjectType.java:331) [main/:?]
              at org.apache.ofbiz.base.util.string.FlexibleStringExpander.expandString(FlexibleStringExpander.java:442) [main/:?]
              at org.apache.ofbiz.base.util.string.FlexibleStringExpander$Elements.get(FlexibleStringExpander.java:630) [main/:?]
              at org.apache.ofbiz.base.util.string.FlexibleStringExpander.expandString(FlexibleStringExpander.java:435) [main/:?]
              at org.apache.ofbiz.base.util.string.FlexibleStringExpander.expandString(FlexibleStringExpander.java:172) [main/:?]
              at org.apache.ofbiz.base.util.string.FlexibleStringExpander.expandString(FlexibleStringExpander.java:145) [main/:?]
              at org.apache.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:681) [main/:?]
              at org.apache.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:169) [main/:?]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_202]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_202]
              at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
              at org.apache.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [main/:?]
              at org.apache.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [main/:?]
              at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:417) [main/:?]
              at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240) [main/:?]
              at org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [main/:?]
              at org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70) [main/:?]
              at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) [main/:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
              at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
      2019-09-30 19:07:47,522 |OFBiz-JobQueue-1     |ObjectType                    |W| No special conversion available for javax.print.DocFlavor$INPUT_STREAM to String, returning object.toString().
      2019-09-30 19:07:47,522 |OFBiz-JobQueue-1     |ServiceUtil                   |E| {errorMessage=DocFlavor application/postscript; class="java.io.InputStream" not supported by printer: Samsung ML-2160 Series, responseMessage=error}
      2019-09-30 19:07:47,523 |OFBiz-JobQueue-1     |ServiceDispatcher             |E| Error in Service [sendPrintFromScreen]: DocFlavor application/postscript; class="java.io.InputStream" not supported by printer: Samsung ML-2160 Series
      2019-09-30 19:07:47,523 |OFBiz-JobQueue-1     |TransactionUtil               |E| [TransactionUtil.rollback]
      java.lang.Exception: Stack Trace
              at org.apache.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:314) [main/:?]
              at org.apache.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:290) [main/:?]
              at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:562) [main/:?]
              at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240) [main/:?]
              at org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [main/:?]
              at org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70) [main/:?]
              at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) [main/:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
              at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
      2019-09-30 19:07:47,523 |OFBiz-JobQueue-1     |TransactionUtil               |I| Transaction rolled back
      2019-09-30 19:07:47,523 |OFBiz-JobQueue-1     |ServiceDispatcher             |T| Sync service [default/sendPrintFromScreen] finished in [640] milliseconds
      2019-09-30 19:07:47,523 |OFBiz-JobQueue-1     |GenericServiceJob             |E| Async-Service failed.
      java.lang.Exception: DocFlavor application/postscript; class="java.io.InputStream" not supported by printer: Samsung ML-2160 Series
              at org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:73) [main/:?]
              at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) [main/:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
              at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
      2019-09-30 19:07:47,523 |OFBiz-JobQueue-1     |PersistedServiceJob           |W| Persisted Job [10944] Failed. Max Retry Hit, not re-scheduling
      

      This could be the solution: https://stackoverflow.com/questions/45494674/how-to-send-raw-data-to-printer-with-java

        Attachments

          Activity

            People

            • Assignee:
              priya.sharma.9362 Priya Sharma
              Reporter:
              jleroux Jacques Le Roux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: