Administrator
|
Hi Georg,
Would you miss ofbiz.png? PLease check qrcode.properties Jacques Le 05/12/2020 à 21:45, Georg Potthast a écrit : > Hi Jacques, > > thank you very much that got it to work! However, I observe that on the demo-trunk you get two > barcodes while I only get one on my local PC. > > Here is an image of the output comparing both: > https://up.picr.de/40021689ij.png > > And here is the error message in the log: > 2020-12-05 21:26:04,937 |jsse-nio-8443-exec-7 |FOUserAgent |E| Image not found. URI: > /example/control/qrcode;jsessionid=2EBDDFC4061B25AA5F745FE7E609176A.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20. > (See position 47:77) > 2020-12-05 21:26:05,336 |jsse-nio-8443-exec-7 |FOUserAgent |E| Image not found. URI: > /example/control/qrcode;jsessionid=2EBDDFC4061B25AA5F745FE7E609176A.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20. > (No context info available) > > What can I do to generate the second barcode too? > > Georg > > -----Ursprüngliche Nachricht----- From: Jacques Le Roux > Sent: Saturday, December 5, 2020 8:38 PM > To: [hidden email] > Subject: Re: Demos shutdown because possible security issues > > Hi Georg, > > Oops, indeed I forgot to mention in fop.xconf: > > - <base>http://localhost:8080</base> > + <base>https://demo-trunk.ofbiz.apache.org</base> > > HTH > > Jacques > > Le 05/12/2020 à 20:13, Georg Potthast a écrit : >> Hi Jacques, >> >> I installed OFBiz on SUSE Linux and got the same error message there: >> The Following Errors Occurred: >> Unable to transform FO file: org.apache.fop.apps.FOPException java.lang.reflect.UndeclaredThrowableException >> >> You must have added a secret spice to the demo-trunk! Here is the log on Linux, it does not complain about fonts: >> >> >> 2020-12-05 20:00:32,567 |sse-nio-8443-exec-10 |ControlServlet |T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Begun, >> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] >> 2020-12-05 20:00:32,582 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.001s, 50 requests, 34 views in >> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/webapp/example/WEB-INF/contro >> ller.xml >> 2020-12-05 20:00:32,598 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 48 requests, 22 views in >> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/common-contr >> oller.xml >> 2020-12-05 20:00:32,609 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 0 requests, 0 views in >> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/handlers-contr >> oller.xml >> 2020-12-05 20:00:32,618 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 26 requests, 10 views in >> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/portal-contr >> oller.xml >> 2020-12-05 20:00:32,642 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 2 requests, 2 views in >> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/ExampleCompoundWid >> gets.xml >> 2020-12-05 20:00:32,648 |sse-nio-8443-exec-10 |RequestHandler |I| Rendering View [ExampleReportPdfBarcode]. Hidden sessionId by default. >> 2020-12-05 20:00:32,681 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync service [example/getUserPreferenceGroup] finished in [2] milliseconds >> 2020-12-05 20:00:32,687 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 22 screens in 0.006s from: >> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/ExampleScreens.xml >> 2020-12-05 20:00:32,866 |sse-nio-8443-exec-10 |UtilProperties |I| ResourceBundle ProductUiLabels (en_US) created in 0.179s with 2641 properties >> 2020-12-05 20:00:33,463 |sse-nio-8443-exec-10 |ApacheFopWorker |I| FOP FontBaseURL: file:/home/georg/apache-ofbiz-17.12.04/framework/webapp/config/ >> 2020-12-05 20:00:33,467 |sse-nio-8443-exec-10 |FOP |D| target-resolution set to: 72.0dpi (px2mm=0.35277778) >> 2020-12-05 20:00:33,498 |sse-nio-8443-exec-10 |FOP |D| User configuration found for MIME type application/pdf >> 2020-12-05 20:00:33,535 |sse-nio-8443-exec-10 |FOP |D| User configuration found for MIME type application/pdf >> 2020-12-05 20:00:34,095 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- >> total:0.0,since last(Begin):0.0]] >> 2020-12-05 20:00:34,096 |http-nio-8080-exec-1 |RequestHandler |I| Sending redirect to: >> [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&log >> oImageMaxWidth=20&logoImageMaxHeight=20]. Hidden sessionId by default. >> 2020-12-05 20:00:34,097 |http-nio-8080-exec-1 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >> 2020-12-05 20:00:34,104 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Done- total:0.009,since >> last([qrcode(Domain:ht...):0.009]] >> 2020-12-05 20:00:34,144 |sse-nio-8443-exec-10 |ScreenFopViewHandler |E| Unable to transform FO file: org.apache.fop.apps.FOPException >> java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text was: >> <?xml version="1.0" encoding="UTF-8"?> >> >> >> >> <!-- Begin Template component://example/template/reports/BarCode.fo.ftl --> >> >> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> >> >> <fo:layout-master-set> >> <fo:simple-page-master master-name="main" page-height="4in" page-width="8in" >> margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" margin-right="0.25in"> >> <fo:region-body margin-top="0in"/> >> <fo:region-before extent="0in"/> >> <fo:region-after extent="0in"/> >> </fo:simple-page-master> >> </fo:layout-master-set> >> >> <fo:page-sequence master-reference="main"> >> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> >> <fo:block text-align="center"> >> Example 11 >> </fo:block> >> <fo:block text-align="center"> >> <fo:instream-foreign-object> >> <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" >> message="EX11"> >> <barcode:code39> >> <barcode:height>0.75in</barcode:height> >> <barcode:module-width>.375mm</barcode:module-width> >> </barcode:code39> >> <barcode:human-readable> >> <barcode:placement>bottom</barcode:placement> >> <barcode:font-name>Helvetica</barcode:font-name> >> <barcode:font-size>18pt</barcode:font-size> >> <barcode:display-start-stop>false</barcode:display-start-stop> >> <barcode:display-checksum>false</barcode:display-checksum> >> </barcode:human-readable> >> </barcode:barcode> >> </fo:instream-foreign-object> >> </fo:block> >> <fo:block> >> <fo:leader/> >> </fo:block> >> <fo:block text-align="center"> >> <fo:external-graphic >> src="/example/control/qrcode;jsessionid=1B13B88A8AEEACCD504212C554EF065F.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20 >> >> " >> overflow="hidden" height="1.5in" content-height="scale-to-fit"/> >> </fo:block> >> </fo:flow> >> </fo:page-sequence> >> </fo:root> >> <!-- End Template component://example/template/reports/BarCode.fo.ftl --> >> >> 2020-12-05 20:00:34,145 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync service [example/getUserPreferenceGroup] finished in [1] milliseconds >> 2020-12-05 20:00:34,149 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 27 screens in 0.004s from: >> file:/home/georg/apache-ofbiz-17.12.04/framework/common/widget/CommonScreens.xml >> 2020-12-05 20:00:34,203 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 26 screens in 0.006s from: >> file:/home/georg/apache-ofbiz-17.12.04/themes/common/widget/CommonScreens.xml >> 2020-12-05 20:00:34,210 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 8 screens in 0.006s from: >> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/CommonScreens.xml >> 2020-12-05 20:00:34,215 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 1 screens in 0.004s from: >> file:/home/georg/apache-ofbiz-17.12.04/applications/commonext/widget/CommonScreens.xml >> 2020-12-05 20:00:34,250 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync service [example/getLastSystemInfoNote] finished in [11] milliseconds >> 2020-12-05 20:00:34,270 |sse-nio-8443-exec-10 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >> 2020-12-05 20:00:34,279 |sse-nio-8443-exec-10 |ControlServlet |T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- >> total:1.712,since last([ExampleReportPdf...):1.712]] >>> Building 91% > :ofbiz >> >> >> -----Ursprüngliche Nachricht----- From: Jacques Le Roux >> Sent: Thursday, December 3, 2020 3:39 PM >> To: [hidden email] >> Subject: Re: Demos shutdown because possible security issues >> >> Mmm, not sure it will work though, I have not them into C:/WINDOWS/FONTS/ and it works here (I was the one who did that some years ago, on Windows >> too) >> >> Also check fop.properties, maybe the name must be NotoSans "NotoSans" not "Noto Sans" >> >> Not sure about all that :) I'd make several different tries... >> >> Jacques >> >> Le 03/12/2020 à 15:34, Jacques Le Roux a écrit : >>> Hi Georg, >>> >>> The fonts OFBiz uses are in framework/resources/fonts/NotoSans/ dir. I'd try to put them into C:/WINDOWS/FONTS/ >>> >>> HTH >>> >>> Jacques >>> >>> Le 03/12/2020 à 13:16, Georg Potthast 2 a écrit : >>>> Hi Jacques, >>>> >>>> here are lines from the log. It does not find fonts, I have included only the last lines of the messages that it could not find the font. >>>> >>>> Here is a screenshot of my fonts directory on Windows: >>>> https://up.picr.de/40004386kt.png >>>> It seems to me the fonts are there but with different names. >>>> >>>> Georg >>>> >>>> 2020-12-03 13:00:56,188 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerif-Regular.ttf. Reason: >>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>> 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Bold.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>> 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Regular.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>> 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Bold.ttf. Reason: >>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>> 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Regular.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>> 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Bold.ttf. Reason: >>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>> 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Regular.ttf. Reason: >>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>> 2020-12-03 13:00:56,527 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/ReemKufi-Regular.ttf. Reason: >>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>> 2020-12-03 13:00:56,611 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Bold.ttf. Reason: >>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>> 2020-12-03 13:00:56,627 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Regular.ttf. Reason: >>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>> 2020-12-03 13:00:58,394 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/teamviewer9.otf. Reason: >>>> java.lang.RuntimeException: The font file:/C:/WINDOWS/FONTS/teamviewer9.otf is not embeddable due to a licensing restriction. >>>> 2020-12-03 13:01:01,086 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- >>>> total:0.0,since last(Begin):0.0]] >>>> 2020-12-03 13:01:01,139 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 50 requests, 34 views in >>>> file:/C:/ofbiz/plugins/example/webapp/example/WEB-INF/controller.xml >>>> 2020-12-03 13:01:01,170 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 48 requests, 22 views in >>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml >>>> 2020-12-03 13:01:01,201 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 0 requests, 0 views in >>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/handlers-controller.xml >>>> 2020-12-03 13:01:01,224 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 26 requests, 10 views in >>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/portal-controller.xml >>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 2 requests, 2 views in >>>> file:/C:/ofbiz/plugins/example/widget/example/ExampleCompoundWidgets.xml >>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |RequestHandler |I| Sending redirect to: >>>> [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20]. >>>> Hidden sessionId by default. >>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>> 2020-12-03 13:01:01,286 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Done- total:0.184,since >>>> last([qrcode(Domain:ht...):0.184]] >>>> 2020-12-03 13:01:01,386 |jsse-nio-8443-exec-4 |ScreenFopViewHandler |E| Unable to transform FO file: org.apache.fop.apps.FOPException >>>> java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text was: >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> >>>> >>>> >>>> <!-- Begin Template component://example/template/reports/BarCode.fo.ftl --> >>>> >>>> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> >>>> >>>> <fo:layout-master-set> >>>> <fo:simple-page-master master-name="main" page-height="4in" page-width="8in" >>>> margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" margin-right="0.25in"> >>>> <fo:region-body margin-top="0in"/> >>>> <fo:region-before extent="0in"/> >>>> <fo:region-after extent="0in"/> >>>> </fo:simple-page-master> >>>> </fo:layout-master-set> >>>> >>>> <fo:page-sequence master-reference="main"> >>>> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> >>>> <fo:block text-align="center"> >>>> Example 11 >>>> </fo:block> >>>> <fo:block text-align="center"> >>>> <fo:instream-foreign-object> >>>> <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" >>>> message="EX11"> >>>> <barcode:code39> >>>> <barcode:height>0.75in</barcode:height> >>>> <barcode:module-width>.375mm</barcode:module-width> >>>> </barcode:code39> >>>> <barcode:human-readable> >>>> <barcode:placement>bottom</barcode:placement> >>>> <barcode:font-name>Helvetica</barcode:font-name> >>>> <barcode:font-size>18pt</barcode:font-size> >>>> <barcode:display-start-stop>false</barcode:display-start-stop> >>>> <barcode:display-checksum>false</barcode:display-checksum> >>>> </barcode:human-readable> >>>> </barcode:barcode> >>>> </fo:instream-foreign-object> >>>> </fo:block> >>>> <fo:block> >>>> <fo:leader/> >>>> </fo:block> >>>> <fo:block text-align="center"> >>>> <fo:external-graphic >>>> src="/example/control/qrcode;jsessionid=E842AAB15A21B6B90D3B9DFB84B904FB.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20" >>>> >>>> overflow="hidden" height="1.5in" content-height="scale-to-fit"/> >>>> </fo:block> >>>> </fo:flow> >>>> </fo:page-sequence> >>>> </fo:root> >>>> <!-- End Template component://example/template/reports/BarCode.fo.ftl --> >>>> >>>> 2020-12-03 13:01:01,402 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 27 screens in 0.016s from: >>>> file:/C:/ofbiz/framework/common/widget/CommonScreens.xml >>>> 2020-12-03 13:01:01,487 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 26 screens in 0.0s from: file:/C:/ofbiz/themes/common/widget/CommonScreens.xml >>>> 2020-12-03 13:01:01,502 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 8 screens in 0.015s from: >>>> file:/C:/ofbiz/plugins/example/widget/example/CommonScreens.xml >>>> 2020-12-03 13:01:01,518 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 1 screens in 0.016s from: >>>> file:/C:/ofbiz/applications/commonext/widget/CommonScreens.xml >>>> 2020-12-03 13:01:01,556 |jsse-nio-8443-exec-4 |ServiceDispatcher |T| Sync service [example/getLastSystemInfoNote] finished in [16] milliseconds >>>> 2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>> 2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ControlServlet |T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- >>>> total:22.793,since last([ExampleReportPdf...):22.793]] >>>> 2020-12-03 13:01:01,921 |jsse-nio-8443-exec-7 |ControlServlet |T| [[[setLocaleFromBrowser(Domain:https://localhost)] Request Begun, >>>> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] >>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |ServiceDispatcher |T| Sync service [example/setLocaleFromBrowser] finished in [32] milliseconds >>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| Ran Event [service:#setLocaleFromBrowser] from [request], result is [success] >>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| [RequestHandler.doRequest]: Response is a chained request. Hidden sessionId by >>>> default. >>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| [RequestHandler]: Chain in place: requestUri=json overrideViewUri=null Hidden >>>> sessionId by default. >>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| Ran Event >>>> [java:org.apache.ofbiz.common.CommonEvents#jsonResponseFromRequestAttributes] from [request], result is [success] >>>> 2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>> 2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ControlServlet |T| [[[setLocaleFromBrowser(Domain:https://localhost)] Request Done- >>>> total:0.047,since last([setLocaleFromBro...):0.047]] >>>> >>>> >> > |
Yes, in the file qrcode.properties, which has the path
\framework\common\config\qrcode.properties, there is: # default logo image to put in the center of a QRCode qrcode.default.logoimage=component://common-theme/webapp/images/ofbiz.png However, the image is in the path: themes\common\webapp\images\ofbiz.png What should I specify in the qrcode.properties file? I assume "component://" starts at framework or example. How do I specify a path to themes? Georg -----Ursprüngliche Nachricht----- From: Jacques Le Roux Sent: Sunday, December 6, 2020 11:38 AM To: [hidden email] Subject: Re: Demos shutdown because possible security issues Hi Georg, Would you miss ofbiz.png? PLease check qrcode.properties Jacques Le 05/12/2020 à 21:45, Georg Potthast a écrit : > Hi Jacques, > > thank you very much that got it to work! However, I observe that on the > demo-trunk you get two > barcodes while I only get one on my local PC. > > Here is an image of the output comparing both: > https://up.picr.de/40021689ij.png > > And here is the error message in the log: > 2020-12-05 21:26:04,937 |jsse-nio-8443-exec-7 |FOUserAgent |E| Image not > found. URI: > /example/control/qrcode;jsessionid=2EBDDFC4061B25AA5F745FE7E609176A.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20. > (See position 47:77) > 2020-12-05 21:26:05,336 |jsse-nio-8443-exec-7 |FOUserAgent |E| Image not > found. URI: > /example/control/qrcode;jsessionid=2EBDDFC4061B25AA5F745FE7E609176A.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20. > (No context info available) > > What can I do to generate the second barcode too? > > Georg > > -----Ursprüngliche Nachricht----- From: Jacques Le Roux > Sent: Saturday, December 5, 2020 8:38 PM > To: [hidden email] > Subject: Re: Demos shutdown because possible security issues > > Hi Georg, > > Oops, indeed I forgot to mention in fop.xconf: > > - <base>http://localhost:8080</base> > + <base>https://demo-trunk.ofbiz.apache.org</base> > > HTH > > Jacques > > Le 05/12/2020 à 20:13, Georg Potthast a écrit : >> Hi Jacques, >> >> I installed OFBiz on SUSE Linux and got the same error message there: >> The Following Errors Occurred: >> Unable to transform FO file: org.apache.fop.apps.FOPException >> java.lang.reflect.UndeclaredThrowableException >> >> You must have added a secret spice to the demo-trunk! Here is the log on >> Linux, it does not complain about fonts: >> >> >> 2020-12-05 20:00:32,567 |sse-nio-8443-exec-10 |ControlServlet |T| >> [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Begun, >> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] >> 2020-12-05 20:00:32,582 |sse-nio-8443-exec-10 |ConfigXMLReader |I| >> controller loaded: 0.001s, 50 requests, 34 views in >> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/webapp/example/WEB-INF/contro >> ller.xml >> 2020-12-05 20:00:32,598 |sse-nio-8443-exec-10 |ConfigXMLReader |I| >> controller loaded: 0.0s, 48 requests, 22 views in >> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/common-contr >> oller.xml >> 2020-12-05 20:00:32,609 |sse-nio-8443-exec-10 |ConfigXMLReader |I| >> controller loaded: 0.0s, 0 requests, 0 views in >> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/handlers-contr >> oller.xml >> 2020-12-05 20:00:32,618 |sse-nio-8443-exec-10 |ConfigXMLReader |I| >> controller loaded: 0.0s, 26 requests, 10 views in >> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/portal-contr >> oller.xml >> 2020-12-05 20:00:32,642 |sse-nio-8443-exec-10 |ConfigXMLReader |I| >> controller loaded: 0.0s, 2 requests, 2 views in >> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/ExampleCompoundWid >> gets.xml >> 2020-12-05 20:00:32,648 |sse-nio-8443-exec-10 |RequestHandler |I| >> Rendering View [ExampleReportPdfBarcode]. Hidden sessionId by default. >> 2020-12-05 20:00:32,681 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync >> service [example/getUserPreferenceGroup] finished in [2] milliseconds >> 2020-12-05 20:00:32,687 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 22 >> screens in 0.006s from: >> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/ExampleScreens.xml >> 2020-12-05 20:00:32,866 |sse-nio-8443-exec-10 |UtilProperties |I| >> ResourceBundle ProductUiLabels (en_US) created in 0.179s with 2641 >> properties >> 2020-12-05 20:00:33,463 |sse-nio-8443-exec-10 |ApacheFopWorker |I| FOP >> FontBaseURL: >> file:/home/georg/apache-ofbiz-17.12.04/framework/webapp/config/ >> 2020-12-05 20:00:33,467 |sse-nio-8443-exec-10 |FOP |D| target-resolution >> set to: 72.0dpi (px2mm=0.35277778) >> 2020-12-05 20:00:33,498 |sse-nio-8443-exec-10 |FOP |D| User configuration >> found for MIME type application/pdf >> 2020-12-05 20:00:33,535 |sse-nio-8443-exec-10 |FOP |D| User configuration >> found for MIME type application/pdf >> 2020-12-05 20:00:34,095 |http-nio-8080-exec-1 |ControlServlet |T| >> [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- >> total:0.0,since last(Begin):0.0]] >> 2020-12-05 20:00:34,096 |http-nio-8080-exec-1 |RequestHandler |I| Sending >> redirect to: >> [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&log >> oImageMaxWidth=20&logoImageMaxHeight=20]. Hidden sessionId by default. >> 2020-12-05 20:00:34,097 |http-nio-8080-exec-1 |ServerHitBin |I| Visit >> delegatorName=default, ServerHitBin delegatorName=default >> 2020-12-05 20:00:34,104 |http-nio-8080-exec-1 |ControlServlet |T| >> [[[qrcode(Domain:http://localhost)] Request Done- total:0.009,since >> last([qrcode(Domain:ht...):0.009]] >> 2020-12-05 20:00:34,144 |sse-nio-8443-exec-10 |ScreenFopViewHandler |E| >> Unable to transform FO file: org.apache.fop.apps.FOPException >> java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text was: >> <?xml version="1.0" encoding="UTF-8"?> >> >> >> >> <!-- Begin Template >> component://example/template/reports/BarCode.fo.ftl --> >> >> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> >> >> <fo:layout-master-set> >> <fo:simple-page-master master-name="main" page-height="4in" >> page-width="8in" >> margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" >> margin-right="0.25in"> >> <fo:region-body margin-top="0in"/> >> <fo:region-before extent="0in"/> >> <fo:region-after extent="0in"/> >> </fo:simple-page-master> >> </fo:layout-master-set> >> >> <fo:page-sequence master-reference="main"> >> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> >> <fo:block text-align="center"> >> Example 11 >> </fo:block> >> <fo:block text-align="center"> >> <fo:instream-foreign-object> >> <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" >> message="EX11"> >> <barcode:code39> >> <barcode:height>0.75in</barcode:height> >> <barcode:module-width>.375mm</barcode:module-width> >> </barcode:code39> >> <barcode:human-readable> >> <barcode:placement>bottom</barcode:placement> >> <barcode:font-name>Helvetica</barcode:font-name> >> <barcode:font-size>18pt</barcode:font-size> >> <barcode:display-start-stop>false</barcode:display-start-stop> >> <barcode:display-checksum>false</barcode:display-checksum> >> </barcode:human-readable> >> </barcode:barcode> >> </fo:instream-foreign-object> >> </fo:block> >> <fo:block> >> <fo:leader/> >> </fo:block> >> <fo:block text-align="center"> >> <fo:external-graphic >> src="/example/control/qrcode;jsessionid=1B13B88A8AEEACCD504212C554EF065F.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20 >> " >> overflow="hidden" height="1.5in" >> content-height="scale-to-fit"/> >> </fo:block> >> </fo:flow> >> </fo:page-sequence> >> </fo:root> >> <!-- End Template component://example/template/reports/BarCode.fo.ftl --> >> >> 2020-12-05 20:00:34,145 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync >> service [example/getUserPreferenceGroup] finished in [1] milliseconds >> 2020-12-05 20:00:34,149 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 27 >> screens in 0.004s from: >> file:/home/georg/apache-ofbiz-17.12.04/framework/common/widget/CommonScreens.xml >> 2020-12-05 20:00:34,203 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 26 >> screens in 0.006s from: >> file:/home/georg/apache-ofbiz-17.12.04/themes/common/widget/CommonScreens.xml >> 2020-12-05 20:00:34,210 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 8 >> screens in 0.006s from: >> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/CommonScreens.xml >> 2020-12-05 20:00:34,215 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 1 >> screens in 0.004s from: >> file:/home/georg/apache-ofbiz-17.12.04/applications/commonext/widget/CommonScreens.xml >> 2020-12-05 20:00:34,250 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync >> service [example/getLastSystemInfoNote] finished in [11] milliseconds >> 2020-12-05 20:00:34,270 |sse-nio-8443-exec-10 |ServerHitBin |I| Visit >> delegatorName=default, ServerHitBin delegatorName=default >> 2020-12-05 20:00:34,279 |sse-nio-8443-exec-10 |ControlServlet |T| >> [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- >> total:1.712,since last([ExampleReportPdf...):1.712]] >>> Building 91% > :ofbiz >> >> >> -----Ursprüngliche Nachricht----- From: Jacques Le Roux >> Sent: Thursday, December 3, 2020 3:39 PM >> To: [hidden email] >> Subject: Re: Demos shutdown because possible security issues >> >> Mmm, not sure it will work though, I have not them into >> C:/WINDOWS/FONTS/ and it works here (I was the one who did that some >> years ago, on Windows too) >> >> Also check fop.properties, maybe the name must be NotoSans "NotoSans" not >> "Noto Sans" >> >> Not sure about all that :) I'd make several different tries... >> >> Jacques >> >> Le 03/12/2020 à 15:34, Jacques Le Roux a écrit : >>> Hi Georg, >>> >>> The fonts OFBiz uses are in framework/resources/fonts/NotoSans/ dir. I'd >>> try to put them into C:/WINDOWS/FONTS/ >>> >>> HTH >>> >>> Jacques >>> >>> Le 03/12/2020 à 13:16, Georg Potthast 2 a écrit : >>>> Hi Jacques, >>>> >>>> here are lines from the log. It does not find fonts, I have included >>>> only the last lines of the messages that it could not find the font. >>>> >>>> Here is a screenshot of my fonts directory on Windows: >>>> https://up.picr.de/40004386kt.png >>>> It seems to me the fonts are there but with different names. >>>> >>>> Georg >>>> >>>> 2020-12-03 13:00:56,188 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerif-Regular.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>> table not yet supported >>>> 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Bold.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>> table not yet supported >>>> 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: >>>> file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Regular.ttf. Reason: >>>> java.lang.UnsupportedOperationException: coverage set class table not >>>> yet supported >>>> 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Bold.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>> table not yet supported >>>> 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Regular.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>> table not yet supported >>>> 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Bold.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>> table not yet supported >>>> 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Regular.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>> table not yet supported >>>> 2020-12-03 13:00:56,527 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: file:/C:/WINDOWS/FONTS/ReemKufi-Regular.ttf. Reason: >>>> java.lang.UnsupportedOperationException: coverage set class table not >>>> yet supported >>>> 2020-12-03 13:00:56,611 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Bold.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>> table not yet supported >>>> 2020-12-03 13:00:56,627 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Regular.ttf. >>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>> table not yet supported >>>> 2020-12-03 13:00:58,394 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>> to load font file: file:/C:/WINDOWS/FONTS/teamviewer9.otf. Reason: >>>> java.lang.RuntimeException: The font >>>> file:/C:/WINDOWS/FONTS/teamviewer9.otf is not embeddable due to a >>>> licensing restriction. >>>> 2020-12-03 13:01:01,086 |http-nio-8080-exec-1 |ControlServlet |T| >>>> [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- >>>> total:0.0,since last(Begin):0.0]] >>>> 2020-12-03 13:01:01,139 |http-nio-8080-exec-1 |ConfigXMLReader |I| >>>> controller loaded: 0.0s, 50 requests, 34 views in >>>> file:/C:/ofbiz/plugins/example/webapp/example/WEB-INF/controller.xml >>>> 2020-12-03 13:01:01,170 |http-nio-8080-exec-1 |ConfigXMLReader |I| >>>> controller loaded: 0.0s, 48 requests, 22 views in >>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml >>>> 2020-12-03 13:01:01,201 |http-nio-8080-exec-1 |ConfigXMLReader |I| >>>> controller loaded: 0.0s, 0 requests, 0 views in >>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/handlers-controller.xml >>>> 2020-12-03 13:01:01,224 |http-nio-8080-exec-1 |ConfigXMLReader |I| >>>> controller loaded: 0.0s, 26 requests, 10 views in >>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/portal-controller.xml >>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ConfigXMLReader |I| >>>> controller loaded: 0.0s, 2 requests, 2 views in >>>> file:/C:/ofbiz/plugins/example/widget/example/ExampleCompoundWidgets.xml >>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |RequestHandler |I| >>>> Sending redirect to: >>>> [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20]. >>>> Hidden sessionId by default. >>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ServerHitBin |I| Visit >>>> delegatorName=default, ServerHitBin delegatorName=default >>>> 2020-12-03 13:01:01,286 |http-nio-8080-exec-1 |ControlServlet |T| >>>> [[[qrcode(Domain:http://localhost)] Request Done- total:0.184,since >>>> last([qrcode(Domain:ht...):0.184]] >>>> 2020-12-03 13:01:01,386 |jsse-nio-8443-exec-4 |ScreenFopViewHandler |E| >>>> Unable to transform FO file: org.apache.fop.apps.FOPException >>>> java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text was: >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> >>>> >>>> >>>> <!-- Begin Template >>>> component://example/template/reports/BarCode.fo.ftl --> >>>> >>>> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> >>>> >>>> <fo:layout-master-set> >>>> <fo:simple-page-master master-name="main" page-height="4in" >>>> page-width="8in" >>>> margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" >>>> margin-right="0.25in"> >>>> <fo:region-body margin-top="0in"/> >>>> <fo:region-before extent="0in"/> >>>> <fo:region-after extent="0in"/> >>>> </fo:simple-page-master> >>>> </fo:layout-master-set> >>>> >>>> <fo:page-sequence master-reference="main"> >>>> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> >>>> <fo:block text-align="center"> >>>> Example 11 >>>> </fo:block> >>>> <fo:block text-align="center"> >>>> <fo:instream-foreign-object> >>>> <barcode:barcode >>>> xmlns:barcode="http://barcode4j.krysalis.org/ns" >>>> message="EX11"> >>>> <barcode:code39> >>>> <barcode:height>0.75in</barcode:height> >>>> <barcode:module-width>.375mm</barcode:module-width> >>>> </barcode:code39> >>>> <barcode:human-readable> >>>> <barcode:placement>bottom</barcode:placement> >>>> <barcode:font-name>Helvetica</barcode:font-name> >>>> <barcode:font-size>18pt</barcode:font-size> >>>> <barcode:display-start-stop>false</barcode:display-start-stop> >>>> <barcode:display-checksum>false</barcode:display-checksum> >>>> </barcode:human-readable> >>>> </barcode:barcode> >>>> </fo:instream-foreign-object> >>>> </fo:block> >>>> <fo:block> >>>> <fo:leader/> >>>> </fo:block> >>>> <fo:block text-align="center"> >>>> <fo:external-graphic >>>> src="/example/control/qrcode;jsessionid=E842AAB15A21B6B90D3B9DFB84B904FB.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20" >>>> overflow="hidden" height="1.5in" >>>> content-height="scale-to-fit"/> >>>> </fo:block> >>>> </fo:flow> >>>> </fo:page-sequence> >>>> </fo:root> >>>> <!-- End Template >>>> component://example/template/reports/BarCode.fo.ftl --> >>>> >>>> 2020-12-03 13:01:01,402 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 27 >>>> screens in 0.016s from: >>>> file:/C:/ofbiz/framework/common/widget/CommonScreens.xml >>>> 2020-12-03 13:01:01,487 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 26 >>>> screens in 0.0s from: >>>> file:/C:/ofbiz/themes/common/widget/CommonScreens.xml >>>> 2020-12-03 13:01:01,502 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 8 >>>> screens in 0.015s from: >>>> file:/C:/ofbiz/plugins/example/widget/example/CommonScreens.xml >>>> 2020-12-03 13:01:01,518 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 1 >>>> screens in 0.016s from: >>>> file:/C:/ofbiz/applications/commonext/widget/CommonScreens.xml >>>> 2020-12-03 13:01:01,556 |jsse-nio-8443-exec-4 |ServiceDispatcher |T| >>>> Sync service [example/getLastSystemInfoNote] finished in [16] >>>> milliseconds >>>> 2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ServerHitBin |I| Visit >>>> delegatorName=default, ServerHitBin delegatorName=default >>>> 2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ControlServlet |T| >>>> [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- >>>> total:22.793,since last([ExampleReportPdf...):22.793]] >>>> 2020-12-03 13:01:01,921 |jsse-nio-8443-exec-7 |ControlServlet |T| >>>> [[[setLocaleFromBrowser(Domain:https://localhost)] Request Begun, >>>> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] >>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |ServiceDispatcher |T| >>>> Sync service [example/setLocaleFromBrowser] finished in [32] >>>> milliseconds >>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| Ran >>>> Event [service:#setLocaleFromBrowser] from [request], result is >>>> [success] >>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| >>>> [RequestHandler.doRequest]: Response is a chained request. Hidden >>>> sessionId by default. >>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| >>>> [RequestHandler]: Chain in place: requestUri=json overrideViewUri=null >>>> Hidden sessionId by default. >>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| Ran >>>> Event >>>> [java:org.apache.ofbiz.common.CommonEvents#jsonResponseFromRequestAttributes] >>>> from [request], result is [success] >>>> 2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ServerHitBin |I| Visit >>>> delegatorName=default, ServerHitBin delegatorName=default >>>> 2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ControlServlet |T| >>>> [[[setLocaleFromBrowser(Domain:https://localhost)] Request Done- >>>> total:0.047,since last([setLocaleFromBro...):0.047]] >>>> >>>> >> > |
Administrator
|
Since your image is in themes\common\webapp\images\ofbiz.png you should use
qrcode.default.logoimage=component://themes/common/webapp/images/ofbiz.png Just curious: did you combine different versions? Jacques Le 06/12/2020 à 16:13, Georg Potthast a écrit : > Yes, in the file qrcode.properties, which has the path \framework\common\config\qrcode.properties, there is: > > # default logo image to put in the center of a QRCode > qrcode.default.logoimage=component://common-theme/webapp/images/ofbiz.png > > However, the image is in the path: themes\common\webapp\images\ofbiz.png > > What should I specify in the qrcode.properties file? I assume "component://" starts at framework or example. How do I specify a path to themes? > > Georg > > -----Ursprüngliche Nachricht----- From: Jacques Le Roux > Sent: Sunday, December 6, 2020 11:38 AM > To: [hidden email] > Subject: Re: Demos shutdown because possible security issues > > Hi Georg, > > Would you miss ofbiz.png? PLease check qrcode.properties > > Jacques > > Le 05/12/2020 à 21:45, Georg Potthast a écrit : >> Hi Jacques, >> >> thank you very much that got it to work! However, I observe that on the demo-trunk you get two >> barcodes while I only get one on my local PC. >> >> Here is an image of the output comparing both: >> https://up.picr.de/40021689ij.png >> >> And here is the error message in the log: >> 2020-12-05 21:26:04,937 |jsse-nio-8443-exec-7 |FOUserAgent |E| Image not found. URI: >> /example/control/qrcode;jsessionid=2EBDDFC4061B25AA5F745FE7E609176A.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20. >> (See position 47:77) >> 2020-12-05 21:26:05,336 |jsse-nio-8443-exec-7 |FOUserAgent |E| Image not found. URI: >> /example/control/qrcode;jsessionid=2EBDDFC4061B25AA5F745FE7E609176A.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20. >> (No context info available) >> >> What can I do to generate the second barcode too? >> >> Georg >> >> -----Ursprüngliche Nachricht----- From: Jacques Le Roux >> Sent: Saturday, December 5, 2020 8:38 PM >> To: [hidden email] >> Subject: Re: Demos shutdown because possible security issues >> >> Hi Georg, >> >> Oops, indeed I forgot to mention in fop.xconf: >> >> - <base>http://localhost:8080</base> >> + <base>https://demo-trunk.ofbiz.apache.org</base> >> >> HTH >> >> Jacques >> >> Le 05/12/2020 à 20:13, Georg Potthast a écrit : >>> Hi Jacques, >>> >>> I installed OFBiz on SUSE Linux and got the same error message there: >>> The Following Errors Occurred: >>> Unable to transform FO file: org.apache.fop.apps.FOPException java.lang.reflect.UndeclaredThrowableException >>> >>> You must have added a secret spice to the demo-trunk! Here is the log on Linux, it does not complain about fonts: >>> >>> >>> 2020-12-05 20:00:32,567 |sse-nio-8443-exec-10 |ControlServlet |T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Begun, >>> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] >>> 2020-12-05 20:00:32,582 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.001s, 50 requests, 34 views in >>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/webapp/example/WEB-INF/contro >>> ller.xml >>> 2020-12-05 20:00:32,598 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 48 requests, 22 views in >>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/common-contr >>> oller.xml >>> 2020-12-05 20:00:32,609 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 0 requests, 0 views in >>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/handlers-contr >>> oller.xml >>> 2020-12-05 20:00:32,618 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 26 requests, 10 views in >>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/portal-contr >>> oller.xml >>> 2020-12-05 20:00:32,642 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 2 requests, 2 views in >>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/ExampleCompoundWid >>> gets.xml >>> 2020-12-05 20:00:32,648 |sse-nio-8443-exec-10 |RequestHandler |I| Rendering View [ExampleReportPdfBarcode]. Hidden sessionId by default. >>> 2020-12-05 20:00:32,681 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync service [example/getUserPreferenceGroup] finished in [2] milliseconds >>> 2020-12-05 20:00:32,687 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 22 screens in 0.006s from: >>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/ExampleScreens.xml >>> 2020-12-05 20:00:32,866 |sse-nio-8443-exec-10 |UtilProperties |I| ResourceBundle ProductUiLabels (en_US) created in 0.179s with 2641 properties >>> 2020-12-05 20:00:33,463 |sse-nio-8443-exec-10 |ApacheFopWorker |I| FOP FontBaseURL: file:/home/georg/apache-ofbiz-17.12.04/framework/webapp/config/ >>> 2020-12-05 20:00:33,467 |sse-nio-8443-exec-10 |FOP |D| target-resolution set to: 72.0dpi (px2mm=0.35277778) >>> 2020-12-05 20:00:33,498 |sse-nio-8443-exec-10 |FOP |D| User configuration found for MIME type application/pdf >>> 2020-12-05 20:00:33,535 |sse-nio-8443-exec-10 |FOP |D| User configuration found for MIME type application/pdf >>> 2020-12-05 20:00:34,095 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- >>> total:0.0,since last(Begin):0.0]] >>> 2020-12-05 20:00:34,096 |http-nio-8080-exec-1 |RequestHandler |I| Sending redirect to: >>> [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&log >>> oImageMaxWidth=20&logoImageMaxHeight=20]. Hidden sessionId by default. >>> 2020-12-05 20:00:34,097 |http-nio-8080-exec-1 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>> 2020-12-05 20:00:34,104 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Done- total:0.009,since >>> last([qrcode(Domain:ht...):0.009]] >>> 2020-12-05 20:00:34,144 |sse-nio-8443-exec-10 |ScreenFopViewHandler |E| Unable to transform FO file: org.apache.fop.apps.FOPException >>> java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text was: >>> <?xml version="1.0" encoding="UTF-8"?> >>> >>> >>> >>> <!-- Begin Template component://example/template/reports/BarCode.fo.ftl --> >>> >>> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> >>> >>> <fo:layout-master-set> >>> <fo:simple-page-master master-name="main" page-height="4in" page-width="8in" >>> margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" margin-right="0.25in"> >>> <fo:region-body margin-top="0in"/> >>> <fo:region-before extent="0in"/> >>> <fo:region-after extent="0in"/> >>> </fo:simple-page-master> >>> </fo:layout-master-set> >>> >>> <fo:page-sequence master-reference="main"> >>> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> >>> <fo:block text-align="center"> >>> Example 11 >>> </fo:block> >>> <fo:block text-align="center"> >>> <fo:instream-foreign-object> >>> <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" >>> message="EX11"> >>> <barcode:code39> >>> <barcode:height>0.75in</barcode:height> >>> <barcode:module-width>.375mm</barcode:module-width> >>> </barcode:code39> >>> <barcode:human-readable> >>> <barcode:placement>bottom</barcode:placement> >>> <barcode:font-name>Helvetica</barcode:font-name> >>> <barcode:font-size>18pt</barcode:font-size> >>> <barcode:display-start-stop>false</barcode:display-start-stop> >>> <barcode:display-checksum>false</barcode:display-checksum> >>> </barcode:human-readable> >>> </barcode:barcode> >>> </fo:instream-foreign-object> >>> </fo:block> >>> <fo:block> >>> <fo:leader/> >>> </fo:block> >>> <fo:block text-align="center"> >>> <fo:external-graphic >>> src="/example/control/qrcode;jsessionid=1B13B88A8AEEACCD504212C554EF065F.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20 >>> >>> " >>> overflow="hidden" height="1.5in" content-height="scale-to-fit"/> >>> </fo:block> >>> </fo:flow> >>> </fo:page-sequence> >>> </fo:root> >>> <!-- End Template component://example/template/reports/BarCode.fo.ftl --> >>> >>> 2020-12-05 20:00:34,145 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync service [example/getUserPreferenceGroup] finished in [1] milliseconds >>> 2020-12-05 20:00:34,149 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 27 screens in 0.004s from: >>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/widget/CommonScreens.xml >>> 2020-12-05 20:00:34,203 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 26 screens in 0.006s from: >>> file:/home/georg/apache-ofbiz-17.12.04/themes/common/widget/CommonScreens.xml >>> 2020-12-05 20:00:34,210 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 8 screens in 0.006s from: >>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/CommonScreens.xml >>> 2020-12-05 20:00:34,215 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 1 screens in 0.004s from: >>> file:/home/georg/apache-ofbiz-17.12.04/applications/commonext/widget/CommonScreens.xml >>> 2020-12-05 20:00:34,250 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync service [example/getLastSystemInfoNote] finished in [11] milliseconds >>> 2020-12-05 20:00:34,270 |sse-nio-8443-exec-10 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>> 2020-12-05 20:00:34,279 |sse-nio-8443-exec-10 |ControlServlet |T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- >>> total:1.712,since last([ExampleReportPdf...):1.712]] >>>> Building 91% > :ofbiz >>> >>> >>> -----Ursprüngliche Nachricht----- From: Jacques Le Roux >>> Sent: Thursday, December 3, 2020 3:39 PM >>> To: [hidden email] >>> Subject: Re: Demos shutdown because possible security issues >>> >>> Mmm, not sure it will work though, I have not them into C:/WINDOWS/FONTS/ and it works here (I was the one who did that some years ago, on >>> Windows too) >>> >>> Also check fop.properties, maybe the name must be NotoSans "NotoSans" not "Noto Sans" >>> >>> Not sure about all that :) I'd make several different tries... >>> >>> Jacques >>> >>> Le 03/12/2020 à 15:34, Jacques Le Roux a écrit : >>>> Hi Georg, >>>> >>>> The fonts OFBiz uses are in framework/resources/fonts/NotoSans/ dir. I'd try to put them into C:/WINDOWS/FONTS/ >>>> >>>> HTH >>>> >>>> Jacques >>>> >>>> Le 03/12/2020 à 13:16, Georg Potthast 2 a écrit : >>>>> Hi Jacques, >>>>> >>>>> here are lines from the log. It does not find fonts, I have included only the last lines of the messages that it could not find the font. >>>>> >>>>> Here is a screenshot of my fonts directory on Windows: >>>>> https://up.picr.de/40004386kt.png >>>>> It seems to me the fonts are there but with different names. >>>>> >>>>> Georg >>>>> >>>>> 2020-12-03 13:00:56,188 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerif-Regular.ttf. Reason: >>>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>> 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Bold.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>> 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Regular.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>> 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Bold.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>> 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Regular.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>> 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Bold.ttf. Reason: >>>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>> 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Regular.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>> 2020-12-03 13:00:56,527 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/ReemKufi-Regular.ttf. Reason: >>>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>> 2020-12-03 13:00:56,611 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Bold.ttf. Reason: >>>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>> 2020-12-03 13:00:56,627 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Regular.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>> 2020-12-03 13:00:58,394 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/teamviewer9.otf. Reason: >>>>> java.lang.RuntimeException: The font file:/C:/WINDOWS/FONTS/teamviewer9.otf is not embeddable due to a licensing restriction. >>>>> 2020-12-03 13:01:01,086 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- >>>>> total:0.0,since last(Begin):0.0]] >>>>> 2020-12-03 13:01:01,139 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 50 requests, 34 views in >>>>> file:/C:/ofbiz/plugins/example/webapp/example/WEB-INF/controller.xml >>>>> 2020-12-03 13:01:01,170 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 48 requests, 22 views in >>>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml >>>>> 2020-12-03 13:01:01,201 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 0 requests, 0 views in >>>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/handlers-controller.xml >>>>> 2020-12-03 13:01:01,224 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 26 requests, 10 views in >>>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/portal-controller.xml >>>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 2 requests, 2 views in >>>>> file:/C:/ofbiz/plugins/example/widget/example/ExampleCompoundWidgets.xml >>>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |RequestHandler |I| Sending redirect to: >>>>> [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20]. >>>>> Hidden sessionId by default. >>>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>>> 2020-12-03 13:01:01,286 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Done- total:0.184,since >>>>> last([qrcode(Domain:ht...):0.184]] >>>>> 2020-12-03 13:01:01,386 |jsse-nio-8443-exec-4 |ScreenFopViewHandler |E| Unable to transform FO file: org.apache.fop.apps.FOPException >>>>> java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text was: >>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>> >>>>> >>>>> >>>>> <!-- Begin Template component://example/template/reports/BarCode.fo.ftl --> >>>>> >>>>> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> >>>>> >>>>> <fo:layout-master-set> >>>>> <fo:simple-page-master master-name="main" page-height="4in" page-width="8in" >>>>> margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" margin-right="0.25in"> >>>>> <fo:region-body margin-top="0in"/> >>>>> <fo:region-before extent="0in"/> >>>>> <fo:region-after extent="0in"/> >>>>> </fo:simple-page-master> >>>>> </fo:layout-master-set> >>>>> >>>>> <fo:page-sequence master-reference="main"> >>>>> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> >>>>> <fo:block text-align="center"> >>>>> Example 11 >>>>> </fo:block> >>>>> <fo:block text-align="center"> >>>>> <fo:instream-foreign-object> >>>>> <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" >>>>> message="EX11"> >>>>> <barcode:code39> >>>>> <barcode:height>0.75in</barcode:height> >>>>> <barcode:module-width>.375mm</barcode:module-width> >>>>> </barcode:code39> >>>>> <barcode:human-readable> >>>>> <barcode:placement>bottom</barcode:placement> >>>>> <barcode:font-name>Helvetica</barcode:font-name> >>>>> <barcode:font-size>18pt</barcode:font-size> >>>>> <barcode:display-start-stop>false</barcode:display-start-stop> >>>>> <barcode:display-checksum>false</barcode:display-checksum> >>>>> </barcode:human-readable> >>>>> </barcode:barcode> >>>>> </fo:instream-foreign-object> >>>>> </fo:block> >>>>> <fo:block> >>>>> <fo:leader/> >>>>> </fo:block> >>>>> <fo:block text-align="center"> >>>>> <fo:external-graphic >>>>> src="/example/control/qrcode;jsessionid=E842AAB15A21B6B90D3B9DFB84B904FB.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20" >>>>> >>>>> overflow="hidden" height="1.5in" content-height="scale-to-fit"/> >>>>> </fo:block> >>>>> </fo:flow> >>>>> </fo:page-sequence> >>>>> </fo:root> >>>>> <!-- End Template component://example/template/reports/BarCode.fo.ftl --> >>>>> >>>>> 2020-12-03 13:01:01,402 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 27 screens in 0.016s from: >>>>> file:/C:/ofbiz/framework/common/widget/CommonScreens.xml >>>>> 2020-12-03 13:01:01,487 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 26 screens in 0.0s from: file:/C:/ofbiz/themes/common/widget/CommonScreens.xml >>>>> 2020-12-03 13:01:01,502 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 8 screens in 0.015s from: >>>>> file:/C:/ofbiz/plugins/example/widget/example/CommonScreens.xml >>>>> 2020-12-03 13:01:01,518 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 1 screens in 0.016s from: >>>>> file:/C:/ofbiz/applications/commonext/widget/CommonScreens.xml >>>>> 2020-12-03 13:01:01,556 |jsse-nio-8443-exec-4 |ServiceDispatcher |T| Sync service [example/getLastSystemInfoNote] finished in [16] milliseconds >>>>> 2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>>> 2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ControlServlet |T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- >>>>> total:22.793,since last([ExampleReportPdf...):22.793]] >>>>> 2020-12-03 13:01:01,921 |jsse-nio-8443-exec-7 |ControlServlet |T| [[[setLocaleFromBrowser(Domain:https://localhost)] Request Begun, >>>>> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] >>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |ServiceDispatcher |T| Sync service [example/setLocaleFromBrowser] finished in [32] milliseconds >>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| Ran Event [service:#setLocaleFromBrowser] from [request], result is [success] >>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| [RequestHandler.doRequest]: Response is a chained request. Hidden sessionId by >>>>> default. >>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| [RequestHandler]: Chain in place: requestUri=json overrideViewUri=null Hidden >>>>> sessionId by default. >>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| Ran Event >>>>> [java:org.apache.ofbiz.common.CommonEvents#jsonResponseFromRequestAttributes] from [request], result is [success] >>>>> 2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>>> 2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ControlServlet |T| [[[setLocaleFromBrowser(Domain:https://localhost)] Request Done- >>>>> total:0.047,since last([setLocaleFromBro...):0.047]] >>>>> >>>>> >>> >> > |
I changed the entry in qrcode.properties. But I am sorry, it still reports
image not found. Is it possible to omit the logo? This is just to make it beautiful. I use the downloaded apache-ofbiz-17.12.04.zip file. No changes done to the example plugin nor the framework. What location does component:// start from? When I use this in a plugin, it will start from the plugin directory. Georg -----Ursprüngliche Nachricht----- From: Jacques Le Roux Sent: Sunday, December 6, 2020 5:57 PM To: [hidden email] Subject: Re: Demos shutdown because possible security issues Since your image is in themes\common\webapp\images\ofbiz.png you should use qrcode.default.logoimage=component://themes/common/webapp/images/ofbiz.png Just curious: did you combine different versions? Jacques Le 06/12/2020 à 16:13, Georg Potthast a écrit : > Yes, in the file qrcode.properties, which has the path > \framework\common\config\qrcode.properties, there is: > > # default logo image to put in the center of a QRCode > qrcode.default.logoimage=component://common-theme/webapp/images/ofbiz.png > > However, the image is in the path: themes\common\webapp\images\ofbiz.png > > What should I specify in the qrcode.properties file? I assume > "component://" starts at framework or example. How do I specify a path to > themes? > > Georg > > -----Ursprüngliche Nachricht----- From: Jacques Le Roux > Sent: Sunday, December 6, 2020 11:38 AM > To: [hidden email] > Subject: Re: Demos shutdown because possible security issues > > Hi Georg, > > Would you miss ofbiz.png? PLease check qrcode.properties > > Jacques > > Le 05/12/2020 à 21:45, Georg Potthast a écrit : >> Hi Jacques, >> >> thank you very much that got it to work! However, I observe that on the >> demo-trunk you get two >> barcodes while I only get one on my local PC. >> >> Here is an image of the output comparing both: >> https://up.picr.de/40021689ij.png >> >> And here is the error message in the log: >> 2020-12-05 21:26:04,937 |jsse-nio-8443-exec-7 |FOUserAgent |E| Image not >> found. URI: >> /example/control/qrcode;jsessionid=2EBDDFC4061B25AA5F745FE7E609176A.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20. >> (See position 47:77) >> 2020-12-05 21:26:05,336 |jsse-nio-8443-exec-7 |FOUserAgent |E| Image not >> found. URI: >> /example/control/qrcode;jsessionid=2EBDDFC4061B25AA5F745FE7E609176A.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20. >> (No context info available) >> >> What can I do to generate the second barcode too? >> >> Georg >> >> -----Ursprüngliche Nachricht----- From: Jacques Le Roux >> Sent: Saturday, December 5, 2020 8:38 PM >> To: [hidden email] >> Subject: Re: Demos shutdown because possible security issues >> >> Hi Georg, >> >> Oops, indeed I forgot to mention in fop.xconf: >> >> - <base>http://localhost:8080</base> >> + <base>https://demo-trunk.ofbiz.apache.org</base> >> >> HTH >> >> Jacques >> >> Le 05/12/2020 à 20:13, Georg Potthast a écrit : >>> Hi Jacques, >>> >>> I installed OFBiz on SUSE Linux and got the same error message there: >>> The Following Errors Occurred: >>> Unable to transform FO file: org.apache.fop.apps.FOPException >>> java.lang.reflect.UndeclaredThrowableException >>> >>> You must have added a secret spice to the demo-trunk! Here is the log on >>> Linux, it does not complain about fonts: >>> >>> >>> 2020-12-05 20:00:32,567 |sse-nio-8443-exec-10 |ControlServlet |T| >>> [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Begun, >>> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] >>> 2020-12-05 20:00:32,582 |sse-nio-8443-exec-10 |ConfigXMLReader |I| >>> controller loaded: 0.001s, 50 requests, 34 views in >>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/webapp/example/WEB-INF/contro >>> ller.xml >>> 2020-12-05 20:00:32,598 |sse-nio-8443-exec-10 |ConfigXMLReader |I| >>> controller loaded: 0.0s, 48 requests, 22 views in >>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/common-contr >>> oller.xml >>> 2020-12-05 20:00:32,609 |sse-nio-8443-exec-10 |ConfigXMLReader |I| >>> controller loaded: 0.0s, 0 requests, 0 views in >>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/handlers-contr >>> oller.xml >>> 2020-12-05 20:00:32,618 |sse-nio-8443-exec-10 |ConfigXMLReader |I| >>> controller loaded: 0.0s, 26 requests, 10 views in >>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/portal-contr >>> oller.xml >>> 2020-12-05 20:00:32,642 |sse-nio-8443-exec-10 |ConfigXMLReader |I| >>> controller loaded: 0.0s, 2 requests, 2 views in >>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/ExampleCompoundWid >>> gets.xml >>> 2020-12-05 20:00:32,648 |sse-nio-8443-exec-10 |RequestHandler |I| >>> Rendering View [ExampleReportPdfBarcode]. Hidden sessionId by default. >>> 2020-12-05 20:00:32,681 |sse-nio-8443-exec-10 |ServiceDispatcher |T| >>> Sync service [example/getUserPreferenceGroup] finished in [2] >>> milliseconds >>> 2020-12-05 20:00:32,687 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 22 >>> screens in 0.006s from: >>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/ExampleScreens.xml >>> 2020-12-05 20:00:32,866 |sse-nio-8443-exec-10 |UtilProperties |I| >>> ResourceBundle ProductUiLabels (en_US) created in 0.179s with 2641 >>> properties >>> 2020-12-05 20:00:33,463 |sse-nio-8443-exec-10 |ApacheFopWorker |I| FOP >>> FontBaseURL: >>> file:/home/georg/apache-ofbiz-17.12.04/framework/webapp/config/ >>> 2020-12-05 20:00:33,467 |sse-nio-8443-exec-10 |FOP |D| target-resolution >>> set to: 72.0dpi (px2mm=0.35277778) >>> 2020-12-05 20:00:33,498 |sse-nio-8443-exec-10 |FOP |D| User >>> configuration found for MIME type application/pdf >>> 2020-12-05 20:00:33,535 |sse-nio-8443-exec-10 |FOP |D| User >>> configuration found for MIME type application/pdf >>> 2020-12-05 20:00:34,095 |http-nio-8080-exec-1 |ControlServlet |T| >>> [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- >>> total:0.0,since last(Begin):0.0]] >>> 2020-12-05 20:00:34,096 |http-nio-8080-exec-1 |RequestHandler |I| >>> Sending redirect to: >>> [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&log >>> oImageMaxWidth=20&logoImageMaxHeight=20]. Hidden sessionId by default. >>> 2020-12-05 20:00:34,097 |http-nio-8080-exec-1 |ServerHitBin |I| Visit >>> delegatorName=default, ServerHitBin delegatorName=default >>> 2020-12-05 20:00:34,104 |http-nio-8080-exec-1 |ControlServlet |T| >>> [[[qrcode(Domain:http://localhost)] Request Done- total:0.009,since >>> last([qrcode(Domain:ht...):0.009]] >>> 2020-12-05 20:00:34,144 |sse-nio-8443-exec-10 |ScreenFopViewHandler |E| >>> Unable to transform FO file: org.apache.fop.apps.FOPException >>> java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text was: >>> <?xml version="1.0" encoding="UTF-8"?> >>> >>> >>> >>> <!-- Begin Template >>> component://example/template/reports/BarCode.fo.ftl --> >>> >>> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> >>> >>> <fo:layout-master-set> >>> <fo:simple-page-master master-name="main" page-height="4in" >>> page-width="8in" >>> margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" >>> margin-right="0.25in"> >>> <fo:region-body margin-top="0in"/> >>> <fo:region-before extent="0in"/> >>> <fo:region-after extent="0in"/> >>> </fo:simple-page-master> >>> </fo:layout-master-set> >>> >>> <fo:page-sequence master-reference="main"> >>> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> >>> <fo:block text-align="center"> >>> Example 11 >>> </fo:block> >>> <fo:block text-align="center"> >>> <fo:instream-foreign-object> >>> <barcode:barcode >>> xmlns:barcode="http://barcode4j.krysalis.org/ns" >>> message="EX11"> >>> <barcode:code39> >>> <barcode:height>0.75in</barcode:height> >>> <barcode:module-width>.375mm</barcode:module-width> >>> </barcode:code39> >>> <barcode:human-readable> >>> <barcode:placement>bottom</barcode:placement> >>> <barcode:font-name>Helvetica</barcode:font-name> >>> <barcode:font-size>18pt</barcode:font-size> >>> <barcode:display-start-stop>false</barcode:display-start-stop> >>> <barcode:display-checksum>false</barcode:display-checksum> >>> </barcode:human-readable> >>> </barcode:barcode> >>> </fo:instream-foreign-object> >>> </fo:block> >>> <fo:block> >>> <fo:leader/> >>> </fo:block> >>> <fo:block text-align="center"> >>> <fo:external-graphic >>> src="/example/control/qrcode;jsessionid=1B13B88A8AEEACCD504212C554EF065F.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20 >>> " >>> overflow="hidden" height="1.5in" >>> content-height="scale-to-fit"/> >>> </fo:block> >>> </fo:flow> >>> </fo:page-sequence> >>> </fo:root> >>> <!-- End Template >>> component://example/template/reports/BarCode.fo.ftl --> >>> >>> 2020-12-05 20:00:34,145 |sse-nio-8443-exec-10 |ServiceDispatcher |T| >>> Sync service [example/getUserPreferenceGroup] finished in [1] >>> milliseconds >>> 2020-12-05 20:00:34,149 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 27 >>> screens in 0.004s from: >>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/widget/CommonScreens.xml >>> 2020-12-05 20:00:34,203 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 26 >>> screens in 0.006s from: >>> file:/home/georg/apache-ofbiz-17.12.04/themes/common/widget/CommonScreens.xml >>> 2020-12-05 20:00:34,210 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 8 >>> screens in 0.006s from: >>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/CommonScreens.xml >>> 2020-12-05 20:00:34,215 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 1 >>> screens in 0.004s from: >>> file:/home/georg/apache-ofbiz-17.12.04/applications/commonext/widget/CommonScreens.xml >>> 2020-12-05 20:00:34,250 |sse-nio-8443-exec-10 |ServiceDispatcher |T| >>> Sync service [example/getLastSystemInfoNote] finished in [11] >>> milliseconds >>> 2020-12-05 20:00:34,270 |sse-nio-8443-exec-10 |ServerHitBin |I| Visit >>> delegatorName=default, ServerHitBin delegatorName=default >>> 2020-12-05 20:00:34,279 |sse-nio-8443-exec-10 |ControlServlet |T| >>> [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- >>> total:1.712,since last([ExampleReportPdf...):1.712]] >>>> Building 91% > :ofbiz >>> >>> >>> -----Ursprüngliche Nachricht----- From: Jacques Le Roux >>> Sent: Thursday, December 3, 2020 3:39 PM >>> To: [hidden email] >>> Subject: Re: Demos shutdown because possible security issues >>> >>> Mmm, not sure it will work though, I have not them into >>> C:/WINDOWS/FONTS/ and it works here (I was the one who did that some >>> years ago, on Windows too) >>> >>> Also check fop.properties, maybe the name must be NotoSans "NotoSans" >>> not "Noto Sans" >>> >>> Not sure about all that :) I'd make several different tries... >>> >>> Jacques >>> >>> Le 03/12/2020 à 15:34, Jacques Le Roux a écrit : >>>> Hi Georg, >>>> >>>> The fonts OFBiz uses are in framework/resources/fonts/NotoSans/ dir. >>>> I'd try to put them into C:/WINDOWS/FONTS/ >>>> >>>> HTH >>>> >>>> Jacques >>>> >>>> Le 03/12/2020 à 13:16, Georg Potthast 2 a écrit : >>>>> Hi Jacques, >>>>> >>>>> here are lines from the log. It does not find fonts, I have included >>>>> only the last lines of the messages that it could not find the font. >>>>> >>>>> Here is a screenshot of my fonts directory on Windows: >>>>> https://up.picr.de/40004386kt.png >>>>> It seems to me the fonts are there but with different names. >>>>> >>>>> Georg >>>>> >>>>> 2020-12-03 13:00:56,188 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerif-Regular.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>>> table not yet supported >>>>> 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Bold.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>>> table not yet supported >>>>> 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: >>>>> file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Regular.ttf. Reason: >>>>> java.lang.UnsupportedOperationException: coverage set class table not >>>>> yet supported >>>>> 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Bold.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>>> table not yet supported >>>>> 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Regular.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>>> table not yet supported >>>>> 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Bold.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>>> table not yet supported >>>>> 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Regular.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>>> table not yet supported >>>>> 2020-12-03 13:00:56,527 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: file:/C:/WINDOWS/FONTS/ReemKufi-Regular.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>>> table not yet supported >>>>> 2020-12-03 13:00:56,611 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Bold.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>>> table not yet supported >>>>> 2020-12-03 13:00:56,627 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Regular.ttf. >>>>> Reason: java.lang.UnsupportedOperationException: coverage set class >>>>> table not yet supported >>>>> 2020-12-03 13:00:58,394 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable >>>>> to load font file: file:/C:/WINDOWS/FONTS/teamviewer9.otf. Reason: >>>>> java.lang.RuntimeException: The font >>>>> file:/C:/WINDOWS/FONTS/teamviewer9.otf is not embeddable due to a >>>>> licensing restriction. >>>>> 2020-12-03 13:01:01,086 |http-nio-8080-exec-1 |ControlServlet |T| >>>>> [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- >>>>> total:0.0,since last(Begin):0.0]] >>>>> 2020-12-03 13:01:01,139 |http-nio-8080-exec-1 |ConfigXMLReader |I| >>>>> controller loaded: 0.0s, 50 requests, 34 views in >>>>> file:/C:/ofbiz/plugins/example/webapp/example/WEB-INF/controller.xml >>>>> 2020-12-03 13:01:01,170 |http-nio-8080-exec-1 |ConfigXMLReader |I| >>>>> controller loaded: 0.0s, 48 requests, 22 views in >>>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml >>>>> 2020-12-03 13:01:01,201 |http-nio-8080-exec-1 |ConfigXMLReader |I| >>>>> controller loaded: 0.0s, 0 requests, 0 views in >>>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/handlers-controller.xml >>>>> 2020-12-03 13:01:01,224 |http-nio-8080-exec-1 |ConfigXMLReader |I| >>>>> controller loaded: 0.0s, 26 requests, 10 views in >>>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/portal-controller.xml >>>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ConfigXMLReader |I| >>>>> controller loaded: 0.0s, 2 requests, 2 views in >>>>> file:/C:/ofbiz/plugins/example/widget/example/ExampleCompoundWidgets.xml >>>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |RequestHandler |I| >>>>> Sending redirect to: >>>>> [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20]. >>>>> Hidden sessionId by default. >>>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ServerHitBin |I| Visit >>>>> delegatorName=default, ServerHitBin delegatorName=default >>>>> 2020-12-03 13:01:01,286 |http-nio-8080-exec-1 |ControlServlet |T| >>>>> [[[qrcode(Domain:http://localhost)] Request Done- total:0.184,since >>>>> last([qrcode(Domain:ht...):0.184]] >>>>> 2020-12-03 13:01:01,386 |jsse-nio-8443-exec-4 |ScreenFopViewHandler >>>>> |E| Unable to transform FO file: org.apache.fop.apps.FOPException >>>>> java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text >>>>> was: >>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>> >>>>> >>>>> >>>>> <!-- Begin Template >>>>> component://example/template/reports/BarCode.fo.ftl --> >>>>> >>>>> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> >>>>> >>>>> <fo:layout-master-set> >>>>> <fo:simple-page-master master-name="main" page-height="4in" >>>>> page-width="8in" >>>>> margin-top="0.5in" margin-bottom="0.25in" >>>>> margin-left="0.25in" margin-right="0.25in"> >>>>> <fo:region-body margin-top="0in"/> >>>>> <fo:region-before extent="0in"/> >>>>> <fo:region-after extent="0in"/> >>>>> </fo:simple-page-master> >>>>> </fo:layout-master-set> >>>>> >>>>> <fo:page-sequence master-reference="main"> >>>>> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> >>>>> <fo:block text-align="center"> >>>>> Example 11 >>>>> </fo:block> >>>>> <fo:block text-align="center"> >>>>> <fo:instream-foreign-object> >>>>> <barcode:barcode >>>>> xmlns:barcode="http://barcode4j.krysalis.org/ns" >>>>> message="EX11"> >>>>> <barcode:code39> >>>>> <barcode:height>0.75in</barcode:height> >>>>> <barcode:module-width>.375mm</barcode:module-width> >>>>> </barcode:code39> >>>>> <barcode:human-readable> >>>>> <barcode:placement>bottom</barcode:placement> >>>>> <barcode:font-name>Helvetica</barcode:font-name> >>>>> <barcode:font-size>18pt</barcode:font-size> >>>>> <barcode:display-start-stop>false</barcode:display-start-stop> >>>>> <barcode:display-checksum>false</barcode:display-checksum> >>>>> </barcode:human-readable> >>>>> </barcode:barcode> >>>>> </fo:instream-foreign-object> >>>>> </fo:block> >>>>> <fo:block> >>>>> <fo:leader/> >>>>> </fo:block> >>>>> <fo:block text-align="center"> >>>>> <fo:external-graphic >>>>> src="/example/control/qrcode;jsessionid=E842AAB15A21B6B90D3B9DFB84B904FB.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20" >>>>> overflow="hidden" height="1.5in" >>>>> content-height="scale-to-fit"/> >>>>> </fo:block> >>>>> </fo:flow> >>>>> </fo:page-sequence> >>>>> </fo:root> >>>>> <!-- End Template >>>>> component://example/template/reports/BarCode.fo.ftl --> >>>>> >>>>> 2020-12-03 13:01:01,402 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got >>>>> 27 screens in 0.016s from: >>>>> file:/C:/ofbiz/framework/common/widget/CommonScreens.xml >>>>> 2020-12-03 13:01:01,487 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got >>>>> 26 screens in 0.0s from: >>>>> file:/C:/ofbiz/themes/common/widget/CommonScreens.xml >>>>> 2020-12-03 13:01:01,502 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 8 >>>>> screens in 0.015s from: >>>>> file:/C:/ofbiz/plugins/example/widget/example/CommonScreens.xml >>>>> 2020-12-03 13:01:01,518 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 1 >>>>> screens in 0.016s from: >>>>> file:/C:/ofbiz/applications/commonext/widget/CommonScreens.xml >>>>> 2020-12-03 13:01:01,556 |jsse-nio-8443-exec-4 |ServiceDispatcher |T| >>>>> Sync service [example/getLastSystemInfoNote] finished in [16] >>>>> milliseconds >>>>> 2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ServerHitBin |I| Visit >>>>> delegatorName=default, ServerHitBin delegatorName=default >>>>> 2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ControlServlet |T| >>>>> [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- >>>>> total:22.793,since last([ExampleReportPdf...):22.793]] >>>>> 2020-12-03 13:01:01,921 |jsse-nio-8443-exec-7 |ControlServlet |T| >>>>> [[[setLocaleFromBrowser(Domain:https://localhost)] Request Begun, >>>>> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] >>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |ServiceDispatcher |T| >>>>> Sync service [example/setLocaleFromBrowser] finished in [32] >>>>> milliseconds >>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| Ran >>>>> Event [service:#setLocaleFromBrowser] from [request], result is >>>>> [success] >>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| >>>>> [RequestHandler.doRequest]: Response is a chained request. Hidden >>>>> sessionId by default. >>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| >>>>> [RequestHandler]: Chain in place: requestUri=json overrideViewUri=null >>>>> Hidden sessionId by default. >>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| Ran >>>>> Event >>>>> [java:org.apache.ofbiz.common.CommonEvents#jsonResponseFromRequestAttributes] >>>>> from [request], result is [success] >>>>> 2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ServerHitBin |I| Visit >>>>> delegatorName=default, ServerHitBin delegatorName=default >>>>> 2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ControlServlet |T| >>>>> [[[setLocaleFromBrowser(Domain:https://localhost)] Request Done- >>>>> total:0.047,since last([setLocaleFromBro...):0.047]] >>>>> >>>>> >>> >> > |
Administrator
|
Hi Georg,
Inline... Le 06/12/2020 à 19:18, Georg Potthast a écrit : > I changed the entry in qrcode.properties. But I am sorry, it still reports image not found. > > Is it possible to omit the logo? This is just to make it beautiful. The Java code in QRCodeServices.java normally handles a missing file. So it seems you have another issue Try removing the file, it should pass > > I use the downloaded apache-ofbiz-17.12.04.zip file. No changes done to the example plugin nor the framework. > > What location does component:// start from? When I use this in a plugin, it will start from the plugin directory. IIRR, from root for other components than plugins HTH Jacques > > Georg > > -----Ursprüngliche Nachricht----- From: Jacques Le Roux > Sent: Sunday, December 6, 2020 5:57 PM > To: [hidden email] > Subject: Re: Demos shutdown because possible security issues > > Since your image is in themes\common\webapp\images\ofbiz.png you should use > > qrcode.default.logoimage=component://themes/common/webapp/images/ofbiz.png > > Just curious: did you combine different versions? > > Jacques > > Le 06/12/2020 à 16:13, Georg Potthast a écrit : >> Yes, in the file qrcode.properties, which has the path \framework\common\config\qrcode.properties, there is: >> >> # default logo image to put in the center of a QRCode >> qrcode.default.logoimage=component://common-theme/webapp/images/ofbiz.png >> >> However, the image is in the path: themes\common\webapp\images\ofbiz.png >> >> What should I specify in the qrcode.properties file? I assume "component://" starts at framework or example. How do I specify a path to themes? >> >> Georg >> >> -----Ursprüngliche Nachricht----- From: Jacques Le Roux >> Sent: Sunday, December 6, 2020 11:38 AM >> To: [hidden email] >> Subject: Re: Demos shutdown because possible security issues >> >> Hi Georg, >> >> Would you miss ofbiz.png? PLease check qrcode.properties >> >> Jacques >> >> Le 05/12/2020 à 21:45, Georg Potthast a écrit : >>> Hi Jacques, >>> >>> thank you very much that got it to work! However, I observe that on the demo-trunk you get two >>> barcodes while I only get one on my local PC. >>> >>> Here is an image of the output comparing both: >>> https://up.picr.de/40021689ij.png >>> >>> And here is the error message in the log: >>> 2020-12-05 21:26:04,937 |jsse-nio-8443-exec-7 |FOUserAgent |E| Image not found. URI: >>> /example/control/qrcode;jsessionid=2EBDDFC4061B25AA5F745FE7E609176A.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20. >>> (See position 47:77) >>> 2020-12-05 21:26:05,336 |jsse-nio-8443-exec-7 |FOUserAgent |E| Image not found. URI: >>> /example/control/qrcode;jsessionid=2EBDDFC4061B25AA5F745FE7E609176A.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20. >>> (No context info available) >>> >>> What can I do to generate the second barcode too? >>> >>> Georg >>> >>> -----Ursprüngliche Nachricht----- From: Jacques Le Roux >>> Sent: Saturday, December 5, 2020 8:38 PM >>> To: [hidden email] >>> Subject: Re: Demos shutdown because possible security issues >>> >>> Hi Georg, >>> >>> Oops, indeed I forgot to mention in fop.xconf: >>> >>> - <base>http://localhost:8080</base> >>> + <base>https://demo-trunk.ofbiz.apache.org</base> >>> >>> HTH >>> >>> Jacques >>> >>> Le 05/12/2020 à 20:13, Georg Potthast a écrit : >>>> Hi Jacques, >>>> >>>> I installed OFBiz on SUSE Linux and got the same error message there: >>>> The Following Errors Occurred: >>>> Unable to transform FO file: org.apache.fop.apps.FOPException java.lang.reflect.UndeclaredThrowableException >>>> >>>> You must have added a secret spice to the demo-trunk! Here is the log on Linux, it does not complain about fonts: >>>> >>>> >>>> 2020-12-05 20:00:32,567 |sse-nio-8443-exec-10 |ControlServlet |T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Begun, >>>> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] >>>> 2020-12-05 20:00:32,582 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.001s, 50 requests, 34 views in >>>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/webapp/example/WEB-INF/contro >>>> ller.xml >>>> 2020-12-05 20:00:32,598 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 48 requests, 22 views in >>>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/common-contr >>>> oller.xml >>>> 2020-12-05 20:00:32,609 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 0 requests, 0 views in >>>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/handlers-contr >>>> oller.xml >>>> 2020-12-05 20:00:32,618 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 26 requests, 10 views in >>>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/webcommon/WEB-INF/portal-contr >>>> oller.xml >>>> 2020-12-05 20:00:32,642 |sse-nio-8443-exec-10 |ConfigXMLReader |I| controller loaded: 0.0s, 2 requests, 2 views in >>>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/ExampleCompoundWid >>>> gets.xml >>>> 2020-12-05 20:00:32,648 |sse-nio-8443-exec-10 |RequestHandler |I| Rendering View [ExampleReportPdfBarcode]. Hidden sessionId by default. >>>> 2020-12-05 20:00:32,681 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync service [example/getUserPreferenceGroup] finished in [2] milliseconds >>>> 2020-12-05 20:00:32,687 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 22 screens in 0.006s from: >>>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/ExampleScreens.xml >>>> 2020-12-05 20:00:32,866 |sse-nio-8443-exec-10 |UtilProperties |I| ResourceBundle ProductUiLabels (en_US) created in 0.179s with 2641 properties >>>> 2020-12-05 20:00:33,463 |sse-nio-8443-exec-10 |ApacheFopWorker |I| FOP FontBaseURL: file:/home/georg/apache-ofbiz-17.12.04/framework/webapp/config/ >>>> 2020-12-05 20:00:33,467 |sse-nio-8443-exec-10 |FOP |D| target-resolution set to: 72.0dpi (px2mm=0.35277778) >>>> 2020-12-05 20:00:33,498 |sse-nio-8443-exec-10 |FOP |D| User configuration found for MIME type application/pdf >>>> 2020-12-05 20:00:33,535 |sse-nio-8443-exec-10 |FOP |D| User configuration found for MIME type application/pdf >>>> 2020-12-05 20:00:34,095 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- >>>> total:0.0,since last(Begin):0.0]] >>>> 2020-12-05 20:00:34,096 |http-nio-8080-exec-1 |RequestHandler |I| Sending redirect to: >>>> [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&log >>>> oImageMaxWidth=20&logoImageMaxHeight=20]. Hidden sessionId by default. >>>> 2020-12-05 20:00:34,097 |http-nio-8080-exec-1 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>> 2020-12-05 20:00:34,104 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Done- total:0.009,since >>>> last([qrcode(Domain:ht...):0.009]] >>>> 2020-12-05 20:00:34,144 |sse-nio-8443-exec-10 |ScreenFopViewHandler |E| Unable to transform FO file: org.apache.fop.apps.FOPException >>>> java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text was: >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> >>>> >>>> >>>> <!-- Begin Template component://example/template/reports/BarCode.fo.ftl --> >>>> >>>> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> >>>> >>>> <fo:layout-master-set> >>>> <fo:simple-page-master master-name="main" page-height="4in" page-width="8in" >>>> margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" margin-right="0.25in"> >>>> <fo:region-body margin-top="0in"/> >>>> <fo:region-before extent="0in"/> >>>> <fo:region-after extent="0in"/> >>>> </fo:simple-page-master> >>>> </fo:layout-master-set> >>>> >>>> <fo:page-sequence master-reference="main"> >>>> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> >>>> <fo:block text-align="center"> >>>> Example 11 >>>> </fo:block> >>>> <fo:block text-align="center"> >>>> <fo:instream-foreign-object> >>>> <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" >>>> message="EX11"> >>>> <barcode:code39> >>>> <barcode:height>0.75in</barcode:height> >>>> <barcode:module-width>.375mm</barcode:module-width> >>>> </barcode:code39> >>>> <barcode:human-readable> >>>> <barcode:placement>bottom</barcode:placement> >>>> <barcode:font-name>Helvetica</barcode:font-name> >>>> <barcode:font-size>18pt</barcode:font-size> >>>> <barcode:display-start-stop>false</barcode:display-start-stop> >>>> <barcode:display-checksum>false</barcode:display-checksum> >>>> </barcode:human-readable> >>>> </barcode:barcode> >>>> </fo:instream-foreign-object> >>>> </fo:block> >>>> <fo:block> >>>> <fo:leader/> >>>> </fo:block> >>>> <fo:block text-align="center"> >>>> <fo:external-graphic >>>> src="/example/control/qrcode;jsessionid=1B13B88A8AEEACCD504212C554EF065F.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20 >>>> >>>> " >>>> overflow="hidden" height="1.5in" content-height="scale-to-fit"/> >>>> </fo:block> >>>> </fo:flow> >>>> </fo:page-sequence> >>>> </fo:root> >>>> <!-- End Template component://example/template/reports/BarCode.fo.ftl --> >>>> >>>> 2020-12-05 20:00:34,145 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync service [example/getUserPreferenceGroup] finished in [1] milliseconds >>>> 2020-12-05 20:00:34,149 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 27 screens in 0.004s from: >>>> file:/home/georg/apache-ofbiz-17.12.04/framework/common/widget/CommonScreens.xml >>>> 2020-12-05 20:00:34,203 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 26 screens in 0.006s from: >>>> file:/home/georg/apache-ofbiz-17.12.04/themes/common/widget/CommonScreens.xml >>>> 2020-12-05 20:00:34,210 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 8 screens in 0.006s from: >>>> file:/home/georg/apache-ofbiz-17.12.04/plugins/example/widget/example/CommonScreens.xml >>>> 2020-12-05 20:00:34,215 |sse-nio-8443-exec-10 |ScreenFactory |I| Got 1 screens in 0.004s from: >>>> file:/home/georg/apache-ofbiz-17.12.04/applications/commonext/widget/CommonScreens.xml >>>> 2020-12-05 20:00:34,250 |sse-nio-8443-exec-10 |ServiceDispatcher |T| Sync service [example/getLastSystemInfoNote] finished in [11] milliseconds >>>> 2020-12-05 20:00:34,270 |sse-nio-8443-exec-10 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>> 2020-12-05 20:00:34,279 |sse-nio-8443-exec-10 |ControlServlet |T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- >>>> total:1.712,since last([ExampleReportPdf...):1.712]] >>>>> Building 91% > :ofbiz >>>> >>>> >>>> -----Ursprüngliche Nachricht----- From: Jacques Le Roux >>>> Sent: Thursday, December 3, 2020 3:39 PM >>>> To: [hidden email] >>>> Subject: Re: Demos shutdown because possible security issues >>>> >>>> Mmm, not sure it will work though, I have not them into C:/WINDOWS/FONTS/ and it works here (I was the one who did that some years ago, on >>>> Windows too) >>>> >>>> Also check fop.properties, maybe the name must be NotoSans "NotoSans" not "Noto Sans" >>>> >>>> Not sure about all that :) I'd make several different tries... >>>> >>>> Jacques >>>> >>>> Le 03/12/2020 à 15:34, Jacques Le Roux a écrit : >>>>> Hi Georg, >>>>> >>>>> The fonts OFBiz uses are in framework/resources/fonts/NotoSans/ dir. I'd try to put them into C:/WINDOWS/FONTS/ >>>>> >>>>> HTH >>>>> >>>>> Jacques >>>>> >>>>> Le 03/12/2020 à 13:16, Georg Potthast 2 a écrit : >>>>>> Hi Jacques, >>>>>> >>>>>> here are lines from the log. It does not find fonts, I have included only the last lines of the messages that it could not find the font. >>>>>> >>>>>> Here is a screenshot of my fonts directory on Windows: >>>>>> https://up.picr.de/40004386kt.png >>>>>> It seems to me the fonts are there but with different names. >>>>>> >>>>>> Georg >>>>>> >>>>>> 2020-12-03 13:00:56,188 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerif-Regular.ttf. Reason: >>>>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>>> 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Bold.ttf. >>>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>>> 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Regular.ttf. >>>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>>> 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Bold.ttf. >>>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>>> 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Regular.ttf. >>>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>>> 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Bold.ttf. Reason: >>>>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>>> 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Regular.ttf. >>>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>>> 2020-12-03 13:00:56,527 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/ReemKufi-Regular.ttf. Reason: >>>>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>>> 2020-12-03 13:00:56,611 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Bold.ttf. Reason: >>>>>> java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>>> 2020-12-03 13:00:56,627 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Regular.ttf. >>>>>> Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported >>>>>> 2020-12-03 13:00:58,394 |jsse-nio-8443-exec-4 |FOUserAgent |W| Unable to load font file: file:/C:/WINDOWS/FONTS/teamviewer9.otf. Reason: >>>>>> java.lang.RuntimeException: The font file:/C:/WINDOWS/FONTS/teamviewer9.otf is not embeddable due to a licensing restriction. >>>>>> 2020-12-03 13:01:01,086 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- >>>>>> total:0.0,since last(Begin):0.0]] >>>>>> 2020-12-03 13:01:01,139 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 50 requests, 34 views in >>>>>> file:/C:/ofbiz/plugins/example/webapp/example/WEB-INF/controller.xml >>>>>> 2020-12-03 13:01:01,170 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 48 requests, 22 views in >>>>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml >>>>>> 2020-12-03 13:01:01,201 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 0 requests, 0 views in >>>>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/handlers-controller.xml >>>>>> 2020-12-03 13:01:01,224 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 26 requests, 10 views in >>>>>> file:/C:/ofbiz/framework/common/webcommon/WEB-INF/portal-controller.xml >>>>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ConfigXMLReader |I| controller loaded: 0.0s, 2 requests, 2 views in >>>>>> file:/C:/ofbiz/plugins/example/widget/example/ExampleCompoundWidgets.xml >>>>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |RequestHandler |I| Sending redirect to: >>>>>> [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20]. >>>>>> Hidden sessionId by default. >>>>>> 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>>>> 2020-12-03 13:01:01,286 |http-nio-8080-exec-1 |ControlServlet |T| [[[qrcode(Domain:http://localhost)] Request Done- total:0.184,since >>>>>> last([qrcode(Domain:ht...):0.184]] >>>>>> 2020-12-03 13:01:01,386 |jsse-nio-8443-exec-4 |ScreenFopViewHandler |E| Unable to transform FO file: org.apache.fop.apps.FOPException >>>>>> java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text was: >>>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>>> >>>>>> >>>>>> >>>>>> <!-- Begin Template component://example/template/reports/BarCode.fo.ftl --> >>>>>> >>>>>> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> >>>>>> >>>>>> <fo:layout-master-set> >>>>>> <fo:simple-page-master master-name="main" page-height="4in" page-width="8in" >>>>>> margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" margin-right="0.25in"> >>>>>> <fo:region-body margin-top="0in"/> >>>>>> <fo:region-before extent="0in"/> >>>>>> <fo:region-after extent="0in"/> >>>>>> </fo:simple-page-master> >>>>>> </fo:layout-master-set> >>>>>> >>>>>> <fo:page-sequence master-reference="main"> >>>>>> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> >>>>>> <fo:block text-align="center"> >>>>>> Example 11 >>>>>> </fo:block> >>>>>> <fo:block text-align="center"> >>>>>> <fo:instream-foreign-object> >>>>>> <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" >>>>>> message="EX11"> >>>>>> <barcode:code39> >>>>>> <barcode:height>0.75in</barcode:height> >>>>>> <barcode:module-width>.375mm</barcode:module-width> >>>>>> </barcode:code39> >>>>>> <barcode:human-readable> >>>>>> <barcode:placement>bottom</barcode:placement> >>>>>> <barcode:font-name>Helvetica</barcode:font-name> >>>>>> <barcode:font-size>18pt</barcode:font-size> >>>>>> <barcode:display-start-stop>false</barcode:display-start-stop> >>>>>> <barcode:display-checksum>false</barcode:display-checksum> >>>>>> </barcode:human-readable> >>>>>> </barcode:barcode> >>>>>> </fo:instream-foreign-object> >>>>>> </fo:block> >>>>>> <fo:block> >>>>>> <fo:leader/> >>>>>> </fo:block> >>>>>> <fo:block text-align="center"> >>>>>> <fo:external-graphic >>>>>> src="/example/control/qrcode;jsessionid=E842AAB15A21B6B90D3B9DFB84B904FB.jvm1?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20" >>>>>> >>>>>> overflow="hidden" height="1.5in" content-height="scale-to-fit"/> >>>>>> </fo:block> >>>>>> </fo:flow> >>>>>> </fo:page-sequence> >>>>>> </fo:root> >>>>>> <!-- End Template component://example/template/reports/BarCode.fo.ftl --> >>>>>> >>>>>> 2020-12-03 13:01:01,402 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 27 screens in 0.016s from: >>>>>> file:/C:/ofbiz/framework/common/widget/CommonScreens.xml >>>>>> 2020-12-03 13:01:01,487 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 26 screens in 0.0s from: >>>>>> file:/C:/ofbiz/themes/common/widget/CommonScreens.xml >>>>>> 2020-12-03 13:01:01,502 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 8 screens in 0.015s from: >>>>>> file:/C:/ofbiz/plugins/example/widget/example/CommonScreens.xml >>>>>> 2020-12-03 13:01:01,518 |jsse-nio-8443-exec-4 |ScreenFactory |I| Got 1 screens in 0.016s from: >>>>>> file:/C:/ofbiz/applications/commonext/widget/CommonScreens.xml >>>>>> 2020-12-03 13:01:01,556 |jsse-nio-8443-exec-4 |ServiceDispatcher |T| Sync service [example/getLastSystemInfoNote] finished in [16] milliseconds >>>>>> 2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>>>> 2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ControlServlet |T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- >>>>>> total:22.793,since last([ExampleReportPdf...):22.793]] >>>>>> 2020-12-03 13:01:01,921 |jsse-nio-8443-exec-7 |ControlServlet |T| [[[setLocaleFromBrowser(Domain:https://localhost)] Request Begun, >>>>>> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] >>>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |ServiceDispatcher |T| Sync service [example/setLocaleFromBrowser] finished in [32] milliseconds >>>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| Ran Event [service:#setLocaleFromBrowser] from [request], result is [success] >>>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| [RequestHandler.doRequest]: Response is a chained request. Hidden sessionId >>>>>> by default. >>>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| [RequestHandler]: Chain in place: requestUri=json overrideViewUri=null Hidden >>>>>> sessionId by default. >>>>>> 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler |I| Ran Event >>>>>> [java:org.apache.ofbiz.common.CommonEvents#jsonResponseFromRequestAttributes] from [request], result is [success] >>>>>> 2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default >>>>>> 2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ControlServlet |T| [[[setLocaleFromBrowser(Domain:https://localhost)] Request Done- >>>>>> total:0.047,since last([setLocaleFromBro...):0.047]] >>>>>> >>>>>> >>>> >>> >> > |
Le 07/12/2020 à 10:02, Jacques Le Roux a écrit :
> Try removing the file, it should pass Mmm no, in this case the qrcode is not rendered. We can improve that but not in your package. Could you please create a Jira? Jacques |
Free forum by Nabble | Edit this page |