[JBoss JIRA] (FORGE-1891) NPE while running Generate Entities from Tables command
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1891?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1891.
----------------------------------
Resolution: Done
Fixed
> NPE while running Generate Entities from Tables command
> -------------------------------------------------------
>
> Key: FORGE-1891
> URL: https://issues.jboss.org/browse/FORGE-1891
> Project: Forge
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Database Tools
> Affects Versions: 2.6.0.Final
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Fix For: 2.7.0.Final
>
>
> {code}
> java.lang.NullPointerException
> at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage.getDriverClassNames(ConnectionProfileDetailsPage.java:131)
> at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage.access$000(ConnectionProfileDetailsPage.java:26)
> at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage$3.call(ConnectionProfileDetailsPage.java:107)
> at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage$3.call(ConnectionProfileDetailsPage.java:103)
> at org.jboss.forge.furnace.util.Callables.call(Callables.java:43)
> at org.jboss.forge.addon.ui.impl.input.AbstractUISelectInputComponent.getValueChoices(AbstractUISelectInputComponent.java:55)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
> at org.jboss.forge.addon.facets.AbstractFaceted_$$_javassist_c397fd95-78ea-4fc3-9375-f96bed735ed4.getValueChoices(AbstractFaceted_$$_javassist_c397fd95-78ea-4fc3-9375-f96bed735ed4.java)
> at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage$4.call(ConnectionProfileDetailsPage.java:116)
> at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage$4.call(ConnectionProfileDetailsPage.java:111)
> at org.jboss.forge.furnace.util.Callables.call(Callables.java:43)
> at org.jboss.forge.addon.ui.impl.input.UISelectOneImpl.getValue(UISelectOneImpl.java:62)
> at org.jboss.forge.addon.ui.util.InputComponents.getValueFor(InputComponents.java:69)
> at org.jboss.forge.addon.ui.util.InputComponents.hasValue(InputComponents.java:253)
> at org.jboss.forge.addon.ui.util.InputComponents.validateRequired(InputComponents.java:282)
> at org.jboss.forge.addon.ui.impl.input.AbstractInputComponent.validate(AbstractInputComponent.java:196)
> at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
> at org.jboss.forge.addon.facets.AbstractFaceted_$$_javassist_c397fd95-78ea-4fc3-9375-f96bed735ed4.validate(AbstractFaceted_$$_javassist_c397fd95-78ea-4fc3-9375-f96bed735ed4.java)
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.validate(SingleCommandControllerImpl.java:152)
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.isValid(SingleCommandControllerImpl.java:162)
> at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.isValid(WizardCommandControllerImpl.java:220)
> at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.canMoveToNextStep(WizardCommandControllerImpl.java:279)
> at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.refreshFlow(WizardCommandControllerImpl.java:96)
> at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.canExecute(WizardCommandControllerImpl.java:299)
> at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.canExecute(NoUIWizardControllerDecorator.java:219)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:116)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:89)
> at org.jboss.forge.addon.ui.controller.CommandController_$$_javassist_33bd6e08-7892-46b4-81e4-6353c02cb316.canExecute(CommandController_$$_javassist_33bd6e08-7892-46b4-81e4-6353c02cb316.java)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard.canFinish(ForgeWizard.java:60)
> at org.eclipse.jface.wizard.WizardDialog.updateButtons(WizardDialog.java:1377)
> at org.eclipse.jface.wizard.WizardDialog.update(WizardDialog.java:1365)
> at org.eclipse.jface.wizard.WizardDialog.showStartingPage(WizardDialog.java:1318)
> at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:624)
> at org.eclipse.jface.window.Window.create(Window.java:435)
> at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1101)
> at org.eclipse.jface.window.Window.open(Window.java:797)
> at org.jboss.tools.forge.ui.internal.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:158)
> at org.jboss.tools.forge.ui.internal.ext.dialog.UICommandListDialog$1$1.handleElementSelected(UICommandListDialog.java:172)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.handleSelection(QuickAccessContents.java:326)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.access$0(QuickAccessContents.java:316)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents$6.mouseUp(QuickAccessContents.java:465)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4487)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3831)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3441)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1152)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1033)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1891) NPE while running Generate Entities from Tables command
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1891:
--------------------------------------
Summary: NPE while running Generate Entities from Tables command
Key: FORGE-1891
URL: https://issues.jboss.org/browse/FORGE-1891
Project: Forge
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Database Tools
Affects Versions: 2.6.0.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Fix For: 2.7.0.Final
{code}
java.lang.NullPointerException
at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage.getDriverClassNames(ConnectionProfileDetailsPage.java:131)
at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage.access$000(ConnectionProfileDetailsPage.java:26)
at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage$3.call(ConnectionProfileDetailsPage.java:107)
at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage$3.call(ConnectionProfileDetailsPage.java:103)
at org.jboss.forge.furnace.util.Callables.call(Callables.java:43)
at org.jboss.forge.addon.ui.impl.input.AbstractUISelectInputComponent.getValueChoices(AbstractUISelectInputComponent.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
at org.jboss.forge.addon.facets.AbstractFaceted_$$_javassist_c397fd95-78ea-4fc3-9375-f96bed735ed4.getValueChoices(AbstractFaceted_$$_javassist_c397fd95-78ea-4fc3-9375-f96bed735ed4.java)
at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage$4.call(ConnectionProfileDetailsPage.java:116)
at org.jboss.forge.addon.database.tools.connections.ConnectionProfileDetailsPage$4.call(ConnectionProfileDetailsPage.java:111)
at org.jboss.forge.furnace.util.Callables.call(Callables.java:43)
at org.jboss.forge.addon.ui.impl.input.UISelectOneImpl.getValue(UISelectOneImpl.java:62)
at org.jboss.forge.addon.ui.util.InputComponents.getValueFor(InputComponents.java:69)
at org.jboss.forge.addon.ui.util.InputComponents.hasValue(InputComponents.java:253)
at org.jboss.forge.addon.ui.util.InputComponents.validateRequired(InputComponents.java:282)
at org.jboss.forge.addon.ui.impl.input.AbstractInputComponent.validate(AbstractInputComponent.java:196)
at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
at org.jboss.forge.addon.facets.AbstractFaceted_$$_javassist_c397fd95-78ea-4fc3-9375-f96bed735ed4.validate(AbstractFaceted_$$_javassist_c397fd95-78ea-4fc3-9375-f96bed735ed4.java)
at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.validate(SingleCommandControllerImpl.java:152)
at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.isValid(SingleCommandControllerImpl.java:162)
at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.isValid(WizardCommandControllerImpl.java:220)
at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.canMoveToNextStep(WizardCommandControllerImpl.java:279)
at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.refreshFlow(WizardCommandControllerImpl.java:96)
at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.canExecute(WizardCommandControllerImpl.java:299)
at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.canExecute(NoUIWizardControllerDecorator.java:219)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:116)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:89)
at org.jboss.forge.addon.ui.controller.CommandController_$$_javassist_33bd6e08-7892-46b4-81e4-6353c02cb316.canExecute(CommandController_$$_javassist_33bd6e08-7892-46b4-81e4-6353c02cb316.java)
at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard.canFinish(ForgeWizard.java:60)
at org.eclipse.jface.wizard.WizardDialog.updateButtons(WizardDialog.java:1377)
at org.eclipse.jface.wizard.WizardDialog.update(WizardDialog.java:1365)
at org.eclipse.jface.wizard.WizardDialog.showStartingPage(WizardDialog.java:1318)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:624)
at org.eclipse.jface.window.Window.create(Window.java:435)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1101)
at org.eclipse.jface.window.Window.open(Window.java:797)
at org.jboss.tools.forge.ui.internal.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:158)
at org.jboss.tools.forge.ui.internal.ext.dialog.UICommandListDialog$1$1.handleElementSelected(UICommandListDialog.java:172)
at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.handleSelection(QuickAccessContents.java:326)
at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.access$0(QuickAccessContents.java:316)
at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents$6.mouseUp(QuickAccessContents.java:465)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4487)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3831)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3441)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1152)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1033)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
{code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1890) Create additional download profiles
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1890:
--------------------------------------
Summary: Create additional download profiles
Key: FORGE-1890
URL: https://issues.jboss.org/browse/FORGE-1890
Project: Forge
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: Forge Build
Affects Versions: 2.6.0.Final
Reporter: George Gastaldi
Fix For: 2.x Future
It would be nice if we had different download options.
Arquillian and the JBossAS addon would be interesting to provide.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1802) Console hangs when running an invalid script
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1802?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-1802:
-----------------------------------
Priority: Blocker (was: Critical)
> Console hangs when running an invalid script
> --------------------------------------------
>
> Key: FORGE-1802
> URL: https://issues.jboss.org/browse/FORGE-1802
> Project: Forge
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: UI - Shell
> Affects Versions: 2.5.0.Final
> Reporter: Antonio Goncalves
> Assignee: Ivan St. Ivanov
> Priority: Blocker
> Fix For: 2.7.0.Final
>
>
> I am executing a script (with the {{run}} command) and the console hanged and stopped working completely (I had to kill the process). I realized that there is an error in the script (missing {{;}} at the end of line {{--named ISBN}}).
> Take the following script, and save it on a {{hangs.fsh}} file
> {code}
> # ##################### #
> # Creates a new project #
> # ##################### #
> project-new --named cdbookstore --topLevelPackage org.agoncal.training.javaee6adv --type war --finalName cdbookstore ;
> # Setup the persistence unit in persistence.xml
> # ############
> jpa-setup --persistenceUnitName cdbookstorePU ;
> # ######################## #
> # Creates the domain model #
> # ######################## #
> # ISBN constraint
> # ############
> constraint-new-annotation --named ISBN
> # Genre entity
> # ############
> jpa-new-entity --named Genre ;
> jpa-new-field --named name --length 100 ;
> {code}
> Now, execute the script, and see the error message :
> {code}
> [temp]$ run hangs.fsh
> project-new --named cdbookstore --topLevelPackage org.agoncal.training.javaee6adv --type war --finalName cdbookstore ;
> ***SUCCESS*** Project named 'cdbookstore' has been created.
> [cdbookstore]$ jpa-setup --persistenceUnitName cdbookstorePU ;
> ***SUCCESS*** Persistence (JPA) is installed.
> [cdbookstore]$ constraint-new-annotation --named ISBN
> ***SUCCESS*** Bean Validation Constraint Annotations org.agoncal.training.javaee6adv.constraints.ISBN was created
> [ISBN.java]$ jpa-new-entity --named Genre ;
> Exception when parsing/running: jpa-new-entity --named Genre , org.jboss.forge.roaster.model.impl.JavaAnnotationImpl cannot be cast to org.jboss.forge.roaster.model.MemberHolder
> [ISBN.java]$
> {code}
> At this point, I can't interact with the console and need to kill the process.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1889) Upgrade to Roaster 2.5.2.Final
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1889:
--------------------------------------
Summary: Upgrade to Roaster 2.5.2.Final
Key: FORGE-1889
URL: https://issues.jboss.org/browse/FORGE-1889
Project: Forge
Issue Type: Component Upgrade
Security Level: Public (Everyone can see)
Components: Parsers / File Manipulation
Affects Versions: 2.6.0.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Fix For: 2.x Future
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1888) REST resource generation is aborted instead of gracefully failing for unsupported features.
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-1888?page=com.atlassian.jira.plugin... ]
Vineet Reynolds updated FORGE-1888:
-----------------------------------
Summary: REST resource generation is aborted instead of gracefully failing for unsupported features. (was: Perform graceful degradation instead of aborting REST resource generation)
> REST resource generation is aborted instead of gracefully failing for unsupported features.
> -------------------------------------------------------------------------------------------
>
> Key: FORGE-1888
> URL: https://issues.jboss.org/browse/FORGE-1888
> Project: Forge
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Java EE
> Affects Versions: 2.6.0.Final
> Reporter: Vineet Reynolds
>
> An exception is reported with the following stack trace when REST resource generation fails for JPA entities with composite keys ({{@EmbeddedId}}:
> {noformat}
> java.lang.RuntimeException: Could not determine @Id field and getter method for @Entity [org.jboss.tools.example.html5.model.FilmActor]. Aborting.
> at org.jboss.forge.addon.javaee.rest.generator.ResourceGeneratorUtil.resolveIdGetterName(ResourceGeneratorUtil.java:145)
> at org.jboss.forge.addon.javaee.rest.generator.impl.EntityBasedResourceGenerator.generateFrom(EntityBasedResourceGenerator.java:56)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
> at org.jboss.forge.addon.javaee.rest.generator.impl.EntityBasedResourceGenerator_$$_javassist_d10f5401-9972-4f96-ba89-8e8833705b48.generateFrom(EntityBasedResourceGenerator_$$_javassist_d10f5401-9972-4f96-ba89-8e8833705b48.java)
> at org.jboss.forge.addon.angularjs.JSONRestResourceFromEntityCommand.generateEndpoints(JSONRestResourceFromEntityCommand.java:187)
> at org.jboss.forge.addon.angularjs.JSONRestResourceFromEntityCommand.execute(JSONRestResourceFromEntityCommand.java:167)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
> at org.jboss.forge.addon.angularjs.JSONRestResourceFromEntityCommand_$$_javassist_b26e6b41-cbde-47b0-a4a2-7879059dbd3e.execute(JSONRestResourceFromEntityCommand_$$_javassist_b26e6b41-cbde-47b0-a4a2-7879059dbd3e.java)
> at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:153)
> at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$1.call(ClassLoaderAdapterCallback.java:103)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:76)
> at org.jboss.forge.addon.ui.controller.CommandController_$$_javassist_be645963-85e1-45bb-bcdb-002e62a409fe.execute(CommandController_$$_javassist_be645963-85e1-45bb-bcdb-002e62a409fe.java)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:90)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1888) Perform graceful degradation instead of aborting REST resource generation
by Vineet Reynolds (JIRA)
Vineet Reynolds created FORGE-1888:
--------------------------------------
Summary: Perform graceful degradation instead of aborting REST resource generation
Key: FORGE-1888
URL: https://issues.jboss.org/browse/FORGE-1888
Project: Forge
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Java EE
Affects Versions: 2.6.0.Final
Reporter: Vineet Reynolds
An exception is reported with the following stack trace when REST resource generation fails for JPA entities with composite keys ({{@EmbeddedId}}:
{noformat}
java.lang.RuntimeException: Could not determine @Id field and getter method for @Entity [org.jboss.tools.example.html5.model.FilmActor]. Aborting.
at org.jboss.forge.addon.javaee.rest.generator.ResourceGeneratorUtil.resolveIdGetterName(ResourceGeneratorUtil.java:145)
at org.jboss.forge.addon.javaee.rest.generator.impl.EntityBasedResourceGenerator.generateFrom(EntityBasedResourceGenerator.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
at org.jboss.forge.addon.javaee.rest.generator.impl.EntityBasedResourceGenerator_$$_javassist_d10f5401-9972-4f96-ba89-8e8833705b48.generateFrom(EntityBasedResourceGenerator_$$_javassist_d10f5401-9972-4f96-ba89-8e8833705b48.java)
at org.jboss.forge.addon.angularjs.JSONRestResourceFromEntityCommand.generateEndpoints(JSONRestResourceFromEntityCommand.java:187)
at org.jboss.forge.addon.angularjs.JSONRestResourceFromEntityCommand.execute(JSONRestResourceFromEntityCommand.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
at org.jboss.forge.addon.angularjs.JSONRestResourceFromEntityCommand_$$_javassist_b26e6b41-cbde-47b0-a4a2-7879059dbd3e.execute(JSONRestResourceFromEntityCommand_$$_javassist_b26e6b41-cbde-47b0-a4a2-7879059dbd3e.java)
at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:153)
at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$1.call(ClassLoaderAdapterCallback.java:103)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:76)
at org.jboss.forge.addon.ui.controller.CommandController_$$_javassist_be645963-85e1-45bb-bcdb-002e62a409fe.execute(CommandController_$$_javassist_be645963-85e1-45bb-bcdb-002e62a409fe.java)
at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:90)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months