Issue #14 resolved

Can't read from Plugin Page

Anonymous created an issue

I downloaded scm-manager and started it but there is an issue in case I try to read the plugins. I'm able to see the xml file in case I'm using my browser

Webapp is running and I can login

Message: Fehler: Es konnten keine Daten geladen werden. Server-Status: 500

From the cmd: SCHWERWIEGEND: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container sonia.scm.plugin.PluginLoadException: java.net.ConnectException: Connection timed out: connect at sonia.scm.plugin.DefaultPluginManager.getPluginCente(DefaultPluginManager.java:562)

Comments (26)

  1. Sebastian Sdorra repo owner

    Could you please edit the scm-server/bin/scm-server.bat. Search the the following line:

    set EXTRA_JVM_ARGUMENTS=

    and change this line to:

    set EXTRA_JVM_ARGUMENTS= "-Dsun.net.client.defaultConnectTimeout=300000 -Dsun.net.client.defaultReadTimeout=300000"

    Restart the scm-server and test the plugin page again.

  2. Anonymous

    Okay!

    with this line in place

    set EXTRA_JVM_ARGUMENTS= "-Dsun.net.client.defaultConnectTimeout=300000 -Dsun.net.client.defaultReadTimeout=300000"

    the Webapp is not reachable at all..... But scm-server.bat is started and running.

    Switched of the firewall for now but this was not solving the issue.

  3. Anonymous

    Problem still exists. Looks like a Proxy issue - that's different from my home PC

    Here is a part of the error. Is there a place I can upload the full error trace?

    10:11:13.076 [qtp8918249-15] INFO sonia.scm.plugin.DefaultPluginManager - fetch plugin informations from http://downloa d.scm-manager.org/issues/14/plugins.xml 06.05.2011 10:11:34 com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException SCHWERWIEGEND: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container sonia.scm.plugin.PluginLoadException: java.net.ConnectException: Connection timed out: connect at sonia.scm.plugin.DefaultPluginManager.getPluginCenter(DefaultPluginManager.java:562) at sonia.scm.plugin.DefaultPluginManager.get(DefaultPluginManager.java:310) at sonia.scm.api.rest.resources.PluginResource.getOverview(PluginResource.java:199) 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 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispa tch(AbstractResourceMethodDispatchProvider.java:168) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDisp atcher.java:71) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:280) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1341) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1273) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1223) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1213) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:216)

  4. Sebastian Sdorra repo owner

    Could you please edit the scm-server/bin/scm-server.bat again? Search the the following line:

    set EXTRA_JVM_ARGUMENTS=

    and replace it with:

    set EXTRA_JVM_ARGUMENTS="-Dhttp.proxyHost=yourproxy -Dhttp.proxyPort=yourproxyport"

    if your proxy uses authentication replace the line with:

    set EXTRA_JVM_ARGUMENTS="-Dhttp.proxyHost=yourproxy -Dhttp.proxyPort=yourproxyport -Dhttp.proxyUser=yourusername -Dhttp.proxyPassword=yourpassword"

    And test the behavior again.

  5. Anonymous

    I added the proxy settings but it was not fixing the problem....I'm not in the office this afternoon

  6. Anonymous

    should i use

    set EXTRA_JVM_ARGUMENTS="-Dhttp.proxyHost=webproxy... -Dhttp.proxyPort=8080"

    or

    set EXTRA_JVM_ARGUMENTS="-Dhttp.proxyHost="webproxy..." -Dhttp.proxyPort=8080"

  7. Anonymous

    should i use

    set EXTRA_JVM_ARGUMENTS="-Dhttp.proxyHost=webproxy... -Dhttp.proxyPort=8080"

    or

    set EXTRA_JVM_ARGUMENTS="-Dhttp.proxyHost="webproxy..." -Dhttp.proxyPort=8080"

  8. Anonymous

    still running into the same error......

    09:51:48.543 [qtp8918249-16] INFO sonia.scm.plugin.DefaultPluginManager - fetch plugin informations from http://plugins.scm-manager.org/scm-plugin-ba ckend/api/1.1/plugins?os=windows 09.05.2011 09:52:10 com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException SCHWERWIEGEND: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container sonia.scm.plugin.PluginLoadException: java.net.ConnectException: Connection timed out: connect at sonia.scm.plugin.DefaultPluginManager.getPluginCenter(DefaultPluginManager.java:562) at sonia.scm.plugin.DefaultPluginManager.get(DefaultPluginManager.java:310) at sonia.scm.api.rest.resources.PluginResource.getOverview(PluginResource.java:199) 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 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDisp atchProvider.java:168) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:71) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:280) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1341) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1273) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1223) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1213) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:216)

  9. Anonymous

    Okay, this fixes the problem now! GREAT JOB!

    But unforgently I ran into the next issue when I try to install a plugin now:

    13:17:37.492 [qtp11108810-21] INFO sonia.scm.plugin.AetherPluginHandler - try t o install plugin with gav: sonia.scm.plugins:scm-activedirectory-auth-plugin:1.3 -SNAPSHOT 09.05.2011 13:19:23 com.sun.jersey.spi.container.ContainerResponse mapMappableCo ntainerException SCHWERWIEGEND: The RuntimeException could not be mapped to a response, re-throwi ng to the HTTP container sonia.scm.plugin.PluginException: org.sonatype.aether.collection.DependencyColle ctionException: Failed to collect dependencies for sonia.scm.plugins:scm-actived irectory-auth-plugin:jar:1.3-SNAPSHOT (runtime) at sonia.scm.plugin.AetherPluginHandler.collectDependencies(AetherPlugin Handler.java:263) at sonia.scm.plugin.AetherPluginHandler.install(AetherPluginHandler.java :169) at sonia.scm.plugin.DefaultPluginManager.install(DefaultPluginManager.ja va:179) at sonia.scm.api.rest.resources.PluginResource.install(PluginResource.ja va:92) 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 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMeth odDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchPr ovider.java:187) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDi spatcher.dispatch(ResourceJavaMethodDispatcher.java:71) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethod Rule.java:280) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHa ndPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resourc eClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHa ndPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(R ootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequ est(WebApplicationImpl.java:1341) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequ est(WebApplicationImpl.java:1273) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque st(WebApplicationImpl.java:1223) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque st(WebApplicationImpl.java:1213) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponen t.java:414)

  10. Anonymous

    Even the Hello World Plugin is not working

    13:35:06.083 [qtp11108810-21] INFO sonia.scm.plugin.AetherPluginHandler - try t o install plugin with gav: sonia.scm.sample:scm-sample-hello:1.2 09.05.2011 13:36:09 com.sun.jersey.spi.container.ContainerResponse mapMappableCo ntainerException SCHWERWIEGEND: The RuntimeException could not be mapped to a response, re-throwi ng to the HTTP container sonia.scm.plugin.PluginException: org.sonatype.aether.collection.DependencyColle ctionException: Failed to collect dependencies for sonia.scm.sample:scm-sample-h ello:jar:1.2 (runtime) at sonia.scm.plugin.AetherPluginHandler.collectDependencies(AetherPlugin Handler.java:263) at sonia.scm.plugin.AetherPluginHandler.install(AetherPluginHandler.java :169) at sonia.scm.plugin.DefaultPluginManager.install(DefaultPluginManager.ja va:179) at sonia.scm.api.rest.resources.PluginResource.install(PluginResource.ja va:92) 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)

  11. Anonymous

    No - still not installing plugins.....

    13:56:14.543 [qtp8918249-15] INFO sonia.scm.plugin.AetherPluginHandler - try to install plugin with gav: sonia.scm.plugins:scm-activedirectory-auth-plugin:1.3- SNAPSHOT 09.05.2011 13:58:00 com.sun.jersey.spi.container.ContainerResponse mapMappableCo ntainerException SCHWERWIEGEND: The RuntimeException could not be mapped to a response, re-throwi ng to the HTTP container sonia.scm.plugin.PluginException: org.sonatype.aether.collection.DependencyColle ctionException: Failed to collect dependencies for sonia.scm.plugins:scm-actived irectory-auth-plugin:jar:1.3-SNAPSHOT (runtime) at sonia.scm.plugin.AetherPluginHandler.collectDependencies(AetherPlugin Handler.java:274) at sonia.scm.plugin.AetherPluginHandler.install(AetherPluginHandler.java :174) at sonia.scm.plugin.DefaultPluginManager.install(DefaultPluginManager.ja va:177) at sonia.scm.api.rest.resources.PluginResource.install(PluginResource.ja va:92) 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 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMeth odDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchPr ovider.java:187)

  12. Anonymous

    OKAY, this sounds like a solution

    ---- it's WORKING now!

    Great. I will go ahead and configure LDAP or AD.

    THANKS!

  13. Log in to comment