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 147219 - [65cat] IllegalArgumentException: Could not find create in antsdbweb.ComponentForceJpaController
Summary: [65cat] IllegalArgumentException: Could not find create in antsdbweb.Componen...
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sergey Petrov
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-14 22:27 UTC by wobster
Modified: 2009-10-28 15:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 111979


Attachments
stacktrace (1.41 KB, text/plain)
2008-09-14 22:27 UTC, wobster
Details
stacktrace (1.42 KB, text/plain)
2009-03-31 20:47 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wobster 2008-09-14 22:27:42 UTC
Build: NetBeans IDE Dev (Build 200809140201)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.19-1.2895.fc6, i386

User Comments: 
Creating Ajax-enabled Visual JSF pages from JPA classes

Stacktrace: 
java.lang.IllegalArgumentException: Could not find create in antsdbweb.ComponentForceJpaController
        at org.netbeans.modules.j2ee.persistence.wizard.jpacontroller.JpaControllerUtil.getExceptionsThrown(JpaControllerUtil.java:512)
        at org.netbeans.modules.j2ee.persistence.wizard.jpacontroller.JpaControllerUtil.exceptionsThrownIncludes(JpaControllerUtil.java:481)
        at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator$12.run(JSFClientGenerator.java:1216)
        at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator$12.run(JSFClientGenerator.java:1143)
        at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:924)
        at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator.generateControllerClass(JSFClientGenerator.java:1142)
Comment 1 wobster 2008-09-14 22:27:52 UTC
Created attachment 69829 [details]
stacktrace
Comment 2 Matthew Bohm 2008-09-15 19:42:26 UTC
The JSF pages from Entity Classes wizard does not support Visual JSF pages. Also, the JPA controller is required to have
a create method when the wizard is run.
Comment 3 wobster 2008-09-17 02:06:37 UTC
It shouldn't throw an exception. The option should not be available or at least there should be a message that indicates
that "JSF pages from Entity Classes wizard does not support Visual JSF pages".
Comment 4 Matthew Bohm 2008-09-17 02:23:55 UTC
Perhaps the simplest thing would be to provide a message and disable the "Next" button in the first frame of the
entity2jsf wizard if the project is a visual web project. Copying abadea to see if he agrees with that (and marking
incomplete while awaiting his response). Something like this is probably necessary because if the project contains the
visual web jsf framework, it hooks up listeners that do undesired things when the wizard is run.
Comment 5 wobster 2008-09-19 16:20:40 UTC
Build: NetBeans IDE Dev (Build 200809180201)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.19-1.2895.fc6, i386

User Comments:
wobster: trying to create JSF pages from even fewer JPA files

wobster: trying to create JSF pages from even fewer JPA files



Stacktrace: 
java.lang.IllegalArgumentException: Could not find create in com.boeing.ants.jpa.ConfigurationJpaController
        at org.netbeans.modules.j2ee.persistence.wizard.jpacontroller.JpaControllerUtil.getExceptionsThrown(JpaControllerUtil.java:512)
        at org.netbeans.modules.j2ee.persistence.wizard.jpacontroller.JpaControllerUtil.exceptionsThrownIncludes(JpaControllerUtil.java:481)
        at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator$12.run(JSFClientGenerator.java:1261)
        at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator$12.run(JSFClientGenerator.java:1174)
        at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:924)
        at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator.generateControllerClass(JSFClientGenerator.java:1173)
Comment 6 Matthew Bohm 2008-09-19 19:02:03 UTC
wobster, while we're at it, please clean, zip, and attach your project if possible.
Comment 7 Matthew Bohm 2008-11-27 09:24:50 UTC
Marking P4.
Comment 8 Martin Fousek 2008-12-08 08:10:13 UTC
Reporter didn't provided required information for more than 14 days. 
I'm closing this issue as worksforme, as we are not able to reproduce it with available information. 
Please, feel free to reopen when you face the problem again but attach the additional info.

thank you for report
Comment 9 wobster 2008-12-09 04:53:26 UTC
I can't provide the project since it is proprietary (not my property). There are still problems with the latest wizard
if the bean does not follow Java Bean conventions exactly. I have to review the NetBeans log files to figure out what
happened. 

(Also, it doesn't seem to handle inheritance as well or lazy persistent lists.)
Comment 10 Matthew Bohm 2008-12-09 19:45:00 UTC
This bug is about providing a message to avoid use with visualweb. To my knowledge, I have fixed problems with
inheritance. If not, it would have to be filed a separate issue. Use of lazy fetching would also have to be a separate
issue; incidentally, there are known problems with lazy fetching using hibernate jpa. I'll keep in mind for future
reference that your code is proprietary and cannot be attached.
Comment 11 wobster 2008-12-11 03:35:47 UTC
You're right, I thought this was the other bug related to not adhering to JavaBean conventions. Sorry about that.

I did submit a lazy loading and inheritance bug report as well for your reading pleasure. :-)
Comment 12 Matthew Bohm 2008-12-11 04:08:12 UTC
This has not been fixed, so reopening.
Comment 13 Exceptions Reporter 2009-02-04 22:21:10 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=111979
Comment 14 Exceptions Reporter 2009-03-31 20:47:20 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.IllegalArgumentException: Could not find create in br.ufscar.saehic.dao.ArquivoJpaController
        at org.netbeans.modules.j2ee.persistence.wizard.jpacontroller.JpaControllerUtil.getExceptionsThrown(JpaControllerUtil.java:512)
        at org.netbeans.modules.j2ee.persistence.wizard.jpacontroller.JpaControllerUtil.exceptionsThrownIncludes(JpaControllerUtil.java:481)
        at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator$12.run(JSFClientGenerator.java:1261)
        at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator$12.run(JSFClientGenerator.java:1174)
        at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:953)
        at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator.generateControllerClass(JSFClientGenerator.java:1173)
Comment 15 Exceptions Reporter 2009-03-31 20:47:24 UTC
Created attachment 79179 [details]
stacktrace
Comment 16 Martin Schovanek 2009-09-18 12:52:47 UTC
Please reevaluate there are still fresh reports.
Comment 17 Sergey Petrov 2009-09-23 09:27:06 UTC
I saw this issue before but never had complete steps to reproduce, if anybody have any sample project where it's always
reproducible or any additional details about entities, schema, used libraries etc, please attach, provide.
ma be the issue if fixed now, latest reports are from 6.7, but also jpa controller usage in web is less probable now as
it was replaced by session bean when it's possible. Can't reproduce in 090923 even with 20+ entities.
Comment 18 Sergey Petrov 2009-10-28 15:46:44 UTC
no reports in 6.8 so far. if the issue will be reproducible please provide schema for your database if possible, or if
entities was created manually please attach project.