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.
Build: NetBeans IDE Dev (Build 20121002-9d6a7516893e) VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03 OS: Linux User Comments: dkonecny: i was followinf instructions from issue http://netbeans.org/bugzilla/show_bug.cgi?id=219565 and exception happened during generation of JSF pages from JPA entities Stacktrace: java.lang.IllegalArgumentException: Incorrect number of type arguments at com.sun.tools.javac.model.JavacTypes.getDeclaredType0(JavacTypes.java:246) at com.sun.tools.javac.model.JavacTypes.getDeclaredType(JavacTypes.java:222) at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator$3.run(EjbFacadeWizardIterator.java:433) at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator$3.run(EjbFacadeWizardIterator.java:408) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:644) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:634)
Created attachment 125647 [details] stacktrace
EjbFacadeWizardIterator should pass the correct number of type arguments to Types.getDeclaredType(...) call.
David are you able to reproduce this issue? wc.getElements().getTypeElement(abstactFacedeFQN) didn't resolved TypeElement although this element (class) must exist - that's something which should never happen. I discussed it also with TomasZ and when the file wouldn't be scanned yet, it should fallback to listing package directory to find the class ... it's weird and could be some underlying issue (maybe in filesystems). Since I'm not able to reproduce (when you will not be able too), I suggest that I would try to wait until scanning will be finished and add few additional defensive changes which could help and for sure I would also add some additional logging.
If you cannot reproduce it I would ignore it. There are only two exception reports after all. Perhaps this is P4 or TM=Next.
in my opinion this one issue, issue http://netbeans.org/bugzilla/show_bug.cgi?id=221773 and number of similar may have the same cause. all have somehing just generated but isn't parsed properly and failed to be resolved.
You are right Sergey, that's similar case. I added more logging information in web-main #34c1a22c2831 as well. Let's wait what could be broken there. I'm closing this issue since new one will be raised once anybody crossed these troubles since the logging is with the SEVERE priority. The new issue will be reported probably quite differently since I'm doing those check in advance to prevent reporting to Java/Compiler component next time.
Integrated into 'main-golden', will be available in build *201211170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/34c1a22c2831 User: Martin Fousek <marfous@netbeans.org> Log: #219778 - IllegalArgumentException: Incorrect number of type arguments