Comments (10)
Incidentally, I just figured out how to connect to google accounts:
Use XMPPConnection("gmail.com") and login("[email protected]", "password")
Original comment by [email protected]
on 2 Mar 2010 at 4:33
from asmack.
Could you add XMPPConnection.DEBUG=true; and Connection.DEBUG=true; before
stating
the Thread? Can you provide a log of the messages send (minus the sasl part, of
course).
What does "you can receive messages" mean? Can you receive messages in your
loop and
in your chat manager or just in your loop?
TIA, René
Original comment by [email protected]
on 2 Mar 2010 at 9:05
from asmack.
I think I know this bug. You also need to listen for new Chats not only for
Messages
in your existing chat since the ChatManager class in the original Smack has a
bug
which creates for every incoming message a new Chat. This happens if the
incoming
Message hasn't got a threadid or another threadid than the message you sent.
Your
PacketCollector instead listens for all Messages it gets from the other JID no
matter
what threadid they have. A PacketListener on the connection which listens for
Message
packets should also work.
Original comment by [email protected]
on 2 Mar 2010 at 12:30
from asmack.
THX till, http://www.igniterealtime.org/issues/browse/SMACK-269 is what you
mean,
right? Sounds like I should cherry-pick that one, too.
Any objectives?
Original comment by [email protected]
on 2 Mar 2010 at 12:39
from asmack.
Yeah, thats what I meant. At the moment I completely circumvent the ChatManager
and
map the chats according to the jid. I'm completey ignoring the threadid since
most
client don't set the threadid. This works pretty fine for me.
Original comment by [email protected]
on 4 Mar 2010 at 12:03
from asmack.
Ok, I'll have to read the spec, depending on that I'd
- clone the chat manager and provide a xmpp-thread-unsafe chat manager (if
smack is
right)
- apply the patch (if smack is wrong)
Original comment by [email protected]
on 5 Mar 2010 at 9:41
from asmack.
http://xmpp.org/rfcs/rfc3921.html#rfc.section.2.1.2 looks like you're right.
Clients
MAY send a thread-id for messages, but they aren't enforced to do so.
2.1.2.3 is even worse. Looks like messages should be grouped by
jid,resource,thread
(with NULL being a correct value for grouping). Starting a thread with a thread
id is
bad because we can't be sure if a reply (if any) will contain the thread id.
Google code and any RFC viewer should implement dislike button....
Original comment by [email protected]
on 13 Mar 2010 at 2:38
from asmack.
I see there's a new build of the code. Has this issue been addressed in that
build?
Thx!
Original comment by [email protected]
on 6 Apr 2010 at 5:59
from asmack.
Just confirmed it's fixed with asmack-2010.04.02.jar. Thanks!
Original comment by [email protected]
on 8 Apr 2010 at 12:04
from asmack.
Oh nice, didn't see the patch that fixed it, but glad to see your problem has
been
addressed! Thanks for rechecking, and happy hacking!
Original comment by [email protected]
on 8 Apr 2010 at 1:00
- Changed state: Done
from asmack.
Related Issues (20)
- conn.getAccountManager().deleteAccount() - No response from server in AccountManager.java:304 HOT 1
- Adding contacts with "_" or "|" to Roster doesn't work
- build errors on ubuntu10.4
- Obfuscation with Proguard requires changing previously working code HOT 1
- Getting offline messages HOT 6
- TLS is supported?
- Can't Send Messages
- Questions about Android Device 3G to WiFi transition issues
- Connection broken HOT 2
- MultiUserChat: getting Collection<Affiliate> produces error in getMembers / getModerators etc...
- FileTransfer doesn't work
- can't connect to server ec2 of amazon with android 3.x or 4.x
- No response from server while creating node / publishing to node
- Problem in FileTransfer . i am using xmpp and openfire as server. HOT 1
- Connection states get invalid
- ERROR/XMPPClient(389): SASL authentication failed using mechanism DIGEST-MD5: and connConfig.setSASLAuthenticationEnabled(false); HOT 2
- File Transfer Error
- File transfer is not work properly
- Recived IQ is broken
- MultiUserChat.addInvitationListener(conn, "") throws nullpointerexception when reconnecting HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asmack.