2

我可以從用戶回撥中獲得授權「代碼」,使我的網絡應用程序有權訪問Google日曆。但是,當我嘗試使用我總是得到一個下列以獲得訪問令牌和刷新令牌「java.net.SocketTimeoutException:連接超時」例外代碼塊以下行如下:GoogleAuthorizationCodeTokenRequest在使用Google的OAuth 2.0時連接超時例外

googleTokenResponse = googleAuthorizationCodeTokenRequest.execute(); 

令人沮喪的是,我可以在運行在vFabric tc服務器上的Grails Web應用程序中獲得訪問令牌和刷新令牌,但是我必須編寫一個運行在JBoss EAP 6上的Java EE Web應用程序,這就是我獲得超時例外。

這裏是我使用來獲得訪問令牌和刷新令牌的內容:

String accessToken = ""; 
String refreshToken = ""; 
GoogleTokenResponse googleTokenResponse = null; 
try { 
    GoogleAuthorizationCodeTokenRequest googleAuthorizationCodeTokenRequest = new GoogleAuthorizationCodeTokenRequest(new NetHttpTransport(), new JacksonFactory(), myClientId, myClientSecret, code, myRedirectURI); 
    log.info("getTokensUsingGoogleAPI() :: googleAuthorizationCodeTokenRequest = " + googleAuthorizationCodeTokenRequest); 
    googleTokenResponse = googleAuthorizationCodeTokenRequest.execute(); 
} catch (TokenResponseException e) { 
... 
}     
if (googleTokenResponse != null) { 
    accessToken = googleTokenResponse.getAccessToken(); 
    if (accessToken != null) { 
     googleAuthenticationForCalendarId.setAccessToken(accessToken); 
     log.info("getTokensUsingGoogleAPI() :: accessToken = " + accessToken); 
    } 
    refreshToken = googleTokenResponse.getRefreshToken(); 
    if (refreshToken != null) { 
     log.info("getTokensUsingGoogleAPI() :: refreshToken = " + refreshToken); 
     googleAuthenticationForCalendarId.setRefreshToken(refreshToken); 
    } 
} else { 
    log.severe("getTokensUsingGoogleAPI() :: googleTokenResponse == null. Try again!!!"); 
} 

這裏是個例外:

12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) java.net.SocketTimeoutException: connect timed out 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:337) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:198) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at java.net.Socket.connect(Socket.java:579) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:607) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.net.NetworkClient.doConnect(NetworkClient.java:175) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.net.www.http.HttpClient.openServer(HttpClient.java:388) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.net.www.http.HttpClient.openServer(HttpClient.java:483) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:928) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1087) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:84) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:991) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:299) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest.execute(GoogleAuthorizationCodeTokenRequest.java:175) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at au.edu.nsw.det.corpcomm.calendar.rest.GoogleAuthenticationResourceRESTService.getTokensUsingGoogleAPI(GoogleAuthenticationResourceRESTService.java:167) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at au.edu.nsw.det.corpcomm.calendar.rest.GoogleAuthenticationResourceRESTService.getValuesFromCallback(GoogleAuthenticationResourceRESTService.java:90) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at java.lang.reflect.Method.invoke(Method.java:601) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) 
12:39:06,292 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:129) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:137) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.jpa.interceptor.SFSBInvocationInterceptor.processInvocation(SFSBInvocationInterceptor.java:58) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.processInvocation(StatefulSessionSynchronizationInterceptor.java:156) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:74) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.component.stateful.StatefulComponentInstanceInterceptor.processInvocation(StatefulComponentInstanceInterceptor.java:67) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:227) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:303) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:189) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:176) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ejb3.component.stateful.StatefulComponentIdInterceptor.processInvocation(StatefulComponentIdInterceptor.java:52) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at au.edu.nsw.det.corpcomm.calendar.rest.GoogleAuthenticationResourceRESTService$$$view39.getValuesFromCallback(Unknown Source) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at java.lang.reflect.Method.invoke(Method.java:601) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) 
12:39:06,308 ERROR [stderr] (http-/0.0.0.0:8080-4) at java.lang.Thread.run(Thread.java:722) 

我已經做了很多,但沒有成功的測試。

我已經做了很多搜索,但發現只有一個提到的超時異常在https://groups.google.com/forum/?fromgroups=#!search/GoogleAuthorizationCodeTokenRequest $ 20connect $ 20timed $ 20out /的oauth2-dev /目錄氧Y5jBo3w/j8YiZ0_FwEoJ但並不給出任何實際的解決方案。

任何幫助將不勝感激。

回答

1

這是一個代理問題。代理必須在JBoss EAP 6安裝中的JBoss配置中設置(請參閱How to set a proxy for a JBoss Instance - 第二個答案)。

我加入後

</extensions> 

下的\ jboss的-EAP-6.0 \獨立\配置\ standalone.xml

<system-properties> 
    <property name="http.proxyHost" value="our_proxy"/> 
    <property name="http.proxyPort" value="our_proxy_port"/> 
    <property name="http.nonProxyHosts" value="localhost"/> 
    <property name="https.proxyHost" value="our_proxy"/> 
    <property name="https.proxyPort" value="our_proxy_port"/> 
    <property name="https.nonProxyHosts" value="localhost"/> 
</system-properties> 

我希望這可以幫助別人。

+0

他們是否有辦法從後端本身設置代理服務器。 – Warrior 2016-06-15 06:26:08