Spark is not connecting through proxy

spark(2.0.5) is not able to connect through http/socks proxy.

can u please give any idea?(Required urgently)

my settings

in Advanced->general tab->

1.host:server ip address

2.port:5222

in Advanced->proxy tab

  1. protaocol :http

2.host:my proxy ip address

3.port:my ip port

i have given these fields .but this is not working.

how can i connect to wildfire server through proxy?

is there any need to change in wildfire server properties?

urgently help me out to solve this.

thanks a lot

Message was edited by: srihari

Hi,

Spark does support the HTTP proxy only for the plugin and update downloads.

I did recently publish a dirty patch to use a HTTP proxy which supports HTTP CONNECT to connect to Wildfires SSL port 5223.

LG

see: http://www.jivesoftware.org/community/thread.jspa?threadID=21960#131581

i am getting this error in the code how can i solve?

if (!headerDone && replyLen < reply.length) {

reply[replyLen++] = (byte) i;

}

error

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: illegal character: \35

if (!headerDone && replyLen < reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: ‘’)’’ expected

if (!headerDone && replyLen < reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: illegal start of expression

if (!headerDone && replyLen < reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: illegal character: \35

if (!headerDone && replyLen < reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: > expected

if (!headerDone && replyLen < reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: not a statement

if (!headerDone && replyLen < reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:116: ‘’;’’ expected

^

7 errors

i changed it to

if (!headerDone 12345&789; replyLen < reply.length) {

reply[replyLen++] = (byte) i;

}

eventhough i am getting the same error

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: ‘’)’’ expected

if (!headerDone 12345&789; replyLen<reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: illegal character: \35

if (!headerDone 12345&789; replyLen<reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: not a statement

if (!headerDone 12345&789; replyLen<reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: > expected

if (!headerDone 12345&789; replyLen<reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:113: not a statement

if (!headerDone 12345&789; replyLen<reply.length) {

^

D:\Softwares\smack\source\org\jivesoftware\smack\util\SSLTunnelSocke

tFactory.java:116: ‘’;’’ expected

^

6 errors

help me

Did you change " & # 3 8 ; & # 3 8 ; " to " && " in your code?

i have changed &&#38 to && .ok its compiled & generated smack.jar

i replaced with old smack.jar

but when i am logging into spark in the localhost (server)(user already exists in database & password is correct) i am getting this exception at 1026

in XmppConnection.java

1024 try {

1025 if (!usingCompression) {

1026 reader =new BufferedReader(new InputStreamReader(socket.getInputStream(), “UTF-8”));

1027 writer = new BufferedWriter(

1028 new OutputStreamWriter(socket.getOutputStream(), “UTF-8”));

1029 }

java.lang.NullPointerException

at org.jivesoftware.smack.XMPPConnection.initReaderAndWriter(XMPPConnect

ion.java:1026)

at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.j

ava:903)

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPC

onnection.java:868)

at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:134

at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:591)

at org.jivesoftware.LoginDialog$LoginPanel.access$0(LoginDialog.java:543

)

at org.jivesoftware.LoginDialog$1.construct(LoginDialog.java:500)

at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:132)

at java.lang.Thread.run(Unknown Source)

and in the screen its showing alert like invalid username/password

but it is logging perfectly using old smack.jar in localhost (server) .why?

Did you configure Spark not to autodetect host and port? “Make sure to connect to :5223 (SSL-Port).”