ShaigMammadov / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Qzprint on HTTPS #216

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, We cant made work QZprint in a server with SSL Cert ....
any suggestions? the javascript console not load, no warning...

without https it works perfect...

Original issue reported on code.google.com by albee...@gmail.com on 7 Apr 2014 at 11:14

GoogleCodeExporter commented 8 years ago
Hit "5" in console, reload page.  Paste log here.  It is likely the applet 
cannot access the JNLP file at the https address.

Original comment by tres.fin...@gmail.com on 7 Apr 2014 at 1:18

GoogleCodeExporter commented 8 years ago
preloader: Construct preloader delegate
network: Created version ID: 1.7.0.45
network: Created version ID: 1.7
basic: No valid JFX runtime at [C:\Program Files\Java\jre7\bin\javaw.exe]
basic: No valid JFX runtime at [C:\Program Files\Java\jre7]
network: Created version ID: 1.7.0.51
network: Created version ID: 1.7
basic: No valid JFX runtime at [C:\Program Files (x86)\Java\jre7\bin\javaw.exe]
network: Created version ID: 2.2.51
network: Created version ID: 1.7.0.51
network: Created version ID: 1.7
network: Created version ID: 2.2.51
network: Created version ID: 1.7.0.51
network: Created version ID: 1.7
basic: No valid JFX runtime at [C:\Program Files (x86)\Java\jre7\bin\javaw.exe]
network: Created version ID: 2.2.51
network: Created version ID: 2.2.51
network: Created version ID: 1.7.0.51
network: Created version ID: 1.7
network: Created version ID: 2.2.51
network: No se ha encontrado la entrada de caché [URL: 
https://xxxxxxx.com/themes/qzprint/qz-print_jnlp.jnlp, versión: null]
network: No se ha encontrado la entrada de caché [URL: 
https://xxxxxxx.com/themes/qzprint/qz-print_jnlp.jnlp, versión: null]
network: No se ha encontrado la entrada de caché [URL: 
https://xxxxxxx.com/themes/qzprint/qz-print_jnlp.jnlp, versión: null]
network: Conectando https://xxxxxxx.com/themes/qzprint/qz-print_jnlp.jnlp con 
proxy=DIRECT
network: Conectando http://xxxxxxx.com:443/ con proxy=DIRECT
javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
    at sun.security.ssl.ClientHandshaker.handshakeAlert(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
    at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
    at sun.plugin2.main.client.PluginMain.access$200(Unknown Source)
    at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
network: Conectando https://xxxxxxx.com/themes/qzprint/qz-print_jnlp.jnlp con 
proxy=DIRECT
network: Conectando http://xxxxxxx.com:443/ con proxy=DIRECT
javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
    at sun.security.ssl.ClientHandshaker.handshakeAlert(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
    at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
    at sun.plugin2.main.client.PluginMain.access$200(Unknown Source)
    at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
com.sun.deploy.net.FailedDownloadException: No se ha podido cargar el recurso: 
https://xxxxxxx.com/themes/qzprint/qz-print_jnlp.jnlp
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
    at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
    at sun.plugin2.main.client.PluginMain.access$200(Unknown Source)
    at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by:
javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
    at sun.security.ssl.ClientHandshaker.handshakeAlert(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
    at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
    at sun.plugin2.main.client.PluginMain.access$200(Unknown Source)
    at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
network: No se ha encontrado la entrada de caché [URL: 
https://xxxxxxx.com/themes/qzprint/qz-print_jnlp.jnlp, versión: null]
network: Conectando https://xxxxxxx.com/themes/qzprint/qz-print_jnlp.jnlp con 
proxy=DIRECT
network: Conectando http://xxxxxxx.com:443/ con proxy=DIRECT
basic: JNLP2Manager.initialize(): JNLP not available: 
/themes/qzprint/qz-print_jnlp.jnlp
basic: excepción: null.
java.lang.NullPointerException
    at sun.plugin2.applet.JNLP2Manager.getAppInfo(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Ignored exception: java.lang.NullPointerException
ui: missing resource: java.util.MissingResourceException: Can't find resource 
for bundle com.sun.deploy.resources.Deployment, key Aceptar
ui: missing resource: java.util.MissingResourceException: Can't find resource 
for bundle com.sun.deploy.resources.Deployment, key Aceptar
ui: missing resource: java.util.MissingResourceException: Can't find resource 
for bundle com.sun.deploy.resources.Deployment, key Más información...
basic: Dialog type is not candidate for embedding
ui: Pushing modality for applet ID 5 with dialog 
javax.swing.JDialog[dialog1,702,465,516x203,layout=java.awt.BorderLayout,TOOLKIT
_MODAL,title=Error de 
Aplicación,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,
3,26,510x174,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0
.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneChec
kingEnabled=true]
ui: Pushing modality for applet ID 5 with dialog 
com.sun.deploy.ui.MoreInfoDialog[dialog2,693,323,534x416,layout=java.awt.BorderL
ayout,APPLICATION_MODAL,title=Más 
Información,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[
,8,31,518x377,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=
0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneChe
ckingEnabled=true]
preloader: Added pending event 1: ErrorEvent[url=null label=null cause=null

Original comment by albee...@gmail.com on 7 Apr 2014 at 2:50

GoogleCodeExporter commented 8 years ago
If you are using authentication to get to the HTTPS file, it often will not 
work with Java (Java doesn't always grab your session information).

I would recommend putting the JNLP behind a HTTPS location that does not 
require credentials.

-Tres

Original comment by tres.fin...@gmail.com on 7 Apr 2014 at 2:57

GoogleCodeExporter commented 8 years ago
it doesnt need authentication...

Original comment by albee...@gmail.com on 7 Apr 2014 at 3:15

GoogleCodeExporter commented 8 years ago
Ok... it's a handshake error, so the only other cause I can think of is the 
https certificate you are using has not been trusted by the Java Security 
framework.  Are you using a trusted root certificate or a self-signed 
certificate?

If self-signed, you'll want to import this into Java, or alternately Internet 
Explorer may have pass-thru access to your PCs certificate store, but I've had 
mixed results with this.

Feel free to email me the URL and I can try it out:
tres.finocchiaro@gmail.com

-Tres

Original comment by tres.fin...@gmail.com on 7 Apr 2014 at 3:22

GoogleCodeExporter commented 8 years ago

Original comment by tres.fin...@gmail.com on 26 Aug 2014 at 12:32