<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
h1
        {mso-style-priority:9;
        mso-style-link:"T\00EDtulo 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:24.0pt;
        font-family:"Times New Roman","serif";}
h2
        {mso-style-priority:9;
        mso-style-link:"T\00EDtulo 2 Char";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:18.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"Pr\00E9-formata\00E7\00E3o HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texto de bal\00E3o Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextodebaloChar
        {mso-style-name:"Texto de bal\00E3o Char";
        mso-style-priority:99;
        mso-style-link:"Texto de bal\00E3o";
        font-family:"Tahoma","sans-serif";}
span.Ttulo1Char
        {mso-style-name:"T\00EDtulo 1 Char";
        mso-style-priority:9;
        mso-style-link:"T\00EDtulo 1";
        font-family:"Times New Roman","serif";
        mso-fareast-language:PT-BR;
        font-weight:bold;}
span.Ttulo2Char
        {mso-style-name:"T\00EDtulo 2 Char";
        mso-style-priority:9;
        mso-style-link:"T\00EDtulo 2";
        font-family:"Times New Roman","serif";
        mso-fareast-language:PT-BR;
        font-weight:bold;}
span.Pr-formataoHTMLChar
        {mso-style-name:"Pr\00E9-formata\00E7\00E3o HTML Char";
        mso-style-priority:99;
        mso-style-link:"Pr\00E9-formata\00E7\00E3o HTML";
        font-family:"Courier New";
        mso-fareast-language:PT-BR;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PT-BR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I have a Restful Web Service, the server application is located on Server A and the client application is located on Openshift. If I try to run the client from any computer it works perfect but if I run from the Openshift
I get the following error message:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<h1><span lang="EN-US">An Error Occurred:<o:p></o:p></span></h1>
<p class="MsoNormal"><span lang="EN-US">java.net.SocketException: Permission denied<o:p></o:p></span></p>
<h2><span lang="EN-US">Stack Trace</span><span lang="EN-US"><o:p></o:p></span></h2>
<pre><code><span lang="EN-US">com.sun.jersey.api.client.ClientHandlerException: java.net.SocketException: Permission denied<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.jersey.api.client.Client.handle(Client.java:652)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.jersey.api.client.WebResource.get(WebResource.java:193)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at br.com.lidertec.meucinemaclient.mb.CinemaMB.getFilmesEmCartaz(CinemaMB.java:22)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.lang.reflect.Method.invoke(Method.java:497)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.el.BeanELResolver.getValue(BeanELResolver.java:363)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.el.parser.AstValue.getValue(AstValue.java:140)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.el.parser.AstValue.getValue(AstValue.java:204)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:226)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.UIData.getValue(UIData.java:732)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.UIData.getDataModel(UIData.java:1822)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.UIData.setRowIndexWithoutRowStatePreserved(UIData.java:484)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.UIData.setRowIndex(UIData.java:473)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:81)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:864)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.UIData.encodeBegin(UIData.java:1133)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:456)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:655)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:282)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:261)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.lang.Thread.run(Thread.java:745)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US">Caused by: java.net.SocketException: Permission denied<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.net.PlainSocketImpl.socketConnect(Native Method)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.net.Socket.connect(Socket.java:589)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.net.Socket.connect(Socket.java:538)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.http.HttpClient.New(HttpClient.java:308)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.http.HttpClient.New(HttpClient.java:326)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1168)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1104)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:998)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:932)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1512)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:253)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153)<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"> </span>... 60 more<o:p></o:p></code></pre>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Can Anyone help???<o:p></o:p></span></p>
</div>
</body>
</html>