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 29781 - NullPointerException when autoupdate is attempted.
Summary: NullPointerException when autoupdate is attempted.
Status: VERIFIED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 36215 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-05 03:13 UTC by kmiles
Modified: 2004-03-15 17:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
.nbm that fits to the log for local installation (2.57 MB, application/octet-stream)
2003-09-22 17:30 UTC, hlein
Details
IOE when updating - only in ide.log (1.27 KB, text/plain)
2003-09-23 14:55 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kmiles 2003-01-05 03:13:37 UTC
I get a NPE when i attempt autoupdate or manual
processing of .nbm files.



-------------------------------------------------------------------------------
>Log Session: Saturday, January 4, 2003 9:58:41 PM EST
>System Info: 
  Product Version       = NetBeans IDE 3.4
  IDE Versioning        = IDE/1 spec=2.23.1
impl=200208222340
  Operating System      = Linux version 2.4.9-34
running on i386
  Java; VM; Vendor      = 1.4.0_01; Java
HotSpot(TM) Client VM 1.4.0_01-b03; Sun Microsy 
Java Home             = /usr/java/j2sdk1.4.0_01/jre
  System Locale; Encod. = en_US; ISO-8859-1
  Home Dir; Current Dir = /home/kmiles; /home/kmiles
  IDE Install; User Dir = /opt/NetBeans IDE 3.4;
/home/kmiles/.netbeans/3.4
  CLASSPATH             = /opt/NetBeans IDE
3.4/lib/patches/openide-compat.jar:/opt/NetB  Boot
& ext classpath  =
/usr/java/j2sdk1.4.0_01/jre/lib/rt.jar:/usr/java/j2sdk1.4.0_01-------------------------------------------------------------------------------
[org.netbeans.core.modules] Use of
OpenIDE-Module-Class: Node in
org.netbeans.modules.de[org.netbeans.core.modules]
(Please use layer-based installation of objects
instead.)
[org.netbeans.core.modules] (See
http://www.netbeans.org/issues/show_bug.cgi?id=19609,
l[org.netbeans.core.modules] Use of
OpenIDE-Module-Class: Node in
org.netbeans.modules.j2[org.netbeans.core.modules]
(Please use layer-based installation of objects
instead.)
[org.netbeans.core.modules] (See
http://www.netbeans.org/issues/show_bug.cgi?id=19609,
lTurning on modules:
        org.netbeans.modules.properties/1 [1.8.1
200208222340]
        org.netbeans.modules.javahelp/1 [1.0.1
200208082340]
        org.netbeans.modules.text/1 [1.8.1
200208222340]
        org.netbeans.libs.xalan/1 [1.1.1 2.3.1]
        org.netbeans.modules.jarpackager/2 [1.10.1
200208222340]
        org.netbeans.modules.debugger.core/3
[2.2.1 200208222340]
        org.netbeans.modules.servletapi23/1 [1.2.1
200208222340]
        org.netbeans.modules.usersguide/1 [1.10.1
200208222340]
        org.netbeans.modules.image/1 [1.8.1
200208222340]
        org.apache.tools.ant.module/2 [2.10.1
200208222340]
        org.netbeans.modules.html/1 [1.9.1
200208222340]
        org.netbeans.modules.servletapi/1 [1.1.1
200208222340]
        org.openide/1 [2.23.1 200208222340]
        org.netbeans.modules.classfile/1 [1.6.1
200208222340]
        org.netbeans.api.java/1 [1.0.1 200208222340]
        org.netbeans.modules.clazz/1 [1.9.1
200208222340]
        org.netbeans.modules.schema2beans/1 [1.3.1
200208222340]
        org.netbeans.modules.jndi/1 [1.5.1
200208222340]
        org.netbeans.core/1 [1.4.1 200208082340]
        org.netbeans.modules.i18n/1 [1.10.1
200208222340]
        org.openidex.util/2 [2.3.1 200208222340]
        org.netbeans.core.windows/1 [1.0.1
200208222340]
        org.netbeans.modules.debugger.jpda/1
[1.10.1 200208222340]
        org.netbeans.libs.jaxp/1 [1.1.1 1.1.2]
        org.netbeans.modules.scripting/1 [1.5.1
200208222340]
        org.netbeans.modules.applet/1 [1.8.1
200208222340]
        org.netbeans.modules.httpserver/1 [1.9.1
200208222340]
        org.netbeans.core.ui/1 [1.0.1 200208222340]
        org.netbeans.core.execution/1 [1.0.1
200208222340]
        org.netbeans.modules.java/1 [1.11.1
200208222340]
        org.netbeans.modules.form/2 [1.8.1
200208222340]
        org.netbeans.modules.javadoc/1 [1.8.1
200208222340]
        org.netbeans.modules.j2eeserver/2 [1.4.1
200208222340]
        org.netbeans.modules.extbrowser/1 [0.4.1
200208222340]
        org.netbeans.modules.projects/1 [1.8.1
200208222340]
        org.netbeans.modules.editor/1 [1.9.1
200208222340]
        org.netbeans.modules.utilities/1 [1.8.1
200208222340]
        org.netbeans.modules.properties.syntax/1
[1.8.1200208222340]
        org.netbeans.modules.autoupdate/1 [2.2.1
200208222340]
        org.netbeans.modules.i18n.form/2 [1.9.1
200208222340]
        org.netbeans.modules.beans/1 [1.8.1
200208222340]
        org.netbeans.modules.rmi/1 [1.5.1
200208222340]
        org.netbeans.modules.vcscore/1 [1.6.1
200208222340]
        org.netbeans.api.xml/1 [1.0.1 200208222340]
        org.netbeans.modules.css/1 [0.6.1
200208222340]
        org.netbeans.core.compiler/1 [1.0.1
200208222340]
        org.netbeans.modules.xml.tax/1 [0.6.1
200208222340]
        org.netbeans.modules.web.core/1 [1.8.1
200208222340]
        org.netbeans.modules.diff/1 [1.4.1
200208222340]
        org.netbeans.modules.apisupport.lite/1
[0.3.1 200208222340]
        org.netbeans.modules.welcome/1 [1.2.1
200208222340]
        org.netbeans.core.ide/1 [1.0.1 200208222340]
        org.netbeans.modules.vcs.advanced/1 [1.6.1
200208222340]
        org.netbeans.modules.web.jspparser/1
[1.2.1 200208222340]
        org.netbeans.modules.vcs.profiles.vss/1
[1.0.1 200208222340]
        org.netbeans.modules.cvsclient/1 [1.5.1
200208222340]
        org.netbeans.modules.vcs.profiles.pvcs/1
[1.0.1200208222340]
        org.netbeans.modules.xml.core/1 [0.6.1
200208222340]
       
org.netbeans.modules.vcs.profiles.cvsprofiles/1
[1.0.1200208222340]
        org.netbeans.modules.xml.text/1 [0.6.1
200208222340]
       
org.netbeans.modules.web.tomcat.tomcat40/1[1.4.1200208222340]
        org.netbeans.modules.web.core.syntax/1
[1.9.1 200208222340]
        org.netbeans.modules.xml.catalog/1 [0.6.1
200208222340]
        org.netbeans.modules.xml.tools/1 [0.6.1
200208222340]
        org.netbeans.modules.xml.tree/1 [0.6.1
200208222340]
       
org.netbeans.modules.web.tomcat.tomcat40.autocompile/1
[1.2.1 200208222340]
        org.netbeans.modules.xml/2 [0.6.1
200208222340]
        org.netbeans.modules.xml.editor.coloring/2
[0.6.1 200208222340]
Starting system in full screen (MDI) UI mode.
*********** Exception occurred ************ at Sat
Jan 04 22:01:20 EST 2003
Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
        at
org.netbeans.modules.autoupdate.ModuleUpdate.manifestFromXML(ModuleUpdate.java:849)
        at
org.netbeans.modules.autoupdate.ModuleUpdate.readModuleUpdate(ModuleUpdate.java:234)
        at
org.netbeans.modules.autoupdate.XMLUpdates.processElement(XMLUpdates.java:388)
        at
org.netbeans.modules.autoupdate.XMLUpdates.buildStructures(XMLUpdates.java:335)
        at
org.netbeans.modules.autoupdate.XMLUpdates.access$800(XMLUpdates.java:41)
        at
org.netbeans.modules.autoupdate.XMLUpdates$2.run(XMLUpdates.java:184)
        at org.openide.util.Task.run(Task.java:136)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
Comment 1 akemr 2003-01-06 12:03:56 UTC
Looks like some .nbm file mas not correct manifest tag (in its
info.xml) Could attach/describe problematic .nbm? Thanks
Comment 2 Petr Hrebejk 2003-01-27 13:54:29 UTC
It really looks like bad manifest in a module. As no additional info
provided closing as works for me. Please reopen if you can provide the
.nbm which caused the problem.
Comment 3 Lukas Hasik 2003-07-30 12:22:00 UTC
no more info from reporter -> he should reopen.
verifyng as WFM
Comment 4 _ mihmax 2003-09-22 06:26:55 UTC
*** Issue 36215 has been marked as a duplicate of this issue. ***
Comment 5 _ mihmax 2003-09-22 06:32:16 UTC
Helmut Leininger recently raised the same problem on nbusers, see
issue 36215 for his ide.log.
Brief Summary about his IDE:
version 3.5.1 on Sun's JDK 1.4.2-b28, 
The Update Center fails whether for automatic updates or for manual
installation of downloaded modules.


2Helmut: Please attach some of the problematic .nbm's here, please, in
order for the appropriate developer to try and investigate the source
of a problem
Comment 6 johnzoet 2003-09-22 08:34:58 UTC
Problem happens again in Netbenas 3.5.1
Did not happen in Netbeans 3.5
Comment 7 hlein 2003-09-22 17:30:42 UTC
Created attachment 11689 [details]
.nbm that fits to the log for local installation
Comment 8 Lukas Hasik 2003-09-23 14:53:48 UTC
I used the same 351 build, the same jdk. I tryed to update from the
attached nbm and nothing happend... no NPE. I've got some IOE, I'll
attach it. 
What did you do that you receive the NPE ??? How often it happens ?
Everytime ? Sometimes ?
Comment 9 Lukas Hasik 2003-09-23 14:55:43 UTC
Created attachment 11691 [details]
IOE when updating - only in ide.log
Comment 10 hlein 2003-09-26 17:28:48 UTC
What I did to get the Error:
- start up NetBeans
- select Tools / Update Center (The wizard opens)
- click on Install Manually Downloaded Modeuls (the radio button is on
now)
- click Next
- Add the download file to Modules to Install 
- click Next - and here it is 
Comment 11 rkw 2003-10-31 23:28:00 UTC
Are you using Windows (or other non-default) LookAndFeel?
This is specified in ide.cfg. I was using WindowsLookAndFeel
and getting NullPointerException during updating and also
when using some IDE wizards (e.g. create new Class or Form).
The problems have disappeared after I reverted to the default
look and feel.
Comment 12 hlein 2003-11-01 14:40:33 UTC
I am using the default look and feel.

The contents of ide.cfg is:

-J-Xms24m -J-Xmx96m
-J-Xverify:none

Comment 13 Marian Mirilovic 2003-12-01 10:50:03 UTC
reassigne to Jirka - new owner of autoupdate
Comment 14 Jiri Rechtacek 2004-01-11 12:08:11 UTC
It works for me on 040106 build (also run with your parameters), I
close as worksforme. Reopen if you are able to reproduce with dev
build (optionally with 3.6 when will be released).
Comment 15 hlein 2004-01-11 15:24:56 UTC
Problem still there with build 200401081900.

From Update center:
Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at
org.netbeans.modules.autoupdate.ModuleUpdate.manifestFromXML(ModuleUpdate.java:916)
	at
org.netbeans.modules.autoupdate.ModuleUpdate.readRemoteInfo(ModuleUpdate.java:330)
	at
org.netbeans.modules.autoupdate.ModuleUpdate.readModuleUpdate(ModuleUpdate.java:310)
	at
org.netbeans.modules.autoupdate.ModuleUpdate.getModuleUpdate(ModuleUpdate.java:172)
	at
org.netbeans.modules.autoupdate.XMLUpdates.processElement(XMLUpdates.java:405)
	at
org.netbeans.modules.autoupdate.XMLUpdates.buildStructures(XMLUpdates.java:353)
	at
org.netbeans.modules.autoupdate.XMLUpdates.access$800(XMLUpdates.java:38)
	at org.netbeans.modules.autoupdate.XMLUpdates$2.run(XMLUpdates.java:188)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:678)


Manual install:
java.lang.NullPointerException
	at
org.netbeans.modules.autoupdate.ModuleUpdate.manifestFromXML(ModuleUpdate.java:916)
	at
org.netbeans.modules.autoupdate.ModuleUpdate.readRemoteInfo(ModuleUpdate.java:330)
	at
org.netbeans.modules.autoupdate.ModuleUpdate.createFromDistribution(ModuleUpdate.java:479)
	at
org.netbeans.modules.autoupdate.ModuleUpdate.getModuleUpdate(ModuleUpdate.java:234)
	at
org.netbeans.modules.autoupdate.XMLUpdates.checkDownloadedModules(XMLUpdates.java:268)
	at
org.netbeans.modules.autoupdate.Wizard$SelectPanel.end(Wizard.java:900)
	at org.netbeans.modules.autoupdate.Wizard.nextPanel(Wizard.java:306)
	at
org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1113)
	at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
	at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
	at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 16 Jiri Rechtacek 2004-02-09 16:55:30 UTC
It's still not reproducible on my machine. I tried for modules which
meet all dependency and also w/o them. Both cases works correctly. We
are in an deadlock :-(( Are you using same NBM as attached? Are you
use NB build with fresh userdir?
Comment 17 Lukas Hasik 2004-02-09 17:09:37 UTC
hlein:
to move forward - could you please attach ide.log file (can be found
in <your_userdir>/system/ide.log
Comment 18 hlein 2004-02-09 18:20:02 UTC
Hi,

I changed to NetBeans 3.6 Beta and the problem does not appear any more.

Sorry, I cannot provide you the "old" logs.

Regards
Comment 19 Lukas Hasik 2004-02-09 18:44:37 UTC
ok, closing as worksforme, thanx for your time, hlein.
feel free reopen if problem reappears.
Comment 20 Marian Mirilovic 2004-03-15 17:00:15 UTC
verified