Dreampie/Resty

demo部署到paas 上,客户端调用抛出异常

ouyanghuangzheng opened this issue · 0 comments

异常信息如下
[WARN] 2015-08-12 17:25:46,852 cn.dreampie.route.holder.DefaultExceptionHolder - Request "POST /api1.0/tests/0" error : 400 Unauthorized proxy request from 59.174.45.43
If you are the application developer or operator, you can set resty.http.XForwardedSupport
system property to allow proxy requests from this proxy IP with:
-Dresty.http.XForwardedSupport=59.174.45.43
Or if you want to allow any proxy request:
-Dresty.http.XForwardedSupport=all
java.lang.IllegalArgumentException: Unauthorized proxy request from 59.174.45.43
If you are the application developer or operator, you can set resty.http.XForwardedSupport
system property to allow proxy requests from this proxy IP with:
-Dresty.http.XForwardedSupport=59.174.45.43
Or if you want to allow any proxy request:
-Dresty.http.XForwardedSupport=all
at cn.dreampie.common.http.AbstractRequest.checkProxyRequest(AbstractRequest.java:98)
at cn.dreampie.common.http.AbstractRequest.getClientAddress(AbstractRequest.java:85)
at cn.dreampie.security.SessionBuilder.getSession(SessionBuilder.java:94)
at cn.dreampie.security.SessionBuilder.buildSession(SessionBuilder.java:147)
at cn.dreampie.security.SessionBuilder.in(SessionBuilder.java:43)
at cn.dreampie.route.interceptor.security.SecurityInterceptor.intercept(SecurityInterceptor.java:49)
at cn.dreampie.route.core.RouteInvocation.invoke(RouteInvocation.java:49)
at cn.dreampie.route.core.RouteHandler.handle(RouteHandler.java:67)
at cn.dreampie.route.handler.cors.CORSHandler.handle(CORSHandler.java:102)
at cn.dreampie.route.RestyFilter.doFilter(RestyFilter.java:82)
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:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:683)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)