Java VisualVM (jvisualvm) tool throws warning "could not install some modules" at startup -


java visualvm (jvisualvm) tool throws warning "could not install modules" @ startup , doesn't start thereafter clicking jvisualvm warning screen ignore button.

system details:
1. java version "1.8.0" java hotspot (tm) 64-bit server vm (build 25.0-b69, mixed mode)
2. os debian 7.8 64bit

issue warning details below: warning - not install modules:     org.netbeans.lib.profiler.common - none of modules providing capability org.netbeans.lib.profiler.common.profiler installed.     org.netbeans.modules.profiler.api - module org.netbeans.lib.profiler.common need installed.     com.sun.tools.visualvm.core - module org.netbeans.modules.profiler.api need installed.     com.sun.tools.visualvm.core - module org.netbeans.lib.profiler.common need installed.     com.sun.tools.visualvm.core - module named org.netbeans.modules.profiler/2 needed , not found.     com.sun.tools.visualvm.host - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.host.views - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.host.views - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.application - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.application - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.tools - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.tools - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.tools - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.jvmstat - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.jvmstat - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.jvmstat - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.jvmstat - module com.sun.tools.visualvm.tools need installed.     com.sun.tools.visualvm.coredump - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.coredump - module com.sun.tools.visualvm.tools need installed.     com.sun.tools.visualvm.threaddump - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.threaddump - module com.sun.tools.visualvm.coredump need installed.     com.sun.tools.visualvm.threaddump - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.threaddump - module com.sun.tools.visualvm.tools need installed.     com.sun.tools.visualvm.heapdump - module named org.netbeans.modules.profiler.heapwalker needed , not found.     com.sun.tools.visualvm.heapdump - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.heapdump - module com.sun.tools.visualvm.coredump need installed.     com.sun.tools.visualvm.heapdump - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.heapdump - module com.sun.tools.visualvm.tools need installed.     com.sun.tools.visualvm.application.views - module com.sun.tools.visualvm.threaddump need installed.     com.sun.tools.visualvm.application.views - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.application.views - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.application.views - module com.sun.tools.visualvm.coredump need installed.     com.sun.tools.visualvm.application.views - module com.sun.tools.visualvm.heapdump need installed.     com.sun.tools.visualvm.application.views - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.application.views - module com.sun.tools.visualvm.tools need installed.     com.sun.tools.visualvm.jvm - module com.sun.tools.visualvm.threaddump need installed.     com.sun.tools.visualvm.jvm - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.jvm - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.jvm - module com.sun.tools.visualvm.heapdump need installed.     com.sun.tools.visualvm.jvm - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.jvm - module com.sun.tools.visualvm.tools need installed.     com.sun.tools.visualvm.sa - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.sa - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.sa - module com.sun.tools.visualvm.coredump need installed.     com.sun.tools.visualvm.sa - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.sa - module com.sun.tools.visualvm.tools need installed.     com.sun.tools.visualvm.attach - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.attach - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.attach - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.attach - module com.sun.tools.visualvm.tools need installed.     com.sun.tools.visualvm.modules.appui - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.modules.appui - module org.netbeans.modules.profiler.api need installed.     com.sun.tools.visualvm.profiling - module named com.sun.tools.visualvm.core/0-1 needed , not found.     com.sun.tools.visualvm.profiling - module named org.netbeans.modules.profiler/2 needed , not found.     com.sun.tools.visualvm.profiling - module named com.sun.tools.visualvm.application/0-1 needed , not found.     com.sun.tools.visualvm.profiling - module named org.netbeans.modules.profiler.snaptracer/1 needed , not found.     com.sun.tools.visualvm.profiler - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.profiler - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.profiler - module named org.netbeans.modules.profiler/2 needed , not found.     com.sun.tools.visualvm.profiler - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.profiler - module named org.netbeans.modules.profiler.utilities/1 needed , not found.     com.sun.tools.visualvm.profiler - module com.sun.tools.visualvm.profiling need installed.     com.sun.tools.visualvm.sampler - module named com.sun.tools.visualvm.heapdump/0-1 needed , not found.     com.sun.tools.visualvm.sampler - module named com.sun.tools.visualvm.tools/0-1 needed , not found.     com.sun.tools.visualvm.sampler - module named com.sun.tools.visualvm.core/0-1 needed , not found.     com.sun.tools.visualvm.sampler - module org.netbeans.modules.profiler.api need installed.     com.sun.tools.visualvm.sampler - module named com.sun.tools.visualvm.threaddump/0-1 needed , not found.     com.sun.tools.visualvm.sampler - module org.netbeans.lib.profiler.common need installed.     com.sun.tools.visualvm.sampler - module named org.netbeans.modules.profiler/2 needed , not found.     com.sun.tools.visualvm.sampler - module named com.sun.tools.visualvm.application/0-1 needed , not found.     com.sun.tools.visualvm.sampler - module named com.sun.tools.visualvm.coredump/0-1 needed , not found.     com.sun.tools.visualvm.sampler - module named com.sun.tools.visualvm.profiling/0-1 needed , not found.     com.sun.tools.visualvm.jmx - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.jmx - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.jmx - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.jmx - module com.sun.tools.visualvm.tools need installed.     com.sun.tools.visualvm.host.remote - module com.sun.tools.visualvm.host need installed.     com.sun.tools.visualvm.host.remote - module com.sun.tools.visualvm.core need installed.     com.sun.tools.visualvm.host.remote - module com.sun.tools.visualvm.application need installed.     com.sun.tools.visualvm.host.remote - module com.sun.tools.visualvm.tools need installed. java.lang.illegalargumentexception: not enabled: org.netbeans.modules.profiler.api     @ org.netbeans.module.getclassloader(module.java:402)     @ org.netbeans.standardmodule.getparentloader(standardmodule.java:526)     @ org.netbeans.standardmodule.classloaderup(standardmodule.java:483)     @ org.netbeans.modulemanager.enable(modulemanager.java:1026)     @ org.netbeans.modulemanager.enable(modulemanager.java:970)     @ org.netbeans.core.startup.modulelist.installnew(modulelist.java:301)     @ org.netbeans.core.startup.modulelist.trigger(modulelist.java:237)     @ org.netbeans.core.startup.modulesystem.restore(modulesystem.java:262)     @ org.netbeans.core.startup.main.getmodulesystem(main.java:142)     @ org.netbeans.core.startup.main.getmodulesystem(main.java:111)     @ org.netbeans.core.startup.main.start(main.java:268)     @ org.netbeans.core.startup.topthreadgroup.run(topthreadgroup.java:84)     @ java.lang.thread.run(thread.java:744) 

root cause jvisualvm user directory pointing old java reference deleted , corrected. details follows:

in order find out details of issue; ran jvisualvm console option

**./jvisualvm -j-dnetbeans.logger.console=true 

which gave me output , details shown below:

log session: monday, august 8, 2016 12:39:55 edt >system info:    product version         = java visualvm   operating system        = linux version 3.2.0-4-amd64 running on amd64   java; vm; vendor        = 1.8.0; java hotspot(tm) 64-bit server vm 25.0-b69; oracle corporation   runtime                 = java(tm) se runtime environment 1.8.0-b129   java home               = /usr/local/jetty/common/java/jdk8/jre   system locale; encoding = en_us (visualvm); utf-8   home directory          = /root   current directory       = /usr/local/jetty/common/java/jdk8/bin   user directory          = /root/.visualvm/7u60   cache directory         = /root/.cache/visualvm/7u60   installation            = /usr/local/jetty/common/java/jdk8/lib/visualvm/visualvm                             /usr/local/jetty/common/java/jdk8/lib/visualvm/profiler                             /usr/local/jetty/common/java/jdk8/lib/visualvm/platform   boot & ext. classpath   = /usr/local/jetty/common/java/jdk8/jre/lib/resources.jar:/usr/local/jetty/common/java/jdk8/jre/lib/rt.jar:/usr/local/jetty/common/java/jdk8/jre/lib/sunrsasign.jar:/usr/local/jetty/common/java/jdk8/jre/lib/jsse.jar:/usr/local/jetty/common/java/jdk8/jre/lib/jce.jar:/usr/local/jetty/common/java/jdk8/jre/lib/charsets.jar:/usr/local/jetty/common/java/jdk8/jre/lib/jfr.jar:/usr/local/jetty/common/java/jdk8/jre/classes:/usr/local/jetty/common/java/jdk8/jre/lib/ext/localedata.jar:/usr/local/jetty/common/java/jdk8/jre/lib/ext/zipfs.jar:/usr/local/jetty/common/java/jdk8/jre/lib/ext/sunpkcs11.jar:/usr/local/jetty/common/java/jdk8/jre/lib/ext/nashorn.jar:/usr/local/jetty/common/java/jdk8/jre/lib/ext/dnsns.jar:/usr/local/jetty/common/java/jdk8/jre/lib/ext/sunec.jar:/usr/local/jetty/common/java/jdk8/jre/lib/ext/jfxrt.jar:/usr/local/jetty/common/java/jdk8/jre/lib/ext/sunjce_provider.jar:/usr/local/jetty/common/java/jdk8/jre/lib/ext/cldrdata.jar   application classpath   = /usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/boot.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/org-openide-modules.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/org-openide-util.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/org-openide-util-lookup.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/locale/boot_ja.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/locale/boot_zh_cn.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/locale/org-openide-modules_ja.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/locale/org-openide-modules_zh_cn.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/locale/org-openide-util_ja.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/locale/org-openide-util-lookup_ja.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/locale/org-openide-util-lookup_zh_cn.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/lib/locale/org-openide-util_zh_cn.jar:/usr/local/jetty/common/java/jdk8/lib/dt.jar:/usr/local/jetty/common/java/jdk8/lib/tools.jar   startup classpath       = /usr/local/jetty/common/java/jdk8/lib/visualvm/platform/core/core.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/core/org-openide-filesystems.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/core/locale/org-openide-filesystems_zh_cn.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/core/locale/core_ja.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/core/locale/org-openide-filesystems_ja.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/platform/core/locale/core_zh_cn.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/visualvm/core/com-sun-tools-visualvm-modules-startup.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/visualvm/core/locale/com-sun-tools-visualvm-modules-startup_ja.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/visualvm/core/locale/com-sun-tools-visualvm-modules-startup_zh_cn.jar:/usr/local/jetty/common/java/jdk8/lib/visualvm/visualvm/core/locale/core_visualvm.jar ----------------------------------------------------------- 

everything fine in terms of jdk8 , home etc. user directory pointing non existing java path , traced in linux filesystem:

user directory          = /root/.visualvm/7u60 

in order solve problem; deleted /root/.visualvm/7u60 directory in os. ran ./jvisualvm again , worked without issue.

earlier tried running ./jvisualvm --help option seen jdkhome , tried changing jdkhome no luck. removing folder os worked me.

wow! great!!  

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -