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 202363 - NullPointerException at java.lang.StringBuilder.<init>
Summary: NullPointerException at java.lang.StringBuilder.<init>
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 14:35 UTC by Jiri Skrivanek
Modified: 2011-10-03 06:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181237


Attachments
stacktrace (8.16 KB, text/plain)
2011-09-20 14:35 UTC, Jiri Skrivanek
Details
File causing the failure (2.79 KB, text/xml)
2011-09-29 08:44 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2011-09-20 14:35:22 UTC
Build: NetBeans IDE Dev (Build 201109190600)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows XP

User Comments:
jskrivanek: It is not possible to create message driven bean with WebLogic server. To reporduce:
- create EJB project with WebLogic server
- right-click project node and choose New|Message-driven Bean and exception is thrown




Stacktrace: 
java.lang.NullPointerException
   at java.lang.StringBuilder.<init>(StringBuilder.java:109)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.mdb.MessageDestinationUiSupport$MessageDestinationListCellRenderer.getListCellRendererComponent(MessageDestinationUiSupport.java:311)
   at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1361)
   at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1311)
   at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.java:2623)
   at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
Comment 1 Jiri Skrivanek 2011-09-20 14:35:27 UTC
Created attachment 110918 [details]
stacktrace
Comment 2 Martin Fousek 2011-09-21 09:11:46 UTC
The wizard got existing MessageDestination from WebLogic where md.getName() returns null. Reassigning to phejl - I think that the fix should be done on WebLogic side.
Comment 3 Petr Hejl 2011-09-24 17:44:38 UTC
Can't reproduce. Please specify the server version and domain configuration.
Comment 4 Jiri Skrivanek 2011-09-27 11:18:24 UTC
<Version: WebLogic Server 10.3.4.0  Fri Dec 17 20:47:33 PST 2010 1384255 >
Comment 5 Petr Hejl 2011-09-27 14:23:08 UTC
Hmmm, I still can't reproduce please send me link to the package you downloaded. Possibly with domain creation steps if applicable.
Comment 6 Jiri Skrivanek 2011-09-29 08:44:27 UTC
Created attachment 111297 [details]
File causing the failure

It fails with an old WebLogic installation and I am not sure which package I used to install it. But as I debugged it it fails because jndi-name attribute is not defined for exampleTopic in attached configuration. Then WLMessageDestination.jndiName is null and it causes the exception. The file is stored here

"C:\Oracle\Middleware\wlserver_10.3\samples\domains\wl_server\config\jms\examples-jms.xml"
Comment 7 Martin Fousek 2011-09-30 08:54:05 UTC
You will know how much is valid issue to use the sample domain wl_server.

Steps to reproduce:
1, Downloaded
http://download.oracle.com/otn/nt/middleware/11g/wls/1035/wls1035_generic.jar
2, Installation:
a) new Middleware home
b) custom configuration and add also WL examples to install
c) next-ing to installation (just custom JDK) :)
3, Without running quickstart
5, Started NB IDE
6, added this new server to the IDE as domain choosed sample: 
/home/marfous/Programs/AppServers/Middleware4/wlserver_10.3/samples/domains/wl_server
7, create EJB project with set this server
8, invoke new file -> MDB
->exception appears
Comment 8 Petr Hejl 2011-09-30 10:00:04 UTC
Fixed in web-main 89ab19ad6020.

Thanks.
Comment 9 Quality Engineering 2011-10-01 14:02:15 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/89ab19ad6020
User: phejl@netbeans.org
Log: #202363 NullPointerException at java.lang.StringBuilder.<init>