java.net.ProtocolException: Unexpected response 401: TransportExchange@21375057=POST//na1.salesforce.com:443/cometd/handshake#7

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via salesforce.com by Unknown author, 1 year ago
Unexpected response 401: TransportExchange@21375057=POST//na1.salesforce.com:443/cometd/handshake#7
via salesforce.com by Unknown author, 1 year ago
Unexpected response 401: TransportExchange@21375057=POST//na1.salesforce.com:443/cometd/handshake#7
via Google Groups by Sudeep Pradhan, 2 years ago
Unexpected response 302: TransportExchange@23328673=POST//localhost:8443/cometd/handshake#7
via Google Groups by Jurjen van Geenen, 2 years ago
Unexpected response 500: TransportExchange@9493=POST//localhost:8080/CometD2.1-MessageBus-1.0- SNAPSHOT/cometd/connect#7
via Stack Overflow by rinjan
, 6 months ago
Unexpected response 408: TransportExchange@13d95194=POST//10.2.2.250:18080/cometd/connect#CONTENT(0ms)->COMPLETED(0ms)sent=1010ms
via Google Groups by happy li, 2 years ago
Unexpected response 404: TransportExchange@6e2c5444=POST//10.10.69.103:80/ handshake#CONTENT(0ms)->COMPLETED(1ms)sent=20ms
java.net.ProtocolException: Unexpected response 401: TransportExchange@21375057=POST//na1.salesforce.com:443/cometd/handshake#7
at org.cometd.client.BayeuxClient$PublishTransportListener.onProtocolError(BayeuxClient.java:969)
at org.eclipse.jetty.client.HttpExchange$Listener.onResponseComplete(HttpExchange.java:920)
at org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:263)
at org.eclipse.jetty.client.HttpConnection$Handler.messageComplete(HttpConnection.java:622)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:862)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:515)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.