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 179911 - beans.xml file wizard doesn't work at 68_fixes
Summary: beans.xml file wizard doesn't work at 68_fixes
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-27 06:24 UTC by Jindrich Sedek
Modified: 2010-02-02 05:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full stacktrace (7.73 KB, text/plain)
2010-01-27 06:24 UTC, Jindrich Sedek
Details
patch (47.66 KB, patch)
2010-01-27 16:48 UTC, David Konecny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2010-01-27 06:24:34 UTC
Created attachment 93593 [details]
full stacktrace

Create new Web Application
invoke create new file wizard, select Context and Dependency Injection category
choose beans.xml file
Press Next / Press Finish ...
the Finish button gets grayed but nothing happens.
No exception is visible, but NPE is thrown in log. 

The only option to continue is to Cancle the wizard
bean.xml file is created but it has no content

WARNING [org.openide.WizardDescriptor]
java.lang.NullPointerException
        at java.io.Reader.<init>(Reader.java:61)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
        at org.netbeans.modules.j2ee.common.dd.DDHelper$MakeFileCopy.readResource(DDHelper.java:218)
        at org.netbeans.modules.j2ee.common.dd.DDHelper$MakeFileCopy.run(DDHelper.java:197)
Comment 1 David Konecny 2010-01-27 16:47:04 UTC
The problem in only in release68_fixes repo. It can be fixed by:

cp main/j2ee.common/src/org/netbeans/modules/j2ee/common/dd/resources/beans-1.0.xml release68/j2ee.common/src/org/netbeans/modules/j2ee/common/dd/resources/

that seems to resolve it and beans.xml is created and can be edited. Validation of XML reports that schema from internet is used which can possibly cause problems if user is offline or his internet connection is too slow. This problem can be fixed by integrating remaining part of http://hg.netbeans.org/main-silver?cmd=changeset;node=a9ba29057258 I did that and patch is attached. I tested the patch and everything works fine. Somebody else should review and retest.
Comment 2 David Konecny 2010-01-27 16:48:02 UTC
Created attachment 93613 [details]
patch
Comment 3 David Konecny 2010-01-27 16:52:13 UTC
Leaving on sustaining to decide which fix is more suitable.
Comment 4 pgebauer 2010-01-28 04:57:45 UTC
The fix has been ported into the release68_fixes repository.
http://hg.netbeans.org/release68_fixes/rev/55655dd16da3