cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Console.jnlp

Updating Console.jnlp

Eugene_van_Heer
New Contributor

I need some assistance please on how to update the Console.jnlp please:

 

The problem:
We are running XMC 8.3.2.11 on a Windows Server 2012R2 as a Virtual Machine (Hyper-V).
I am accessing the legacy console via a Windows 10 Machine using Java 8 Update 271


When I try to launch the console from the Web link, it stops at Loading Cache (whether I disable cach in the Java app on my laptop or not).

This is the output of the Java Console:

acheEntry[https://srv-ctdc-xmc-01:8443/Clients/Console.jnlp]: updateAvailable=true,lastModified=Tue Nov 17 07:09:33 CAT 2020,length=7740
log4j:WARN No appenders could be found for logger (com.enterasys.netsight.console.client.Console).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Configuring using URL: jar:https://srv-ctdc-xmc-01:8443/Clients/webstart/legacy-clients.jar!/com/enterasys/netsight/pluginfwk/log4j.properties
08:11:10,855 ERROR client:110 - AMQ214017: Caught unexpected Throwable
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Unknown Source)
    at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
    at java.lang.AbstractStringBuilder.append(Unknown Source)
    at java.lang.StringBuilder.append(Unknown Source)
    at java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(Unknown Source)
    at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(Unknown Source)
    at java.io.ObjectInputStream$BlockDataInputStream.readLongUTF(Unknown Source)
    at java.io.ObjectInputStream.readString(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at java.util.HashMap.readObject(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at java.util.HashMap.readObject(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

 

But when I save the Console.jnlp to my laptop and then edit it and change the following line, and then launch from that saved file, then it loads fine. (Doubling memory to 2048)

       <resources os="Windows">
            <j2se href="http://java.sun.com/products/autodl/j2se"
                   version="1.8+"
                   java-vm-args="-Xmx2048m"
               />
    </resources>

 

How do I update the console.jnlp on the server itself so that any machine can load it directly without having to save and edit the jnlp file?

2 REPLIES 2

Eugene_van_Heer
New Contributor

Thank you for the reply.  I will try that (after the required c.y.a. backup naturally).


Sad that the legacy Java Console about to disappear when we upgrade.
I find the console does certain things a bit easier than the Web interface. (Progress I guess.  “This motorized carriage will never replace horses”)

Miguel-Angel_RO
Valued Contributor II

Eugene,

 

FYI as from XMC 8.5 there is no more java client. Only the web GUI is available.

All the options & features have been migrated in.

 

I’m not sure you’ll be able to adapt this but you can try to find the jnlp.

Try “find / | grep .jnlp” on XMC but perform a backup before modifying any files.

Mig

 

 

GTM-P2G8KFN