- changed status to resolved
Error:javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] Message: Vorzeitiges Dateiende.
I am having issues to connect to a chat server using Babbler. It's working flawless with smack so I am not sure what went wrong or where I made a mistake.
After my session is configured the following error is thrown.
Error:javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] Message: Vorzeitiges Dateiende.
Attached is a java file with my code.
Comments (8)
-
repo owner -
repo owner Thanks for reporting. The issue was that you connect on port 5223 and assume that communication is SSL secured right from the beginning, i.e. before sending the opening stream header. I think this behavior is not encouraged (anymore?) by the XMPP spec. Usually it always starts with an unencrypted socket on port 5222 and then TLS is negotiated in the process (i.e. it switches to a secured socket later). You can now pass a SocketFactory to TcpConnection in order to provide an SSLSocket right from the beginning.
I've uploaded babbler-0.4.0-SNAPSHOT.jar if you want to test.
-
Thank you it is working now. Is there another way to get in touch with you if I have a small question? I don't want to open issues for mistakes I made. I already added you on icq earlier this week.
-
repo owner Fixed issue
#1(https://bitbucket.org/mkarg/babbler/issue/1/chatstatemanager-doesnt-send-standalone) "ChatStateManager doesn't send standalone state change messages"Cause: Skipped message body due to confused boolean case (when extension is enabled)
Solution: Added missing "not" operator to skip body in correct boolean case (when extension is not enabled)
→ <<cset b88ba99bdbdd>>
-
repo owner -
repo owner Fixed issue
#1(https://bitbucket.org/mkarg/babbler/issue/1/chatstatemanager-doesnt-send-standalone) "ChatStateManager doesn't send standalone state change messages"Cause: Skipped message body due to confused boolean case (when extension is enabled)
Solution: Added missing "not" operator to skip body in correct boolean case (when extension is not enabled)
→ <<cset e90cc1409c46>>
-
repo owner - changed status to closed
-
repo owner - changed version to 0.4.0
- Log in to comment
Provide a TcpConnection constructor to pass a SocketFactory. Fixes Issue
#1→ <<cset dfa47c0a6231>>