-
April 8th, 2023, 01:06 PM
#1
I'm getting the following message : Couldn't get a socket, try again
I need to connect lightstreamer to a certain domain, lightstreamer can't connect at all, I have tried to setForcedTransport to different protocols, non of them working.
However, I can open the lightstreamer page from MS edge, chrom-Incognito.
Why I can't connect from java at all????????
Here's the log
Picked up JAVA_TOOL_OPTIONS: -Djava.net.useSystemProxies=true;-Dfile.encoding=UTF-8
08.أبر.23 14:49:37,357|INFO |lightstreamer.actions|LS#402529|New client created
08.أبر.23 14:49:37,372|INFO |lightstreamer.actions|LS#402529|Server Address value changed to http://tadawulcom.net:8080/
08.أبر.23 14:49:37,375|INFO |lightstreamer.actions|LS#402529|Adapter Set value changed to FEEDERSERVER
08.أبر.23 14:49:37,431|INFO |lightstreamer.actions|LS#402529|Forced Transport value changed to null
08.أبر.23 14:49:39,555|INFO |lightstreamer.actions|LS#402529|User value changed to 402529
08.أبر.23 14:49:39,556|INFO |lightstreamer.actions|LS#402529|Password value changed
08.أبر.23 14:49:39,557|INFO |lightstreamer.actions|LS#402529|Forced Transport value changed to null
Start listening to client events
08.أبر.23 14:49:39,631|DEBUG|lightstreamer.actions|LS#402529 |Item group assigned: LSTOCKS
08.أبر.23 14:49:39,632|DEBUG|lightstreamer.actions|LS#402529 |Field list assigned: key command Data
08.أبر.23 14:49:39,632|DEBUG|lightstreamer.actions|LS#402529 |Adapter Set assigned: FEEDER_ADAPTER
08.أبر.23 14:49:39,632|DEBUG|lightstreamer.actions|LS#402529 |Snapshot Required assigned: yes
08.أبر.23 14:49:39,640|DEBUG|lightstreamer.actions|LS#402529 |Requested Max Frequency assigned: 1.0
08.أبر.23 14:49:39,643|DEBUG|lightstreamer.actions|LS#402529 |Item group assigned: LORDERS.402529
08.أبر.23 14:49:39,644|DEBUG|lightstreamer.actions|LS#402529 |Field list assigned: key command Data
08.أبر.23 14:49:39,644|DEBUG|lightstreamer.actions|LS#402529 |Adapter Set assigned: FEEDER_ADAPTER
08.أبر.23 14:49:39,645|DEBUG|lightstreamer.actions|LS#402529 |Snapshot Required assigned: yes
08.أبر.23 14:49:39,649|DEBUG|lightstreamer.actions|LS#402529 |Requested Max Frequency assigned: 1.0
08.أبر.23 14:49:39,650|DEBUG|lightstreamer.actions|LS#402529 |Item group assigned: LMARKETS
08.أبر.23 14:49:39,651|DEBUG|lightstreamer.actions|LS#402529 |Field list assigned: key command Data
08.أبر.23 14:49:39,651|DEBUG|lightstreamer.actions|LS#402529 |Adapter Set assigned: FEEDER_ADAPTER
08.أبر.23 14:49:39,652|DEBUG|lightstreamer.actions|LS#402529 |Snapshot Required assigned: yes
08.أبر.23 14:49:39,652|DEBUG|lightstreamer.actions|LS#402529 |Requested Max Frequency assigned: 1.0
08.أبر.23 14:49:39,652|DEBUG|lightstreamer.actions|LS#402529 |Item group assigned: LDEPTH.1020.MBO
08.أبر.23 14:49:39,652|DEBUG|lightstreamer.actions|LS#402529 |Field list assigned: key command Data
08.أبر.23 14:49:39,652|DEBUG|lightstreamer.actions|LS#402529 |Adapter Set assigned: FEEDER_ADAPTER
08.أبر.23 14:49:39,652|DEBUG|lightstreamer.actions|LS#402529 |Snapshot Required assigned: yes
08.أبر.23 14:49:39,653|DEBUG|lightstreamer.actions|LS#402529 |Requested Max Frequency assigned: 1.0
08.أبر.23 14:49:39,653|DEBUG|lightstreamer.actions|LS#402529 |Item group assigned: LDEPTH.1020.MBP
08.أبر.23 14:49:39,653|DEBUG|lightstreamer.actions|LS#402529 |Field list assigned: key command Data
08.أبر.23 14:49:39,653|DEBUG|lightstreamer.actions|LS#402529 |Adapter Set assigned: FEEDER_ADAPTER
08.أبر.23 14:49:39,653|DEBUG|lightstreamer.actions|LS#402529 |Snapshot Required assigned: yes
08.أبر.23 14:49:39,653|DEBUG|lightstreamer.actions|LS#402529 |Requested Max Frequency assigned: 1.0
08.أبر.23 14:49:39,654|INFO |lightstreamer.actions|LS#402529|Connect requested
08.أبر.23 14:49:39,712|INFO |lightstreamer.subscribe|Session Thread <1>|Adding subscription 1
08.أبر.23 14:49:39,716|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 1 ready to be sent to server
08.أبر.23 14:49:39,716|DEBUG|lightstreamer.actions|Session Thread <1>|structures reset for subscription 1
08.أبر.23 14:49:39,716|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 1 is now on hold
08.أبر.23 14:49:39,717|INFO |lightstreamer.subscribe|Session Thread <1>|Adding subscription 2
08.أبر.23 14:49:39,717|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 2 ready to be sent to server
08.أبر.23 14:49:39,717|DEBUG|lightstreamer.actions|Session Thread <1>|structures reset for subscription 2
08.أبر.23 14:49:39,717|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 2 is now on hold
08.أبر.23 14:49:39,717|INFO |lightstreamer.subscribe|Session Thread <1>|Adding subscription 3
08.أبر.23 14:49:39,717|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 3 ready to be sent to server
08.أبر.23 14:49:39,717|DEBUG|lightstreamer.actions|Session Thread <1>|structures reset for subscription 3
08.أبر.23 14:49:39,717|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 3 is now on hold
08.أبر.23 14:49:39,717|INFO |lightstreamer.subscribe|Session Thread <1>|Adding subscription 4
08.أبر.23 14:49:39,717|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 4 ready to be sent to server
08.أبر.23 14:49:39,718|DEBUG|lightstreamer.actions|Session Thread <1>|structures reset for subscription 4
08.أبر.23 14:49:39,718|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 4 is now on hold
08.أبر.23 14:49:39,718|INFO |lightstreamer.subscribe|Session Thread <1>|Adding subscription 5
08.أبر.23 14:49:39,718|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 5 ready to be sent to server
08.أبر.23 14:49:39,718|DEBUG|lightstreamer.actions|Session Thread <1>|structures reset for subscription 5
08.أبر.23 14:49:39,718|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 5 is now on hold
08.أبر.23 14:49:39,718|DEBUG|lightstreamer.session|Session Thread <1>|Opening a new session and starting automatic reconnections
08.أبر.23 14:49:39,722|DEBUG|lightstreamer.session|Session Thread <1>|SessionManager state change: OFF -> STREAMING_WS
08.أبر.23 14:49:39,735|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|Creating new WS channel pool map
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFact ory).
log4j:WARN Please initialize the log4j system properly.
08.أبر.23 14:49:39,916|DEBUG|lightstreamer.protocol|Session Thread <1>|New protocol oid=1
08.أبر.23 14:49:39,923|DEBUG|lightstreamer.heartbeat|Session Thread <1>|rhb max interval 0
08.أبر.23 14:49:39,923|DEBUG|lightstreamer.heartbeat|Session Thread <1>|rhb current interval 0
08.أبر.23 14:49:39,933|DEBUG|lightstreamer.session|Session Thread <1>|New session oid=1
08.أبر.23 14:49:39,947|INFO |lightstreamer.actions|Session Thread <1>|Session ID value changed to null
08.أبر.23 14:49:39,948|INFO |lightstreamer.actions|Session Thread <1>|Server Socket Name value changed to null
08.أبر.23 14:49:39,948|INFO |lightstreamer.actions|Session Thread <1>|Client IP value changed to null
08.أبر.23 14:49:39,948|INFO |lightstreamer.actions|Session Thread <1>|Server Instance Address value changed to null
08.أبر.23 14:49:39,948|INFO |lightstreamer.session|Session Thread <1>|Opening new session
Client property changed: sessionId
Client property changed: serverSocketName
Client property changed: clientIp
Client property changed: serverInstanceAddress
Client property changed: realMaxBandwidth
08.أبر.23 14:49:40,055|INFO |lightstreamer.utils|Session Thread <1>|Setting up custom CookieHandler: java.net.CookieManager@48fd2709
08.أبر.23 14:49:40,055|INFO |lightstreamer.utils|Session Thread <1>|Default CookieStore type: java.net.InMemoryCookieStore
08.أبر.23 14:49:40,055|DEBUG|lightstreamer.utils|Session Thread <1>|While getting cookies for http://tadawulcom.net:8080/lightstre...col=TLCP-2.1.0
08.أبر.23 14:49:40,056|DEBUG|lightstreamer.utils|Session Thread <1>|Result of getting cookies for http://tadawulcom.net:8080/lightstre...col=TLCP-2.1.0
08.أبر.23 14:49:40,056|INFO |lightstreamer.utils|Session Thread <1>|Cookies to be inserted for http://tadawulcom.net:8080/lightstre...ol=TLCP-2.1.0: <none>
08.أبر.23 14:49:40,091|DEBUG|lightstreamer.stream|Session Thread <1>|HTTP transport connection establishing (oid=1): http://tadawulcom.net:8080
/lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=pcYgxptg4pkpW39AN3R4hwL ri8L7R7q&LS_adapter_set=FEEDERSERVER&LS_user=40252 9&LS_password=PT1239129117&
-
April 11th, 2023, 07:51 AM
#2
Hello,
If you need to pass through a proxy, you have to set it explicitly by using the method ConnectionOptions.setProxy.
For example
client.connectionOptions.setProxy(new Proxy("HTTP", "myproxy", "3000"));
Similar Threads
-
By taihsing in forum Client SDKs
Replies: 3
Last Post: April 9th, 2019, 08:34 AM
-
By rvkvino in forum General
Replies: 15
Last Post: July 20th, 2018, 09:34 AM
-
By kpturner in forum Client SDKs
Replies: 3
Last Post: July 29th, 2014, 12:15 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 01:45 AM.
Bookmarks