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 42105 - NPE occurs after cut and paste rs-ref-name, jndi-name with resouce-ref
Summary: NPE occurs after cut and paste rs-ref-name, jndi-name with resouce-ref
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Martin Adamek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-17 01:40 UTC by davisn
Modified: 2004-09-09 13:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log file (9.72 KB, text/plain)
2004-04-17 01:41 UTC, davisn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2004-04-17 01:40:46 UTC
This bug is inconsistently reproducible; however
exception should be handled gracefully

Build used:
   AppServer and Netbean: FCS
   Plugin: 04/16

STEPS TO REPRODUCE:
1. Start Netbean IDE > AppServer
2. Create a web module with adding some elements
below to the web.xml file
       <resource-ref>
           <description></description>
          
<res-ref-name>jdbc/jdbc-simple</res-ref-name>
           <res-type>javax.sql.DataSource</res-type>
           <res-auth>Container</res-auth>
       </resource-ref>

       <message-destination-ref>
         
<message-destination-ref-name>jms/QueueName</message-destination-ref-name>
         
<message-destination-type>javax.jms.Queue</message-destination-type>
         
<message-destination-usage>Produces</message-destination-usage>
         
<message-destination-link>LogicalQueue</message-destination-link>
      </message-destination-ref>
          
3. Deploy the web module
4. Higligh 
          <resource-ref>
           <description></description>
          
<res-ref-name>jdbc/jdbc-simple</res-ref-name>
           <res-type>javax.sql.DataSource</res-type>
           <res-auth>Container</res-auth>
       </resource-ref>

And replace them with "incorect syntax" below:
    
<res-ref-name>jms/MyConnectionFactory</res-ref-name>
    
<jndi-name>jms/QueueConnectionFactory</jndi-name> 

BUG:
     NPE occurs - ide.log file attached
------------------------------------------------------------------
java.lang.NullPointerException
	at
org.netbeans.modules.j2ee.deployment.config.ConfigBeanStorage.removeChild(ConfigBeanStorage.java:137)
	at
org.netbeans.modules.j2ee.deployment.config.ConfigBeanStorage.fireEvent(ConfigBeanStorage.java:111)
	at
org.netbeans.modules.j2ee.deployment.config.DDCommon.fireEvent(DDCommon.java:230)
............
------------------------------------------------------------------
Comment 1 davisn 2004-04-17 01:41:30 UTC
Created attachment 14439 [details]
ide.log file
Comment 2 Petr Jiricka 2004-09-08 11:06:14 UTC
Martin, can you please investigate whether this still occurs with the
latest NB 4.0 builds + Appserver 8.1 plugin? Thanks.

Comment 3 Martin Adamek 2004-09-09 13:12:29 UTC
Works for me with build #200409071800