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 173743 - IllegalArgumentException: Cannot create a QualIdent for javax.ejb.Stateless
Summary: IllegalArgumentException: Cannot create a QualIdent for javax.ejb.Stateless
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@javaee
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on: 173736
Blocks:
  Show dependency tree
 
Reported: 2009-10-05 12:04 UTC by Jaroslav Pospisil
Modified: 2009-10-06 09:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 159515


Attachments
stacktrace (8.51 KB, text/plain)
2009-10-05 12:04 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2009-10-05 12:04:17 UTC
Build: NetBeans IDE 6.8 Beta (Build 200910020947)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows Vista, 6.0, x86

User Comments:
jpospisil: Create new JavaEE6 maven Web application and Entity classes from database(javadb:sample) in it (persistence unit also). Then invoke Session Beans for entity classes wizard and select Customer entity class.Click Finish and this exception will appear.



Stacktrace: 
java.lang.IllegalArgumentException: Cannot create a QualIdent for javax.ejb.Stateless
        at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createQualIdent(GenerationUtils.java:734)
        at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createAnnotation(GenerationUtils.java:270)
        at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createAnnotation(GenerationUtils.java:254)
        at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator$1.run(EjbFacadeWizardIterator.java:227)
        at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator$1.run(EjbFacadeWizardIterator.java:221)
        at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:653)
Comment 1 Jaroslav Pospisil 2009-10-05 12:04:22 UTC
Created attachment 88824 [details]
stacktrace
Comment 2 Sergey Petrov 2009-10-05 13:33:12 UTC
I'm not sure with beta, but in current build there are jee6 libraries without javax.ejb support, see also issue 172331.
Another effect -  direct creation of Session bean is possible, and there is no exception but it's marked with error and
I can't build maven project.
Comment 3 Sergey Petrov 2009-10-05 14:26:10 UTC
may be maven project problem with usage of incorrect snapshot jars for jee6 platform projects.
Comment 4 Jaroslav Pospisil 2009-10-05 14:43:09 UTC
It's possible that this is caused by issue 173736. I'll check the scenario again,once jars in repository are updated.
Comment 5 Sergey Petrov 2009-10-06 09:40:34 UTC
works for me today.