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 199861 - NullPointerException: The delegate parameter cannot be null
Summary: NullPointerException: The delegate parameter cannot be null
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 7.0.1
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 204622 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-02 22:56 UTC by emiddio
Modified: 2011-11-23 15:33 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 179674


Attachments
stacktrace (1.80 KB, text/plain)
2011-07-02 22:56 UTC, emiddio
Details
stacktrace (1.80 KB, text/plain)
2011-08-18 15:22 UTC, adam_myatt
Details
stacktrace (1.80 KB, text/plain)
2011-08-18 17:55 UTC, adam_myatt
Details
stacktrace (1.80 KB, text/plain)
2011-09-12 21:18 UTC, isantolin
Details
stacktrace (1.80 KB, text/plain)
2011-09-13 15:16 UTC, isantolin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2011-07-02 22:56:31 UTC
Build: NetBeans IDE 7.0.1 RC1 (Build 201106222100)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException: The delegate parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:89)
   at org.netbeans.modules.j2ee.deployment.plugins.spi.support.ProxyOptionalFactory.getDelegate(ProxyOptionalFactory.java:168)
   at org.netbeans.modules.j2ee.deployment.plugins.spi.support.ProxyOptionalFactory.isCommonUIRequired(ProxyOptionalFactory.java:95)
   at org.netbeans.modules.j2ee.deployment.impl.bridge.ServerWizardProviderLookup.createBridgingInstance(ServerWizardProviderLookup.java:69)
   at org.netbeans.modules.j2ee.deployment.impl.bridge.ServerWizardProviderLookup.createBridgingInstance(ServerWizardProviderLookup.java:52)
   at org.netbeans.modules.j2ee.deployment.impl.bridge.AbstractServerLookup.stateChanged(AbstractServerLookup.java:160)
Comment 1 emiddio 2011-07-02 22:56:35 UTC
Created attachment 109216 [details]
stacktrace
Comment 2 Exceptions Reporter 2011-08-09 10:12:43 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=179674
Comment 3 adam_myatt 2011-08-18 15:22:31 UTC
Created attachment 110091 [details]
stacktrace
Comment 4 adam_myatt 2011-08-18 17:55:31 UTC
Created attachment 110093 [details]
stacktrace
Comment 5 isantolin 2011-09-12 21:18:01 UTC
Created attachment 110677 [details]
stacktrace

on startup
Comment 6 Exceptions Reporter 2011-09-12 21:18:13 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=179674
Comment 7 Petr Hejl 2011-09-13 09:37:34 UTC
The whole thing looks like problem with update. Before this particular exception there is instantiating exception in the log. The only explanation I have for this is there is old layer.xml used, but new classes. So non existent method is called.

I'm not able to reproduce this so far :/
Comment 8 isantolin 2011-09-13 15:16:27 UTC
Created attachment 110716 [details]
stacktrace
Comment 9 Jiri Rechtacek 2011-09-14 12:52:32 UTC
(In reply to comment #7)
> The whole thing looks like problem with update. Before this particular
> exception there is instantiating exception in the log. The only explanation I
> have for this is there is old layer.xml used, but new classes. So non existent
> method is called.
> 
> I'm not able to reproduce this so far :/

Petre, I'm sorry I haven't seen any reason why update is involved here, no suspected messages or steps containing updates. I have no place what I should fix. Try find some of reporters who can reproduce it and ask him for steps causing it.

Btw, what does mean a warning below? Could this be a cause of problem? 

WARNING [glassfish-eecommon]: Cannot identify version of target application server.  Defaulting to 'GlassFish Server 3.0' for descriptor files.
INFO [org.netbeans.modules.j2ee.sun.api.restricted.ResourceUtils]: investigate
java.lang.Exception
	at org.netbeans.modules.j2ee.sun.api.restricted.ResourceUtils.getDeploymentManager(ResourceUtils.java:1129)
...
Comment 10 Petr Hejl 2011-09-14 14:22:34 UTC
For the record. The real cause is following:

java.lang.InstantiationException: org.netbeans.modules.tomcat5.ide.OptionalFactory.create50
     at org.netbeans.core.startup.layers.BinaryFS$AttrImpl.methodValue(core.jar:670)
     at org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(core.jar:556)
     at org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(core.jar:402)
     at org.openide.filesystems.MultiFileObject.getAttribute(org-openide-filesystems.jar:911)
     at org.openide.filesystems.MultiFileObject.getAttribute(org-openide-filesystems.jar:844)
     at org.openide.filesystems.MultiFileObject.getAttribute(org-openide-filesystems.jar:907)
     at org.openide.filesystems.MultiFileObject.getAttribute(org-openide-filesystems.jar:844)
     at org.openide.filesystems.MultiFileObject.getAttribute(org-openide-filesystems.jar:772)
     at org.netbeans.core.startup.layers.BinaryFS$FileMap.get(core.jar:981)
     at org.netbeans.modules.j2ee.deployment.plugins.spi.support.ProxyOptionalFactory.getDelegate(org-netbeans-modules-j2eeserver.jar:167)
     at org.netbeans.modules.j2ee.deployment.plugins.spi.support.ProxyOptionalFactory.isCommonUIRequired(org-netbeans-modules-j2eeserver.jar:95)
     at org.netbeans.modules.j2ee.deployment.impl.bridge.ServerWizardProviderLookup.createBridgingInstance(org-netbeans-modules-j2eeserver.jar:69)
     at org.netbeans.modules.j2ee.deployment.impl.bridge.ServerWizardProviderLookup.createBridgingInstance(org-netbeans-modules-j2eeserver.jar:52)
     at org.netbeans.modules.j2ee.deployment.impl.bridge.AbstractServerLookup.stateChanged(org-netbeans-modules-j2eeserver.jar:160)
     at org.netbeans.modules.j2ee.deployment.impl.bridge.AbstractServerLookup.init(org-netbeans-modules-j2eeserver.jar:137)
     at org.netbeans.modules.j2ee.deployment.impl.bridge.AbstractServerLookup.beforeLookup(org-netbeans-modules-j2eeserver.jar:117)
     at org.openide.util.lookup.AbstractLookup$R.beforeLookup(org-openide-util-lookup.jar:1126)
     at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(org-openide-util-lookup.jar:676)
     at org.openide.util.lookup.ProxyLookup$R.beforeLookup(org-openide-util-lookup.jar:687)
     at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(org-openide-util-lookup.jar:676)
     at org.openide.util.lookup.ProxyLookup$R.computeResult(org-openide-util-lookup.jar:526)
     at org.openide.util.lookup.ProxyLookup$R.allItems(org-openide-util-lookup.jar:517)
     at org.netbeans.modules.server.ServerRegistry.getInstance(org-netbeans-modules-server.jar:84)
     at org.netbeans.modules.server.ui.node.RootNode$ChildFactory$1.run(org-netbeans-modules-server.jar:185)
     at org.openide.util.RequestProcessor$Task.run(org-openide-util.jar:1424)
     at org.openide.util.RequestProcessor$Processor.run(org-openide-util.jar:1968)
Comment 11 Petr Hejl 2011-09-14 14:28:50 UTC
The problem is there is no org.netbeans.modules.tomcat5.ide.OptionalFactory.create50 in both layer.xml and OptionalFactory class.
Comment 12 Petr Hejl 2011-09-16 14:12:42 UTC
Perhaps this is the issue with old plugin portal module for Tomcat 5. Reporters can you confirm that? The issue should disappear when this module is uninstalled in 7.1 (Tomcat 5 should be available even without this module in 7.1).

I'm working on a fix for 7.1.
Comment 13 Petr Hejl 2011-09-20 13:30:23 UTC
Should be fixed in web-main 85a82c7a9e82.
Comment 14 Quality Engineering 2011-09-21 08:09:59 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/85a82c7a9e82
User: phejl@netbeans.org
Log: #199861 NullPointerException: The delegate parameter cannot be null
Comment 15 Petr Hejl 2011-11-04 09:46:17 UTC
*** Bug 204622 has been marked as a duplicate of this bug. ***