Application not launching - looks like looping behavior

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
magnusska
Posts: 3
Joined: 24 Feb 2023, 16:11

Application not launching - looks like looping behavior

Post by magnusska »

I'm trying to launch an application with a jnlp file that works fine with javaws in 1.8.
The source code has been modified to comply with OWS/IcedTea.

jnlp:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<jnlp spec="6.0.10+" href="larm.jnlp" codebase="https://mms-sn-nattbygg1-klient-fifty-cm-mms-endpoints.apps.stas-test.statnett.no/larm/">
  <information>
    <title>Fifty (@https://xxxx.statnett.no)</title>
    <vendor>Fifty</vendor>
    <homepage>https://xxxx.statnett.no/larm</homepage>
    <description>Fifty Intern</description>
    <icon href="img/applicationIcon.png" />
    <icon href="img/applicationIcon.png" kind="splash" />
    <icon href="img/applicationIcon.ico" kind="shortcut" />
  </information>
  <security>
    <all-permissions />
  </security>
  <update check="always" />
  <resources os="Windows" arch="x86">
    <j2se version="11" href="http://java.sun.com/products/autodl/j2se"  initial-heap-size="1G" max-heap-size="4G" java-vm-args="-Xss2m -XX:+HeapDumpOnOutOfMemoryError" />
  </resources>
  <resources>
  <j2se version="11" initial-heap-size="1G" max-heap-size="4G" java-vm-args="-Xss2m -XX:+HeapDumpOnOutOfMemoryError" />
    <jar href="statnett-fifty-intern-client-xxx.jar" version="29.14.3.6-SNAPSHOT.20230227113539"/>
    <property name="jnlp.versionEnabled" value="true"/>
  </resources>
  <application-desc main-class="no.statnett.fifty.intern.client.ApplicationStarter" name="Fifty (@https://xxxx.statnett.no)" >
    <argument>https://xxxx.statnett.no/larm</argument>
  </application-desc>
</jnlp>
Exerpt from console looks like this:

Code: Select all

Waiting for exception dialog to be closed
Launch exception
netx: Launch Error: Could not launch JNLP file. ( ())
Using MalformedXMLParser
APPLICATION_TEMPLATE.JNLP has been located within signed JAR. Starting verification...
Creating File InputStream from launching JNLP file
Creating Jar InputStream from JarEntry
App already has trusted publisher: true
..... REPEATS MANY TIMES......
Using MalformedXMLParser
APPLICATION_TEMPLATE.JNLP has been located within signed JAR. Starting verification...
Creating File InputStream from launching JNLP file
Creating Jar InputStream from JarEntry
App already has trusted publisher: true
Using MalformedXMLParser
APPLICATION_TEMPLATE.JNLP has been located within signed JAR. Starting verification...
Creating File InputStream from launching JNLP file
Closing DownloadServiceListener
Creating Jar InputStream from JarEntry
App already has trusted publisher: true
Using MalformedXMLParser
APPLICATION_TEMPLATE.JNLP has been located within signed JAR. Starting verification...
Creating File InputStream from launching JNLP file
Creating Jar InputStream from JarEntry
App already has trusted publisher: true
Using MalformedXMLParser
APPLICATION_TEMPLATE.JNLP has been located within signed JAR. Starting verification...
Creating File InputStream from launching JNLP file
Creating Jar InputStream from JarEntry
App already has trusted publisher: true
Will add resource 'statnett-fifty-intern-client-xxx.jar'
Will add resource at location 'https://xxxx.statnett.no/larm/statnett-fifty-intern-client-xxx.jar'
Class-Path attribute cleared for C:\Users\magnusska\.cache\icedtea-web\cache\0\3\statnett-fifty-intern-client-xxx.jar
12:12:07.413 [Fifty (@https://xxxx.statnett.no)] DEBUG fifty.core.util.i18n.Messages - Laster resource bundle for locale nb_NO. Konfigurasjonskatalog er C:\Users\magnusska\fifty 
Reading Shortcuts with UTF-8
Using WindowsShortCutManager C:\Users\magnusska\.cache\icedtea-web\cache\shortcutList.txt
Invoking main() with args: [https://xxxx.stas-test.statnett.no/larm]
Setting net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader@64a76175 as the classloader for thread TimerQueue
Setting net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader@64a76175 as the classloader for thread AWT-EventQueue-1
Setting net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader@64a76175 as the classloader for thread Fifty (@https://mms-sn-nattbygg1-klient-fifty-cm-mms-endpoints.apps.stas-test.statnett.no)
Cached desktop shortcut icon: C:\Users\magnusska\.config\icedtea-web\icons\applicationIcon.ico ,  With source from: C:\Users\magnusska\.cache\icedtea-web\cache\0\8\applicationIcon.ico
Download done. Shutting down executor

Janak Mulani
Posts: 538
Joined: 24 Mar 2020, 13:37

Re: Application not launching - looks like looping behavior

Post by Janak Mulani »

Which version of OWS are you using? Can you please post the OWS logs?

magnusska
Posts: 3
Joined: 24 Feb 2023, 16:11

Re: Application not launching - looks like looping behavior

Post by magnusska »

Log files attached
Attachments
2023-03-02_14_05_36.256-ows-stage2.log
(204.7 KiB) Downloaded 89 times
2023-03-02_14_05_36.256-ows-stage1.log
(5.84 KiB) Downloaded 90 times

Janak Mulani
Posts: 538
Joined: 24 Mar 2020, 13:37

Re: Application not launching - looks like looping behavior

Post by Janak Mulani »

You are using OWS 1.4.0 : Stage 1 log says "Starting OpenWebStart 1.4.0".

Please try with the latest version of OWS 1.7.0 and send the logs. Please enable debug level logging and logging content of jnlp.

magnusska
Posts: 3
Joined: 24 Feb 2023, 16:11

Re: Application not launching - looks like looping behavior

Post by magnusska »

The problem persists after upgrade to OWS 1.7.0
Log files attached.
Attachments
2023-03-21_09_27_19.2-ows-stage2.log
(402.33 KiB) Downloaded 1 time
2023-03-21_09_27_19.2-ows-stage1.log
(31.24 KiB) Downloaded 1 time

Post Reply