[JBoss JIRA] (FORGE-95) NPE when holding CTRL + arrow
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-95?page=com.atlassian.jira.plugin.s... ]
Lincoln Baxter III closed FORGE-95.
-----------------------------------
Assignee: Lincoln Baxter III
Fix Version/s: (was: 1.0.0.Final)
Resolution: Cannot Reproduce Bug
> NPE when holding CTRL + arrow
> ------------------------------
>
> Key: FORGE-95
> URL: https://issues.jboss.org/browse/FORGE-95
> Project: Forge
> Issue Type: Bug
> Components: Shell, Windows
> Affects Versions: 1.0.0.Beta2
> Environment: Windows 7
> Reporter: George Gastaldi
> Assignee: Lincoln Baxter III
>
> The following stacktrace is presented with "set VERBOSE true":
> {code:java}
> java.lang.NullPointerException
> at jline.WindowsTerminal.readVirtualKey(WindowsTerminal.java:200)
> at jline.console.ConsoleReader.readVirtualKey(ConsoleReader.java:983)
> at jline.console.ConsoleReader.readBinding(ConsoleReader.java:1208)
> at jline.console.ConsoleReader.readLine(ConsoleReader.java:1300)
> at jline.console.ConsoleReader.readLine(ConsoleReader.java:1246)
> at jline.console.ConsoleReader.readLine(ConsoleReader.java:1232)
> at org.jboss.seam.forge.shell.ShellImpl.readLine(ShellImpl.java:601)
> at org.jboss.seam.forge.shell.ShellImpl.doShell(ShellImpl.java:486)
> 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.seam.forge.shell.org$jboss$weld$bean-classpath-ManagedBean-class_org$jboss$seam$forge$shell$ShellImpl_$$_WeldClientProxy.doShell(org$jboss$weld$bean-classpath-ManagedBean-class_or
> g$jboss$seam$forge$shell$ShellImpl_$$_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:270)
> at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253)
> at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:222)
> at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:632)
> at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:619)
> at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:613)
> at org.jboss.seam.forge.shell.Bootstrap$2.run(Bootstrap.java:92)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (FORGE-432) forge source-plugin cannot resolve dependency with property version
by Max Schwaab (JIRA)
Max Schwaab created FORGE-432:
---------------------------------
Summary: forge source-plugin cannot resolve dependency with property version
Key: FORGE-432
URL: https://issues.jboss.org/browse/FORGE-432
Project: Forge
Issue Type: Bug
Affects Versions: 1.0.0.Beta5
Environment: Windows 7, Desktop PC
Reporter: Max Schwaab
Priority: Minor
Hey there,
here is the new issue to my problem. I copied the description from FORGE-430 and updated it a bit.
Task:
Install a plugin from a local project with dependencies to some library not provided or known by Forge
Command:
forge source-plugin
The way to the failure:
ForgePlugin.installFromLocalProject invokes
ForgePlugin.installFromCurrentProject invokes
ForgePlugin.createModule invokes
ForgePlugin.createDependenciesModule invokes
ForgePlugin.resolveArtifacts invokes
MavenDependencyFacet.getDependencies which finally invokes
{code}
MavenCoreFacet maven = project.getFacet(MavenCoreFacet.class);
Model pom = maven.getPOM();
{code}
The problem is, that ForgePlugin.resolveArtifacts compares the dependencies and sets the original dependency d to d2, which comes from the MavenCoreFacet with no resolved version (but the {some.version} property as version).
So maybe the problem is in the ForgePlugin.resolveArtifacts method.
I pointed to the (possible) problem in the code snipped below.
d comes with correct resolved version and d2 comes with the content of the version property (e.g. {some.version}) as "version".
The comparison is successfull, but afterwards the new "version" can't be resolved (because its something like {some.version})
{code}
private List<DependencyResource> resolveArtifacts(final Project project, final Dependency dep) {
Dependency d = dep;
List<DependencyResource> artifacts = new ArrayList<DependencyResource>();
DependencyFacet deps = project.getFacet(DependencyFacet.class);
for (Dependency d2 : deps.getDependencies()) {
if (DependencyBuilder.areEquivalent(d, d2) && (d2.getVersion() != null))
{
d = d2; //<- this results in a "Could not resolve dependency" message
break;
}
}
if (artifacts.size() != 1)
{
artifacts = resolver.resolveArtifacts(d, deps.getRepositories());
}
if (artifacts.size() != 1)
{
ShellMessages.warn(writer, "Could not resolve dependency [" + d.toCoordinates() + "]");
}
return artifacts;
}
{code}
*Important*
This issue doesn't seem to have influence on the functionality of the plugin, maybe because I shaded the dependencies to Forge.
Hope you can reproduce this issue, otherwise I can give you a pom snipped with my dependencies.
Best regards
Max
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
[JBoss JIRA] (FORGE-442) Richfaces Plugin: can't setup project with RF in version 3.3.3.Final
by Jan Papousek (JIRA)
Jan Papousek created FORGE-442:
----------------------------------
Summary: Richfaces Plugin: can't setup project with RF in version 3.3.3.Final
Key: FORGE-442
URL: https://issues.jboss.org/browse/FORGE-442
Project: Forge
Issue Type: Bug
Affects Versions: 1.0.0.Beta5
Reporter: Jan Papousek
The problem is there is the [following code|https://github.com/forge/plugin-richfaces/blob/master/src/main/java/...] in RichFacesFacet:
{code}
if (RichFacesVersion.RICHFACES_3_3_3.equals(version)) {
List<ServletDef> servlets = descriptor.getServlets();
String facesServletName = "FacesServlet";
for (ServletDef servletDef : servlets) {
if (FACES_SERVLET_CLASS.equals(servletDef.getServletClass())) {
facesServletName = servletDef.getName();
}
}
FilterDef filter = descriptor.filter("org.ajax4jsf.Filter")
.mapping().servletName(facesServletName)
.dispatchTypes(DispatcherType.REQUEST,
DispatcherType.FORWARD,
DispatcherType.INCLUDE,
DispatcherType.ERROR);
}
{code}
Stack trace:
{code}
org.jboss.forge.shell.exceptions.CommandExecutionException
at org.jboss.forge.shell.command.Execution.perform(Execution.java:153)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:829)
at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:852)
at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:642)
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:109)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.InvocationTargetException
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:149)
... 31 more
Caused by: javax.enterprise.event.ObserverException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.jboss.weld.util.reflection.SecureReflections$16.work(SecureReflections.java:395)
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInstantiation(SecureReflectionAccess.java:216)
at org.jboss.weld.util.reflection.SecureReflections.newInstance(SecureReflections.java:390)
at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40)
at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:92)
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:214)
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.richfaces.forge.RichFacesPlugin.setup(RichFacesPlugin.java:49)
... 36 more
Caused by: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType
at org.jboss.shrinkwrap.descriptor.impl.spec.servlet.web.FilterMappingDefImpl.dispatchType(FilterMappingDefImpl.java:84)
at org.jboss.shrinkwrap.descriptor.impl.spec.servlet.web.FilterMappingDefImpl.dispatchTypes(FilterMappingDefImpl.java:94)
at org.richfaces.forge.RichFacesFacet.installDescriptor(RichFacesFacet.java:97)
at org.richfaces.forge.RichFacesFacet.install(RichFacesFacet.java:47)
at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:266)
at org.jboss.forge.project.BaseProject.installFacet(BaseProject.java:180)
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.weld.proxies.Project$-1946286523$Proxy$_$$_WeldClientProxy.installFacet(Project$-1946286523$Proxy$_$$_WeldClientProxy.java)
at org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:121)
at org.jboss.forge.shell.project.FacetInstallationHandler.install(FacetInstallationHandler.java:97)
at org.jboss.forge.shell.project.FacetInstallationHandler.installRequest(FacetInstallationHandler.java:75)
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)
... 43 more
Caused by: java.lang.ClassNotFoundException: javax.servlet.DispatcherType from [Module "org.jboss.shrinkwrap.descriptors:main" from local module loader @2c9b42e6 (roots: /opt/forge-1.0.0.Beta5/modules,/home/jpapouse/.forge/plugins)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
... 70 more
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
[JBoss JIRA] (FORGE-434) Inclusion of Seam Render Module: Conflict with Forge Core
by Ryan Bradley (JIRA)
Ryan Bradley created FORGE-434:
----------------------------------
Summary: Inclusion of Seam Render Module: Conflict with Forge Core
Key: FORGE-434
URL: https://issues.jboss.org/browse/FORGE-434
Project: Forge
Issue Type: Bug
Components: Forge Build, JBoss Tools Integration, Plugin API
Affects Versions: 1.0.0.Beta5, 1.0.0.Beta4, 1.0.0.Beta3
Environment: Fedora 15, 64-bit: exists with Forge versions 1.0.0.Beta3 through 1.0.0.Beta5
Reporter: Ryan Bradley
Assignee: Koen Aers
I am developing a plugin which depends on the seam-render module. When I execute 'forge source-plugin' to build and install the plugin, both operations are successful. Forge outputs "Build successful", and then, "Installed from [{plugin.home}] successfully." However, whenever I try to execute the plugin, Forge outputs the following error: "ERROR: No such command {command.name}". Through debugging, I have determined that it is the inclusion of the seam-render JAR in my plugin (also part of the Forge core) which causes these build issues. A workaround, described below, exists by manually including it as a dependency of the plugin, but this is obviously not ideal for third-party users of the plugin.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
[JBoss JIRA] (FORGE-438) Wrong/impenetrable error messages
by Pete Muir (JIRA)
Pete Muir created FORGE-438:
-------------------------------
Summary: Wrong/impenetrable error messages
Key: FORGE-438
URL: https://issues.jboss.org/browse/FORGE-438
Project: Forge
Issue Type: Bug
Reporter: Pete Muir
Installing the as7 plugin, I get this somewhat weird error message:
Not loading plugin [foo] due to incompatible Forge API version [1]. To remove this plugin, type 'forge remove-plugin foo:1:s1' inside Forge.
Not loading plugin [foo] due to incompatible Forge API version [2]. To remove this plugin, type 'forge remove-plugin foo:2:s2' inside Forge.
Where foo is coming from, I don't know, and what the [1] and [2] are is also not clear
Issue is both the the fact I get the error, and the fact the error message is basically gibberish.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months