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>
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Petr Hejl
Depends on:
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

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

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

   at java.lang.StringBuilder.<init>(
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.mdb.MessageDestinationUiSupport$MessageDestinationListCellRenderer.getListCellRendererComponent(
   at javax.swing.plaf.basic.BasicListUI.updateLayoutState(
   at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(
   at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(
   at javax.swing.DefaultListSelectionModel.fireValueChanged(
Comment 1 Jiri Skrivanek 2011-09-20 14:35:27 UTC
Created attachment 110918 [details]
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  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

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
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: 
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.

Comment 9 Quality Engineering 2011-10-01 14:02:15 UTC
Integrated into 'main-golden'
Log: #202363 NullPointerException at java.lang.StringBuilder.<init>