[JBoss JIRA] (FORGE-929) Validate when a facet is injecting a Project
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-929?page=com.atlassian.jira.plugin.... ]
George Gastaldi closed FORGE-929.
---------------------------------
Resolution: Done
> Validate when a facet is injecting a Project
> ---------------------------------------------
>
> Key: FORGE-929
> URL: https://issues.jboss.org/browse/FORGE-929
> Project: Forge
> Issue Type: Enhancement
> Components: Container
> Affects Versions: 1.3.0.Final
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Fix For: 1.3.1.Final
>
>
> Facets can't @Inject Project, otherwise the following exception is thrown, which is not clear in a first moment:
> {code:java}
> Exception encountered: WELD-001303 No active contexts for scope type org.jboss.forge.shell.project.ProjectScoped (type "set VERBOSE true" to enable stack traces)
> {code}
> [~lincolnthree] suggested that it might be worth adding a check for this in a validation step of the Forge 1 weld extension
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months
[JBoss JIRA] (FORGE-929) Validate when a facet is injecting a Project
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-929?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-929:
----------------------------------
Fix Version/s: 1.3.1.Final
> Validate when a facet is injecting a Project
> ---------------------------------------------
>
> Key: FORGE-929
> URL: https://issues.jboss.org/browse/FORGE-929
> Project: Forge
> Issue Type: Enhancement
> Components: Container
> Affects Versions: 1.3.0.Final
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Fix For: 1.3.1.Final
>
>
> Facets can't @Inject Project, otherwise the following exception is thrown, which is not clear in a first moment:
> {code:java}
> Exception encountered: WELD-001303 No active contexts for scope type org.jboss.forge.shell.project.ProjectScoped (type "set VERBOSE true" to enable stack traces)
> {code}
> [~lincolnthree] suggested that it might be worth adding a check for this in a validation step of the Forge 1 weld extension
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months
[JBoss JIRA] (FORGE-929) Validate when a facet is injecting a Project
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-929?page=com.atlassian.jira.plugin.... ]
George Gastaldi reassigned FORGE-929:
-------------------------------------
Assignee: George Gastaldi
> Validate when a facet is injecting a Project
> ---------------------------------------------
>
> Key: FORGE-929
> URL: https://issues.jboss.org/browse/FORGE-929
> Project: Forge
> Issue Type: Enhancement
> Components: Container
> Affects Versions: 1.3.0.Final
> Reporter: George Gastaldi
> Assignee: George Gastaldi
>
> Facets can't @Inject Project, otherwise the following exception is thrown, which is not clear in a first moment:
> {code:java}
> Exception encountered: WELD-001303 No active contexts for scope type org.jboss.forge.shell.project.ProjectScoped (type "set VERBOSE true" to enable stack traces)
> {code}
> [~lincolnthree] suggested that it might be worth adding a check for this in a validation step of the Forge 1 weld extension
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months
[JBoss JIRA] (FORGE-929) Validate when a facet is injecting a Project
by George Gastaldi (JIRA)
George Gastaldi created FORGE-929:
-------------------------------------
Summary: Validate when a facet is injecting a Project
Key: FORGE-929
URL: https://issues.jboss.org/browse/FORGE-929
Project: Forge
Issue Type: Enhancement
Components: Container
Affects Versions: 1.3.0.Final
Reporter: George Gastaldi
Facets can't @Inject Project, otherwise the following exception is thrown, which is not clear in a first moment:
{code:java}
Exception encountered: WELD-001303 No active contexts for scope type org.jboss.forge.shell.project.ProjectScoped (type "set VERBOSE true" to enable stack traces)
{code}
[~lincolnthree] suggested that it might be worth adding a check for this in a validation step of the Forge 1 weld extension
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months
[JBoss JIRA] (FORGE-916) Faces scaffold does not handle deletion of entities with bidirectional relationships
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-916?page=com.atlassian.jira.plugin.... ]
Vineet Reynolds updated FORGE-916:
----------------------------------
Description:
The generated Faces scaffold contains code to handle deletion. But this works only for some scenarios.
For bidirectional relationships, the generated code in the View Beans should perform deletion on both sides of the relationship. Currently, this is performed on only one side - the side corresponding to the view from where deletion was triggered.
was:
The generated Faces scaffold contains code to handle deletion. But this works only for all scenarios.
For bidirectional relationships, the generated code in the View Beans should perform deletion on both sides of the relationship. Currently, this is performed on only one side - the side corresponding to the view from where deletion was triggered.
> Faces scaffold does not handle deletion of entities with bidirectional relationships
> ------------------------------------------------------------------------------------
>
> Key: FORGE-916
> URL: https://issues.jboss.org/browse/FORGE-916
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.0.5.Final, 1.3.0.Final
> Reporter: Vineet Reynolds
> Assignee: Vineet Reynolds
>
> The generated Faces scaffold contains code to handle deletion. But this works only for some scenarios.
> For bidirectional relationships, the generated code in the View Beans should perform deletion on both sides of the relationship. Currently, this is performed on only one side - the side corresponding to the view from where deletion was triggered.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months
[JBoss JIRA] (FORGEPLUGINS-112) generate-entities scans SYS schema, when not specified
by regin villamor (JIRA)
[ https://issues.jboss.org/browse/FORGEPLUGINS-112?page=com.atlassian.jira.... ]
regin villamor commented on FORGEPLUGINS-112:
---------------------------------------------
Hi, Any update on this one? Thanks.
> generate-entities scans SYS schema, when not specified
> ------------------------------------------------------
>
> Key: FORGEPLUGINS-112
> URL: https://issues.jboss.org/browse/FORGEPLUGINS-112
> Project: Forge Plugins
> Issue Type: Bug
> Components: Hibernate Tools Plugin
> Environment: Eclipse Juno, JBoss Forge, version [ 1.1.2.Final ] + Hibernate tools
> Reporter: Shashank Bezgoan
> Priority: Critical
> Labels: generate-entities
>
> While trying to reverse engineer any DB, get the below error.
> {code}
> $ generate-entities --url "jdbc:oracle:thin:@localhost:1521:XE" --user EAS --password EAS --dialect "org.hibernate.dialect.OracleDialect" --driver "oracle.jdbc.OracleDriver" --pathToDriver "C:\work\EWMP\FOS_WS\lib\ojdbc14.jar" --table "TASKDATA"
> ? In which package you'd like to generate the entities, or enter for default: [com.bt.wa.model]
> org.hibernate.cfg.JDBCBinderException: Duplicate class name 'com.bt.wa.model.AllFileGroups' generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'
> ***ERROR*** An unexpected error happened during reverse engineering.
> at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:173)
> at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:94)
> at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:43)
> at org.hibernate.forge.generate.GenerateEntitiesPlugin$1.run(GenerateEntitiesPlugin.java:179)
> at org.hibernate.forge.common.UrlClassLoaderExecutor.execute(UrlClassLoaderExecutor.java:13)
> at org.hibernate.forge.generate.GenerateEntitiesPlugin.doReverseEngineering(GenerateEntitiesPlugin.java:171)
> at org.hibernate.forge.generate.GenerateEntitiesPlugin.generateEntities(GenerateEntitiesPlugin.java:78)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.jboss.forge.shell.command.Execution.perform(Execution.java:134)
> at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)
> at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)
> at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:818)
> at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:841)
> at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:631)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
> at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
> at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
> at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
> at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
> at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
> at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
> at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
> at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
> at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
> at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
> at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
> at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
> at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
> at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
> at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:172)
> at java.lang.Thread.run(Unknown Source)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months
[JBoss JIRA] (FORGE-928) IllegalArgumentException with CLAC when UISelectMany.getValue() is called
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-928?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-928:
----------------------------------
Summary: IllegalArgumentException with CLAC when UISelectMany.getValue() is called (was: IllegalArgumentException with CLAC when UISelectMany.getValues() is called)
> IllegalArgumentException with CLAC when UISelectMany.getValue() is called
> -------------------------------------------------------------------------
>
> Key: FORGE-928
> URL: https://issues.jboss.org/browse/FORGE-928
> Project: Forge
> Issue Type: Bug
> Components: Container, UI - Eclipse
> Affects Versions: 2.0.0.Alpha4
> Reporter: George Gastaldi
> Assignee: Lincoln Baxter III
>
> The following exception happens when UISelectMany.getValue() is called in CheckboxTableControlBuilder (in order to know which values are already selected):
> {code:java}
> java.lang.IllegalArgumentException: Class loader to inspect must not be null.
> at org.jboss.forge.furnace.util.Assert.notNull(Assert.java:18)
> at org.jboss.forge.furnace.util.ClassLoaders.containsClass(ClassLoaders.java:48)
> at org.jboss.forge.proxy.ClassLoaderAdapterCallback.enhanceResult(ClassLoaderAdapterCallback.java:150)
> at org.jboss.forge.proxy.ClassLoaderAdapterCallback.access$300(ClassLoaderAdapterCallback.java:30)
> at org.jboss.forge.proxy.ClassLoaderAdapterCallback$1.call(ClassLoaderAdapterCallback.java:83)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
> at org.jboss.forge.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:59)
> at org.javassist.tmp.java.lang.Iterable_$$_javassist_2c062bdb-f227-4881-bace-b471ab43bbfa.iterator(Iterable_$$_javassist_2c062bdb-f227-4881-bace-b471ab43bbfa.java)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months