This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197266 - PLAF dependency issue
Summary: PLAF dependency issue
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: issues@third-party
URL: http://www.jyloo.com
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 07:51 UTC by wzberger
Modified: 2011-11-16 16:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wzberger 2011-03-31 07:51:44 UTC
We've created a module which works fine with NetBeans 6.9. However, with NetBeans RC1 the exception below is thrown.

The UIUtils class belongs to the module org.netbeans.swing.plaf. The manifest file already contains the dependency entry for related module.

MANIFEST.MF:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.0
Created-By: 1.6.0_18-b07 (Sun Microsystems Inc.)
OpenIDE-Module-Public-Packages: de.javasoft.netbeans.plaf.synthetica.*
OpenIDE-Module-Module-Dependencies: org.netbeans.swing.plaf, org.netbeans.swing.tabcontrol, org.openide.awt, org.openide.modules, org.openide.util
OpenIDE-Module-Java-Dependencies: Java > 1.6
OpenIDE-Module-Implementation-Version: 110319
AutoUpdate-Show-In-Client: false
OpenIDE-Module-Localizing-Bundle: de/javasoft/synthetica/netbeans/Bundle.properties
OpenIDE-Module: de.javasoft.synthetica.netbeans
OpenIDE-Module-Specification-Version: 1.0
OpenIDE-Module-Requires: org.openide.modules.ModuleFormat1

Stacktrace:

java.lang.NoClassDefFoundError: org/netbeans/swing/plaf/util/UIUtils
        at de.javasoft.synthetica.netbeans.SyntheticaLFCustoms.createApplicationSpecificKeysAndValues(SyntheticaLFCustoms.java:91)
        at org.netbeans.swing.plaf.LFCustoms.getApplicationSpecificKeysAndValues(LFCustoms.java:96)
        at org.netbeans.swing.plaf.Startup.installLFCustoms(Startup.java:325)
        at org.netbeans.swing.plaf.Startup.installPerLFDefaults(Startup.java:255)
        at org.netbeans.swing.plaf.Startup.install(Startup.java:236)
        at org.netbeans.swing.plaf.Startup.run(Startup.java:487)
        at org.netbeans.core.CoreBridgeImpl.initializePlaf(CoreBridgeImpl.java:124)
        at org.netbeans.core.startup.Main.initUICustomizations(Main.java:144)
        at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:361)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1020)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:318)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:254)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:294)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:172)
        at org.netbeans.core.startup.Main.start(Main.java:308)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
        at java.lang.Thread.run(Thread.java:662)

Thanks,
Wolfgang
Comment 1 wzberger 2011-03-31 08:15:53 UTC
The issue was caused by a wrong specified OpenIDE-Module-Implementation-Version for module org.netbeans.swing.plaf. It looks like a concrete, platform depended, number has to be specified.

Works:
OpenIDE-Module-Module-Dependencies: org.netbeans.swing.plaf = 201103280000 ...

Fails on 7.0RC1:
OpenIDE-Module-Module-Dependencies: org.netbeans.swing.plaf = 201006101454 ...