powered by Jive Software

Unable to Connect / XML Parse error while using 5223

Problem: I’‘m Unable to Connect and getting XML Parse error via gAIM and other jabber clients that I’'m using while using 5223 (Cannot connect with 5222 or 5223).

== Error Log ==

401

402

403

404

405

406

407

408

409

410

411

412

413

414

415

416

417

418

419

420

421

422

423

424

425

426

427

428

429

430

431

432

433

434

435

436

437

438

439

440

441

442

443

444

445

446

447

448

449

450

2006.05.31 20:31:49 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

1cec874[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45287,localport=5223]]

2006.05.31 20:35:42 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

881cb3[SSL_NULL_WITH_NULL_NULL: Socket[addr=/127.0.0.1,port=42180,localport=5223]]

2006.05.31 20:37:03 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

ae1393[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45381,localport=5223]]

2006.05.31 20:38:59 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

1f35e30[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45393,localport=5223]]

2006.05.31 21:13:07 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

cac877[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45403,localport=5223]]

2006.05.31 21:47:15 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

15034e0[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45409,localport=5223]]

2006.05.31 22:21:24 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

6f29c8[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45416,localport=5223]]

2006.05.31 22:55:32 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

176a288[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45433,localport=5223]]

2006.05.31 23:29:40 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

166fad9[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45440,localport=5223]]

2006.06.01 00:03:49 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

1ea9776[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45445,localport=5223]]

2006.06.01 00:37:57 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

3c7e3f[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45451,localport=5223]]

2006.06.01 01:12:07 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

dd17f5[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45456,localport=5223]]

2006.06.01 01:46:15 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

ca206e[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45460,localport=5223]]

2006.06.01 02:20:23 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

4d45b1[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45465,localport=5223]]

2006.06.01 02:54:31 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

ad15e6[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45470,localport=5223]]

2006.06.01 03:28:41 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

1877de5[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45474,localport=5223]]

2006.06.01 04:02:49 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

18b3506[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45509,localport=5223]]

2006.06.01 04:37:14 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

e35bb2[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=45529,localport=5223]]

2006.06.01 16:43:45 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

156f21f[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=47223,localport=5223]]

2006.06.01 16:43:54 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

407a86[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=47224,localport=5223]]

2006.06.01 16:44:10 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

f0638e[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=47225,localport=5223]]

2006.06.01 16:44:42 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

106a2bf[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=47228,localport=5223]]

2006.06.01 16:45:47 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

1ed46fd[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=47229,localport=5223]]

2006.06.01 16:46:18 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

15a5006[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.53.136.62,port=1881,localport=5223]]

2006.06.01 16:49:51 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

1234155[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=47255,localport=5223]]

== End Error Log ==

==Warn Log==

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

2006.05.31 20:11:57 Allowing multiple S2S connections for each domain, without setting a maximum idle timeout for these connections, is unrecommended! Either set xmpp.server.session.allowmultiple to ‘‘false’’ or change xmpp.server.session.idle to a (large) positive value.

2006.05.31 20:13:36 Stream error detected. Session: org.jivesoftware.wildfire.ClientSession@5ead9d status: 1 address: 69.73.158.131/e9af224b id: e9af224b presence:

java.lang.NullPointerException
at org.jivesoftware.wildfire.net.SocketReader.negotiateTLS(SocketReader.java:689)
at org.jivesoftware.wildfire.net.SocketReader.readStream(SocketReader.java:268)
at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:119)
at java.lang.Thread.run(Unknown Source)
2006.06.01 16:47:02 Stream error detected. Session: org.jivesoftware.wildfire.ClientSession@c55b4d status: 1 address: 69.73.158.131/6e5873e8 id: 6e5873e8 presence:

java.lang.NullPointerException
at org.jivesoftware.wildfire.net.SocketReader.negotiateTLS(SocketReader.java:689)
at org.jivesoftware.wildfire.net.SocketReader.readStream(SocketReader.java:268)
at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:119)
at java.lang.Thread.run(Unknown Source)
2006.06.01 16:47:26 Stream error detected. Session: org.jivesoftware.wildfire.ClientSession@14a1467 status: 1 address: 69.73.158.131/6198fda9 id: 6198fda9 presence:

java.lang.NullPointerException
at org.jivesoftware.wildfire.net.SocketReader.negotiateTLS(SocketReader.java:689)
at org.jivesoftware.wildfire.net.SocketReader.readStream(SocketReader.java:268)
at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:119)
at java.lang.Thread.run(Unknown Source)
== End Warn Log ==

== Debug Log ==
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
2006.06.01 16:46:18 Error creating session
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2971)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3025)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
at org.jivesoftware.wildfire.net.MXParser.nextImpl(MXParser.java:331)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at org.jivesoftware.wildfire.net.SocketReader.createSession(SocketReader.java:573)
at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:110)
at java.lang.Thread.run(Unknown Source)
2006.06.01 16:46:44 SSL Connect 1143f95[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.53.136.62,port=1886,localport=5223]]
2006.06.01 16:46:46 Logging off 69.73.158.131/6427deb4 on org.jivesoftware.wildfire.net.SocketConnection@5a75b5 socket: 1143f95[SSL_RSA_WITH_RC4_128_MD5: Socket[addr=/69.53.136.62,port=1886,localport=5223]] session: org.jivesoftware.wildfire.ClientSession@b1cbb8 status: 1 address: 69.73.158.131/6427deb4 id: 6427deb4 presence:

2006.06.01 16:47:02 SSL Connect c6174c[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.53.136.62,port=1891,localport=5223]]
2006.06.01 16:47:02 Logging off 69.73.158.131/6e5873e8 on org.jivesoftware.wildfire.net.SocketConnection@1238a42 socket: c6174c[SSL_RSA_WITH_RC4_128_MD5: Socket[addr=/69.53.136.62,port=1891,localport=5223]] session: org.jivesoftware.wildfire.ClientSession@c55b4d status: 1 address: 69.73.158.131/6e5873e8 id: 6e5873e8 presence:

2006.06.01 16:47:26 SSL Connect 1a95a1a[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.53.136.62,port=1896,localport=5223]]
2006.06.01 16:47:26 Logging off 69.73.158.131/6198fda9 on org.jivesoftware.wildfire.net.SocketConnection@15a82a3 socket: 1a95a1a[SSL_RSA_WITH_RC4_128_MD5: Socket[addr=/69.53.136.62,port=1896,localport=5223]] session: org.jivesoftware.wildfire.ClientSession@14a1467 status: 1 address: 69.73.158.131/6198fda9 id: 6198fda9 presence:

2006.06.01 16:49:51 SSL Connect 1234155[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.173.242,port=47255,localport=5223]]

2006.06.01 16:49:51 Error creating session

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)

at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

at java.io.InputStreamReader.read(Unknown Source)

at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2971)

at org.xmlpull.mxp1.MXParser.more(MXParser.java:3025)

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)

at org.jivesoftware.wildfire.net.MXParser.nextImpl(MXParser.java:331)

at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

at org.jivesoftware.wildfire.net.SocketReader.createSession(SocketReader.java:573)

at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:110)

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

== End Debug Log ==

== Server Settings ==

Server Uptime: 20 hours, 25 minutes – started May 31, 2006 8:30:54 PM

Version: Wildfire 2.6.2

Wildfire Home: /opt/wildfire

Server Name: 69.73.158.131

Server Ports

Environment

JVM Version and Vendor: 1.5.0_06 Sun Microsystems Inc. – Java HotSpot™ Server VM

Appserver: Jetty/5.1.x

OS / Hardware: Linux / i386

Locale / Timezone: en / Central Standard Time (-6 GMT)

Java Memory

47.56 MB of 986.12 MB (4.8%) used

== End Server Settings ==

== System Properties ==

passwordKey

hidden

Click to edit this property Click to delete this property

register.inband

false

Click to edit this property Click to delete this property

register.password

hidden

Click to edit this property Click to delete this property

xmpp.auth.anonymous

true

Click to edit this property Click to delete this property

xmpp.client.tls.policy

required

Click to edit this property Click to delete this property

xmpp.domain

69.73.158.131

Click to edit this property Click to delete this property

xmpp.muc.history.type

number

Click to edit this property Click to delete this property

xmpp.muc.service

conference

Click to edit this property Click to delete this property

xmpp.server.dialback.enabled

false

Click to edit this property Click to delete this property

xmpp.server.session.idle

-1

Click to edit this property Click to delete this property

xmpp.server.tls.enabled

true

Click to edit this property Click to delete this property

xmpp.session.conflict-limit

-1

Click to edit this property Click to delete this property

xmpp.socket.ssl.active

false

== End System Properties ==

== Server to Server Settings ==

Service Enabled: Enabled - Remote servers can exchange packets with this server on port 5269

Idle Connection Settings: Never close idle connections.

Allow to Connect: Anyone - Any remote server is allowed to connect to this server. Use the table below to override the default settings.

== End Server to Server Settings ==

== Registration Settings ==

Inband Account Registration: Disabled.

Change Password: Disabled.

Anonymous Login: Enabled.

== End Registration Settings ==

== Resource Policy ==

Never Kick

== End Resource Policy ==

== Private Data Storage ==

Enable Private Data Storage - allow clients to store information on the server

== End Private Data Storage ==

==Security Settings ==

Client Connection Security: Custom NotAvailable/Required

Server Connection Security: Required

== End Security Settings ==

== Compression Settings ==

Client Compression Policy: Not Available

Server Compression Policy: Not Available

== End Compression Settings ==

== File Transfer Proxy Settings ==

7777

== End File Transfer Proxy Settings ==

Hi,

could you please fix this “while using 5223 (Cannot connect with 5222 or 5223).” in your post? I wonder which port you want to connect and with which settings your client is using. Port 5223 is the SSL port while port 5222 offers plaintext and TLS. And port 5269 is the server-to-server port.

Do you see these problems also with Spark, or is there a client which can connect without problems?

LG

I’'m trying to connect with port 5223

While I’‘m connecting to port 5223 I’'m getting “XML Parse Error” on gAIM.

Hi,

so what lines are written to the error log when you try to connect? The log you did post starts at 2006.05.31 20:31:49 and ends at 2006.06.01 16:49:51 - I’'d like to see only the minute where this error does occur.

LG

org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Connection closed before session established

Stream error detected. Session: org.jivesoftware.wildfire.ClientSession@14a1467 status: 1 address: 69.73.158.131/6198fda9 id: 6198fda9 presence:

java.lang.NullPointerException

at org.jivesoftware.wildfire.net.SocketReader.negotiateTLS(SocketReader.java:689)

at org.jivesoftware.wildfire.net.SocketReader.readStream(SocketReader.java:268)

at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:119)

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

2006.06.02 11:03:36 SSL Connect 329bf2[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.167.151,port=49042,localport=5223]]

2006.06.02 11:03:37 Error creating session

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)

at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

at java.io.InputStreamReader.read(Unknown Source)

at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2971)

at org.xmlpull.mxp1.MXParser.more(MXParser.java:3025)

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)

at org.jivesoftware.wildfire.net.MXParser.nextImpl(MXParser.java:331)

at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

at org.jivesoftware.wildfire.net.SocketReader.createSession(SocketReader.java:573)

at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:110)

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

There ya go

Hi,

I don’'t know gAIM but it seems that it is not using (old) SSL but TLS/plaintext which is normally used with port 5222. Did you configure it to use SSL or did you only change the port?

LG

Okay now with gAIM.

Use TLS if available and Use old SSL is checked with port 5223

and it’'s giving me Read Error.

Warn Log

2006.06.02 11:42:43 Stream error detected. Session: org.jivesoftware.wildfire.ClientSession@9127e8 status: 1 address: 69.73.158.131/287fe15b id: 287fe15b presence:

java.lang.NullPointerException
at org.jivesoftware.wildfire.net.SocketReader.negotiateTLS(SocketReader.java:689)
at org.jivesoftware.wildfire.net.SocketReader.readStream(SocketReader.java:268)
at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:119)
at java.lang.Thread.run(Unknown Source)

Error Log
2006.06.02 11:42:42 SSL Connect 988f51[SSL_NULL_WITH_NULL_NULL: Socket[addr=/69.179.167.151,port=49289,localport=5223]]
2006.06.02 11:42:43 Logging off 69.73.158.131/287fe15b on org.jivesoftware.wildfire.net.SocketConnection@1e9468a socket: 988f51[SSL_RSA_WITH_RC4_128_MD5: Socket[addr=/69.179.167.151,port=49289,localport=5223]] session: org.jivesoftware.wildfire.ClientSession@9127e8 status: 1 address: 69.73.158.131/287fe15b id: 287fe15b presence:

Gaim has a known problem using the old SSL port with jabber. They refuse to fix it as it would be very time consuming, and the TLS code works fine. Of course, they will accept patches fixing the problem if someone else wants to take it on.