Can't login to Share: java.net.ConnectException: HttpResponseProxy{HTTP/1.1 503 Service Unavailable

cancel
Showing results for 
Search instead for 
Did you mean: 
4535992
Senior Member

Can't login to Share: java.net.ConnectException: HttpResponseProxy{HTTP/1.1 503 Service Unavailable

Jump to solution

After i made a java remote debugging of my application (simple java servlet) i verify  it's work fine, but when i try to make a login on the share application i'm getting this error:

========================================================================

2018-06-06 19:55:34,352  INFO  [webscripts.connector.RemoteClient] [http-bio-8443-exec-45] Exception calling (GET) http://localhost:8080/alfresco/s/api/admin/restrictions?guest=true
 2018-06-06 19:55:34,352  INFO  [webscripts.connector.RemoteClient] [http-bio-8443-exec-45] Error status 503 HttpResponseProxy{HTTP/1.1 503 Service Unavailable [Server: squid/3.5.20, Mime-Version: 1.0, Date: Wed, 06 Jun 2018 17:55:34 GMT, Content-Type: text/html;charset=utf-8, Content-Length: 532, X-Squid-Error: ERR_CONNECT_FAIL 111, X-Cache: MISS from gatewayadsl.abd.it, X-Cache-Lookup: MISS from gatewayadsl.abd.it:3128, Via: 1.1 gatewayadsl.abd.it (squid/3.5.20), Connection: keep-alive] ResponseEntityProxy{[Content-Type: text/html;charset=utf-8,Content-Length: 532,Chunked: false]}}
 java.net.ConnectException: HttpResponseProxy{HTTP/1.1 503 Service Unavailable [Server: squid/3.5.20, Mime-Version: 1.0, Date: Wed, 06 Jun 2018 17:55:34 GMT, Content-Type: text/html;charset=utf-8, Content-Length: 532, X-Squid-Error: ERR_CONNECT_FAIL 111, X-Cache: MISS from gatewayadsl.abd.it, X-Cache-Lookup: MISS from gatewayadsl.abd.it:3128, Via: 1.1 gatewayadsl.abd.it (squid/3.5.20), Connection: keep-alive] ResponseEntityProxy{[Content-Type: text/html;charset=utf-8,Content-Length: 532,Chunked: false]}}
        at org.springframework.extensions.webscripts.connector.RemoteClient.service(RemoteClient.java:1179)
        at org.springframework.extensions.webscripts.connector.RemoteClient.service(RemoteClient.java:931)
        at org.springframework.extensions.webscripts.connector.RemoteClient.call(RemoteClient.java:654)
        at org.springframework.extensions.webscripts.connector.RemoteClient.call(RemoteClient.java:588)
        at org.springframework.extensions.webscripts.connector.HttpConnector.call(HttpConnector.java:70)
        at org.springframework.extensions.webscripts.RequestCachingConnector.call(RequestCachingConnector.java:91)
        at org.springframework.extensions.webscripts.connector.AbstractConnector.call(AbstractConnector.java:116)
        at org.springframework.extensions.webscripts.connector.AuthenticatingConnector.call(AuthenticatingConnector.java:114)
        at org.alfresco.web.site.EditionInterceptor.preHandle(EditionInterceptor.java:114)
        at org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter.preHandle(WebRequestHandlerInterceptorAdapter.java:55)
        at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:134)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:928)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:951)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:743)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
        at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
        at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
        at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
        at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)

========================================================================

I can't relog on share in any way so i need to restart the alfresco service, and after that it's seem the share application working just fine.

It's seem this problem popup after i use the java debug remote of my ide (eclipse, netbeans,ecc).

I use the Alfresco Community 5.2  with the embedded apache tomcat 7.

Someone has encounter already the same problem?

1 Solution

Accepted Solutions
4535992
Senior Member

Re: Can't login to Share: java.net.ConnectException: HttpResponseProxy{HTTP/1.1 503 Service Unavailable

Jump to solution

This problem is confirmed when you are in debug on your own web application under the same tomcat of alfresco.

So the solution is to stop the debug and stop and restart apache tomcat.

View solution in original post

2 Replies
afaust
Master

Re: Can't login to Share: java.net.ConnectException: HttpResponseProxy{HTTP/1.1 503 Service Unavailable

Jump to solution

Share did not work because apparently the Repository was unavailable - or at least your proxy server reported it as unavailable.

Without any log information from the Repository (alfresco.log / catalina.out) it will be impossible to determine / guess on a cause.

4535992
Senior Member

Re: Can't login to Share: java.net.ConnectException: HttpResponseProxy{HTTP/1.1 503 Service Unavailable

Jump to solution

This problem is confirmed when you are in debug on your own web application under the same tomcat of alfresco.

So the solution is to stop the debug and stop and restart apache tomcat.