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 60596 - NPE while creating CMP Entity beans from database
Summary: NPE while creating CMP Entity beans from database
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
: 63466 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-29 10:55 UTC by Lukas Jungmann
Modified: 2006-03-24 13:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (68.74 KB, text/plain)
2005-06-29 10:55 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2005-06-29 10:55:24 UTC
[4.1fcs + jboss4.0.1sp1 (all config)]

Let's have hsgldb and jboss registered in the IDE

1. create new EJB module (set target server to jboss)
2. create new CMP Entity beans from database... and follow the wizard
    - use connection to hsqldb
    - select some table
    - finish wizard

=> java.lang.NullPointerException at
org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.setCMPMappingInfo(ConfigSupportImpl.java:517)
Comment 1 Lukas Jungmann 2005-06-29 10:55:54 UTC
Created attachment 22937 [details]
messages.log
Comment 2 Lukas Jungmann 2005-06-29 12:21:31 UTC
bug seems to be in plugin, not in j2eeserver
Comment 3 Sherold Dev 2005-08-02 14:03:25 UTC
TM -> 4.2.
Comment 4 Pavel Buzek 2005-08-14 00:55:34 UTC
I think this should be solved in j2eeserver. ConfigurationSupport should be
better documented (it does not even say how it should be registered by plugin)
and it should definitely be optional, j2eeserver should bypass configuration of
CMPs when it is not implemented by the plugin. After all a server may be able to
provide defaults when there is no CMP configuration.

It is desirable to have CMP mappings supported for jboss, it just should not be
required.
Comment 5 Pavel Buzek 2005-08-22 16:52:27 UTC
I added a check for null value of configuration support.

/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ConfigSupportImpl.java,v
 
new revision: 1.40; previous revision: 1.39
Comment 6 Petr Blaha 2005-08-31 18:03:38 UTC
*** Issue 63466 has been marked as a duplicate of this issue. ***
Comment 7 Lukas Jungmann 2005-09-08 14:12:33 UTC
v.
Comment 8 Unknown 2005-11-09 17:27:08 UTC
This bug has been fixed in nb5. Is there a workaround for this issue for users
running nb4.1 ? Can the users ignore the exception and continue the work?