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 207419 - NullPointerException at org.netbeans.modules.j2ee.weblogic9.deploy.WLJpa2SwitchSupport.isEnabledViaSmartUpdate
Summary: NullPointerException at org.netbeans.modules.j2ee.weblogic9.deploy.WLJpa2Swit...
Status: RESOLVED DUPLICATE of bug 209400
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 01:45 UTC by johnsonlau
Modified: 2012-03-21 11:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184492


Attachments
stacktrace (9.54 KB, text/plain)
2012-01-18 01:45 UTC, johnsonlau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnsonlau 2012-01-18 01:45:08 UTC
Build: NetBeans IDE Dev (Build 201201070601)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.4-b02-402, Java(TM) SE Runtime Environment, 1.6.0_29-b11-402-11M3610
OS: Mac OS X

User Comments:
johnsonlau: Add a new Oracle WebLogic server instance.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.weblogic9.deploy.WLJpa2SwitchSupport.isEnabledViaSmartUpdate(WLJpa2SwitchSupport.java:324)
   at org.netbeans.modules.j2ee.weblogic9.deploy.WLJpa2SwitchSupport.isEnabledViaSmartUpdate(WLJpa2SwitchSupport.java:316)
   at org.netbeans.modules.j2ee.weblogic9.ui.wizard.ServerPropertiesVisual.updateJpa2Button(ServerPropertiesVisual.java:339)
   at org.netbeans.modules.j2ee.weblogic9.ui.wizard.WLInstantiatingIterator.setServerRoot(WLInstantiatingIterator.java:244)
   at org.netbeans.modules.j2ee.weblogic9.ui.wizard.ServerLocationVisual.valid(ServerLocationVisual.java:141)
   at org.netbeans.modules.j2ee.weblogic9.ui.wizard.ServerLocationPanel.isValid(ServerLocationPanel.java:84)
Comment 1 johnsonlau 2012-01-18 01:45:10 UTC
Created attachment 114982 [details]
stacktrace
Comment 2 the_patcher 2012-03-05 19:56:46 UTC
I had the same problem with netbeans 7.1 and 7.1.1 on Windows XP with JDK 1.7.0_03. It looks like it is not possible to add more than one instance of WLS.
The problem might be with the config file: weblogic9.properties in %USER_PROFILE%\.netbeans\7.1\config\Preferences\org\netbeans\modules\j2ee\

Once I deleted this file, I was able to add a new WLS instance, but not a second one. Removing a WLS instance through the netbeans IDE GUI does not removes this file, so to add a new WLS instance, you have to remove this file too.
Comment 3 Exceptions Reporter 2012-03-13 17:50:15 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=184492
Comment 4 Petr Hejl 2012-03-21 11:50:09 UTC

*** This bug has been marked as a duplicate of bug 209400 ***