[JBoss JIRA] (FORGE-779) Class parameters are not correctly loaded for the consuming addon's classloader
by George Gastaldi (JIRA)
George Gastaldi created FORGE-779:
-------------------------------------
Summary: Class parameters are not correctly loaded for the consuming addon's classloader
Key: FORGE-779
URL: https://issues.jboss.org/browse/FORGE-779
Project: Forge
Issue Type: Bug
Reporter: George Gastaldi
Priority: Critical
Fix For: 2.0.0.Alpha1
Having the following scenario:
Eclipse plugin -> calls ConverterFactory -> passes Resource.class as a parameter
{code:java}
ConverterFactory.getConverter(File.class, Resource.class)
{code}
in ResourceConverterGenerator (resources addon):
{code:java}
@Override
public boolean handles(Class<?> source, Class<?> target)
{
return Resource.class.isAssignableFrom(target);
}
{code}
Returns false, because the classloader that loaded the Resource class is the Eclipse classloader, not the Resource addon classloader AND Resource.class is not visible in the convert addon.
--
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
13 years, 3 months
[JBoss JIRA] (FORGE-778) Include Hints plugin in Core
by George Gastaldi (JIRA)
George Gastaldi created FORGE-778:
-------------------------------------
Summary: Include Hints plugin in Core
Key: FORGE-778
URL: https://issues.jboss.org/browse/FORGE-778
Project: Forge
Issue Type: Enhancement
Components: Builtin Plugins
Reporter: George Gastaldi
Fix For: 1.2.1.Final
As for the F2F meeting in 2013, it has been decided that the Hint plugin should take part in core.
--
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
13 years, 3 months
[JBoss JIRA] (FORGE-775) Create a UICommandCache which uses generated Class files to lazy-load addons on demand
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-775?page=com.atlassian.jira.plugin.... ]
Lincoln Baxter III updated FORGE-775:
-------------------------------------
Description:
There must be an option to eagerly load an addon.
addon.xml
{code}<start-with-container>true</start-with-container>{code}
Also need to proxy appropriate command constraint metadata (UICommand.handles(...) needs to be redesigned to be more static?
was:
There must be an option to eagerly load an addon.
addon.xml
-> <start-with-container>true</start-with-container>
> Create a UICommandCache which uses generated Class files to lazy-load addons on demand
> --------------------------------------------------------------------------------------
>
> Key: FORGE-775
> URL: https://issues.jboss.org/browse/FORGE-775
> Project: Forge
> Issue Type: Story
> Components: Container, Plugin API
> Reporter: Lincoln Baxter III
> Fix For: 2.0.0.Alpha1
>
>
> There must be an option to eagerly load an addon.
> addon.xml
> {code}<start-with-container>true</start-with-container>{code}
> Also need to proxy appropriate command constraint metadata (UICommand.handles(...) needs to be redesigned to be more static?
--
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
13 years, 3 months
[JBoss JIRA] (FORGE-761) Error installing plugin in forge 1.2.0-final installed on ubuntu 12.04 with JDK 6
by Marek Schmidt (JIRA)
[ https://issues.jboss.org/browse/FORGE-761?page=com.atlassian.jira.plugin.... ]
Marek Schmidt commented on FORGE-761:
-------------------------------------
Can you check your settings.xml and pom.xml and see if there are any <activeProfile>...</activeProfile> that don't actually exist? Looking at the code of org.jboss.forge.maven.facets.MavenContainer.getBuildingRequest(MavenContainer.java:97), that looks like that might just throw a NPE in such cases...
> Error installing plugin in forge 1.2.0-final installed on ubuntu 12.04 with JDK 6
> ---------------------------------------------------------------------------------
>
> Key: FORGE-761
> URL: https://issues.jboss.org/browse/FORGE-761
> Project: Forge
> Issue Type: Bug
> Components: Builtin Plugins
> Affects Versions: 1.2.0.Final
> Environment: Ubuntu 12.04, JDK 1.6.0_38, Maven 3
> Reporter: Claudianus Adjai
> Labels: error-installing-pluigns, forge
>
> I was able to install forge 1.2.0.Final. But when I tried to install arquillian plugin which is why I was installing forge in the first place I get the following error.
> _____
> | ___|__ _ __ __ _ ___
> | |_ / _ \| `__/ _` |/ _ \ \\
> | _| (_) | | | (_| | __/ //
> |_| \___/|_| \__, |\___|
> |___/
> JBoss Forge, version [ 1.2.0.Final ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]
> ***INFO*** Preparing to install plugin: arquillian
> ***INFO*** Checking out plugin source files to [/tmp/forgetemp502227634218859984/repo] via 'git'
> ***INFO*** Switching to branch/tag [refs/heads/1.0.2.Final]
> Wrote /home/claudianus/.forge/httpsrawgithubcomforgepluginrepositorymasterrepositoryyaml.yaml
> ***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)
> java.lang.NullPointerException
> at org.jboss.forge.maven.facets.MavenContainer.getBuildingRequest(MavenContainer.java:97)
> at org.jboss.forge.maven.facets.MavenContainer.getRequest(MavenContainer.java:63)
> at org.jboss.forge.maven.facets.MavenContainer$Proxy$_$$_WeldClientProxy.getRequest(MavenContainer$Proxy$_$$_WeldClientProxy.java)
> at org.jboss.forge.maven.facets.MavenCoreFacetImpl.getPartialProjectBuildingResult(MavenCoreFacetImpl.java:85)
> at org.jboss.forge.maven.facets.MavenCoreFacetImpl.resolveProperties(MavenCoreFacetImpl.java:304)
> at org.jboss.forge.maven.facets.MavenDependencyFacet.resolveProperties(MavenDependencyFacet.java:393)
> at org.jboss.forge.maven.facets.MavenDependencyFacet.hasEffectiveDependency(MavenDependencyFacet.java:171)
> at org.jboss.forge.spec.javaee.BaseJavaEEFacet.isInstalled(BaseJavaEEFacet.java:64)
> at org.jboss.forge.project.BaseProject.registerFacet(BaseProject.java:153)
> at org.jboss.forge.project.services.ProjectFactory.registerSingleFacet(ProjectFactory.java:208)
> at org.jboss.forge.project.services.ProjectFactory.registerSingleFacet(ProjectFactory.java:186)
> at org.jboss.forge.project.services.ProjectFactory.registerFacets(ProjectFactory.java:178)
> at org.jboss.forge.project.services.ProjectFactory.findProjectRecursively(ProjectFactory.java:117)
> at org.jboss.forge.shell.project.ProjectInitializer.doInit(ProjectInitializer.java:91)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> 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:628)
> at org.jboss.weld.event.EventImpl.fire(EventImpl.java:75)
> at org.jboss.forge.shell.project.CurrentProject.setCurrentResource(CurrentProject.java:80)
> at org.jboss.forge.shell.ShellImpl.setCurrentResource(ShellImpl.java:1239)
> at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.setCurrentResource(ShellImpl$Proxy$_$$_WeldClientProxy.java)
> at org.jboss.forge.shell.plugins.builtin.ForgePlugin.buildFromCurrentProject(ForgePlugin.java:549)
> at org.jboss.forge.shell.plugins.builtin.ForgePlugin.installFromGit(ForgePlugin.java:396)
> at org.jboss.forge.shell.plugins.builtin.ForgePlugin.installFromIndex(ForgePlugin.java:237)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> 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(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> 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(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> 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(Thread.java:662)
> Note that I get the same error no matter what plugin I try to install.
> I can however install the same plugin via eclipse indigo with no errors. However, even after I install it I am not able to successfully run setup on configure the plugin in eclipse. I followed the steps I could find online about settings up the plugin after it is installed but I always get the following error in eclipse
> ***ERROR*** [arquillian] Plugin is not usable in current scope or project.
> and the more detailed version when I run the same command from a CLI
> ***ERROR*** [arquillian] Plugin is not usable in current scope or project.
> org.jboss.forge.shell.exceptions.PluginExecutionException: Plugin is not usable in current scope or project.
> at org.jboss.forge.shell.command.ExecutionParser.parse(ExecutionParser.java:136)
> at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:107)
> 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(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> 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(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> 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(Thread.java:662)??
> Note that I have my forge exploded under a mounted drive (under /media/...) not under my user home directory. I am throwing that here in case there are some permission issues.
> Thanks,
> C
--
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
13 years, 3 months
[JBoss JIRA] (FORGE-150) Implementations of JavaParser Interfaces should maintain equality with other implementations
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-150?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-150:
----------------------------------
Status: Closed (was: Pull Request Sent)
Resolution: Done
Merged, thanks !
> Implementations of JavaParser Interfaces should maintain equality with other implementations
> --------------------------------------------------------------------------------------------
>
> Key: FORGE-150
> URL: https://issues.jboss.org/browse/FORGE-150
> Project: Forge
> Issue Type: Enhancement
> Components: Parsers / File Manipulation
> Affects Versions: 1.0.0.Alpha4
> Reporter: Jason Porter
> Assignee: Ivan St. Ivanov
> Fix For: 1.2.1.Final
>
>
> Until I saw how to create an Import (which I still don't agree with having to be tied to the Implementation) I thought about creating my own implementation for a test (a mock would be even better) so I looked at the equals for the ImportImpl and it does not keep equality with other implementations because it checks to see if the class is the same. It also checks internal state instead of using the interface methods.
--
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
13 years, 3 months