Salesforce component does not work through proxy
Issue
- We faced an issue when try to connect to Salesforce via proxy using Salesforce component
Caused by: org.eclipse.jetty.io.EofException
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:192)[86:org.eclipse.jetty.io:9.2.19.v20160908]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.flush(SslConnection.java:809)[86:org.eclipse.jetty.io:9.2.19.v20160908]
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:408)[86:org.eclipse.jetty.io:9.2.19.v20160908]
---
---
Caused by: java.nio.channels.ClosedChannelException
at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:270)[:1.8.0_101]
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:461)[:1.8.0_101]
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:170)[86:org.eclipse.jetty.io:9.2.19.v20160908]
... 15 more
- Same code used to run fine with Red Hat JBoss Fuse 6.2.1.
- Debug level logs
44 15:08:06,839 | DEBUG | t@1653515186-161 | ChannelEndPoint | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | filled 39 SelectChannelEndPoint@12085e12{my.testserver.com/1.1.1.1:8080<->50372,Open,in,out,-,-,203/ 44 0,HttpConnectionOverHTTP}{io=0,kio=0,kro=1}
45 15:08:06,839 | DEBUG | t@1653515186-161 | HttpReceiver | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | Read 39 bytes DirectByteBuffer@69a87dec[p=0,l=39,c=16384,r=39]={<<<HTTP/1.0 200 Conn...established\r\n\ 45 r\n>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} from SelectChannelEndPoint@12085e12{my.testserver.com/1.1.1.1:8080<->50372,Open,in,out, 45 -,-,0/0,HttpConnectionOverHTTP}{io=0,kio=0,kro=1}
46 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | parseNext s=START DirectByteBuffer@69a87dec[p=0,l=39,c=16384,r=39]={<<<HTTP/1.0 200 Conn...established\ 46 r\n\r\n>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
47 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | START --> RESPONSE_VERSION
48 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | RESPONSE_VERSION --> SPACE1
49 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | SPACE1 --> STATUS
50 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | STATUS --> SPACE2
51 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | SPACE2 --> REASON
52 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | REASON --> HEADER
53 15:08:06,839 | DEBUG | t@1653515186-161 | HttpReceiver | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | Response begin HttpResponse[HTTP/1.0 200 Connection established]@676f9ea9
54 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | HEADER --> EOF_CONTENT
55 15:08:06,839 | DEBUG | t@1653515186-161 | HttpReceiver | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | Response headers HttpResponse[HTTP/1.0 200 Connection established]@676f9ea9
56 n |
57 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | EOF_CONTENT --> END
58 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | reset HttpParser{s=END,0 of 0}
59 15:08:06,839 | DEBUG | t@1653515186-161 | HttpParser | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | END --> START
60 15:08:06,839 | DEBUG | t@1653515186-161 | HttpReceiver | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | Response success HttpResponse[HTTP/1.0 200 Connection established]@676f9ea9
61 15:08:06,839 | DEBUG | t@1653515186-161 | HttpExchange | 96 - org.eclipse.jetty.util - 9.2.19.v20160908 | Terminated response for HttpExchange@22a7d50d req=TERMINATED/null@null res=TERMINATED/null@null, result 61 : Result[HttpRequest[CONNECT my.testserver.com:443 HTTP/1.1]@26259a57 > HttpResponse[HTTP/1.0 200 Connection established]@676f9
Environment
- Red Hat JBoss Fuse
- 6.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
