Error opening stream

I have called the screen from the service to download the PDF file, and it works well local.

<service verb="get" noun="PrintLogPDFFile" authenticate="anonymous-all">
            <script><![CDATA[

                ec.web.sendResourceResponse("${ec.web.getWebappRootUrl(true, null)}/fop/apps/marble/Accounting/Invoice/PrintInvoice?invoiceId=100000")
                    ]]></script>
            <log level="info" message="============+${ec.web.getWebappRootUrl(true, null)}"/>
        </actions>
      </service>

I can download it.

But, I have Problem in Docker instance it throwing an exception

22:55:49.236  INFO 324404955-19              o.moqui.i.c.WebFacadeImpl Service REST for GET to /rest/s1/common/ExportDocumentForLogDownload/ExportPrintLogForPDF headers [sec-fetch-mode, Cookie, sec-fetch-site, Accept, Connection, X-Forwarded-Host, X-Forwarded-Proto, X-Original-URI, User-Agent, Referer, Host, Accept-Encoding, priority, X-Forwarded-Port, sec-ch-ua, sec-ch-ua-mobile, sec-ch-ua-platform, X-Forwarded-For, Accept-Language, X-Forwarded-Ssl, X-Real-IP, sec-fetch-dest] parameters []
22:55:49.254 ERROR 324404955-19                  o.moqui.i.a.XmlAction Error running groovy script (org.moqui.BaseException: Error opening stream for https://sit1-ice.integrines.com/fop/apps/marble/Accounting/Invoice/PrintInvoice?invoiceId=100000): 
1 : import static org.moqui.util.ObjectUtilities.*
2 : import static org.moqui.util.CollectionUtilities.*
3 : import static org.moqui.util.StringUtilities.*
4 : import java.sql.Timestamp
5 : // these are in the context by default: ExecutionContext ec, Map<String, Object> context, Map<String, Object> result
6 :     username = basicConvert(ec.user.userAccount.partyId, "Sting")
7 : 
8 : // begin inline script
9 : ec.web.sendResourceResponse("${ec.web.getWebappRootUrl(true, null)}/fop/apps/marble/Accounting/Invoice/PrintInvoice?invoiceId=100000")
10 : // end inline script
11 :     ec.logger.log("info", """============+${ec.web.getWebappRootUrl(true, null)}""", null)
12 : // make sure the last statement is not considered the return value
13 : return;


22:55:49.255  WARN 324404955-19      o.moqui.i.c.TransactionFacadeImpl Transaction set rollback only. The rollback was originally caused by: Error running service common.FileDownload.get#PrintLogPDFFile (Throwable)
org.moqui.BaseException: Error opening stream for https://sit1-ice.integrines.com/fop/apps/marble/Accounting/Invoice/PrintInvoice?invoiceId=100000
	at org.moqui.resource.UrlResourceReference.openStream(UrlResourceReference.java:104) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.context.WebFacadeImpl.sendResourceResponseInternal(WebFacadeImpl.groovy:827) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.context.WebFacadeImpl.sendResourceResponse(WebFacadeImpl.groovy:803) ~[moqui-framework-3.0.0.jar:3.0.0]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at common_FileDownload_get_PrintLogPDFFile.run(common_FileDownload_get_PrintLogPDFFile:9) ~[?:?]
	at org.moqui.impl.actions.XmlAction.run(XmlAction.java:67) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.runner.InlineServiceRunner.runService(InlineServiceRunner.java:59) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.ServiceCallSyncImpl.callSingle(ServiceCallSyncImpl.java:322) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.ServiceCallSyncImpl.call(ServiceCallSyncImpl.java:125) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$MethodService.run(RestApi.groovy:248) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.runByMethod(RestApi.groovy:633) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.visitChildOrRun(RestApi.groovy:674) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$ResourceNode.visit(RestApi.groovy:751) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.visitChildOrRun(RestApi.groovy:665) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$ResourceNode.visit(RestApi.groovy:751) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.visitChildOrRun(RestApi.groovy:665) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$ResourceNode.visit(RestApi.groovy:751) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi.run(RestApi.groovy:109) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.context.WebFacadeImpl.handleServiceRestCall(WebFacadeImpl.groovy:1088) ~[moqui-framework-3.0.0.jar:3.0.0]
	at component___webroot_screen_webroot_rest_xml_transition_s1_actions.run(component___webroot_screen_webroot_rest_xml_transition_s1_actions:8) ~[?:?]
	at org.moqui.impl.actions.XmlAction.run(XmlAction.java:67) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenDefinition$TransitionItem.run(ScreenDefinition.groovy:987) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.recursiveRunTransition(ScreenRenderImpl.groovy:749) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.recursiveRunTransition(ScreenRenderImpl.groovy:745) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.internalRender(ScreenRenderImpl.groovy:454) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.render(ScreenRenderImpl.groovy:170) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.webapp.MoquiServlet.service(MoquiServlet.groovy:118) ~[moqui-framework-3.0.0.jar:3.0.0]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) ~[jetty-servlet-api-4.0.6.jar:?]
	at org.moqui.impl.webapp.ElasticRequestLogFilter.doFilter(ElasticRequestLogFilter.groovy:110) ~[moqui-framework-3.0.0.jar:3.0.0]
	at com.hazelcast.web.WebFilter.doFilter(WebFilter.java:305) ~[hazelcast-all-4.0.2.jar:4.0.2]
	at java.lang.Thread.run(Thread.java:829) ~[?:?]
Caused by: java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412) ~[?:?]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255) ~[?:?]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237) ~[?:?]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
	at java.net.Socket.connect(Socket.java:609) ~[?:?]
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:305) ~[?:?]
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173) ~[?:?]
	at sun.net.NetworkClient.doConnect(NetworkClient.java:182) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:508) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:603) ~[?:?]
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266) ~[?:?]
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:373) ~[?:?]
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:207) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081) ~[?:?]
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:193) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) ~[?:?]
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250) ~[?:?]
	at java.net.URL.openStream(URL.java:1165) ~[?:?]
	at org.moqui.resource.UrlResourceReference.openStream(UrlResourceReference.java:100) ~[moqui-framework-3.0.0.jar:3.0.0]
	... 32 more
22:55:49.258  WARN 324404955-19      o.moqui.i.c.TransactionFacadeImpl Transaction set rollback only for [Error running service common.FileDownload.get#PrintLogPDFFile (Throwable)]. Here is the current location: 
org.moqui.BaseException: Set rollback only location
	at org.moqui.impl.context.TransactionFacadeImpl.setRollbackOnly(TransactionFacadeImpl.groovy:492) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:445) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.ServiceCallSyncImpl.callSingle(ServiceCallSyncImpl.java:347) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.ServiceCallSyncImpl.call(ServiceCallSyncImpl.java:125) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$MethodService.run(RestApi.groovy:248) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.runByMethod(RestApi.groovy:633) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.visitChildOrRun(RestApi.groovy:674) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$ResourceNode.visit(RestApi.groovy:751) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.visitChildOrRun(RestApi.groovy:665) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$ResourceNode.visit(RestApi.groovy:751) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.visitChildOrRun(RestApi.groovy:665) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$ResourceNode.visit(RestApi.groovy:751) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi.run(RestApi.groovy:109) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.context.WebFacadeImpl.handleServiceRestCall(WebFacadeImpl.groovy:1088) ~[moqui-framework-3.0.0.jar:3.0.0]
	at component___webroot_screen_webroot_rest_xml_transition_s1_actions.run(component___webroot_screen_webroot_rest_xml_transition_s1_actions:8) ~[?:?]
	at org.moqui.impl.actions.XmlAction.run(XmlAction.java:67) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenDefinition$TransitionItem.run(ScreenDefinition.groovy:987) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.recursiveRunTransition(ScreenRenderImpl.groovy:749) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.recursiveRunTransition(ScreenRenderImpl.groovy:745) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.internalRender(ScreenRenderImpl.groovy:454) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.render(ScreenRenderImpl.groovy:170) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.webapp.MoquiServlet.service(MoquiServlet.groovy:118) ~[moqui-framework-3.0.0.jar:3.0.0]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) ~[jetty-servlet-api-4.0.6.jar:?]
	at org.moqui.impl.webapp.ElasticRequestLogFilter.doFilter(ElasticRequestLogFilter.groovy:110) ~[moqui-framework-3.0.0.jar:3.0.0]
	at com.hazelcast.web.WebFilter.doFilter(WebFilter.java:305) ~[hazelcast-all-4.0.2.jar:4.0.2]
	at java.lang.Thread.run(Thread.java:829) ~[?:?]
22:55:49.260  WARN 324404955-19        o.moqui.i.s.ServiceCallSyncImpl Error running service common.FileDownload.get#PrintLogPDFFile (Throwable) Artifact stack: common.FileDownload.get#PrintLogPDFFile, /common/ExportDocumentForLogDownload/ExportPrintLogForPDF, /common/ExportDocumentForLogDownload, /common, component://webroot/screen/webroot/rest.xml/s1, component://webroot/screen/webroot/rest.xml, component://webroot/screen/webroot.xml
org.moqui.BaseException: Error opening stream for https://sit1-ice.integrines.com/fop/apps/marble/Accounting/Invoice/PrintInvoice?invoiceId=100000
	at org.moqui.resource.UrlResourceReference.openStream(UrlResourceReference.java:104) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.context.WebFacadeImpl.sendResourceResponseInternal(WebFacadeImpl.groovy:827) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.context.WebFacadeImpl.sendResourceResponse(WebFacadeImpl.groovy:803) ~[moqui-framework-3.0.0.jar:3.0.0]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at common_FileDownload_get_PrintLogPDFFile.run(common_FileDownload_get_PrintLogPDFFile:9) ~[?:?]
	at org.moqui.impl.actions.XmlAction.run(XmlAction.java:67) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.runner.InlineServiceRunner.runService(InlineServiceRunner.java:59) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.ServiceCallSyncImpl.callSingle(ServiceCallSyncImpl.java:322) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.ServiceCallSyncImpl.call(ServiceCallSyncImpl.java:125) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$MethodService.run(RestApi.groovy:248) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.runByMethod(RestApi.groovy:633) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.visitChildOrRun(RestApi.groovy:674) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$ResourceNode.visit(RestApi.groovy:751) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.visitChildOrRun(RestApi.groovy:665) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$ResourceNode.visit(RestApi.groovy:751) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$PathNode.visitChildOrRun(RestApi.groovy:665) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi$ResourceNode.visit(RestApi.groovy:751) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.service.RestApi.run(RestApi.groovy:109) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.context.WebFacadeImpl.handleServiceRestCall(WebFacadeImpl.groovy:1088) ~[moqui-framework-3.0.0.jar:3.0.0]
	at component___webroot_screen_webroot_rest_xml_transition_s1_actions.run(component___webroot_screen_webroot_rest_xml_transition_s1_actions:8) ~[?:?]
	at org.moqui.impl.actions.XmlAction.run(XmlAction.java:67) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenDefinition$TransitionItem.run(ScreenDefinition.groovy:987) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.recursiveRunTransition(ScreenRenderImpl.groovy:749) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.recursiveRunTransition(ScreenRenderImpl.groovy:745) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.internalRender(ScreenRenderImpl.groovy:454) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.render(ScreenRenderImpl.groovy:170) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.webapp.MoquiServlet.service(MoquiServlet.groovy:118) ~[moqui-framework-3.0.0.jar:3.0.0]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) ~[jetty-servlet-api-4.0.6.jar:?]
	at org.moqui.impl.webapp.ElasticRequestLogFilter.doFilter(ElasticRequestLogFilter.groovy:110) ~[moqui-framework-3.0.0.jar:3.0.0]
	at com.hazelcast.web.WebFilter.doFilter(WebFilter.java:305) ~[hazelcast-all-4.0.2.jar:4.0.2]
	at java.lang.Thread.run(Thread.java:829) ~[?:?]
Caused by: java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412) ~[?:?]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255) ~[?:?]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237) ~[?:?]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
	at java.net.Socket.connect(Socket.java:609) ~[?:?]
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:305) ~[?:?]
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173) ~[?:?]
	at sun.net.NetworkClient.doConnect(NetworkClient.java:182) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:508) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:603) ~[?:?]
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266) ~[?:?]
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:373) ~[?:?]
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:207) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081) ~[?:?]
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:193) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) ~[?:?]
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250) ~[?:?]
	at java.net.URL.openStream(URL.java:1165) ~[?:?]
	at org.moqui.resource.UrlResourceReference.openStream(UrlResourceReference.java:100) ~[moqui-framework-3.0.0.jar:3.0.0]
	... 32 more
22:55:49.261 ERROR 324404955-19          o.moqui.i.c.MessageFacadeImpl Error opening stream for https://sit1-ice.integrines.com/fop/apps/marble/Accounting/Invoice/PrintInvoice?invoiceId=100000
22:55:49.261 ERROR 324404955-19          o.moqui.i.c.MessageFacadeImpl Connection refused (Connection refused)
22:55:49.261  WARN 324404955-19              o.moqui.i.c.WebFacadeImpl Error message from Service REST API (400): Error opening stream for https://sit1-ice.integrines.com/fop/apps/marble/Accounting/Invoice/PrintInvoice?invoiceId=100000
Connection refused (Connection refused)

22:55:49.262  WARN 324404955-19      o.moqui.i.c.TransactionFacadeImpl Transaction rollback for [Error opening stream for https://sit1-ice.integrines.com/fop/apps/marble/Accounting/Invoice/PrintInvoice?invoiceId=100000
Connection refused (Connection refused)
]. Here is the current location: 
org.moqui.BaseException: Rollback location
	at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:470) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:443) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.internalRender(ScreenRenderImpl.groovy:463) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.screen.ScreenRenderImpl.render(ScreenRenderImpl.groovy:170) ~[moqui-framework-3.0.0.jar:3.0.0]
	at org.moqui.impl.webapp.MoquiServlet.service(MoquiServlet.groovy:118) ~[moqui-framework-3.0.0.jar:3.0.0]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) ~[jetty-servlet-api-4.0.6.jar:?]
	at org.moqui.impl.webapp.ElasticRequestLogFilter.doFilter(ElasticRequestLogFilter.groovy:110) ~[moqui-framework-3.0.0.jar:3.0.0]
	at com.hazelcast.web.WebFilter.doFilter(WebFilter.java:305) ~[hazelcast-all-4.0.2.jar:4.0.2]
	at java.lang.Thread.run(Thread.java:829) ~[?:?]

How can i solve it ?

1 Like

The stack trace mentioned a connection refused error. Please double check the URL and make sure it is accessible.

2 Likes

Yeah, the URL is accessible; I can open it. However, the issue only occurs with the service and REST API.
it works well in localhost and i can call the service and REST API

1 Like

You’re getting a http 400 code:

Error message from Service REST API (400): Error opening stream for https://sit1-ice.integrines.com/fop/apps/marble/Accounting/Invoice/PrintInvoice?invoiceId=100000
Connection refused (Connection refused)

I would check cors and any firewall rules on the server. One way to check this is to run something like this in the groovy shell in Tools (requires ADMIN_ADV access):

def client = new org.eclipse.jetty.client.HttpClient(); client.start(); println(client.GET('https://sit1-ice.integrines.com/fop/apps/marble/Accounting/Invoice/PrintInvoice?invoiceId=100000').getContentAsString()); client.stop()

I’m getting an SSL error and I’m guessing that’s the problem. Setting up SSL isn’t hard with certbot or for moqui an acme-companion with nginx-proxy

ERROR java.util.concurrent.ExecutionException:
javax.net.ssl.SSLHandshakeException: Received fatal alert: internal_error
        at org.eclipse.jetty.client.util.FutureResponseListener.getResult (FutureResponseListener.java:113)
        at org.eclipse.jetty.client.util.FutureResponseListener.get (FutureResponseListener.java:96)
        at org.eclipse.jetty.client.HttpRequest.send (HttpRequest.java:819)
        at org.eclipse.jetty.client.HttpClient.GET (HttpClient.java:372)
        at org.eclipse.jetty.client.HttpClient.GET (HttpClient.java:357)
        at org.eclipse.jetty.client.HttpClient$GET.call (Unknown Source)
        at groovysh_evaluate.run (groovysh_evaluate:3)
        ...
1 Like