[
https://issues.jboss.org/browse/FORGE-2017?page=com.atlassian.jira.plugin...
]
George Gastaldi commented on FORGE-2017:
----------------------------------------
The following script illustrates this:
{code}
project-new --named demo
jpa-new-entity --named Customer
jpa-new-field --named firstName
rest-setup
rest-generate-endpoints-from-entities --generator ROOT_AND_NESTED_DTO --contentType
application/json
{code}
{code}
14:25:59,449 SEVERE [org.jboss.forge.addon.ui.impl.controller.AbstractCommandController]
(AeshProcess: 6) Error while notifying listeners: java.lang.ClassCastException:
java.util.ArrayList cannot be cast to org.jboss.forge.addon.resource.FileResource
at org.jboss.forge.addon.projects.Projects.getSelectedProject(Projects.java:37)
at
org.jboss.forge.addon.projects.ui.ProjectBuildStatusListener.postCommandExecuted(ProjectBuildStatusListener.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_11]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[rt.jar:1.8.0_11]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_11]
at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_11]
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
[furnace-proxy-2.10.2-SNAPSHOT.jar:2.10.2-SNAPSHOT]
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
[furnace-api-2.10.2-SNAPSHOT.jar:2.10.2-SNAPSHOT]
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
[furnace-proxy-2.10.2-SNAPSHOT.jar:2.10.2-SNAPSHOT]
at
org.jboss.forge.addon.projects.ui.ProjectBuildStatusListener_$$_javassist_d8c346ba-8753-46cc-aea8-9bcbba338fff.postCommandExecuted(ProjectBuildStatusListener_$$_javassist_d8c346ba-8753-46cc-aea8-9bcbba338fff.java)
at
org.jboss.forge.addon.ui.impl.controller.AbstractCommandController.firePostCommandExecuted(AbstractCommandController.java:144)
[ui-impl-2.10.2-SNAPSHOT.jar:2.10.2-SNAPSHOT]
at
org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:155)
[ui-impl-2.10.2-SNAPSHOT.jar:2.10.2-SNAPSHOT]
at
org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152)
[ui-impl-2.10.2-SNAPSHOT.jar:2.10.2-SNAPSHOT]
at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)
[shell-impl-2.10.2-SNAPSHOT.jar:2.10.2-SNAPSHOT]
at
org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:325)
[aesh-0.56.1.jar:0.56.1]
at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:40) [aesh-0.56.1.jar:0.56.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_11]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
{code}
Errors in Rest Endpoint generation with Root and nested DTOs
------------------------------------------------------------
Key: FORGE-2017
URL:
https://issues.jboss.org/browse/FORGE-2017
Project: Forge
Issue Type: Bug
Components: Java EE
Affects Versions: 2.10.1.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Fix For: 2.10.2.Final
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)