QZ Tray - Support Oracle Linux

47 views
Skip to first unread message

thiago.emano...@gmail.com

unread,
Aug 3, 2017, 2:22:56 PM8/3/17
to qz-print
Hello all, how are you? I would first like to inform you that the software is amazing. However I am facing some problems, I believe with permission for example.

The file "sample.html" works perfectly when I run XAMPP through Localhost.

However, when I try to run from an IP server: 192.168.0.48, I get the following message "Can not parse (FILE) as a raw command"

My structure is as follows:

RHEL Linux Server 7: 192.168.0.48
My machine: with Qz tray installed and running.

Can you help me ?

Tres Finocchiaro

unread,
Aug 3, 2017, 2:33:26 PM8/3/17
to thiago.emano...@gmail.com, qz-print
 "Can not parse (FILE) as a raw command"

Which button are you using?  Some file types may not be permitted through your web service by default.  You'd have to see what file is being loaded under the covers and make sure it's accessible through the browser.

e.g. assets/epl_sample.txt should be validated as browsable by your web server.  You may also look at your logs.

Next, you state "Oracle Linux" and then "RHEL Linux 7", which are contradictory.  Are you running an Oracle webserver atop a RHEL server?  If that's the case, it's not fair to compare it to Apache on Windows.  The environments are quite different.

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

thiago.emano...@gmail.com

unread,
Aug 3, 2017, 2:45:02 PM8/3/17
to qz-print, thiago.emano...@gmail.com
Hello Tres ,

i'm using "Zebra_sample.txt" button .

My Linus is RHEL 7 + APACHE + PHP , its just a simple server.

here is the log when i try.

2017-08-03 15:43:38,559 [DEBUG] Found match: Gen
2017-08-03 15:43:38,559 [WARN] Cannot read as a double for density, using default
2017-08-03 15:43:38,559 [WARN] Cannot read as a valid value for interpolation, using default
2017-08-03 15:43:38,559 [WARN] Cannot read as a valid value for orientation, using default
2017-08-03 15:43:38,559 [WARN] Cannot read as a double for paperThickness, using default
2017-08-03 15:43:38,559 [DEBUG] Found Resolution: 60000x60000 dphi
2017-08-03 15:43:59,597 [ERROR] Failed to print
java.lang.UnsupportedOperationException: Cannot parse (FILE)http://192.168.1.48/print/assets/zpl_sample.txt as a raw command
at qz.printer.action.PrintRaw.parseData(Unknown Source)
at qz.utils.PrintingUtilities.processPrintRequest(Unknown Source)
at qz.ws.PrintSocketClient.processMessage(Unknown Source)
at qz.ws.PrintSocketClient.onMessage(Unknown Source)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:70)
at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMethod.call(OptionalSessionCallableMethod.java:68)
at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver$2.run(JettyAnnotatedEventDriver.java:210)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at qz.utils.FileUtilities.readRawFile(Unknown Source)
... 13 more

Tres Finocchiaro

unread,
Aug 3, 2017, 2:50:12 PM8/3/17
to thiago.emano...@gmail.com, qz-print
Please navigate to http://192.168.1.48/print/assets/zpl_sample.txt as specified in the logs.  The answer to your problem should be there.

-Tres

thiago.emano...@gmail.com

unread,
Aug 3, 2017, 2:58:34 PM8/3/17
to qz-print, thiago.emano...@gmail.com
Ok , so , the zpl_sample.txt is just a ZPL Language that is send to the printer OK ?

on Emulator of ZPL the file is perfect , its the original. look below the preview.

http://labelary.com/viewer.html?density=8&width=4&height=6&units=inches&index=0&zpl=%5EXA%5ECF%2C0%2C0%2C0%5EPR12%5EMD30%5EPW800%5EPON%5ECI13%0A%5EFO0%2C147%5EGB800%2C4%2C4%5EFS%0A%5EFO0%2C401%5EGB800%2C4%2C4%5EFS%0A%5EFO0%2C736%5EGB800%2C4%2C4%5EFS%0A%5EFO35%2C12%5EAdN%2C0%2C0%5EFWN%5EFH%5EFDFrom%3A%5EFS%0A%5EFO35%2C31%5EAdN%2C0%2C0%5EFWN%5EFH%5EFDAlex%5EFS%0A%5EFO35%2C51%5EAdN%2C0%2C0%5EFWN%5EFH%5EFDFlagship%5EFS%0A%5EFO35%2C71%5EAdN%2C0%2C0%5EFWN%5EFH%5EFD79%20Spike%20St.%5EFS%0A%5EFO35%2C92%5EAdN%2C0%2C0%5EFWN%5EFH%5EFD%5EFS%0A%5EFO35%2C112%5EAdN%2C0%2C0%5EFWN%5EFH%5EFDNorcross%2C%20GA%2030071%5EFS%0A%5EFO35%2C132%5EAdN%2C0%2C0%5EFWN%5EFH%5EFD(123)%20456-7890%5EFS%0A%5EFO490%2C31%5EAdN%2C0%2C0%5EFWN%5EFH%5EFDShip%20Date%3A%2031DEC07%5EFS%0A%5EFO490%2C51%5EAdN%2C0%2C0%5EFWN%5EFH%5EFDActWgt%3A%2010.5%20LB%5EFS%0A%5EFO490%2C72%5EAdN%2C0%2C0%5EFWN%5EFH%5EFDSystem%23%3A%201195167%2FWSXI0100%5EFS%0A%5EFO490%2C91%5EAdN%2C0%2C0%5EFWN%5EFH%5EFDAccount%3A%20S%20*********%5EFS%0A%5EFO43%2C158%5EA0N%2C25%2C27%5EFWN%5EFH%5EFDSteve%20Jobs%5EFS%0A%5EFO615%2C156%5EAdN%2C0%2C0%5EFWN%5EFH%5EFD(123)%20456-7890%5EFS%0A%5EFO43%2C193%5EA0N%2C25%2C27%5EFWN%5EFH%5EFDApple%20Inc.%5EFS%0A%5EFO43%2C228%5EA0N%2C25%2C27%5EFWN%5EFH%5EFD1%20Infinite%20Loop.%5EFS%0A%5EFO43%2C263%5EA0N%2C25%2C27%5EFWN%5EFH%5EFD%5EFS%0A%5EFO43%2C296%5EA0N%2C30%2C30%5EFWN%5EFH%5EFDCupertino%2C%20CA%2095014%5EFS%0A%5EFO530%2C296%5EA0N%2C35%2C45%5EFWN%5EFH%5EFD(US)%5EFS%0A%5EFO725%2C216%5EAdN%2C0%2C0%5EFWN%5EFH%5EFDGround%5EFS%0A%5EFO670%2C238%5EGB105%2C10%2C10%5EFS%0A%5EFO670%2C248%5EGB10%2C112%2C10%5EFS%0A%5EFO765%2C248%5EGB10%2C112%2C10%5EFS%0A%5EFO670%2C360%5EGB105%2C10%2C10%5EFS%0A%5EFO650%2C173%5EA0N%2C50%2C55%5EFWN%5EFH%5EFDFedEx%5EFS%0A%5EFO690%2C256%5EA0N%2C130%2C130%5EFWN%5EFH%5EFDG%5EFS%0A%5EFO476%2C3%5EGB4%2C145%2C4%5EFS%0A%5EFO10%2C358%5EA0N%2C15%2C15%5EFWN%5EFH%5EFDRef%3A%5EFS%0A%5EFO406%2C388%5EA0N%2C15%2C15%5EFWN%5EFH%5EFDDept%3A%20Work%5EFS%0A%5EFO10%2C373%5EA0N%2C15%2C15%5EFWN%5EFH%5EFDInv%3A%5EFS%0A%5EFO10%2C388%5EA0N%2C15%2C15%5EFWN%5EFH%5EFDPO%3A%5EFS%0A%5EFO625%2C495%5EA0N%2C20%2C35%5EFWN%5EFH%5EFD1%5EFS%0A%5EFO640%2C535%5EA0N%2C20%2C35%5EFWN%5EFH%5EFDof%5EFS%0A%5EFO625%2C575%5EA0N%2C20%2C35%5EFWN%5EFH%5EFD1%5EFS%0A%5EFO80%2C771%5EBY4%2C2%5EBCN%2C290%2CN%2CN%2CN%2CN%5EFWN%5EFD%3E%3B%3E89612019333075610004019%5EFS%0A%5EFO135%2C1083%5EA0N%2C25%2C27%5EFWN%5EFH%5EFD(9612019)%20%203330756%20%2010004019%5EFS%0A%5EFO783%2C288%5EA0N%2C15%2C15%5EFWB%5EFH%5EFDCLS090607%2F23%2F23%5EFS%0A%5EFO10%2C162%5EA0N%2C20%2C18%5EFWN%5EFH%5EFDTO%5EFS%0A%5EFO25%2C1108%5EA0N%2C50%2C55%5EFWN%5EFH%5EFDGND%5EFS%0A%5EFO25%2C1150%5EA0N%2C35%2C45%5EFWN%5EFH%5EFDPrepaid%5EFS%0A%5EFO300%2C1115%5EA0N%2C35%2C45%5EFWN%5EFH%5EFD%5EFS%0A%5EFO300%2C1149%5EA0N%2C35%2C45%5EFWN%5EFH%5EFD%5EFS%0A%5EFO30%2C428%5EBY2%2C2%5EB7N%2C10%2C5%2C12%5EFH%5EFWN%5EFH%5EFD%5B)%3E_1E01_1D02950142083_1D840_1D019_1D333075610004019_1DFDEB_1D3330756_1D365_1D%20_1D1%2F1_1D10.5LB_1DN_1D1%20Infinite%20Loop._1DCupertino_1DCA_1DSteve%20Jobs_1E06_1D10ZGD004_1D11ZApple%20Inc._1D12Z1234567890_1D23ZN_1D22Z%20_1CN_1D20Z%20_1C0_1D29Z_1D28Z_1D26Z3632_1C_1D_1E_04%5EFS%0A%5EPQ1%0A%5EXZ

Tres Finocchiaro

unread,
Aug 3, 2017, 3:27:03 PM8/3/17
to thiago.emano...@gmail.com, qz-print
Is the URL valid?  Java doesn't think it is.. 

Caused by: java.net.ConnectException: Connection timed out: connect

thiago.emano...@gmail.com

unread,
Aug 3, 2017, 3:38:27 PM8/3/17
to qz-print
But its the original file that came when i download QZ. I dont have changes.

Tres Finocchiaro

unread,
Aug 3, 2017, 3:52:59 PM8/3/17
to thiago.emano...@gmail.com, qz-print
I asked a very simply question... IS THE URL VALID?

Java does not think it's valid.  If Java can't access this file at the URL that you set up, it won't work.  This is basic webserver troubleshooting.

I cannot proceed to help as all advice and questions have gone unanswered.  If you have a premium subscription, please contact sup...@qz.io and we can escalate.
On Thu, Aug 3, 2017 at 3:38 PM, <thiago.emano...@gmail.com> wrote:
But its the original file that came when i download QZ. I dont have changes.

thiago.emano...@gmail.com

unread,
Aug 3, 2017, 4:15:22 PM8/3/17
to qz-print
How could i know if os valid ? Its because i Just made the download of QZ And try It print the " zpl_sample.txt" And returned that erro.

Thanks.

Reply all
Reply to author
Forward
0 new messages