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 44302 - Modual J2eeSupoport (JSR88/77)
Summary: Modual J2eeSupoport (JSR88/77)
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jan Chalupa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-03 17:43 UTC by unioncanal
Modified: 2004-06-03 18: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 unioncanal 2004-06-03 17:43:09 UTC
Module: J2eeSupport
Version: 20040512-0202
Build Number: 20040512-0202
Display Category: J2EE Support

O/S: W2K

I have the correct version of Java and the 
SunApplication Server.

I added in the J2EEE module. I did not switch the 
server on - opting to continue to use standard 
version of tomcat issued with 3.6 for the time 
being. Tomcat starts fine. However, on a re-
deploy of the JSP system I am working on, the IDE 
cannot find the Tomcat configuration. 

I then opted to disable the J2EE support module. 
I disable the module and close down the IDE. The 
IDE log gives the following information

INFORMATIONAL *********** Exception occurred 
************ at Thu Jun 03 18:07:41 CEST 2004
java.lang.NullPointerException
	at 
org.netbeans.modules.j2ee.deployment.impl.ServerIn
stance.getTargetModuleIDResolver
(ServerInstance.java:208)
	at 
org.netbeans.modules.j2ee.deployment.impl.TargetSe
rver.checkUndeployForSharedReferences
(TargetServer.java:217)
	at 
org.netbeans.modules.j2ee.deployment.impl.TargetSe
rver.checkUndeployForSameReferences
(TargetServer.java:204)
	at 
org.netbeans.modules.j2ee.deployment.impl.TargetSe
rver.processLastTargetModules
(TargetServer.java:306)
	at 
org.netbeans.modules.j2ee.deployment.impl.TargetSe
rver.init(TargetServer.java:122)
	at 
org.netbeans.modules.j2ee.deployment.impl.TargetSe
rver.startTargets(TargetServer.java:377)
[catch] at 
org.netbeans.modules.j2ee.deployment.execution.Ser
verExecutor.doDeploy(ServerExecutor.java:151)
	at 
org.netbeans.modules.j2ee.deployment.execution.Ser
verExecutor.access$000(ServerExecutor.java:49)
	at 
org.netbeans.modules.j2ee.deployment.execution.Ser
verExecutor$2.run(ServerExecutor.java:118)
	at org.openide.util.Task.run
(Task.java:136)
	at 
org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
	at 
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Server tomcat:home=jakarta-tomcat-
5.0.19:base=jakarta-tomcat-5.0.19_base stopped


On re-starting the IDE I get the following error.


java.lang.IllegalArgumentException: 
java.lang.reflect.InvocationTargetException
	at 
org.openide.util.SharedClassObject.findObject
(SharedClassObject.java:452)
	at 
org.netbeans.core.modules.ManifestSection.createIn
stance(ManifestSection.java:173)
	at 
org.netbeans.core.modules.ManifestSection.getInsta
nce(ManifestSection.java:191)
	at org.netbeans.core.LoaderPoolNode.add
(LoaderPoolNode.java:144)
	at 
org.netbeans.core.modules.NbInstaller.loadLoaderSe
ction(NbInstaller.java:515)
	at 
org.netbeans.core.modules.NbInstaller.loadSections
(NbInstaller.java:411)
	at 
org.netbeans.core.modules.NbInstaller.load
(NbInstaller.java:227)
	at 
org.netbeans.core.modules.ModuleManager.enable
(ModuleManager.java:861)
	at 
org.netbeans.core.modules.ModuleList.installNew
(ModuleList.java:552)
	at 
org.netbeans.core.modules.ModuleList.trigger
(ModuleList.java:487)
	at 
org.netbeans.core.modules.ModuleSystem.scanForNewA
ndRestore(ModuleSystem.java:302)
	at org.netbeans.core.NonGui.run
(NonGui.java:348)
	at org.netbeans.core.Main.run
(Main.java:294)
	at 
org.netbeans.core.NbTopManager.getNbTopManager
(NbTopManager.java:233)
	at org.netbeans.core.NbTopManager.get
(NbTopManager.java:188)
	at org.netbeans.core.Main.start
(Main.java:485)
	at org.netbeans.core.TopThreadGroup.run
(TopThreadGroup.java:90)
[catch] at java.lang.Thread.run(Thread.java:534)
==>
java.lang.reflect.InvocationTargetException
	at 
sun.reflect.NativeConstructorAccessorImpl.newInsta
nce0(Native Method)
	at 
sun.reflect.NativeConstructorAccessorImpl.newInsta
nce(NativeConstructorAccessorImpl.java:39)
	at 
sun.reflect.DelegatingConstructorAccessorImpl.newI
nstance(DelegatingConstructorAccessorImpl.java:27)
	at 
java.lang.reflect.Constructor.newInstance
(Constructor.java:274)
	at 
org.openide.util.SharedClassObject.createInstanceP
rivileged(SharedClassObject.java:532)
	at 
org.openide.util.SharedClassObject$SetAccessibleAc
tion.run(SharedClassObject.java:907)
	at 
java.security.AccessController.doPrivileged
(Native Method)
	at 
org.openide.util.SharedClassObject.findObject
(SharedClassObject.java:449)
	at 
org.netbeans.core.modules.ManifestSection.createIn
stance(ManifestSection.java:173)
	at 
org.netbeans.core.modules.ManifestSection.getInsta
nce(ManifestSection.java:191)
	at org.netbeans.core.LoaderPoolNode.add
(LoaderPoolNode.java:144)
	at 
org.netbeans.core.modules.NbInstaller.loadLoaderSe
ction(NbInstaller.java:515)
	at 
org.netbeans.core.modules.NbInstaller.loadSections
(NbInstaller.java:411)
	at 
org.netbeans.core.modules.NbInstaller.load
(NbInstaller.java:227)
	at 
org.netbeans.core.modules.ModuleManager.enable
(ModuleManager.java:861)
	at 
org.netbeans.core.modules.ModuleList.installNew
(ModuleList.java:552)
	at 
org.netbeans.core.modules.ModuleList.trigger
(ModuleList.java:487)
	at 
org.netbeans.core.modules.ModuleSystem.scanForNewA
ndRestore(ModuleSystem.java:302)
	at org.netbeans.core.NonGui.run
(NonGui.java:348)
	at org.netbeans.core.Main.run
(Main.java:294)
	at 
org.netbeans.core.NbTopManager.getNbTopManager
(NbTopManager.java:233)
	at org.netbeans.core.NbTopManager.get
(NbTopManager.java:188)
	at org.netbeans.core.Main.start
(Main.java:485)
	at org.netbeans.core.TopThreadGroup.run
(TopThreadGroup.java:90)
	at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalStateException: 
java.lang.NullPointerException from 
org.netbeans.modules.j2ee.deployment.config.Config
DataLoader@633d51
	at 
org.openide.util.SharedClassObject$DataEntry.tryTo
Initialize(SharedClassObject.java:834)
	at 
org.openide.util.SharedClassObject$DataEntry.getMa
p(SharedClassObject.java:763)
	at 
org.openide.util.SharedClassObject.putProperty
(SharedClassObject.java:248)
	at org.openide.loaders.DataLoader.<init>
(DataLoader.java:93)
	at 
org.openide.loaders.MultiFileLoader.<init>
(MultiFileLoader.java:46)
	at 
org.netbeans.modules.j2ee.deployment.config.Config
DataLoader.<init>(ConfigDataLoader.java:48)
[catch] ... 25 more
==>
java.lang.IllegalStateException: 
java.lang.NullPointerException from 
org.netbeans.modules.j2ee.deployment.config.Config
DataLoader@633d51
	at 
org.openide.util.SharedClassObject$DataEntry.tryTo
Initialize(SharedClassObject.java:834)
	at 
org.openide.util.SharedClassObject$DataEntry.getMa
p(SharedClassObject.java:763)
	at 
org.openide.util.SharedClassObject.putProperty
(SharedClassObject.java:248)
	at org.openide.loaders.DataLoader.<init>
(DataLoader.java:93)
	at 
org.openide.loaders.MultiFileLoader.<init>
(MultiFileLoader.java:46)
	at 
org.netbeans.modules.j2ee.deployment.config.Config
DataLoader.<init>(ConfigDataLoader.java:48)
	at 
sun.reflect.NativeConstructorAccessorImpl.newInsta
nce0(Native Method)
	at 
sun.reflect.NativeConstructorAccessorImpl.newInsta
nce(NativeConstructorAccessorImpl.java:39)
	at 
sun.reflect.DelegatingConstructorAccessorImpl.newI
nstance(DelegatingConstructorAccessorImpl.java:27)
	at 
java.lang.reflect.Constructor.newInstance
(Constructor.java:274)
	at 
org.openide.util.SharedClassObject.createInstanceP
rivileged(SharedClassObject.java:532)
	at 
org.openide.util.SharedClassObject$SetAccessibleAc
tion.run(SharedClassObject.java:907)
	at 
java.security.AccessController.doPrivileged
(Native Method)
	at 
org.openide.util.SharedClassObject.findObject
(SharedClassObject.java:449)
	at 
org.netbeans.core.modules.ManifestSection.createIn
stance(ManifestSection.java:173)
	at 
org.netbeans.core.modules.ManifestSection.getInsta
nce(ManifestSection.java:191)
	at org.netbeans.core.LoaderPoolNode.add
(LoaderPoolNode.java:144)
	at 
org.netbeans.core.modules.NbInstaller.loadLoaderSe
ction(NbInstaller.java:515)
	at 
org.netbeans.core.modules.NbInstaller.loadSections
(NbInstaller.java:411)
	at 
org.netbeans.core.modules.NbInstaller.load
(NbInstaller.java:227)
	at 
org.netbeans.core.modules.ModuleManager.enable
(ModuleManager.java:861)
	at 
org.netbeans.core.modules.ModuleList.installNew
(ModuleList.java:552)
	at 
org.netbeans.core.modules.ModuleList.trigger
(ModuleList.java:487)
	at 
org.netbeans.core.modules.ModuleSystem.scanForNewA
ndRestore(ModuleSystem.java:302)
	at org.netbeans.core.NonGui.run
(NonGui.java:348)
	at org.netbeans.core.Main.run
(Main.java:294)
	at 
org.netbeans.core.NbTopManager.getNbTopManager
(NbTopManager.java:233)
	at org.netbeans.core.NbTopManager.get
(NbTopManager.java:188)
	at org.netbeans.core.Main.start
(Main.java:485)
	at org.netbeans.core.TopThreadGroup.run
(TopThreadGroup.java:90)
[catch] at java.lang.Thread.run(Thread.java:534)
==>
java.lang.NullPointerException
	at 
org.netbeans.modules.j2ee.deployment.config.Config
DataLoader.checkCache(ConfigDataLoader.java:177)
	at 
org.netbeans.modules.j2ee.deployment.config.Config
DataLoader.initialize(ConfigDataLoader.java:61)
	at 
org.openide.util.SharedClassObject$DataEntry.tryTo
Initialize(SharedClassObject.java:831)
	at 
org.openide.util.SharedClassObject$DataEntry.getMa
p(SharedClassObject.java:763)
	at 
org.openide.util.SharedClassObject.putProperty
(SharedClassObject.java:248)
	at org.openide.loaders.DataLoader.<init>
(DataLoader.java:93)
	at 
org.openide.loaders.MultiFileLoader.<init>
(MultiFileLoader.java:46)
	at 
org.netbeans.modules.j2ee.deployment.config.Config
DataLoader.<init>(ConfigDataLoader.java:48)
	at 
sun.reflect.NativeConstructorAccessorImpl.newInsta
nce0(Native Method)
	at 
sun.reflect.NativeConstructorAccessorImpl.newInsta
nce(NativeConstructorAccessorImpl.java:39)
	at 
sun.reflect.DelegatingConstructorAccessorImpl.newI
nstance(DelegatingConstructorAccessorImpl.java:27)
	at 
java.lang.reflect.Constructor.newInstance
(Constructor.java:274)
	at 
org.openide.util.SharedClassObject.createInstanceP
rivileged(SharedClassObject.java:532)
	at 
org.openide.util.SharedClassObject$SetAccessibleAc
tion.run(SharedClassObject.java:907)
	at 
java.security.AccessController.doPrivileged
(Native Method)
	at 
org.openide.util.SharedClassObject.findObject
(SharedClassObject.java:449)
	at 
org.netbeans.core.modules.ManifestSection.createIn
stance(ManifestSection.java:173)
	at 
org.netbeans.core.modules.ManifestSection.getInsta
nce(ManifestSection.java:191)
	at org.netbeans.core.LoaderPoolNode.add
(LoaderPoolNode.java:144)
	at 
org.netbeans.core.modules.NbInstaller.loadLoaderSe
ction(NbInstaller.java:515)
	at 
org.netbeans.core.modules.NbInstaller.loadSections
(NbInstaller.java:411)
	at 
org.netbeans.core.modules.NbInstaller.load
(NbInstaller.java:227)
	at 
org.netbeans.core.modules.ModuleManager.enable
(ModuleManager.java:861)
	at 
org.netbeans.core.modules.ModuleList.installNew
(ModuleList.java:552)
	at 
org.netbeans.core.modules.ModuleList.trigger
(ModuleList.java:487)
	at 
org.netbeans.core.modules.ModuleSystem.scanForNewA
ndRestore(ModuleSystem.java:302)
	at org.netbeans.core.NonGui.run
(NonGui.java:348)
	at org.netbeans.core.Main.run
(Main.java:294)
	at 
org.netbeans.core.NbTopManager.getNbTopManager
(NbTopManager.java:233)
	at org.netbeans.core.NbTopManager.get
(NbTopManager.java:188)
	at org.netbeans.core.Main.start
(Main.java:485)
	at org.netbeans.core.TopThreadGroup.run
(TopThreadGroup.java:90)
[catch] at java.lang.Thread.run(Thread.java:534)
Comment 1 unioncanal 2004-06-03 18:41:05 UTC
This is not a bug... its a "D.P.S." (Dumb Programmer Syndrome)... I 
had not noticed when the modual installed, it had set the J2EE Server 
as the default server. Hence the first problem. 

On a re-start setting Tomcat back to the detault server resolved the 
issue... All restarts OK.