powered by Jive Software

Issue in android native

When reporting issues include

  • The used Smack version, which can be retrieved viaSmackConfiguration.getVersion()
  • The full exception and its stacktrace
  • An XMPP trace of the exchanged stream elements between client and server, which can be obtained by setting SmackConfiguration.DEBUG to true
  • The relevant code parts (please do not post whole source files!)

Hello I have the problem in the app with Android

I use the version: 4.3.4

the problem is this in.

“main” prio=5 tid=1 Blocked
| group=“main” sCount=1 dsCount=0 flags=1 obj=0x7171ef98 self=0x7890eec000
| sysTid=13512 nice=0 cgrp=default sched=0/0 handle=0x7892458ee8
| state=S schedstat=( 1569707801 517917013 2857 ) utm=105 stm=51 core=2 HZ=100
| stack=0x7ff1cb1000-0x7ff1cb3000 stackSize=8192KB
| held mutexes=
at org.jivesoftware.smack.AbstractXMPPConnection.disconnect (AbstractXMPPConnection.java)

  • waiting to lock <0x08f23c8a> (a org.jivesoftware.smack.tcp.XMPPTCPConnection) held by thread 62
    at org.jivesoftware.smack.AbstractXMPPConnection.disconnect (AbstractXMPPConnection.java:761)

the code that use is:

val configBuilder = XMPPTCPConnectionConfiguration.builder()
configBuilder.setHost(HOST_1)//.setHostAddress(addr);
configBuilder.setPort(PORT)
configBuilder.setSendPresence(true)
configBuilder.setXmppDomain(ServiceName)
SASLAuthentication.unBlacklistSASLMechanism(“SCRAM-SHA-1”)
SASLAuthentication.unBlacklistSASLMechanism(“PLAIN”)
configBuilder.setResource(RESOURCE)
// para configurar dns configBuilder.setDnssecMode(ConnectionConfiguration.DnssecMode.needsDnssec)
configBuilder.setUsernameAndPassword(get_mobile_user_(), get_mobile_user_pass())
configBuilder.setCompressionEnabled(true)
configBuilder.setSendPresence(true)

    configBuilder.setConnectTimeout(15000)

    connection = XMPPTCPConnection(configBuilder.build())
    connection.setReplyTimeout(15000)
    connection.setUseStreamManagementResumption(true)
    connection.setUseStreamManagement(true)

I hope that you help me!! Regards!!

Please also read "How to report an issue"

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.