Discussion:
not a valid netbeans module
Kirk Pepperdine
2014-10-13 08:23:39 UTC
Permalink
Hi,

I just wrote a custom VisualVM plugin and upon installing I get;

org.netbeans.StandardModuleData@<some hex number here> is not a valid NetBeans module

The module works when running in NetBeans. Doesn’t install in a free standing VisualVM install.

Java version is 1.7.0_51
VisualVM platform is 1.3.8

NetBeans is 8.0.1
Java Platform is 1.7.0_51
Source level is 1.7

message in log is;

Caused: org.netbeans.InvalidException: Not a module: no OpenIDE-Module tag in manifest of ***@69d85fd0
at org.netbeans.ModuleData.<init>(ModuleData.java:95)
at org.netbeans.StandardModuleData.<init>(StandardModuleData.java:88)
at org.netbeans.StandardModule.createData(StandardModule.java:125)
at org.netbeans.Module.dataWithCheck(Module.java:184)

I started with JDK 8 but thought best to revert to JDK 7. I rebuilt the project from scratch thinking that I might have corrupted the config files in the process of changing versions. However the new project suffers from the same problem.

Not sure where to report this so I’ve cross posted

Kind regards,
Kirk Pepperdine
Benno Markiewicz
2014-10-14 06:18:29 UTC
Permalink
IIRC VisualVM is based on an old NB platform. Try to compile it against NB
platform 6.9/7.0. To stick with JDK7 is also good, because I doubt such an
old version of the platform runs without issues at a new JDK.
Post by Kirk Pepperdine
Hi,
I just wrote a custom VisualVM plugin and upon installing I get;
The module works when running in NetBeans. Doesn’t install in a free
standing VisualVM install.
Java version is 1.7.0_51
VisualVM platform is 1.3.8
NetBeans is 8.0.1
Java Platform is 1.7.0_51
Source level is 1.7
message in log is;
Caused: org.netbeans.InvalidException: Not a module: no OpenIDE-Module tag
at org.netbeans.ModuleData.<init>(ModuleData.java:95)
at
org.netbeans.StandardModuleData.<init>(StandardModuleData.java:88)
at org.netbeans.StandardModule.createData(StandardModule.java:125)
at org.netbeans.Module.dataWithCheck(Module.java:184)
I started with JDK 8 but thought best to revert to JDK 7. I rebuilt the
project from scratch thinking that I might have corrupted the config files
in the process of changing versions. However the new project suffers from
the same problem.
Not sure where to report this so I’ve cross posted
Kind regards,
Kirk Pepperdine
Tomas Hurka
2014-10-14 07:30:51 UTC
Permalink
Hi Benno,
Post by Benno Markiewicz
IIRC VisualVM is based on an old NB platform.
VisualVM 1.3.8 is based on NetBeans 8.0, which is not old.
Post by Benno Markiewicz
Try to compile it against NB platform 6.9/7.0.
Please don’t do it. VisualVM already contains all necessary NB platform modules, so the VisualVM module should be compiled against VisualVM used as NetBeans platform.
Post by Benno Markiewicz
To stick with JDK7 is also good, because I doubt such an old version of the platform runs without issues at a new JDK.
It runs just fine on JDK 8.

Bye,
--
Tomas Hurka <mailto:***@oracle.com>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.java.net
Software Developer
Oracle, Praha Czech Republic
Benno Markiewicz
2014-10-14 08:00:22 UTC
Permalink
Hi Tomas/Kirk,

I revert my recent comment. Tomas, you are right, I looked it up in
Help|About|Logfile and JVisualVM runs using JDK8 and the modules are pretty
recent.

Sorry Kirk for the wrong direction.

With kind regards, markiewb
Post by Tomas Hurka
Hi Benno,
On 14 Oct 2014, at 08:18, Benno Markiewicz <
Post by Benno Markiewicz
IIRC VisualVM is based on an old NB platform.
VisualVM 1.3.8 is based on NetBeans 8.0, which is not old.
Post by Benno Markiewicz
Try to compile it against NB platform 6.9/7.0.
Please don’t do it. VisualVM already contains all necessary NB platform
modules, so the VisualVM module should be compiled against VisualVM used as
NetBeans platform.
Post by Benno Markiewicz
To stick with JDK7 is also good, because I doubt such an old version of
the platform runs without issues at a new JDK.
It runs just fine on JDK 8.
Bye,
--
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.java.net
Software Developer
Oracle, Praha Czech Republic
Loading...