qz-tray connection closed

94 views
Skip to first unread message

vijsh...@gmail.com

unread,
Aug 22, 2018, 2:04:17 AM8/22/18
to qz-print
Hi,

I'm using QZ with angular first time. I want to print a pdf file, It first established qz connection but suddenly application closes the connection with qz-tray.

Chrome browser console output(qz-log:):
Established connection with QZ Tray on ws://localhost:8182
Closed connection with QZ Tray

What should I do to make this right?

Tres Finocchiaro

unread,
Aug 22, 2018, 4:39:28 PM8/22/18
to vijsh...@gmail.com, qz-print
The cause could be many things. I recommend you close QZ Tray and restart it from console to find out what the underlying cause is and address the exact error that appears in the Java backtrace. 

You may attach the logs here as well.  Please review for sensitive information before attaching.

The logs are located in %appdata%\qz on Windows.  Or Tray, Advanced, View Logs, Open Log location.

--
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.

Vijay Sharma

unread,
Aug 27, 2018, 1:23:47 AM8/27/18
to qz-print
I write here my cmd output after entering this line-**java -Xms512M -jar "%PROGRAMFILES%\QZ Tray\qz-tray.jar"**   
Logs:

[INFO] 2018-08-27 10:41:35,565 @ qz.ws.PrintSocketServer:?
        QZ Tray version: 2.0.7
[INFO] 2018-08-27 10:41:35,567 @ qz.ws.PrintSocketServer:?
        QZ Tray vendor: QZ Industries, LLC
[INFO] 2018-08-27 10:41:35,567 @ qz.ws.PrintSocketServer:?
        Java version: 1.8.0+181
[DEBUG] 2018-08-27 10:41:35,916 @ qz.utils.ShellUtilities:?
        Executing: [C:\Windows\system32\reg.exe, query, HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1, /v, Flags]
[DEBUG] 2018-08-27 10:41:35,948 @ qz.utils.ShellUtilities:?
        Executing: [C:\Windows\system32\reg.exe, query, HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ExperimentalFeatures, /v, AllowLocalhostLoopback]
[INFO] 2018-08-27 10:41:36,116 @ qz.deploy.DeployUtilities:?
        Main properties file C:\Program Files\QZ Tray\qz-tray.properties
[DEBUG] 2018-08-27 10:41:36,183 @ qz.auth.Certificate:?
        Using trusted root certificate: CN=qzindustries.com, O=QZ Industries, LLC (8ef2c0b2fe3f75754245b3fb9d54c0caa1b46bb3)
[INFO] 2018-08-27 10:41:36,190 @ qz.auth.CRL:?
        Loading CRL from https://crl.qz.io
[DEBUG] 2018-08-27 10:41:36,271 @ qz.utils.ShellUtilities:?
        Executing: [C:\Windows\system32\reg.exe, query, HKCU\Software\Microsoft\Windows\CurrentVersion\Run\, /v, QZ Tray]
[WARN] 2018-08-27 10:41:36,581 @ org.eclipse.jetty.util.component.AbstractLifeCycle:212
        FAILED ServerConnector@343f4d3d{HTTP/1.1}{0.0.0.0:8182}: java.net.BindException: Address already in use: bind
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:366)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at qz.ws.PrintSocketServer.runServer(Unknown Source)
        at qz.ws.PrintSocketServer.main(Unknown Source)
[WARN] 2018-08-27 10:41:36,583 @ org.eclipse.jetty.util.component.AbstractLifeCycle:212
        FAILED ServerConnector@e25b2fe{SSL-HTTP/1.1}{0.0.0.0:8181}: java.net.BindException: Address already in use: bind
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:366)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at qz.ws.PrintSocketServer.runServer(Unknown Source)
        at qz.ws.PrintSocketServer.main(Unknown Source)
[WARN] 2018-08-27 10:41:36,586 @ org.eclipse.jetty.util.component.AbstractLifeCycle:212
        FAILED org.eclipse.jetty.server.Server@146ba0ac: MultiException[java.net.BindException: Address already in use: bind, java.net.BindException: Address already in use: bind]
MultiException[java.net.BindException: Address already in use: bind, java.net.BindException: Address already in use: bind]
        at org.eclipse.jetty.server.Server.doStart(Server.java:329)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at qz.ws.PrintSocketServer.runServer(Unknown Source)
        at qz.ws.PrintSocketServer.main(Unknown Source)
        Suppressed: java.net.BindException: Address already in use: bind
                at sun.nio.ch.Net.bind0(Native Method)
                at sun.nio.ch.Net.bind(Unknown Source)
                at sun.nio.ch.Net.bind(Unknown Source)
                at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
                at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
                at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
                at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
                at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
                at org.eclipse.jetty.server.Server.doStart(Server.java:366)
                ... 3 more
Caused by: java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:366)
        ... 3 more
[DEBUG] 2018-08-27 10:41:36,616 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8182
[DEBUG] 2018-08-27 10:41:36,640 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8384
[DEBUG] 2018-08-27 10:41:36,643 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8485
[INFO] 2018-08-27 10:41:36,653 @ qz.auth.CRL:?
        Successfully loaded 1 CRL entries from https://crl.qz.io
[INFO] 2018-08-27 10:41:36,658 @ qz.ws.PrintSocketServer:?
        Server started on port(s) 8283, 8282
[WARN] 2018-08-27 10:41:36,688 @ qz.ws.SingleInstanceChecker:?
        Connection closed, null
[WARN] 2018-08-27 10:41:36,689 @ qz.ws.SingleInstanceChecker:?
        QZ Tray is already running on localhost/127.0.0.1:8182
[WARN] 2018-08-27 10:41:36,699 @ qz.ws.PrintSocketServer:?
        The web socket server is no longer running
[WARN] 2018-08-27 10:41:39,700 @ org.eclipse.jetty.util.thread.QueuedThreadPool:178
        WebSocketClient@422250493{STOPPING,8<=8<=200,i=0,q=1} Couldn't stop Thread[WebSocketClient@422250493-47,5,main]

Any Suggestions?
Thanks in advance!!

Tres Finocchiaro

unread,
Aug 27, 2018, 1:41:22 AM8/27/18
to Vijay Sharma, qz-print
Can you close out all instances of QZ Tray and try again?  The "address already in use" means you were spawning a second instance, which doesn't have the information we would need for troubleshooting.
Reply all
Reply to author
Forward
0 new messages