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.
In my ongoing effort of setting up a oc4j-container with a 10.1.2 oc4j in netbeans I now have this problem: INFORMATIONAL *********** Exception occurred ************ at 1:56 PM on Apr 2, 2007 java.lang.NullPointerException [catch] at org.netbeans.modules.j2ee.oc4j.util.OC4JPluginUtils.isUserActivated(OC4JPluginUtils.java:219) at org.netbeans.modules.j2ee.oc4j.ui.wizards.AddServerPropertiesPanel.isValid(AddServerPropertiesPanel.java:53) at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:629) at org.netbeans.modules.j2ee.deployment.impl.ui.wizard.AddServerInstanceWizard.updateState(AddServerInstanceWizard.java:72) at org.openide.WizardDescriptor.goToNextStep(WizardDescriptor.java:804) at org.openide.WizardDescriptor.access$1000(WizardDescriptor.java:76) at org.openide.WizardDescriptor$Listener$1.run(WizardDescriptor.java:1635) at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1167) at org.openide.WizardDescriptor.access$1100(WizardDescriptor.java:76) at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1653) at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source) ... the plugin seems to be unable to find the user in it (xpath-query string wrong?). Btw. I had to rename "jazn-data.xml" to "system-jazn-data.xml" as the plugin looks for this name.
Created attachment 40255 [details] system-jazn-data.xml
Hi reporter, thanks for your help. Does it mean that system-jazn-data.xml file was missing on your OC4J installation? If yes, the fix would be easy since when the system-jazn-data.xml isn't located in installation we can use jazn-data.xml instead. However, I'm curious why this file is missing in your config.
no, the bug is about the oc4j-plugin failing to find the user-data in the jazn-data.xml. I renamed it.
I guess that issue would be that in attached file missing oc4j-administrators role. Try to add this role in your file: <role> <name>oc4j-administrators</name> <display-name>OC4J Admin Role</display-name> <description>Administrative role for OC4J</description> <guid>56903CE08B6611DBBFE67D586EEB733F</guid> <members> <member> <type>user</type> <name>admin</name> </member> </members> </role> and the server registration should work.
Michale, fix would be merge users in oc4j-administrators and administrators group.
I added this change and retestet, now the plugin seems to find my user "admin" but the exception still occurs and if I enter the admin password and click on "initialize" and popup comes up asking for an "oc4jadmin" password (I don't have a user with this name) and a lot more NullPointerExceptions with the stack above come up.
It's due to you don't have oracle's default configuration. Your server is customized. I'll implement same changes to avoid these exceptions.
Thanks for your help. It seems that plugin assumes that oc4jadmin is created in server by default but this isn't valid for your configuration where you use admin instead of oc4jadmin.