[forge-issues] [JBoss JIRA] (FORGE-539) Connection refused: **ERROR** [forge install-plugin] Connection to ... behind a proxy

Ariel Machado (JIRA) jira-events at lists.jboss.org
Wed Oct 10 04:50:04 EDT 2012


    [ https://issues.jboss.org/browse/FORGE-539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725220#comment-12725220 ] 

Ariel Machado commented on FORGE-539:
-------------------------------------

Yes, the exception still is :
{noformat}java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64 from [Module "org.apache.httpcomponents:main" {noformat}

Using Forge 1.1.0.Final this is the full stack trace:

{code}
    _____
   |  ___|__  _ __ __ _  ___
   | |_ / _ \| `__/ _` |/ _ \  \\
   |  _| (_) | | | (_| |  __/  //
   |_|  \___/|_|  \__, |\___|
                   |___/

  Windows? Really? Okay...

[ticket-monster] demo $ version
version
JBoss Forge, version [ 1.1.0.Final ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]
[ticket-monster] demo $
[ticket-monster] demo $ set VERBOSE true
[ticket-monster] demo $ forge find-plugin
Connecting to remote repository [https://raw.github.com/forge/plugin-repository/master/repository.yaml]... ***ERROR*** Exception encountered: (type "set VERBOSE
 false" to disable stack traces)
java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64 from [Module "org.apache.httpcomponents:main" from local module loader @1fa157c (roots:
 I:\forge\modules,C:\Users\ariel.machado\.forge\plugins,I:\Git Repositories\ticket-monster\demo)]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
        at org.apache.http.impl.auth.BasicScheme.authenticate(BasicScheme.java:163)
        at org.apache.http.impl.auth.BasicScheme.authenticate(BasicScheme.java:135)
        at org.apache.http.client.protocol.RequestProxyAuthentication.process(RequestProxyAuthentication.java:93)
        at org.apache.http.protocol.BasicHttpProcessor.process(BasicHttpProcessor.java:251)
        at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:168)
        at org.apache.http.impl.client.DefaultRequestDirector.createTunnelToTarget(DefaultRequestDirector.java:780)
        at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:685)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:421)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)
        at org.jboss.forge.shell.util.PluginUtil.findPlugin(PluginUtil.java:85)
        at org.jboss.forge.shell.util.PluginUtil.findPlugin(PluginUtil.java:62)
        at org.jboss.forge.shell.plugins.builtin.ForgePlugin.find(ForgePlugin.java:170)
        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:601)
        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:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        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:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        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:722)
[ticket-monster] demo $
{code}

But using the download from https://www.box.com/s/87250563901df091af61 :

{code}
    _____
   |  ___|__  _ __ __ _  ___
   | |_ / _ \| `__/ _` |/ _ \  \\
   |  _| (_) | | | (_| |  __/  //
   |_|  \___/|_|  \__, |\___|
                   |___/

  Windows? Really? Okay...

[ticket-monster] demo $ version
version
JBoss Forge, version [ 1.0.6-SNAPSHOT ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]
[ticket-monster] demo $
[ticket-monster] demo $ forge find-plugin
Connecting to remote repository [https://raw.github.com/forge/plugin-repository/master/repository.yaml]... connected!
Wrote C:\/Users/ariel.machado/.forge/httpsrawgithubcomforgepluginrepositorymasterrepositoryyaml.yaml
[ticket-monster] demo $
{code}

I hope this can help you to find the cat :)
                
> Connection refused: **ERROR** [forge install-plugin] Connection to ... behind a proxy
> -------------------------------------------------------------------------------------
>
>                 Key: FORGE-539
>                 URL: https://issues.jboss.org/browse/FORGE-539
>             Project: Forge
>          Issue Type: Bug
>          Components: Shell
>    Affects Versions: 1.0.2.Final
>         Environment: windows7 forge 1.0.2
>            Reporter: Esteve Aviles
>            Assignee: Ivan St. Ivanov
>            Priority: Minor
>              Labels: proxy, shell,
>             Fix For: 1.0.6.Final
>
>         Attachments: forge-shell-1.0.2.Final.jar, forge.log, module.zip
>
>
> Hi,
> I am getting this error when using forge behind a proxy. I tried FORGE-421 Proxy support, but with no success.
> [seam3-test] seam3-test $ forge install-plugin arquillian
> Connecting to remote repository [https://raw.github.com/forge/plugin-repository/master/repository.yaml]... ***ERROR*** [forge install-plugin] Connection to https://raw.github.com refused
> org.jboss.forge.shell.exceptions.CommandExecutionException: Connection to https://raw.github.com refused
>         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(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:139)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.reflect.InvocationTargetException
>         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:149)
>         ... 31 more
> Caused by: org.apache.http.conn.HttpHostConnectException: Connection to https://raw.github.com refused
>         at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:127)
>         at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147)
>         at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108)
>         at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)
>         at org.jboss.forge.shell.util.PluginUtil.findPlugin(PluginUtil.java:88)
>         at org.jboss.forge.shell.plugins.builtin.ForgePlugin.installFromIndex(ForgePlugin.java:236)
>         ... 36 more
> Caused by: java.net.ConnectException: Connection timed out: connect
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.PlainSocketImpl.doConnect(Unknown Source)
>         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>         at java.net.PlainSocketImpl.connect(Unknown Source)
>         at java.net.SocksSocketImpl.connect(Unknown Source)
>         at java.net.Socket.connect(Unknown Source)
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
>         at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:333)
>         at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:123)
>         ... 44 more
> Thanks in advance

--
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


More information about the forge-issues mailing list