Problem with running QZ tray with overriden cert file

32 views
Skip to first unread message

lalk...@gmail.com

unread,
Dec 14, 2018, 9:51:08 AM12/14/18
to qz-print
[INFO] 2018-12-14 15:46:13,273 @ qz.deploy.DeployUtilities:?
        Main properties file C:\Program Files\QZ Tray\qz-tray.properties
javax.security.cert.CertificateParsingException
        at qz.auth.Certificate.<init>(Unknown Source)
        at qz.auth.Certificate.<clinit>(Unknown Source)
        at qz.common.TrayManager.addMenuItems(Unknown Source)
        at qz.common.TrayManager.<init>(Unknown Source)
        at qz.ws.PrintSocketServer$1.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
        at java.util.Vector.get(Unknown Source)
        ... 19 more
[DEBUG] 2018-12-14 15:46:13,487 @ qz.utils.ShellUtilities:?
        Executing: [C:\WINDOWS\system32\reg.exe, query, HKCU\Software\Microsoft\Windows\CurrentVersion\Run\, /v, QZ Tray]
[DEBUG] 2018-12-14 15:46:14,485 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8283
[DEBUG] 2018-12-14 15:46:14,516 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8384
[DEBUG] 2018-12-14 15:46:14,524 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8485
[INFO] 2018-12-14 15:46:14,550 @ qz.ws.PrintSocketServer:?
        Server started on port(s) 8182, 8181

Tres Finocchiaro

unread,
Dec 14, 2018, 1:08:13 PM12/14/18
to lalk...@gmail.com, qz-print
The cert must be in x509 format.  Take a look at the one we embed in sample.html, make it look like that minus the intermediate stuff.

-Tres

--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lalk...@gmail.com

unread,
Dec 14, 2018, 1:21:11 PM12/14/18
to qz-print
Thanks for fast reaction.
The problem was that I not specified Fully_Qualified_Domain_Name during certificate creation.
QZ Tray works great now. Thanks for this great software. 
People print labels in PDF format and don't know that printing in zpl/epl format give them much better print quality.
Have a great evening!

Tres Finocchiaro

unread,
Dec 14, 2018, 1:24:47 PM12/14/18
to lalk...@gmail.com, qz-print
> The problem was that I not specified Fully_Qualified_Domain_Name during certificate creation.

Oh, I'm terribly sorry about that.  That sounds like a bug, there should be nothing in the source that relies on FQDN inside the certificate.

Can you please file a bug on GitHub? https://github.com/qzind/tray/issues/new
Reply all
Reply to author
Forward
0 new messages