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 220807 - NoClassDefFoundError: updater/XMLUtil updater is in platform cluster, where are autoupdate.services?
Summary: NoClassDefFoundError: updater/XMLUtil updater is in platform cluster, where a...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 219553 224285 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-25 06:21 UTC by Exceptions Reporter
Modified: 2013-01-03 14:31 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 156359


Attachments
stacktrace (6.59 KB, text/plain)
2012-10-25 06:21 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-10-25 06:21:51 UTC
This bug was originally marked as duplicate of bug 169336, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20
OS: Linux

User Comments:
salamander: Trying to change plugins

GUEST: while invoking plugin module

GUEST: clicked on Tools->Plugins and that's it.




Stacktrace: 
java.lang.NoClassDefFoundError: org/netbeans/updater/XMLUtil
   at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.newEntityResolver(AutoupdateCatalogParser.java:114)
   at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.<init>(AutoupdateCatalogParser.java:83)
   at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.getUpdateItems(AutoupdateCatalogParser.java:179)
   at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.getUpdateItems(AutoupdateCatalogProvider.java:143)
   at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:173)
   at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:143)
Comment 1 Exceptions Reporter 2012-10-25 06:21:53 UTC
Created attachment 126521 [details]
stacktrace
Comment 2 Jaroslav Tulach 2012-10-29 10:15:47 UTC
The first message in the log says:

Cannot open /home/wh/.netbeans/dev/modules/ext/updater.jar
java.util.zip.ZipException: error in opening zip file
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:127)
	at java.util.jar.JarFile.<init>(JarFile.java:135)
	at java.util.jar.JarFile.<init>(JarFile.java:114)
	at org.netbeans.JarClassLoader$JarSource$1.call(JarClassLoader.java:506)

and then there is additional logging:

   org.netbeans.updater.XMLUtil is not accessible
    platform dir = /home/wh/program-files/netbeans-dev-201204190400/platform
    userdir  dir = /home/wh/.netbeans/dev
    updater in platform exist = true, length = 240014 bytes
    updater in userdir  exist = false
    new updater in platform exist = false
    new updater in userdir  exist = false
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler$4
java.lang.ClassNotFoundException: org.netbeans.updater.XMLUtil
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

It seems that autoupdate.services module was updated

org.netbeans.modules.autoupdate.services [1.35 nbms-and-javadoc-9402-on-20120907]

Reporter, where is the org-netbeans-modules-autoupdate-services.jar located?

Jirko, is it possible that the JAR is in user directory and the updater.jar remains in platform only?

Anyway this does not look like module system issue, rather autoupdate related one (both from end user and infrastructure perspective).
Comment 3 Jiri Rechtacek 2012-10-29 13:58:54 UTC
Could someone who facing the problem with missing XMLUtil class (java.lang.NoClassDefFoundError: org/netbeans/updater/XMLUtil) attach your updater.log.* which you can find in <userdir>/var/log [*]?
Thanks in advance

[*] http://wiki.netbeans.org/FaqWhatIsUserdir
Comment 4 Jaroslav Tulach 2012-10-31 13:12:52 UTC
*** Bug 219553 has been marked as a duplicate of this bug. ***
Comment 5 Jiri Rechtacek 2012-11-22 12:14:46 UTC
I found a reproducible case.
Comment 6 Jiri Rechtacek 2012-11-22 12:47:26 UTC
240721:3dbc4aa53cce
Comment 7 Quality Engineering 2012-11-24 13:05:48 UTC
Integrated into 'main-golden', will be available in build *201211240959* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3dbc4aa53cce
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #220807 - NoClassDefFoundError: updater/XMLUtil
Comment 8 Jiri Rechtacek 2013-01-03 14:31:57 UTC
*** Bug 224285 has been marked as a duplicate of this bug. ***