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 231106 - UnsupportedOperationException on EnterpriseApplication project creation
Summary: UnsupportedOperationException on EnterpriseApplication project creation
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: David Konecny
URL:
Keywords:
: 231084 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-11 21:43 UTC by ent38
Modified: 2013-06-14 02:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans logs (70.51 KB, text/plain)
2013-06-11 21:43 UTC, ent38
Details
Screenshot of the New Project dialog and exception (32.90 KB, image/png)
2013-06-11 21:45 UTC, ent38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ent38 2013-06-11 21:43:06 UTC
[ BUILD # : 201306102301 ]
[ JDK VERSION : 1.7.0_21 ]

Fresh install of latest daily build, Full bundle with GlassFish 4, Windows 
installer.

Create a new JavaEE application (using defaults in every field). The 
"Finish" button throws an exception and dones't validate: 

java.lang.UnsupportedOperationException: Project in C:\Users
\TheKnightsWhoSayNii\Documents\NetBeansProjects
\EnterpriseApplication3\EnterpriseApplication3-war of class 
org.netbeans.modules.web.project.WebProject has a 
ProjectClassPathModifierImplementation but it will not handle classpath/
compile_only for C:\Users\TheKnightsWhoSayNii\Documents
\NetBeansProjects\EnterpriseApplication3\EnterpriseApplication3-war 
extensible source groups: C:\Users\TheKnightsWhoSayNii\Documents
\NetBeansProjects\EnterpriseApplication3\EnterpriseApplication3-war
\src\java
	at 
org.netbeans.api.java.project.classpath.ProjectClassPathModifier.findExt
ensible(ProjectClassPathModifier.java:386)
	at 
org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addAnt
Artifacts(ProjectClassPathModifier.java:277)
	at 
org.netbeans.modules.j2ee.earproject.EarProjectGenerator.addEJBToCl
assPaths(EarProjectGenerator.java:371)
	at 
org.netbeans.modules.j2ee.earproject.ui.wizards.NewEarProjectWizardIt
erator.testableInstantiate(NewEarProjectWizardIterator.java:289)
	at 
org.netbeans.modules.j2ee.earproject.ui.wizards.NewEarProjectWizardIt
erator.instantiate(NewEarProjectWizardIterator.java:164)
	at org.openide.loaders.TemplateWizard
$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1044)
	at org.openide.loaders.TemplateWizard.handleInstantiate
(TemplateWizard.java:605)
	at org.openide.loaders.TemplateWizard.instantiateNewObjects
(TemplateWizard.java:439)
	at org.openide.loaders.TemplateWizardIterImpl.instantiate
(TemplateWizardIterImpl.java:253)
	at org.openide.loaders.TemplateWizardIteratorWrapper
$ProgressInstantiatingIterator.instantiate
(TemplateWizardIteratorWrapper.java:180)
	at org.openide.WizardDescriptor.callInstantiateOpen
(WizardDescriptor.java:1626)
	at org.openide.WizardDescriptor.callInstantiate
(WizardDescriptor.java:1570)
	at org.openide.WizardDescriptor.access
$2300(WizardDescriptor.java:92)
[catch] at org.openide.WizardDescriptor$Listener$2$1.run
(WizardDescriptor.java:2257)
	at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:2042)
Comment 1 ent38 2013-06-11 21:43:35 UTC
Created attachment 135657 [details]
netbeans logs
Comment 2 ent38 2013-06-11 21:45:58 UTC
Created attachment 135658 [details]
Screenshot of the New Project dialog and exception
Comment 3 Martin Fousek 2013-06-12 06:12:13 UTC
100% reproducible. Probably related to the j2ee.common cleanup (the same cause as the web-main-tests failure). Increasing priority since I don't have any WA for EAR project creation and it should be fixed to Beta.
Comment 4 Martin Janicek 2013-06-12 07:53:52 UTC
*** Bug 231084 has been marked as a duplicate of this bug. ***
Comment 5 David Konecny 2013-06-12 22:04:24 UTC
I did tested EAR creation at one point and it worked. Looking into it now.
Comment 6 David Konecny 2013-06-12 22:38:06 UTC
(In reply to comment #5)
> I did tested EAR creation at one point and it worked. Looking into it now.

Obviously I must have tested it before I did the change because EAR creation with default wizard settings always fails. Same as unit tests. It was a silly mistake - passing project root into classpath modifying functions instead of Java sources folder root. Sorry about that.

web-main#9641f575be8a
Comment 7 Quality Engineering 2013-06-14 02:00:02 UTC
Integrated into 'main-golden', will be available in build *201306132301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9641f575be8a
User: David Konecny <dkonecny@netbeans.org>
Log: #231106 - UnsupportedOperationException on EnterpriseApplication project creation