Quantcast
Channel: Ignite Realtime : Discussion List - Openfire Support
Viewing all articles
Browse latest Browse all 4596

Openfire connection : internal-error

$
0
0

Hello everyone,

So i'm trying to connect to openfire(version 4.0.2,plateforme Ubuntu) using smack(version 4.1.6) :

XMPPTCPConnectionConfiguration.Builder config = XMPPTCPConnectionConfiguration.builder();

 

   config.setUsernameAndPassword(loginUser, passwordUser);

   config.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);

   config.setServiceName(serverAddress);

   config.setHost(serverAddress);

   config.setPort(5222);

   config.setDebuggerEnabled(true);

       /**XMPPTCPConnection.setUseStreamManagementResumptionDefault(false);

   XMPPTCPConnection.setUseStreamManagementDefault(true);**/

   connection = new XMPPTCPConnection(config.build());

   ReconnectionManager.getInstanceFor(connection).enableAutomaticReconnection();

   System.out.println("Reconnection enabled : " + ReconnectionManager.getInstanceFor(connection).isAutomaticReconnectEnabled());

    ConnectionListener connectionListener = new XMPPConnectionListener();

    connection.addConnectionListener(connectionListener);

    connection.connect();

    connection.login();

 

but i get an internal error :

     Jun 12, 2016 2:42:17 PM org.jivesoftware.smack.AbstractXMPPConnection callConnectionClosedOnErrorListener

WARNING: Connection closed with error

org.jivesoftware.smack.XMPPException$StreamErrorException: internal-server-error You can read more about the meaning of this stream error at http://xmpp.org/rfcs/rfc6120.html#streams-error-conditions

<stream:error><internal-server-error xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>

  at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:1007)

  at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPCon nection.java:948)

  at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:963)

  at java.lang.Thread.run(Thread.java:744)

 

it seems that i get authenticated then i get disconnected.

Any help would be appreciated. thank you.


Viewing all articles
Browse latest Browse all 4596

Trending Articles