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 76339 - [55cat] Nullpointer if no web.xml available in portlet
Summary: [55cat] Nullpointer if no web.xml available in portlet
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 5.x
Hardware: Other Linux
: P3 blocker (vote)
Assignee: Libor Kotouc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-13 19:01 UTC by piero
Modified: 2006-10-09 10:21 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 piero 2006-05-13 19:01:10 UTC
[ JDK VERSION : 1.5.0_06 ]

NetBeans warns about removing the web.xml file 
everytime you open/close/edit the project. It is 
required to do so if you want to develop a 
JSR168 portlet.

First time you open the project it throws a null 
pointer, secound time it just warns and opens 
the project.

Not sure if the nullpointer is a jboss issue and 
if these warnings are some kind of "feature"...

*********** Nullpointer ***********

java.lang.NullPointerException
        at 
org.netbeans.modules.j2ee.jboss4.config.WarDeploymentConfiguration.init(WarDeploymentConfiguration.java:88)
        at 
org.netbeans.modules.j2ee.jboss4.config.ConfigurationSupportImpl.initConfiguration(ConfigurationSupportImpl.java:77)
        at 
org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.getDeploymentConfiguration(ConfigSupportImpl.java:365)
        at 
org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.ensureConfigurationReady(ConfigSupportImpl.java:191)
        at 
org.netbeans.modules.web.project.WebProject$ProjectOpenedHookImpl.projectOpened(WebProject.java:772)
        at 
org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:50)
        at 
org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:572)
        at 
org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:613)
        at 
org.netbeans.modules.project.ui.OpenProjectList.doOpen(OpenProjectList.java:288)
        at 
org.netbeans.modules.project.ui.OpenProjectList.access$000
(OpenProjectList.java:71)
        at 
org.netbeans.modules.project.ui.OpenProjectList$1.run(OpenProjectList.java:191)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
[catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Comment 1 Radko Najman 2006-07-26 12:52:20 UTC
Reassigning to jboss plugin to evaluate the NPE.
Comment 2 Libor Kotouc 2006-08-28 16:36:21 UTC
I can see some warning dialog...The code throwing the reported exception is not
called anymore in case of a missing web.xml.

Please reopen if you can reproduce with some of the latest Nb5.5 daily builds.
Comment 3 Libor Kotouc 2006-08-29 11:26:04 UTC
I have finally found one exception related to this issue after restarting the IDE.

Comment 4 Libor Kotouc 2006-08-29 11:26:20 UTC
Fixed.

Checking in WarDeploymentConfiguration.java;
/cvs/serverplugins/jboss4/src/org/netbeans/modules/j2ee/jboss4/config/WarDeploymentConfiguration.java,v
 <--  WarDeploymentConfiguration.java
new revision: 1.2.8.2.2.4; previous revision: 1.2.8.2.2.3
done
Comment 5 Michal Mocnak 2006-10-09 10:21:11 UTC
Verified