DX NetOps

 View Only
Expand all | Collapse all

Unable to launch One Click after patching

  • 1.  Unable to launch One Click after patching

    Posted Jan 11, 2023 11:58 AM
    Hi,

    Our installation of Spectrum was just patched to vs.21.2.10.0.48. Since then, when trying to launch the One Click console, I get the following error from IcedTea:

    net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. The application has not been initialized, for more information execute javaws from the command line.
    at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:823)
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:531)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:946)
    Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Unknown Main-Class. Could not determine the main class for this application.
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:775)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:337)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:420)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:494)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:467)
    at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:815)

    Other team members with the same and different JRE configurations are able to launch the app without issue. Assume I've tried all of the 1st line troubleshooting steps. I have ticket logged with my local tech support but, was hoping someone out here might have some suggestions.

    Thanks in advance.
    Tony Recchio

    ------------------------------
    Senior Computer Operator
    SUNY AB
    New York
    ------------------------------


  • 2.  RE: Unable to launch One Click after patching

    Posted Jan 12, 2023 03:17 AM
    Try this.

    ------------------------------
    Cătălin Fărcășanu
    Senior Consultant
    SolvIT Networks
    ------------------------------



  • 3.  RE: Unable to launch One Click after patching

    Posted Jan 12, 2023 06:42 AM
    Thanks Catalin. Unfortunately, that did not work. I'm still getting the error.

    ------------------------------
    Senior Computer Operator
    SUNY AB
    New York
    ------------------------------



  • 4.  RE: Unable to launch One Click after patching

    Broadcom Employee
    Posted Jan 16, 2023 03:28 PM

    Hi Anthony,

    What happens if you lower the Security Level of the IcedTea-Web from High Security to Low Security?



    Thanks,

    Silvio




  • 5.  RE: Unable to launch One Click after patching

    Posted Jan 17, 2023 06:43 AM
    Hi Silvio,

    No change when lowering the security settings.

    Thanks,
    Tony

    ------------------------------
    Senior Computer Operator
    SUNY AB
    New York
    ------------------------------



  • 6.  RE: Unable to launch One Click after patching

    Posted Jan 17, 2023 03:04 AM
    Hi Tony, can you please check your JAVA_HOME and PATH settings ? Do you use an internet proxy from the client where you try to start the oneclick.jnlp and the OC ? 
    Kind regards,
    Britta


  • 7.  RE: Unable to launch One Click after patching

    Posted Jan 17, 2023 06:52 AM
    Hi Britta

    U:\>echo %JAVA_HOME%
    C:\Program Files\Eclipse Adoptium\jre-8.0.312.7-hotspot\

    PATH=C:\Program Files\Eclipse Adoptium\jre-8.0.312.7-hotspot\bin;C:\ProgramData\Oracle\Java\javapath;

    I do not use an internet proxy.

    Thanks,
    Tony

    ------------------------------
    Senior Computer Operator
    SUNY AB
    New York
    ------------------------------



  • 8.  RE: Unable to launch One Click after patching

    Posted Jan 17, 2023 10:02 AM
    Hi Tony, is this the jre release that is delivered with the Spectrum Release ? Can you please double check. Here an example:

     
    Kind regards,
    Britta


  • 9.  RE: Unable to launch One Click after patching

    Posted Jan 17, 2023 10:26 AM
    Hi Britta,

    It is. I've removed all other versions of Java and downloaded a fresh copy from the app to re-install.

    Tony

    ------------------------------
    Senior Computer Operator
    SUNY AB
    New York
    ------------------------------



  • 10.  RE: Unable to launch One Click after patching

    Posted Jan 18, 2023 03:47 AM
    Hi Tony, 

    when you launch the oneclick.jnlp file there are 4 processes created:


    From a command prompt can you please run 

    where java
    where javaws

    to verify from which location those binaries are getting started. I see you have an additional java location configured in your PATH


    When you say you have removed all Java Packages before installing the 8.0.312.7 this entry shouldn´t be needed anymore.

    Can you run javaws from a command prompt and what is the result ?

    Kind regards,
    Britta


  • 11.  RE: Unable to launch One Click after patching

    Posted Jan 18, 2023 08:31 AM
    Hi Britta,

    U:\>where java
    C:\Program Files\Eclipse Adoptium\jre-8.0.312.7-hotspot\bin\java.exe

    U:\>where javaws
    C:\Program Files\IcedTeaWeb\WebStart\bin\javaws.exe

    I don't seem to be able to get rid of that second entry in the path.

    Here are the results running javaws from the command prompt:

    U:\>javaws

    U:\>selected jre: C:\Program Files\Eclipse Adoptium\jre-8.0.312.7-hotspot\

    SYNOPSIS
    javaws [-run-options] jnlp file
    javaws [-control-options]

    OPTIONS
    When specifying options, the name of the jnlp file can be after the command, the -jnlp option, an option with no arguments, or after an argument with an option that takes one argument. A html file that launches a jnlp can be specified after the -html option.
    The jnlp-file can either be a url or a local path.
    The JNLP file should only be specified once, whether as a main argument, after -jnlp or through an html file.
    Control options:
    -about - Shows a sample application.(No argument expected)
    -help - Prints out information about supported command and basic usage.(No argument expected)
    -license - Display the GPL license and exit.(No argument expected)
    -viewer - Shows the trusted certificate viewer.(No argument expected)
    -Xcacheids - List available IDs in cache, which you can use to delete individual applications.(Expected none or one argument)
    -Xclearcache - Clean the JNLP application cache. If you pass argument, only specified application is deleted.(Expected none or one argument)
    Run options:
    -allowredirect - Follows HTTP redirects.(No argument expected)
    -arg arg - Adds an application argument before launching.(Expected one or more arguments)
    -browser - Launch embeded browser. Use in great need only!(Expected one or more arguments)
    -headless - Disables download window, other UIs.(No argument expected)
    -html - Location of HTML file to launch (url or file). You can use parameter ALL or numbers (like 1 2 5) to select applets on page. However experimental, this switch should keep you still in safety.(Expected one or more arguments)
    -jnlp - Location of JNLP file to launch (url or file).(Exactly one argument expected)
    -nosecurity - Disables the secure runtime environment. You need also deployment.security.itw.ignorecertissues to workaround corrupted signatures(No argument expected)
    -noupdate - Disables checking for updates.(No argument expected)
    -param name=value - Adds an applet parameter before launching.(Expected one or more arguments)
    -property name=value - Sets a system property before launching.(Expected one or more arguments)
    -startuptracker - Enable startup time tracker(No argument expected)
    -strict - Enables strict checking of JNLP file format.(No argument expected)
    -update seconds - Check for updates.(Exactly one argument expected)
    -verbose - Enable verbose output.(No argument expected)
    -version - Print the IcedTea-Web version and exit.(No argument expected)
    -Xignoreheaders - Skip jar header verification.(No argument expected)
    -xml - Uses a strict XML parser to parse the JNLP file.(No argument expected)
    -Xnofork - Do not create another JVM.(No argument expected)
    -Xoffline - Prevent ITW network connection. Only cache will be used. Application can still connect.(No argument expected)
    -Xtrustnone - Instead of asking user, will foretold all answers as no.(No argument expected)


    Tony

    ------------------------------
    Senior Computer Operator
    SUNY AB
    New York
    ------------------------------



  • 12.  RE: Unable to launch One Click after patching

    Posted Jan 19, 2023 04:54 AM
    Hi Tony, can you enable Debugging in the Icedtea-Web Control Panel, reproduce the problem and provide the logs ?


    Kind regards,
    Britta


  • 13.  RE: Unable to launch One Click after patching

    Posted Jan 19, 2023 07:17 AM
    Hi Britta,

    Log files attached.

    Tony

    ------------------------------
    Senior Computer Operator
    SUNY AB
    New York
    ------------------------------



  • 14.  RE: Unable to launch One Click after patching

    Posted Jan 19, 2023 08:33 AM
    Hello Tony, in the itw-javantx-2023-01.19_07_07_37.130.log I see the message at the end of the file:

    Release shared lock on C:\Users\arecchio\AppData\Local\Temp\arecchio\netx\locks\netx_running
    Other instances of javaws are running
    Can you please verify in Task Manager what this javaws process is for ? When you cleanup the IcedTea-Web and Eclipse Foundation Java can you please do this in Control Panel - Uninstall Programs. Once this is done can you please remove the C:\Users\arecchio\.config and C:\Users\arecchio\.cache folders and also cleanup the %tmp% folder
    C:\Users\arecchio\AppData\Local\Temp\arecchio\netx\locks\netx_running

    Logoff from the Server and login again and run a fresh installation of Eclipse Foundation Java and IcedTea-Web provided with Spectrum.
    Logoff again and login to the Server and download oneclick.jnlp and verify the startup.

    Kind regards,
    Britta



  • 15.  RE: Unable to launch One Click after patching

    Posted Jan 19, 2023 01:19 PM
    Hello Britta!

    I had one of our technicians looking at this as well and he was able to resolve my issue using the suggestions form your last message. Thank you so much for your time and attention.

    Tony

    ------------------------------
    Senior Computer Operator
    SUNY AB
    New York
    ------------------------------



  • 16.  RE: Unable to launch One Click after patching

    Posted Jan 20, 2023 03:08 AM
    Hello Tony, good to hear it is working now. 

    Kind regards,
    Britta