developerforce/Jetstream — Issue #1: Unable to handshake using forcedotcom jetstream
Author: shashig
Created: 2011-10-28 13:08:09+00:00
State: open

Hi,

I am facing some issues starting up jetstream. I have followed the instructions for Java webapp. I am using embedded Jetty. Following is the execution log. Would appreciate any help in debugging this issue. Thanks.

Regards,
Shashi

----------------------------------------------------------------------------------------------------------------------------------------------------------
D:\Cloudspokes\MavenTest\jetstream>.\target\bin\webapp
Drive already SUBSTed
31 [main] INFO org.eclipse.jetty.util.log - jetty-7.4.0.v20110414
203 [main] INFO org.eclipse.jetty.util.log - started o.e.j.w.WebAppContext{/,file:/D:/Cloudspokes/MavenTest/jetstream/sr
c/main/webapp/}
405 [main] INFO com.force.sdk.streaming.server.ForceStreamingService - Creating bayeux service at /service/force
639 [main] INFO com.force.sdk.streaming.client.ForceStreamingClientModule - Providing http client for connection name fo
rceDatabase
639 [main] INFO com.force.sdk.connector - Connection : Creating forceDatabase from environment variable: FORCE_FORCEDATA
BASE_URL
639 [main] INFO com.force.sdk.connector - Connection : loading forceDatabase from cache
log4j:WARN No appenders could be found for logger (DataNucleus.ClassLoading).
log4j:WARN Please initialize the log4j system properly.
201776 [main] INFO org.eclipse.jetty.util.log - Started SelectChannelConnector@0.0.0.0:8080 STARTING
201776 [main] INFO org.eclipse.jetty.util.log - Started SslSelectChannelConnector@0.0.0.0:8443 STARTING
Connecting to push topic topic
204364 [HttpClient-16] INFO org.cometd.client.BayeuxClient@20910958 - Messages failed [{"id":"1","supportedConnectionTyp
es":["long-polling"],"channel":"/meta/handshake","version":"1.0"}]
java.net.ProtocolException: Unexpected response 400: TransportExchange@24333128=POST//login.salesforce.com:443/cometd/23
.0/handshake#7
at org.cometd.client.BayeuxClient$PublishTransportListener.onProtocolError(BayeuxClient.java:1106)
at org.cometd.client.transport.LongPollingTransport$TransportExchange.onResponseComplete(LongPollingTransport.ja
va:304)
at org.eclipse.jetty.client.HttpExchange$Listener.onResponseComplete(HttpExchange.java:968)
at org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:279)
at org.eclipse.jetty.client.HttpConnection$Handler.messageComplete(HttpConnection.java:619)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:862)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:275)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:619)
Removing channel /force/topic
205642 [HttpClient-19] INFO org.cometd.client.BayeuxClient@20910958 - Messages failed [{"id":"2","supportedConnectionTyp
es":["long-polling"],"channel":"/meta/handshake","version":"1.0"}]
java.net.ProtocolException: Unexpected response 400: TransportExchange@26153596=POST//login.salesforce.com:443/cometd/23
.0/handshake#7
at org.cometd.client.BayeuxClient$PublishTransportListener.onProtocolError(BayeuxClient.java:1106)
at org.cometd.client.transport.LongPollingTransport$TransportExchange.onResponseComplete(LongPollingTransport.ja
va:304)
at org.eclipse.jetty.client.HttpExchange$Listener.onResponseComplete(HttpExchange.java:968)
at org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:279)
at org.eclipse.jetty.client.HttpConnection$Handler.messageComplete(HttpConnection.java:619)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:862)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:275)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:619)
Removing channel /force
207917 [HttpClient-21] INFO org.cometd.client.BayeuxClient@20910958 - Messages failed [{"id":"3","supportedConnectionTyp
es":["long-polling"],"channel":"/meta/handshake","version":"1.0"}]
java.net.ProtocolException: Unexpected response 400: TransportExchange@25847952=POST//login.salesforce.com:443/cometd/23
.0/handshake#7
at org.cometd.client.BayeuxClient$PublishTransportListener.onProtocolError(BayeuxClient.java:1106)
at org.cometd.client.transport.LongPollingTransport$TransportExchange.onResponseComplete(LongPollingTransport.ja
va:304)
at org.eclipse.jetty.client.HttpExchange$Listener.onResponseComplete(HttpExchange.java:968)
at org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:279)
at org.eclipse.jetty.client.HttpConnection$Handler.messageComplete(HttpConnection.java:619)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:862)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:275)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:619)
211814 [HttpClient-20] INFO org.cometd.client.BayeuxClient@20910958 - Messages failed [{"id":"4","supportedConnectionTyp
es":["long-polling"],"channel":"/meta/handshake","version":"1.0"}]
java.net.ProtocolException: Unexpected response 400: TransportExchange@23449824=POST//login.salesforce.com:443/cometd/23
.0/handshake#7
at org.cometd.client.BayeuxClient$PublishTransportListener.onProtocolError(BayeuxClient.java:1106)
at org.cometd.client.transport.LongPollingTransport$TransportExchange.onResponseComplete(LongPollingTransport.ja
va:304)
at org.eclipse.jetty.client.HttpExchange$Listener.onResponseComplete(HttpExchange.java:968)
at org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:279)
at org.eclipse.jetty.client.HttpConnection$Handler.messageComplete(HttpConnection.java:619)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:862)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:275)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:619)
213217 [qtp10748354-42] INFO com.force.sdk.streaming.client.ForceBayeuxClient - Unable to complete handshake. Disconnect
ing from service.