Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem Embedding JNLP File in Applet Tag, com.sun.deploy.net.FailedDownloadException

user2047913Aug 28 2013

Hi, can you help me, i have problems to deploy applet using Embedding JNLP File

My jnlp definition

<?xml version = "1.0" encoding = "windows-1252"?>

<jnlp spec="1.0+" href="PagoDPA.jnlp">

   <information>

      <title>APPLET DPA</title>

      <vendor>SHCP</vendor>

      <description>Pago Electronico de Contribuyentes</description>

   </information>

   <resources>

      <j2se version="1.7+"/>

      <jar href="static/applet/derechos/Derechos.jar" />

   </resources>

   <security>

      <all-permissions />

   </security>

   <applet-desc

         name="Pagos DPA V5"

         main-class="derechos.DerechosAWT"

         width="760"

         height="720">

   </applet-desc>

</jnlp> 

My html file

               <script src="https://www.java.com/js/deployJava.js"></script>

               <script>

                                        var attributes = {

                                             width:760, height:720,name:'AppDerechos',id:'AppDerechos'

                                        } ;

                                       

                                       

                                       

                                        var parameters = {jnlp_href: 'PagoDPA.jnlp',

                                                            MaxConceptos:'5',

                                                            NUMERO_CONCEPTOS:'5',

                                                            FECHA_ACTUAL:'<%=sdf.format( fechaLocal )%>',

                                                            RFC_CONTRIBUYENTE:'${DeclaracionForm.rfc}',

                                                            RAZON_SOCIAL:'${DeclaracionForm.nombre}',

                                                            jnlp_embedded: 'PD94bWwgdmVyc2lvbiA9ICIxLjAiIGVuY29kaW5nID0gIndpbmRvd3MtMTI1MiI/Pg0KPGpubHAgc3BlYz0iMS4wKyIgaHJlZj0iUGFnb0RQQS5qbmxwIj4NCiAgIDxpbmZvcm1hdGlvbj4NCiAgICAgIDx0aXRsZT5BUFBMRVQgRFBBPC90aXRsZT4NCiAgICAgIDx2ZW5kb3I+U0hDUDwvdmVuZG9yPg0KICAgICAgPGRlc2NyaXB0aW9uPlBhZ28gRWxlY3Ryb25pY28gZGUgQ29udHJpYnV5ZW50ZXM8L2Rlc2NyaXB0aW9uPg0KICAgPC9pbmZvcm1hdGlvbj4NCiAgIDxyZXNvdXJjZXM+DQogICAgICA8ajJzZSB2ZXJzaW9uPSIxLjcrIi8+DQogICAgICA8amFyIGhyZWY9InN0YXRpYy9hcHBsZXQvZGVyZWNob3MvRGVyZWNob3MuamFyIiAvPg0KICAgPC9yZXNvdXJjZXM+DQogICA8c2VjdXJpdHk+DQogICAgICA8YWxsLXBlcm1pc3Npb25zIC8+IA0KICAgPC9zZWN1cml0eT4NCg0KICAgPGFwcGxldC1kZXNjIA0KICAgICAgICAgbmFtZT0iUGFnb3MgRFBBIFY1Ig0KICAgICAgICAgbWFpbi1jbGFzcz0iZGVyZWNob3MuRGVyZWNob3NBV1QiDQogICAgICAgICB3aWR0aD0iNzYwIg0KICAgICAgICAgaGVpZ2h0PSI3MjAiPg0KICAgPC9hcHBsZXQtZGVzYz4NCjwvam5scD4='

                                        } ;

                                        deployJava.runApplet(attributes, parameters, '1.7');

My exception in console

network: Created version ID: 1.7.0.25

network: Created version ID: 1.7

network: Created version ID: 2.2.25

temp: new XMLParser with source:

temp: <?xml version = "1.0" encoding = "windows-1252"?>

<jnlp spec="1.0+" href="PagoDPA.jnlp">

   <information>

      <title>APPLET DPA</title>

      <vendor>SHCP</vendor>

      <description>Pago Electronico de Contribuyentes</description>

   </information>

   <resources>

      <j2se version="1.7+"/>

      <jar href="static/applet/derechos/Derechos.jar" />

   </resources>

   <security>

      <all-permissions />

   </security>

   <applet-desc

         name="Pagos DPA V5"

         main-class="derechos.DerechosAWT"

         width="760"

         height="720">

   </applet-desc>

</jnlp>

temp:

returning ROOT as follows:

<jnlp spec="1.0+" href="PagoDPA.jnlp">

  <information>

    <title>APPLET DPA</title>

    <vendor>SHCP</vendor>

    <description>Pago Electronico de Contribuyentes</description>

  </information>

  <resources>

    <j2se version="1.7+"/>

    <jar href="static/applet/derechos/Derechos.jar"/>

  </resources>

  <security>

    <all-permissions/>

  </security>

  <applet-desc name="Pagos DPA V5" main-class="derechos.DerechosAWT" width="760" height="720"/>

</jnlp>

network: Created version ID: 1.7+

network: Created version ID: 1.9

temp: returning LaunchDesc from XMLFormat.parse():

<jnlp spec="1.0+" codebase="https://172.20.7.74:4510/mpec/" href="https://172.20.7.74:4510/mpec/PagoDPA.jnlp">

  <information>

    <title>APPLET DPA</title>

    <vendor>SHCP</vendor>

    <homepage href="null"/>

    <description>Pago Electronico de Contribuyentes</description>

  </information>

  <security>

    <all-permissions/>

  </security>

  <update check="timeout" policy="always"/>

  <resources>

    <java version="1.7+"/>

    <jar href="https://172.20.7.74:4510/mpec/static/applet/derechos/Derechos.jar" download="eager" main="false"/>

  </resources>

  <applet-desc name="Pagos DPA V5" main-class="derechos.DerechosAWT" documentbase="https://172.20.7.74:4510/mpec/declaracion.do?metodo=testEmbedding&usuarioSIT=edgar_espinoza&idSesionSIT=ac14074a30dcdf8cd0b684614ef9ac4ac4b813280423&idAplicacionSIT=22" width="760" height="720"/>

</jnlp>

basic: Plugin2ClassLoader.addURL2 called for https://172.20.7.74:4510/mpec/static/applet/derechos/Derechos.jar

basic: Plugin2ClassLoader.drainPendingURLs addURL called for https://172.20.7.74:4510/mpec/static/applet/derechos/Derechos.jar

network: LaunchDownload: concurrent downloads from LD: 4

network: Total size to download: -1

security: Security check for progress jars: allSigned=true

network: Conectando https://172.20.7.74:4510/mpec/static/applet/derechos/Derechos.jar con proxy=DIRECT

network: Conectando http://172.20.7.74:4510/ con proxy=DIRECT

javax.net.ssl.SSLException: Received fatal alert: illegal_parameter

  at sun.security.ssl.Alerts.getSSLException(Unknown Source)

  at sun.security.ssl.Alerts.getSSLException(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.javaws.LaunchDownload$DownloadTask.call(Unknown Source)

  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

  at java.util.concurrent.FutureTask.run(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

network: Conectando https://172.20.7.74:4510/mpec/static/applet/derechos/Derechos.jar con proxy=DIRECT

network: Conectando http://172.20.7.74:4510/ con proxy=DIRECT

javax.net.ssl.SSLException: Received fatal alert: illegal_parameter

  at sun.security.ssl.Alerts.getSSLException(Unknown Source)

  at sun.security.ssl.Alerts.getSSLException(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.javaws.LaunchDownload$DownloadTask.call(Unknown Source)

  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

  at java.util.concurrent.FutureTask.run(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

basic: excepción: No se ha podido cargar el recurso: https://172.20.7.74:4510/mpec/static/applet/derechos/Derechos.jar.

ExitException[ 3]com.sun.deploy.net.FailedDownloadException: No se ha podido cargar el recurso: https://172.20.7.74:4510/mpec/static/applet/derechos/Derechos.jar

  at sun.plugin2.applet.JNLP2Manager.downloadResources(Unknown Source)

  at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)

  at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)

  at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

Ignored exception: ExitException[ 3]com.sun.deploy.net.FailedDownloadException: No se ha podido cargar el recurso: https://172.20.7.74:4510/mpec/static/applet/derechos/Derechos.jar

security: Restablecer el almacén de certificados de sesión denegados

basic: Dialog type is not candidate for embedding

My Java version

Java Plugin 10.25.2.17

Usando versión de JRE 1.7.0_25-b17 Java HotSpot(TM) Client VM

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2013
Added on Aug 28 2013
0 comments
2,552 views