Comments (11)
Asmack doesn't come with auto-registration for packet extensions. You have to
register the classes.
You may steal the code from
[http://code.google.com/p/buddycloud/source/browse/trunk/client/android/main/src
/com/buddycloud/jbuddycloud/BuddycloudClient.java#49
Buddycloud] or rewrite the
[http://github.com/rtreffer/smack/blob/master/build/resources/META-INF/smack.pro
viders smack
xml config].
Original comment by [email protected]
on 6 Apr 2010 at 9:07
from asmack.
I'm too incompetent at using the reply box, but the problem should be solved.
Don't
hesitate to open up a new issue when you run into problem :-)
Original comment by [email protected]
on 6 Apr 2010 at 9:09
- Changed state: Done
from asmack.
Hi rtreffer,
Are you going to add a patch to asmack that manually register all the packet
extension available on smack, so that other users of your library won't have to
face
this issue?
Are there any drawbacks if I register all the packet extension, even if I don't
use
some packet?
Does Buddycloud register all the packet extension or only a part of packet
extension
of smack?
Best regards,
Stefano "Kismet" Lenzi
Original comment by [email protected]
on 7 Apr 2010 at 9:02
from asmack.
I'm trying to use only the needed extensions, as XMPP is mainly running as a
background service, meaning a memory leak might be fatal.
Besides that: I'm seeing several missuses of the lib, but I'll not try to solve
all
of them in the lib. I'll try to create a simple sample app with all the bits
needed.
This should help as a kickstartet for others.
Regards,
René
Original comment by [email protected]
on 7 Apr 2010 at 11:12
from asmack.
Hi Renè,
Does it means that asmack aims at be a system Service and that android
Application
(may I say Activities) should interact with asmack by means of Intent?
Original comment by [email protected]
on 7 Apr 2010 at 1:07
from asmack.
It's just a lib. Which is "usually" used inside a service. The service writes
to a
content provider, and activities that attach to these content providers.
That's the way most xmpp apps are modeled atm.
That said asmack is (right now) jast the xmpp library :-)
Original comment by [email protected]
on 7 Apr 2010 at 2:05
from asmack.
I downloaded last source from repository and patched, some patch manually....
but im
getting the same problem..(CastException) in getNode.
How can i fix this ?
Original comment by [email protected]
on 15 Apr 2010 at 12:14
from asmack.
As I've said you should track the connection process and make sure the
pubsubmanager
is registered (together with the pubsub elements). I'm actually doing pubsub
all the
time, for buddycloud. It's definetly working once the IQProviders are
registered.
The ProviderManager must be able to resolve the pubsub items/namespaces. You'll
otherwise end up with a generic packet that can't be casted (obviously).
Have a look at this static bock on how to do it:
http://code.google.com/p/buddycloud/source/browse/trunk/client/android/main/src/
com/buddycloud/jbuddycloud/BuddycloudClient.java#45
You should register anything from the pubsub namespace and from
org.jivesoftware.smackx.pubsub.
This has to happen before you try to connect to the server.
Original comment by [email protected]
on 15 Apr 2010 at 12:35
from asmack.
Hi one2one,
I don't know if you resolved your problem but you can copy and paste the code
that
you find attached to comment #14 of the issue #9 [1] to initialize ASmack to
support
XEP-0060: Publish-Subscribe
Ciao,
Stefano "Kismet" Lenzi
[1] - ASmack initalization for enabling support fo XEP-0060 -
http://asmack.googlecode.com/issues/attachment?aid=1025499906583360115&name=asma
ck.initialization.java
Original comment by [email protected]
on 22 Apr 2010 at 1:36
from asmack.
Everytime I try to get a node, I get item-not-found. Even when I create the
node before, and I get no errors.
Can you help me? Almost all the links that you posted are down.
Thanks.
Original comment by [email protected]
on 3 Dec 2011 at 5:32
from asmack.
The above issue is resolved using the help i got from this site.
http://community.igniterealtime.org/message/201866#201866
use the code in above site to register all the providers
also Servicediscoverymanager was returning null which was causing problem
so i replaced
ServiceDiscoveryManager discoManager
=ServiceDiscoveryManager.getInstanceFor(connection);
with
ServiceDiscoveryManager discoManager = new ServiceDiscoveryManager(connection);
Original comment by [email protected]
on 24 Apr 2012 at 2:04
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.