Link to home
Start Free TrialLog in
Avatar of tanya pattni
tanya pattni

asked on

ASA ASDM AND JAVA

hello ,
everytime i try and load my asdm i get the "cant find javaw" now i dont get that msg, it just keeps loading and nothing else happens. so i checked the java console and go this.

Java Web Start 1.6.0_43
Using JRE version 1.6.0_43-b01 Java HotSpot(TM) Client VM
User home directory = C:\Users\Tanya
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
Application Logging Started at Fri Jun 02 10:54:24 EAT 2017
---------------------------------------------
java.lang.ClassNotFoundException: com.sun.deploy.config.ClientConfig
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Unknown Source)
      at com.cisco.launcher.ClassUtil.do(Unknown Source)
      at com.cisco.launcher.ClassUtil.initExecutionEnvironment(Unknown Source)
      at com.cisco.launcher.s.if(Unknown Source)
      at com.cisco.launcher.Launcher.main(Unknown Source)
Local Launcher Version = 1.7.0
Local Launcher Version Display = 1.7(0)
OK button clicked
Info: Pre-login banner not supported at https://192.168.20.1/admin/login_banner
Trying for ASDM Version file; url = https://192.168.20.1/admin/
Server Version = 7.5(2)
Server Launcher Version = 1.7.0, size = 775168 bytes
Launcher version checking is successful.
invoking SGZ Loader..
Cache location = C:/Users/Tanya/.asdm/cache
Exception in thread "SGZ Loader: applet thread" java.lang.UnsupportedClassVersionError: com/cisco/pdm/PDMApplet : Unsupported major.minor version 51.0
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClassCond(Unknown Source)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at com.cisco.nm.dice.loader.JPClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at com.cisco.nm.dice.loader.Loader.launchSgzApplet(Unknown Source)
      at com.cisco.nm.dice.loader.Loader.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

Please help..
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Remove JRE 1.6 and install the latest. With any luck, they won't have been stupid enough to tie it to superseded 1.7
Avatar of tanya pattni
tanya pattni

ASKER

hello CEGJ,
i just downloaded the JRE 8 and tried to load asdm and got this error msg.
asdm.png
OK, can you verify (by search), that javaw.exe IS installed on your machine. If successful, please post the path to it here
C:\Users\Tanya\Downloads\jre-8u131-windows-x64\jre1.8.0_131\bin
C:\ProgramData\Oracle\Java\javapath
Hmm, that's not brilliant. You seemed to have installed it off downloads - why?

Is  C:\ProgramData\Oracle\Java\javapath a link? (I don't know what Oracle are doing on Windows these days)

What does

dir  C:\ProgramData\Oracle\Java\javapath 

Open in new window


in cmd.exe give?
i installed it from the downloads cse thats where i saved it to when downloading. i never had a problem like this before. my ASDm worked fine with java 6 i have no idea what went wrong.
im not conversant with java. so im really confused.
i installed it from the downloads cse thats where i saved it to when downloading.
Personally i'd uninstall it then accept the default when reinstalling. It should install off C:\Program Files
okay let me try that and get back to you
I'm not suggesting that's going to cure it. It's just a first step
im getting the same error
(See my last comment)

OK, can you now reanswer THIS please
C:\Users\Tanya\Downloads\jre-8u131-windows-x64\jre1.8.0_131\bin

i do see the javaw.. i uninstalled it and installed it but it still shows that its being installed off downloads
here it is
javaw.png
OK, please open cmd.exe and get ready to run some commands. Make sure you can copy and paste from the window. Google as to how if you can't
okay ive already opened it
Please post output of

echo %PATH%

Open in new window

thats the output
C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Java\jre7\bin
Try it again now and tell me what the Java Console says
it says the same thing. i cant get to the java console cause i get the error as soon as i try loading asdm
How do you actually load asdm - through a browser?
yeah through the browser. i type in the ip address and it asks me to install this asdm application. after installing that when i get the javaw error
So - you install the asdm app. IS it installed?
it doesnt install all the way. when its about to install thats when i get the error.
asdmlauncher.png
That's not an error. It's an invitation to save an installer file
Yes i know, i was showing u what app i was using. my bad i wasn't being  clear.
Can you try running the installer at the command line?
hello i tried loading it from comand line and this is the error that i get.

JNLPException[category: Download Error : Exception: java.io.FileNotFoundException: https://192.168.20.1/admin/public.asdm.jnlp : LaunchDesc: null
      at com.sun.javaws.Main.launchApp(Unknown Source)
      at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
      at com.sun.javaws.Main.access$000(Unknown Source)
      at com.sun.javaws.Main$1.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: https://192.168.20.1/admin/public.asdm.jnlp
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessController.doPrivilegedWithCombiner(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.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      ... 5 more
and when i load the asdm app it just hangs now and the java console says this.

Using JRE version 1.8.0_131 Java HotSpot(TM) Client VM
User home directory = C:\Users\Tanya
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
q:   hide console
s:   dump system properties
----------------------------------------------------
Application Logging Started at Mon Jun 05 09:30:43 EAT 2017
---------------------------------------------
Local Launcher Version = 1.7.0
Local Launcher Version Display = 1.7(0)
Cannot read profile file C:\Users\Tanya\.asdm\data\deviceinfo.conf.
OK button clicked
java.lang.ExceptionInInitializerError
      at jdk.nashorn.internal.parser.Parser.parse(Parser.java:275)
      at jdk.nashorn.internal.parser.Parser.parse(Parser.java:249)
      at jdk.nashorn.internal.runtime.Context.compile(Context.java:1284)
      at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1251)
      at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:627)
      at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:535)
      at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:524)
      at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
      at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155)
      at javax.script.AbstractScriptEngine.eval(Unknown Source)
      at com.sun.deploy.net.proxy.SunAutoProxyHandler.jsGetProxyInfo(Unknown Source)
      at com.sun.deploy.net.proxy.SunAutoProxyHandler.access$100(Unknown Source)
      at com.sun.deploy.net.proxy.SunAutoProxyHandler$2.run(Unknown Source)
      at com.sun.deploy.net.proxy.SunAutoProxyHandler$2.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.deploy.net.proxy.SunAutoProxyHandler.jsGetProxyInfo(Unknown Source)
      at com.sun.deploy.net.proxy.SunAutoProxyHandler.getProxyInfo(Unknown Source)
      at com.sun.deploy.net.proxy.DynamicProxyManager.getProxyList(Unknown Source)
      at com.sun.deploy.net.proxy.DeployProxySelector.select(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
      at com.cisco.launcher.s.new(Unknown Source)
      at com.cisco.launcher.s.actionPerformed(Unknown Source)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at javax.swing.JComponent.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$500(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue$4.run(Unknown Source)
      at java.awt.EventQueue$4.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\Program Files (x86)\Java\jre1.8.0_131\lib\ext\nashorn.jar" "read")
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at com.sun.deploy.security.SelectableSecurityManager.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkRead(Unknown Source)
      at java.io.File.isDirectory(Unknown Source)
      at sun.net.www.ParseUtil.fileToEncodedURL(Unknown Source)
      at sun.security.provider.PolicyFile.canonicalizeCodebase(Unknown Source)
      at sun.security.provider.PolicyFile.access$700(Unknown Source)
      at sun.security.provider.PolicyFile$5.run(Unknown Source)
      at sun.security.provider.PolicyFile$5.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.security.provider.PolicyFile.getPermissions(Unknown Source)
      at sun.security.provider.PolicyFile.getPermissions(Unknown Source)
      at sun.security.provider.PolicyFile.implies(Unknown Source)
      at java.security.ProtectionDomain.implies(Unknown Source)
      at java.security.ProtectionDomain.impliesCreateAccessControlContext(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at jdk.nashorn.internal.runtime.options.Options.getBooleanProperty(Options.java:154)
      at jdk.nashorn.internal.runtime.options.Options.getBooleanProperty(Options.java:179)
      at jdk.nashorn.internal.parser.Lexer.<clinit>(Lexer.java:67)
      ... 63 more
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      at com.cisco.launcher.s.new(Unknown Source)
      at com.cisco.launcher.s.actionPerformed(Unknown Source)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at javax.swing.JComponent.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$500(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue$4.run(Unknown Source)
      at java.awt.EventQueue$4.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
i finally got it to work. i downgraded to java 6 . thanks for all the help. i was beginning to think i had to format my system or throw it away. thanks for all the help really appreciated.
i finally got it to work. i downgraded to java 6
Good. And bad: it's most unfortunate that they've managed to break the natural backward compatibility of Java and required you to have an insecure version to make it run. Be aware that JREs are at the very top of malware vectors, so make sure you're very careful indeed
OMG i cant believe the same issue has happened. my launcher is hanging now. just after i reloaded the device :(
Looks like (seeing also the myriad of problem messages on the Net) that Cisco really don't know how to write (at least Java) software

I'd really have to see what is going on directly, perhaps using Live and remoting
OK not a problem.  its been so many days and still havent been able to figure out what the problem is. :(
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.