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

Summary: IllegalArgumentException: Cannot create a QualIdent for javax.ejb.Stateless
Product: javaee Reporter: Jaroslav Pospisil <jpospisil>
Component: CodeAssignee: issues@javaee <issues>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: pjiricka
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=159515
Issue Type: DEFECT Exception Reporter: 159515
Bug Depends on: 173736    
Bug Blocks:    
Attachments: stacktrace

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.