Giter Club home page Giter Club logo

asmack's People

Watchers

 avatar

asmack's Issues

DIGEST-MD5 problem

Hi,

I made a simple application to be connected to a private ejabberd server.

ConnectionConfiguration connConfig = new  
ConnectionConfiguration(host,5222,host);
XMPPConnection connection = new XMPPConnection(connConfig);
connection.connect();

connection.login(username, password);


And i have this message on ddms raised by "connection.login(username, 
password);"  : SASL authentication failed using mechanism DIGEST MD5

I tried to find a solution by the Internet but any patch, library or other 
solution seems to fix it.

Using asmack-issue-15 and Android emulator 1.5 and 2.2

Thank you for your help, I can't find a solution by myself and after long hours 
looking for one it's becoming really boring...

Original issue reported on code.google.com by [email protected] on 9 Aug 2010 at 6:19

Apache Harmony SVN moved

What are you doing to produce the error?
1. Check-out the asmack source.
2. Run build.bash.

What is the expected output?
It builds.

What do you see instead? (Please attach a debug enabled logcat)
SVN complains that there is no repository at
"http://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk/modules/auth/sr
c/main/java/common/".
Many errors follow.

What version of aSmack / Android / Device do you use?
Latest snapshot as of today. Didn't make it to running on the device.

What else might help us to reproduce and hunt down the problem?

diff -r e59ee6eb8ad9 build.bash
--- a/build.bash    Wed Jan 06 14:39:10 2010 +0100
+++ b/build.bash    Mon May 03 17:31:50 2010 +0400
@@ -27,7 +27,7 @@
 fetchall() {
   fetch "http://svn.igniterealtime.org/svn/repos/smack/trunk/source/" "smack"
   fetch
"http://svn.apache.org/repos/asf/qpid/trunk/qpid/java/management/common/src/main
/"
"qpid"
-  fetch
"http://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk/modules/auth/sr
c/main/java/common/"
"harmony"
+  fetch
"http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib/modules/au
th/src/main/java/common/"
"harmony"
   fetch "https://dnsjava.svn.sourceforge.net/svnroot/dnsjava/trunk" "dnsjava"
 }

Original issue reported on code.google.com by [email protected] on 3 May 2010 at 1:32

multi-user conference is a bug

wait new asmack , I face to many bug,and I have a bad english , i do not 
know how to get any conference information for server,because IQ class to 
Discover class is a bug。

Original issue reported on code.google.com by [email protected] on 24 Jul 2010 at 2:28

Client does not detect when socket to server is broken

What are you doing to produce the error?
1. Open a connection with a server
2. Kill the server without giving it chance to close the socket neatly, or, 
break the connection between the client and server (for example, by 
removing network cable connecting server to wifi router)
3.

What is the expected output?

I would expect that the client detects the socket is gone the next time it 
sends a keep alive or packet to the socket. However, the writer.flush() 
method on line 195 and 295 of PacketWriter.java does not generate an 
exception and so the mechanism for tearing down the connection is not 
triggered. I don't know if this is correct behavior of the Java 
BufferedWriter class or not (suspect it isn't and flush() should throw an 
exception).

What do you see instead? (Please attach a debug enabled logcat)

Connection stays open and I can continue to write packets to the connection 
without knowing it has gone.

What version of aSmack / Android / Device do you use?

2010.05.07
Android 2.1 on Nexus One

What server do you use? Is there a public server to reproduce the problem?

It is a custom server.

What else might help us to reproduce and hunt down the problem?

Original issue reported on code.google.com by [email protected] on 14 May 2010 at 5:31

Can't Use GatewayManager, getInstancefor( ) should be static

What are you doing to produce the error?
1.
2.
3.

What is the expected output?

What do you see instead? (Please attach a debug enabled logcat)

What version of aSmack / Android / Device do you use?
aSmack 3.1.0
What server do you use? Is there a public server to reproduce the problem?

What else might help us to reproduce and hunt down the problem?
  in GatewayManager.java, getInstanceFor() should be static, since its constractor function is private, so noway to use it

Original issue reported on code.google.com by [email protected] on 13 Jul 2010 at 7:18

creating a FileTransferManager doesn't work.

Used code:

m_FTManager = new FileTransferManager(m_Connection);

produces:
E/AndroidRuntime( 8142): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 8142):        at 
org.jivesoftware.smackx.filetransfer.FileTransferNegotiator.setServiceEnabled(Fi
leTransferNegotiator.java:126)
E/AndroidRuntime( 8142):        at 
org.jivesoftware.smackx.filetransfer.FileTransferNegotiator.getInstanceFor(FileT
ransferNegotiator.java:107)
E/AndroidRuntime( 8142):        at 
org.jivesoftware.smackx.filetransfer.FileTransferManager.<init>(FileTransferMana
ger.java:63)

somehow there is no ServiceDiscoveryManager for my connection, which is why 
null is returned by ServiceDiscoveryManager.getInstanceFor().

Original issue reported on code.google.com by [email protected] on 16 Jun 2010 at 11:47

Compression doesn't seem to be supported

I tried to set useCompression to true in ConnectionConfiguration. But when
I does my app throws an exception that I need to add smackx.jar to
classpath. For mobile use compression is very interesting I think. Si it
would be really nice if this gets fixed.

Original issue reported on code.google.com by [email protected] on 1 Jan 2010 at 10:37

POJO ExtensionProviders don't work

Extension providers which are plain objects (do not implement the
PacketExtensionProvider interface) cause an exception when a message
containing such extension is parsed.

How to reproduce:
1. Create an extension provider
class SomeObject {
    string preview;

    public String getPreview() {
        return preview;
    }

    public void setPreview(String preview) {
        this.preview = preview;
    }
}

2. Register it
ProviderManager.getInstance().addExtensionProvider("test", "ns:test",
SomeObject.class);

3. Connect and send an incoming message with such extension, e.g. here:
<message>
<test>
<preview>preview</preview>
</test>
</message>

Expected result:
An object of class SomeObject is created.

Actual result:
NoSuchMethodError: getPreview() isn't found.

"What version of aSmack / Android / Device do you use?"
asmack-2010.04.02.jar, Android SDK version 2.0.1 emulator.

"What server do you use? Is there a public server to reproduce the problem?"
A private server.

"What else might help us to reproduce and hunt down the problem?"
The exception occurs at PacketParserUtils.class:830, which reads:
Class propertyType = object.getClass().getClass().getMethod("get" +
Character.toUpperCase(name.charAt(0)) + name.substring(1)).getReturnType();
where the second getClass() will always return a Class Class. Typo?

Original issue reported on code.google.com by [email protected] on 3 May 2010 at 1:13

Not parsing vCard correctly

Hello, it seems that aSmack can't parse vCard package well.

aSmack version: 2010.05.07
Android version: 1.5 (emulator)

XMPP Server: chat.facebook.com

My Java code:
---------------------------------------------
public VCard getVCard(String user) {
  VCard vcard = new VCard();
  try {
    vcard.load(this.connection, user);
  } catch (XMPPException e) {
    Log.e(LOG_TAG, e.getMessage());
  }
  return vcard;
}

...

VCard vcard = getVCard("[email protected]");
Log.d(LOG_TAG, vcard.toXML());

---------------------------------------------

From the attached log you can see that the vCard package is received, also
with encoded avatar, but aSmack can't detect it ("No VCard for
[email protected]").

Original issue reported on code.google.com by [email protected] on 11 May 2010 at 4:16

Attachments:

Problem with IQ providers

I've found out a potential issue with IQ providers.

I'm developing an Android application that makes use of the Smack API for
its XMPP functionality. It uses some custom IQs for its features.

I've created a class for a custom IQ, following the usual guidelines. The
class extends IQ and implements IQProvider, and for all its variables it
has public setters and getters.

In the code, the provider is correctly registered by calling addIQProvider
at the ProviderManager instance.

That said, I could send an empty message associated with the IQ; but got an
exception when receiving a reply:


W/System.err(  211): java.lang.NoSuchMethodException: getFocus
W/System.err(  211):    at
java.lang.ClassCache.findMethodByName(ClassCache.java:308)
W/System.err(  211):    at java.lang.Class.getMethod(Class.java:1007)
W/System.err(  211):    at
org.jivesoftware.smack.util.PacketParserUtils.parseWithIntrospection(PacketParse
rUtils.java:787)
W/System.err(  211):    at
org.jivesoftware.smack.util.PacketParserUtils.parseIQ(PacketParserUtils.java:270
)
W/System.err(  211):    at
org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:229)
W/System.err(  211):    at
org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
W/System.err(  211):    at
org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)


where focus is one of the variables of the IQ (the first variable to appear
in the class). This exception usually appears when an IQ implementation is
missing an element found in a received packet, but this is not the case,
since the setter and getter for that variable are there.

The same code works fine in a standard Java application, using the normal
Smack library. Is this a known issue with the Android port? May this be
related to something that has been fixed in subsequent versions of Smack,
or to any difference in the base Java classes the Android APIs may have
introduced?

Thanks in advance!

Original issue reported on code.google.com by [email protected] on 15 Mar 2010 at 12:43

ServiceDiscoveryManager have to load before MultiUserChat.


** IF NOT **
You will see following error messages:

E/XMPPConnectService( 8951): null
E/XMPPConnectService( 8951): java.lang.NullPointerException
E/XMPPConnectService( 8951):    at 
org.jivesoftware.smackx.muc.MultiUserChat$1.connectionCreated(MultiUserChat.java
:124)
E/XMPPConnectService( 8951):    at 
org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:618)
E/XMPPConnectService( 8951):    at 
org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.j
ava:565)
E/XMPPConnectService( 8951):    at 
org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:991)
.....

ConnectionCreationListener does not seem to working when connecting at first.

And, when connecting at 2nd, static code 
"ServiceDiscoveryManager.getInstanceFor(connection)" returns null in 
MultiUserChat.


** EASY PATCH **
in static code:

static { 
      ServiceDiscoveryManager.getIdentityName();  // <- added. this is dummy code.
      Connection.addConnectionCreationListener(new ConnectionCreationListener() {

Original issue reported on code.google.com by [email protected] on 28 Aug 2010 at 1:54

<registered/> removed in response from server, when GET jabber:iq:register after successful registration

What are you doing to produce the error?
1.Register gateway and get contacts from gateway
2.GET "jabber:iq:register"
3.receive response from gateway

What is the expected output?
response.toXML() should contain "<registered/>"
What do you see instead? (Please attach a debug enabled logcat)
Won't get "<registered/>"
What version of aSmack / Android / Device do you use?
asmack 3.1.0, android 2.1, emulator
What server do you use? Is there a public server to reproduce the problem?

What else might help us to reproduce and hunt down the problem?
I captured and decrypted SSL packets, and found that the response from server 
contains "<registered/>", but when i'm calling response.toXML(), it's removed 
somehow, but others remain, such as "<username>"

Original issue reported on code.google.com by [email protected] on 12 Jul 2010 at 7:37

Attachments:

Auto reconnection seems working not so good

What are you doing to produce the error?
1. try setting a ConnectionListener on connection and try to connect with 
an android device 
2. try to switch to wifi and then to 3g again
3. try to send chat message


What is the expected output?
the message should be received.



What do you see instead? (Please attach a debug enabled logcat)
Connection status ok (no failure)


What version of aSmack / Android / Device do you use?
2010.03.03 and android 1.6 device


What server do you use? Is there a public server to reproduce the problem?
Gtalk server


What else might help us to reproduce and hunt down the problem?
I have to say that the library does not work as good as the library 
(modified maybe) used by gtalk default android application. 

Original issue reported on code.google.com by tobia.loschiavo on 28 Mar 2010 at 6:53

AdHocCommandManager.getAddHocCommandsManager returns null

Hi,

I'm using asmack-2010.05.07.jar to write a simple Android client that listens 
for 'adhoc' commands and responds to them.

To do that I need to get access to the AdHocCommandManager. After creating a 
connection, it should be possible to get one by calling:

manager = AdHocCommandManager.getAddHocCommandsManager(con);

When using asmack I get back a null.

Using a similar approach with plain Smack for a desktop client works fine.

I'm using Android 2.1.

Has anyone else run into this?

Thanks.

Paul

Original issue reported on code.google.com by [email protected] on 29 Dec 2010 at 11:07

chat message is not receiving if open same user client from 2 android emulator

What are you doing to produce the error?
1.Opened 2 emulator with same user 
2.sending message to that user
3.Message is getting in one emulator and other is not getting
4. Using openfire XMPP server, checked the session , session is being
created only one though 2 emulator is running the service

What is the expected output?

Getting the message both the emulator

What do you see instead? (Please attach a debug enabled logcat)

What version of aSmack / Android / Device do you use?
asmack-2010.05.07.jar

What server do you use? Is there a public server to reproduce the problem?

Local Openfire XMPP server

What else might help us to reproduce and hunt down the problem?

Original issue reported on code.google.com by [email protected] on 19 May 2010 at 4:27

Package javax.xml.transform not present on Android SDK

What are you doing to produce the error?
1. I am using the LeafNode.unsubscribe() method from pubsub extension.
2. It makes a call to the XmlUtils class which imports classes from
javax.xml.transform package.
3. This package does not exist in the Android JDK. Here is the message that
I get :

05-07 12:45:27.361: ERROR/dalvikvm(2618): Could not find method
javax.xml.transform.TransformerFactory.newInstance, referenced from method
org.jivesoftware.smackx.pubsub.util.XmlUtils.prettyPrint
05-07 12:45:27.361: WARN/dalvikvm(2618): VFY: unable to resolve static
method 1190: Ljavax/xml/transform/TransformerFactory;.newInstance
()Ljavax/xml/transform/TransformerFactory;
05-07 12:45:27.361: WARN/dalvikvm(2618): VFY:  rejecting opcode 0x71 at 0x0000
05-07 12:45:27.361: WARN/dalvikvm(2618): VFY:  rejected
Lorg/jivesoftware/smackx/pubsub/util/XmlUtils;.prettyPrint
(Ljava/lang/String;Ljava/lang/String;)V
05-07 12:45:27.361: WARN/dalvikvm(2618): Verifier rejected class
Lorg/jivesoftware/smackx/pubsub/util/XmlUtils;
05-07 12:45:27.361: WARN/dalvikvm(2618): threadid=19: thread exiting with
uncaught exception (group=0xb0099cf8)
05-07 12:45:27.361: ERROR/AndroidRuntime(2618): Uncaught handler: thread
Smack Packet Writer (0) exiting due to uncaught exception
05-07 12:45:27.361: ERROR/AndroidRuntime(2618): java.lang.VerifyError:
org.jivesoftware.smackx.pubsub.util.XmlUtils
05-07 12:45:27.361: ERROR/AndroidRuntime(2618):     at
org.jivesoftware.smackx.pubsub.UnsubscribeExtension.toXML(UnsubscribeExtension.j
ava:61)
05-07 12:45:27.361: ERROR/AndroidRuntime(2618):     at
org.jivesoftware.smack.packet.Packet.getExtensionsXML(Packet.java:364)
05-07 12:45:27.361: ERROR/AndroidRuntime(2618):     at
org.jivesoftware.smackx.pubsub.packet.PubSub.getChildElementXML(PubSub.java:101)
05-07 12:45:27.361: ERROR/AndroidRuntime(2618):     at
org.jivesoftware.smack.packet.IQ.toXML(IQ.java:88)
05-07 12:45:27.361: ERROR/AndroidRuntime(2618):     at
org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:194)
05-07 12:45:27.361: ERROR/AndroidRuntime(2618):     at
org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:42)
05-07 12:45:27.361: ERROR/AndroidRuntime(2618):     at
org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:78)

What is the expected output?
All but a such exception :)

What do you see instead? (Please attach a debug enabled logcat)
see the logcat attached

What version of aSmack / Android / Device do you use?
aSmack: from the  rtreffer/asmack trunk on github
Android: SDK 1.6 (API 4)
Device: an Androidx86 running on a VM

What server do you use? Is there a public server to reproduce the problem?
It is a local server not accessible from the web.
Openfire, trunk version

What else might help us to reproduce and hunt down the problem?
The problem is that the package javax.xml.transform is not part of the
Android SDK. Actually, we can fix the bug by removing the part of the code
which uses javax.xml.transform, I checked that it is never used today (the
method called by "LeafNode.unsubscribe()" is in the same class but does not
use the javax.xml.transform package), but smack's developers could use it
soon, so there is probably a better solution.

I attach the source I used to get the bud, and the logcat.

Kind Regards,

Paulo

Original issue reported on code.google.com by [email protected] on 7 May 2010 at 11:10

Attachments:

RosterPacketListener handles RosterPacket.ItemType.remove incorrectly

What are you doing to produce the error?
1. Server sends subscription remove packets during getRoster
2. getRoster fails
3.

What is the expected output?

getRoster completes successfully

What do you see instead? (Please attach a debug enabled logcat)

getRoster fails

What version of aSmack / Android / Device do you use?

all versions

What server do you use? Is there a public server to reproduce the problem?

chat.facebook.com

What else might help us to reproduce and hunt down the problem?

Roster.class from asmack is different from smack 3.1.0 - the Roster.class
from 3.1.0 looks like it handles remove requests differently from the
asmack Roster.class

MORE INFO
----------
http://xmpp.org/extensions/xep-0147.html#actions-roster-remove (3.2.2
Remove Roster Item)

Inital remove requests from getRoster
--------------------------------------

<iq from="johnny@c"
to="johnny@c/Smack_fabc92c4_4866950E4C091"
id="fbiq4866950F2E6E2" type="set"><query xmlns="jabber:iq:roster"><item
jid="u1287931292@c" subscription="remove"/></query></iq><iq
from="johnny@c"
to="johnny@c/Smack_fabc92c4_4866950E4C091"
id="fbiq4866950F2E71F" type="set"><query xmlns="jabber:iq:roster"><item
jid="u663073257@c" subscription="remove"/></query></iq><iq
from="johnny@c"
to="johnny@c/Smack_fabc92c4_4866950E4C091"
id="fbiq4866950F2E744" type="set"><query xmlns="jabber:iq:roster"><item
jid="u701803063@c" subscription="remove"/></query></iq>




Original issue reported on code.google.com by [email protected] on 14 May 2010 at 9:15

Throw a subclass of XmppException when authentication fails because of wrong credentials

At the moment it's only possible to determine cause of authentication failure 
is 
via inspecting exception message. This is a bit inconvenient. Throwing a 
specific 
subclass of XmppException makes more sense.

On these devices authentication often fails beacuse of network failure, timeout 
or 
similar results. Hence it's more (compared to desktop version) important to 
correctly determine failure reason and take proper action. For example warn the 
user his credentials are wrong.

Original issue reported on code.google.com by [email protected] on 14 Apr 2010 at 3:42

Parser fails to process SimplePayload content in pubsub items

What are you doing to produce the error?
1. I first insert an item with a SimplePayload with an XML format (as indicated 
in the smack API doc)
2. Then I get the items from the node, with the payload.

What is the expected output?

I would obtain the same payload I posted just before.

What do you see instead? (Please attach a debug enabled logcat)

I obtain a payload where all the XML tags are replaced by null. (with the 
method SimplePayload.toXML())

Here is an example : 

Posted payload :

<entry xmlns="http://www.w3.org/2005/Atom"><author>Paulo</author><content>La 
décision sera prise par le Bureau d'enquête et d'analyses...</content></entry>

Received payload (after parsing process by smack):

nullnullPaulonullnullLa décision sera prise par le Bureau d'enquête et 
d'analyses...nullnull


This issue occurs only with asmack, in a smack java program it works fine. I 
have verified that the server sends the good stanzas, it is ok. The problem 
comes from the parser I think. I have seen that asmack makes some changes in 
the parser used, but I do not find where the tags are replaced by null.

What version of aSmack / Android / Device do you use?

aSmack: from trunk on github
android : android 1.6 (fails with all devices running 1.6, I did not test with 
other version)

What server do you use? Is there a public server to reproduce the problem?

openfire from svn

What else might help us to reproduce and hunt down the problem?

I do not know, I spent hours to check the source code, but I failed...

Thanks in advance,

Paulo

Original issue reported on code.google.com by [email protected] on 23 Jun 2010 at 3:04

Adapted malfunctioning patch files

Some patches do not work anymore. I corrected them as follows:





99-PubSubNode-protected-constructor.patch:

Index: org/jivesoftware/smackx/pubsub/Node.java                                 

===================================================================             

--- org/jivesoftware/smackx/pubsub/Node.java  (revision 11464)                  

+++ org/jivesoftware/smackx/pubsub/Node.java  (working copy)                    

@@ -48,7 +48,7 @@                                                               

   * @param connection The connection the node is associated with                                          
   * @param nodeName The node id                                            
   */                                                                             
- Node(Connection connection, String nodeName)                                  

+ protected Node(Connection connection, String nodeName)                        

  {                                                                                                        
    con = connection;                                                                                      
    id = nodeName;                                                                                         






30-swtich-debugging-implementations.patch (scrambled letters in "switch"!):

--- org/jivesoftware/smack/Connection.java  2009-12-06 21:02:51.000000000 +0100 

+++ ../../src-unpatched/trunk/org/jivesoftware/smack/Connection.java  
2009-12-06 20:59:23.000000000 +0100    
@@ -747,12 +747,12 @@                                                           

                 if (debuggerClass == null) {                                                                
                     try {                                                                                   
                         debuggerClass =                                                                     
-                                
Class.forName("org.jivesoftware.smackx.debugger.EnhancedDebugger");         
+                                
Class.forName("de.measite.smack.AndroidDebugger");                          
                     }                                                                                       
                     catch (Exception ex) {                                                                  
                         try {                                                                               
                             debuggerClass =                                                                 
-                                    
Class.forName("org.jivesoftware.smack.debugger.LiteDebugger");          
+                                    
Class.forName("org.jivesoftware.smack.debugger.ConsoleDebugger");       
                         }                                                                                   
                         catch (Exception ex2) {                                                             
                             ex2.printStackTrace();                                                          






22-remove-beans.Property-deps.patch:

--- 
../../src-unpatched/trunk/org/jivesoftware/smack/util/PacketParserUtils.java  
2009-12-06 19:45:45.000000\
000 +0100                                                                       

+++ org/jivesoftware/smack/util/PacketParserUtils.java  2009-12-06 
19:48:13.000000000 +0100                  
@@ -25,7 +25,6 @@                                                               

 import org.jivesoftware.smack.provider.ProviderManager;                                                     
 import org.xmlpull.v1.XmlPullParser;                                                                        

-import java.beans.PropertyDescriptor;                                          

 import java.io.ByteArrayInputStream;                                                                        
 import java.io.ObjectInputStream;                                                                           
 import java.util.ArrayList;                                                                                 
@@ -433,14 +432,14 @@                                                           

             if (eventType == XmlPullParser.START_TAG) {                                                     
                 String name = parser.getName();                                                             
                 String stringValue = parser.nextText();                                                     
-                PropertyDescriptor descriptor = new PropertyDescriptor(name, 
objectClass);                  
-                // Load the class type of the property.                        

-                Class propertyType = descriptor.getPropertyType();             

+                Class propertyType = object.getClass().getClass().getMethod(   

+                    "get" + Character.toUpperCase(name.charAt(0)) + 
name.substring(1)).getReturnType();     
                 // Get the value of the property by converting it from a                                    
                 // String to the correct object type.                                                       
                 Object value = decode(propertyType, stringValue);                                           
                 // Set the value of the bean.                                                               
-                descriptor.getWriteMethod().invoke(object, value);             

+                object.getClass().getMethod("set" + 
Character.toUpperCase(name.charAt(0)) + name.substring(\
1), propertyType)                                                               

+                .invoke(object, value);                                        

             }                                                                                               
             else if (eventType == XmlPullParser.END_TAG) {                                                  
                 if (parser.getName().equals(elementName)) {                                                 




Cheers,
Holger                                                                          



Original issue reported on code.google.com by [email protected] on 6 Feb 2011 at 7:40

InvitationListener does not seem to working.

InvitationListeners are dispatched in MultiUserChat.InvitationsMonitor.init().

in processPacket(), 
MUCUser mucUser = (MUCUser) packet.getExtension("x", 
"http://jabber.org/protocol/muc#user") 
throw a ClassCastException.
Because packet.getExtension() returns a instance of DefaultPacketExtension.

This logic needs a instance of MUCUser.
and a instance of MUCUser is made by MUCUserProvider.
But, MUCUserProvider was not used in asmack. (I used grep command)

Why? I don't understand. Is this InvitationListener not running still once?

Original issue reported on code.google.com by [email protected] on 28 Aug 2010 at 6:36

NoClassDefFoundError as Maven dependency

What are you doing to produce the error?
1. Download the file asmack-jse-buddycloud-2010.12.11.jar and execute the maven 
command: 
      -->> mvn install:install-file -DgroupId=jivesoftware -DartifactId=asmack -Dversion=3.1.0 -Dpackaging=jar -Dfile=/home/usuario/Escritorio/Consumer-electronics/Conected-camera/Development/maven-libs/asmack/asmack-jse-buddycloud-2010.12.11.jar -DgeneratePom=true

2. Create a new ConnectionConfiguration object:
ConnectionConfiguration config = new ConnectionConfiguration(server,5222);

3. Execute the Android emulator 

What is the expected output?
- To have the ConnectionConfiguration class loaded and be able to access in 
runtime to its methods.

What do you see instead? (Please attach a debug enabled logcat)
- I have the ConnectionConfiguration class loaded and I have not compile errors 
and its able to find the asmack .jar at the maven dependencies and to access to 
all the classes and methods it includes even you can compile without having any 
problem, but in runtime you have the attached log error.


What version of aSmack / Android / Device do you use?
 asmack downloaded file : asmack-jse-buddycloud-2010.12.11.jar
 android API version 8 
 Emulator device version: Android 2.2

What server do you use? Is there a public server to reproduce the problem?
- I think, nothing

What else might help us to reproduce and hunt down the problem?
- I have the problem following the steps I've already explained, and it's a  
strange error, because maven is suposed to load all dependencies as if they 
were libraries. And the most strange thing is that if I don't load the asmack 
.jar as maven dependecy, I mean if I add this .jar as library inside the 
Android java build path instead using maven it works fine.

Original issue reported on code.google.com by [email protected] on 28 Dec 2010 at 9:22

Attachments:

XMPP Ping Not Supported

What are you doing to produce the error?
1. Sending XMPP Server pings to aSmack client
2.
3.

What is the expected output?
This is the XMPP Standards page defining pings.
Should return a "pong".
http://xmpp.org/extensions/xep-0199.html

What do you see instead? (Please attach a debug enabled logcat)
This is server side logs, aSmack doesn't show logs for pings not implemented.

*** THIS MEANS CLIENT IS ONLINE, BUT THE FEATURE IS NOT IMPLEMENTED***
log: level: 0, area: 131072, 
<iq from='MY_CLIENT@DOMAIN/RESOURCE' to='MYBOT@DOMAIN/RESOURCE' 
id=uid:4d46c3a0:68e3df63' type='error'>
      <error code='501' type='CANCEL'>
            <feature-not-implemented xmlns='urn:ietf:params:xml:n:xmpp-stanzas'/>
      </error>
</iq>



*** THIS MEANS CLIENT IS OFFLINE OR DOESN'T EXIST ***
log: level: 0, area: 131072, 
<iq from='MY_CLIENT@DOMAIN/RESOURCE' to='MYBOT@DOMAIN/RESOURCE' type='error' 
xml:lang='en' id='uid:4d46c3a0:43e44ccf'>
      <ping xmlns='urn:xmpp:ping'/>
      <error code='503' type='cancel'>
           <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
      </error>
</iq>


What version of aSmack / Android / Device do you use?
aSmack issue 15
Android 2.2.1
Motorola DROID

What server do you use? Is there a public server to reproduce the problem?
We use ejabberd. This is not a public server. Its easy to reproduce, just send 
pings from server to client.

Original issue reported on code.google.com by [email protected] on 31 Jan 2011 at 2:22

How to get all registered xmpp users

What are you doing to produce the error?

What is the expected output?
  Getting all registered xmpp users

What do you see instead? (Please attach a debug enabled logcat)

What version of aSmack / Android / Device do you use?

What server do you use? Is there a public server to reproduce the problem?

its not public users

What else might help us to reproduce and hunt down the problem?

Original issue reported on code.google.com by [email protected] on 26 May 2010 at 8:33

Cancel an Existing Registration

What are you doing to produce the error?
1. Register a user
2. Login
3. Call the AccountManager.deleteAccount() method

What is the expected output?
Successful cancellation according to XEP-0077

What do you see instead? (Please attach a debug enabled logcat)
Exception (xml-not-well-formed), see logcat file

What version of aSmack / Android / Device do you use?
asmack-2010.05.07 / Android 1.5 / Emulator (AVD 1.5)

What server do you use? Is there a public server to reproduce the problem?
jabber.hot-chilli.net (ejabberd)

What else might help us to reproduce and hunt down the problem?
The remove-tag is malformed: </remove> instead of <remove/>. I have included a 
small patch. Is it possible to include the fix in the next release?

Original issue reported on code.google.com by [email protected] on 28 Jul 2010 at 8:31

Attachments:

Can not get connection error when checking ssl certs etc

I'm trying the following code:

ConnectionConfiguration mXMPPConfig = new
ConnectionConfiguration(mConfig.server,             mConfig.port);
mXMPPConfig.setExpiredCertificatesCheckEnabled(true);
mXMPPConfig.setNotMatchingDomainCheckEnabled(true);
mXMPPConfig.setSelfSignedCertificateEnabled(false);

mXMPPConnection = new XMPPConnection(mXMPPConfig);
mXMPPConnection.connect();

This seems to work as I can see stacktraces in logcat saying that the cert
does not match etc. The problem I'm having: I don't get an exception! So I
thought I add an ConnectionListener. Because those are called when
PacketReader calls its notifyConnectionError in case of an Exception.

Unfortunately I can't add that listener because the addConnectionListener
method in Connection checks if it isConnected. Which obviously is not the
case. From looking at the source code I can't see any other way to get that
exception. Or am I missing something?

If not, is that isConnected check really necessary?

Original issue reported on code.google.com by [email protected] on 19 Mar 2010 at 10:50

MultiUserChat does not create a room

Hi all, this a simple extract of my code, which fires an exception: 

chat = new MultiUserChat(c, room);
chat.create("room");


This is what I get in the log: 

E/AndroidRuntime(  218): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  218): java.lang.ClassCastException:
org.jivesoftware.smack.packet.DefaultPacketExtension
E/AndroidRuntime(  218):    at
org.jivesoftware.smackx.muc.MultiUserChat.getMUCUserExtension(MultiUserChat.java
:2000)
E/AndroidRuntime(  218):    at
org.jivesoftware.smackx.muc.MultiUserChat.create(MultiUserChat.java:364)


I'm using the latest version of android (android-7, sdk 2.1), the asmack
patch released on 25/05/2010 and an openfire server.


Cheers,
Angelo

Original issue reported on code.google.com by [email protected] on 1 Jun 2010 at 12:36

about sendfile()

What are you doing to produce the error?
1.can not use sendfile();
2.
3.

What is the expected output?
09-16 03:48:52.373: WARN/System.err(809): java.security.KeyStoreException: 
KeyStore jks implementation not found
09-16 03:48:52.382: WARN/System.err(809):     at 
java.security.KeyStore.getInstance(KeyStore.java:142)
09-16 03:48:52.392: WARN/System.err(809):     at 
org.jivesoftware.smack.ServerTrustManager.<init>(ServerTrustManager.java:61)
09-16 03:48:52.402: WARN/System.err(809):     at 
org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:832
)
09-16 03:48:52.412: WARN/System.err(809):     at 
org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:268)
09-16 03:48:52.421: WARN/System.err(809):     at 
org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
09-16 03:48:52.431: WARN/System.err(809):     at 
org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:71)
What do you see instead? (Please attach a debug enabled logcat)
09-16 03:50:27.162: DEBUG/SMACK(809): 03:50:27 AM SENT (1137778656): <iq 
id="hHq56-6" to="[email protected]/spark" from="[email protected]/Smack" type="set"><si 
xmlns="http://jabber.org/protocol/si" id="jsi_7059784807484778778" 
mime-type="text/plain" 
profile="http://jabber.org/protocol/si/profile/file-transfer"><file 
xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="testfile.txt" 
size="8" ><desc>Send file!</desc></file><feature 
xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" 
type="form"><field var="stream-method" 
type="list-multi"><option><value>http://jabber.org/protocol/bytestreams</value><
/option><option><value>http://jabber.org/protocol/ibb</value></option></field></
x></feature></si></iq>
09-16 03:50:32.332: DEBUG/SMACK(809): 03:50:32 AM RCV  (1137778656): <iq 
id="hHq56-6" to="[email protected]/Smack" from="[email protected]/spark" 
type="result"><si xmlns="http://jabber.org/protocol/si"><feature 
xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" 
type="submit"><field 
var="stream-method"><value>http://jabber.org/protocol/bytestreams</value><value>
http://jabber.org/protocol/ibb</value></field></x></feature></si></iq>
What version of aSmack / Android / Device do you use?
asmack-issue15.jar    android 2.1
What server do you use? Is there a public server to reproduce the problem?
operfire
What else might help us to reproduce and hunt down the problem?
Any ideas?

Original issue reported on code.google.com by [email protected] on 16 Sep 2010 at 3:58

java.lang.ClassCastException: org.jivesoftware.smack.util.PacketParserUtils$2

What are you doing to produce the error?

try {
    for (String service: MultiUserChat.getServiceNames(con)) {
    Log.i(TAG, "Service name: " + service);
                    //Get the list of rooms under this service
                    for (HostedRoom room: MultiUserChat.getHostedRooms(con,"")) {
                        Log.i(TAG, "\tName: " + room.getName());
                        Log.i(TAG, "\tRoom JID: " + room.getJid());
                        //Get the detail information on the room 
                        RoomInfo info = MultiUserChat.getRoomInfo(con, room.getJid());
                        Log.i(TAG, "\tDescription: " + info.getDescription());
                        Log.i(TAG, "\tOccupant: " + info.getOccupantsCount());
                        Log.i(TAG, "\tPassword: " + info.isPasswordProtected());
                    }
                }
            } catch (XMPPException e) {
                Log.e(TAG, e.getMessage(),e);
            }

What is the expected output?
Collection of Service name and Room List
What do you see instead? (Please attach a debug enabled logcat)
java.lang.ClassCastException: org.jivesoftware.smack.util.PacketParserUtils$2
    at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverItems(ServiceDiscoveryManager.java:655)
    at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverItems(ServiceDiscoveryManager.java:619)
    at org.jivesoftware.smackx.muc.MultiUserChat.getServiceNames(MultiUserChat.java:251)
    at cz.jabbim.android.service.JabbimConnectionService$1.getRoomList(JabbimConnectionService.java:159)
    at cz.jabbim.android.Jabbim.doSelectedItem(Jabbim.java:370)
    at cz.jabbim.android.Jabbim.onOptionsItemSelected(Jabbim.java:350)
    at android.app.Activity.onMenuItemSelected(Activity.java:2195)
    at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:730)
    at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143)
    at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
    at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:532)
    at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
    at android.view.View$PerformClick.run(View.java:8816)
    at android.os.Handler.handleCallback(Handler.java:587)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:4627)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
    at dalvik.system.NativeStart.main(Native Method)

What version of aSmack / Android / Device do you use?
asmack-jse-buddycloud-2010.12.11.jar
What server do you use? Is there a public server to reproduce the problem?

What else might help us to reproduce and hunt down the problem?

Original issue reported on code.google.com by [email protected] on 22 Dec 2010 at 10:57

ReconnectionManager problems

What are you doing to produce the error?
1. Open connection with connConfig.setReconnectionAllowed(true);
2. Swicth flight mode on
3. Switch flight mode off

What is the expected output?
Connection is reopened automatucally within 10 sec

What do you see instead? (Please attach a debug enabled logcat)
Connection is not reesteblished 

What version of aSmack / Android / Device do you use?
asmack-issue15.jar
android 2.2
HTC Desire

What server do you use? Is there a public server to reproduce the problem?
gtalk

What else might help us to reproduce and hunt down the problem?
After looking at the code it turned out that static constructor of 
ReconnectionManager is never called.

Following code fixes this problem 
Constructor<?>[] c = ReconnectionManager.class.getConstructors();

Looks like android avoids calling static unless the class is used in runtime.

But the break of connection causes ConnectionListener.connectionClosedOnError 
to be called twice 
java.io.IOException: Write error: I/O error during system call, Broken pipe
        at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativewrite(Native Method)
        at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.access$600(OpenSSLSocketImpl.java:55)
        at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLOutputStream.write(OpenSSLSocketImpl.java:583)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:175)
        at java.io.BufferedWriter.flush(BufferedWriter.java:158)
        at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:195)
        at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:42)
        at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:78)


java.io.IOException: Read error: I/O error during system call, Connection timed 
out
        at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeread(Native Method)
        at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.access$300(OpenSSLSocketImpl.java:55)
        at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketImpl.java:542)
        at java.io.InputStreamReader.read(InputStreamReader.java:275)
        at java.io.BufferedReader.fillBuf(BufferedReader.java:155)
        at java.io.BufferedReader.read(BufferedReader.java:348)
        at org.kxml2.io.KXmlParser.peek(KXmlParser.java:931)
        at org.kxml2.io.KXmlParser.pushText(KXmlParser.java:881)
        at org.kxml2.io.KXmlParser.nextImpl(KXmlParser.java:354)
        at org.kxml2.io.KXmlParser.next(KXmlParser.java:1385)
        at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:326)
        at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
        at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:71)



Thus this code in ReconnectionManager
 public void connectionClosedOnError(Exception e) {
        done = false;
        if (e instanceof XMPPException) {
            XMPPException xmppEx = (XMPPException) e;
            StreamError error = xmppEx.getStreamError();

            // Make sure the error is not null
            if (error != null) {
                String reason = error.getCode();

                if ("conflict".equals(reason)) {
                    return;
                }
            }
        }

        if (this.isReconnectionAllowed()) {
            this.reconnect();
        }
    }
produces are two threads.

On of these threads fails with 
12-12 01:42:34.642: ERROR/AndroidRuntime(7830): FATAL EXCEPTION: Smack 
Reconnection Manager
        java.lang.IllegalThreadStateException: Thread already started.
        at java.lang.Thread.start(Thread.java:1331)
        at org.jivesoftware.smack.PacketWriter.startup(PacketWriter.java:119)
        at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:603)
        at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:565)
        at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:991)
        at org.jivesoftware.smack.ReconnectionManager$2.run(ReconnectionManager.java:122)

wich is not even processed in catch block:

// Makes a reconnection attempt
                        try {
                            if (ReconnectionManager.this.isReconnectionAllowed()) {
                                connection.connect();
                            }
                        }
                        catch (XMPPException e) {
                            // Fires the failed reconnection notification
                            ReconnectionManager.this.notifyReconnectionFailed(e);
                        } 


Thus there 2 changes need to be apllyed:
1. "Touch" ReconnectionManager class somwhere (e.g. in 
ConnectionConfig.setReconnectionAllowed() ) to ensure static constructor is 
executed.
2. Update ReconnectionManager.isReconnectionAllowed() to verify that there is 
no active reconnection threads.






Original issue reported on code.google.com by [email protected] on 11 Dec 2010 at 10:52

chatManager.createChat does not seem to working properly after a second login

Problem:
I am trying to create a chat between two users, and although it works the
first time around. After I disconnect and try to create a chat again... I
can only send messages but never receive them !! It seems like the
receiving part of the application only works the first time around !? 

Method used:
I 'createChat' when a user clicks a roster entry. Likewise, I have
implemented a packer listener to listen for chat type messages only, and
once an initial message is received from one of the buddies, I 'createChat'
again just like when I want to initiate a chat.. which all works fine but
only the first time around... I can receive as many messages as I want and
display them appropriately too on my listview... but after I close my
activity and disconnect I can only send messages and never receive them
properly... meaning that although I can see the messages being received in
the logCat they don't seem to make it through to the listview. I have a
feeling this is probably because the messages are no longer associated with
the chat that I created.


What is the expected output?
I should be able to receive and send messages no matter how many times I
login or logout !


What do you see instead? (Please attach a debug enabled logcat)
log.txt attached already

What version of aSmack / Android / Device do you use?
the latest one

What server do you use? Is there a public server to reproduce the problem?
openfire


Original issue reported on code.google.com by [email protected] on 31 May 2010 at 9:09

Attachments:

Is there any plan porting asmack to Smack 3.2.0?

Smack 3.2.0 Beta has been released just several days ago. Is there any plan to 
port asmack to Smack 3.2.0?

Refer to the release notes:
http://issues.igniterealtime.org/secure/ReleaseNote.jspa?projectId=10011&version
=10841

Original issue reported on code.google.com by [email protected] on 17 Feb 2011 at 1:26

problem with subscriber

Hi, I'm getting in trouble with the Subscribe function. I created a new 
method to connect the  ItemEventListener to the sever node. I'd like to 
print the node content by means of the handlePublishedItems but it seems 
ItemEventListener is not working. Please find enclosed both the code and 
the log cat session:

Node eventNode;
public void subscribe()
{
   manager = new PubSubManager(connection, "pubsub.acer-sele");     
   eventNode = null;
   try 
   {
    eventNode = manager.getNode(PUBLISHER_NODE);
    Log.i("Subscribe",PUBLISHER_NODE);

   } 
   catch (XMPPException e1) 
   {
    // TODO Auto-generated catch block
    e1.printStackTrace();
   }


  // you will need this first time only
  if(x==0){
  try {
    eventNode.subscribe("user1@acer-sele");

  } catch (XMPPException e1) {
 // TODO Auto-generated catch block
    e1.printStackTrace();
  } 

  eventNode.addItemEventListener(new ItemEventListener() 
  {
    public void handlePublishedItems(ItemPublishEvent items) 
    {

Toast.makeText(androidPublishSubscribe.this, items.getItems().toString(),
                        Toast.LENGTH_SHORT).show();

    }

  });}

}

Thanks in advance for your help
Selene

Original issue reported on code.google.com by [email protected] on 19 Apr 2010 at 3:00

Attachments:

Registration

What are you doing to produce the error?
1. Connect to the XMPP server
2. Register a new user (AccountManager.createAccount(String username, String 
password) - a username and password (test / test) was provided

What is the expected output?
Successful registration according to XEP-0077

What do you see instead? (Please attach a debug enabled logcat)
Exception (bad-request), see logcat file

What version of aSmack / Android / Device do you use?
asmack-2010.05.07 / Android 1.5 / Emulator (AVD 1.5)

What server do you use? Is there a public server to reproduce the problem?
jabber.hot-chilli.net (ejabberd)

What else might help us to reproduce and hunt down the problem?
In the AccountManager.createAccount(String username, String password) method 
all required attributes including password and username are put with a value of 
"" into the attributes map. Then the AccountManager.createAccount(String 
username, String password, Map<String, String> attributes) method is called. In 
this method the username and password is put into the attribute map. After that 
all values of the attributes map of the AccountManager.createAccount(String 
username, String password) method are put into the map. Because of that the 
correct values for the username and password are overridden. There are several 
possibilities to fix this bug. I have attached a small patch including a very 
simple fix. Is it possible to include the fix in the next release?

Original issue reported on code.google.com by [email protected] on 28 Jul 2010 at 9:57

Attachments:

cant login in facebook

i am able to connect successfully facebook via asmack but cant login in it.
if i set  connConfig.setSASLAuthenticationEnabled(true);
than it gives me below exc:
01-13 10:53:05.938: INFO/XMPPClient(389): [SettingsDialog] Connected to 
chat.facebook.com
01-13 10:53:07.178: ERROR/XMPPClient(389): [SettingsDialog] Failed to log in as 
[email protected]
01-13 10:53:07.178: ERROR/XMPPClient(389): SASL authentication failed using 
mechanism DIGEST-MD5: 
and id i set :connConfig.setSASLAuthenticationEnabled(false);
it gives me service unavailable

Original issue reported on code.google.com by [email protected] on 19 Jan 2011 at 5:20

NullPointerException on second XMPPConnection.connect() attempt

Hi all,

I get a NullPointerException as I try to reconnect to my xmpp server.
I disconnect during the call to onPause and reconnect in onResume

I can connect and login successfully during the first attempt while I get a
NullPointerException at the second.
Here is an excerpt from my code:

public void login(String username, String password,String resource, String
serviceName) throws RemoteException {

if (c == null || !c.isConnected()) {
    c = new XMPPConnection(serviceName);
    try {
    c.connect();
        ....

And this is what comes from the logcat:
java.lang.NullPointerException
org.jivesoftware.smackx.muc.MultiUserChat$1.connectionCreated(MultiUserChat.java
:114)
at
org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:618)
at
org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.j
ava:565)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:991)
at nl.func.fml.service.XMPPServiceImpl$1.login(XMPPServiceImpl.java:73)


The problem occurs with any version of asmack (even with the latest one)

Original issue reported on code.google.com by [email protected] on 11 May 2010 at 12:55

android在FileTransfer上的问题

What are you doing to produce the error?
1.是用文件传输的时候,addFileTransferListener(……)不能监听�
��
2.sendFile()和sendStream()这两个方法不能使用,会抛出线程
错误。
3.

What version of aSmack / Android / Device do you use?
我用asmack-issues.jar 
android用2.0



Original issue reported on code.google.com by [email protected] on 18 May 2010 at 4:40

problem login to gtalk and livejournal servers in android emulator

What steps will reproduce the problem?
1. create a gmail account on www.google.com or an accont on
www.livejournal.com;

for google, use these settings:
host = talk.google.com
domain = gmail.com
login = [email protected]

for livejournal, use these settings:
host = xmpp.service.livejournal.com
domain = livejournal.com
login = somename

2. paste the code below to an activity and set a break point at login():
        try {
            ConnectionConfiguration config = new ConnectionConfiguration(host,
5222, domain);
            config.setTruststorePath("/system/etc/security/cacerts.bks");
            config.setTruststorePassword("changeit");
            config.setTruststoreType("bks");
            XMPPConnection m_connection = new XMPPConnection(config);
            m_connection.connect();
            m_connection.login(login1, password1, resource1);
            System.out.println(m_connection.isAuthenticated());
            Presence presence = new Presence(Presence.Type.available);
            m_connection.sendPacket(presence);
            m_connection.disconnect();
        }
        catch (Exception e) {
            e.printStackTrace();
        }

What is the expected output? What do you see instead?
The login() call will always result in an Exception.
for gtalk server, the exception is in attached gtalk_logcat.txt.

for livejournal, the exception is in attached livejournal_logcat.txt.

What version of the product are you using? On what operating system?
The latest Android SDK with Plug-in on Eclipse. Application was deployed to
android platform 1.6.

Please provide any additional information below.
The above code works fine for both servers in regular java application with
smack 3.1.0.

Many thanks.

Li


Original issue reported on code.google.com by [email protected] on 25 Jan 2010 at 9:07

Attachments:

Participation Needed?

Hi, I'm really interested on this project, I would like to contact one of the 
owners. I might be able to join as developer if some work is required. Please, 
consider my request.

Thanks in advance.
Alfredo.

Original issue reported on code.google.com by [email protected] on 12 Nov 2010 at 5:46

processMessage(Chat chat, Message message) not working

I am using aSmack on android
1.I have a System.out.println()(1st statement in function) inside the public 
void processMessage(Chat chat, Message message);
but in the DDMS log is not visible so it concludes that it doesn't hit that 
function.
whereas when i use Smack.jar(patched..available in net)i am able to receive the 
message.

Can you tell me how to retrieve the message using aSmack.jar?

Original issue reported on code.google.com by [email protected] on 28 Sep 2010 at 10:44

Need to Provide extensions like voice-1, video-1 in Presence

What are you doing to produce the error?
1.
2.
3.

What is the expected output?

What do you see instead? (Please attach a debug enabled logcat)

What version of aSmack / Android / Device do you use?Android 2.2, aSmack trunk

What server do you use? Is there a public server to reproduce the problem?
I am trying to evaluate the efforts required to get Jingle working with Android 
for voice and video calling. When connecting to gmail, I don't see the proper 
exchange to enable voice and video features.  

<presence to="]" from="" >
<priority>24</priority>
<caps:c xmlns:caps="http://jabber.org/protocol/caps" 
node="http://mail.google.com/xmpp/client/caps" ver="1.1" ext="pmuc-v1 sms-v1 
camera-v1 video-v1 voice-v1" />
<status/>
<x xmlns="vcard-temp:x:update">
<photo></photo>
</x>
</presence>

or doing similar to

<iq from="" type="result" to="" id="aabaa" >
<query xmlns="http://jabber.org/protocol/disco#info" 
node="http://psi-im.org/caps#ca" >
<identity category="client" type="pc" name="Psi" />
<feature var="urn:xmpp:jingle:1" />
<feature var="urn:xmpp:jingle:transports:ice-udp:1" />
<feature var="urn:xmpp:jingle:apps:rtp:1" />
<feature var="urn:xmpp:jingle:apps:rtp:audio" />
</query>
</iq>

I am sorry if I am posting in an issue format, but i did not see a mailing list 
or any other place to post it. Please advice via a post or email to my id.
What else might help us to reproduce and hunt down the problem?

Original issue reported on code.google.com by [email protected] on 20 Dec 2010 at 11:26

Can only receive chats by polling

I can't get the smack example code to work right.  Sending messages works 
fine, but processMessage() never fires when a message comes back.  But if I 
try the polling code from http://today.java.net/article/2006/10/04/instant-
messaging-java-made-easy-smack-api I can receive messages just fine.

That is, the code below only sends "testing". But if I uncomment the big 
block at the bottom, I receive messages as expected.

I'm running all this on an Android 2.1 AVD.

        // Sorry, I'm not good with Java.
        new Thread(new Runnable() {
          public void run() {            
            XMPPConnection xmpp = new XMPPConnection("jabber.iitsp.com");
            try {
              xmpp.connect();
              xmpp.login("actualusername","password");
            } catch (XMPPException e) {
              Log.v(TAG, "Failed to connect to " + xmpp.getHost());
              e.printStackTrace();
            }
            ChatManager chatmanager = xmpp.getChatManager();
            Chat newChat = chatmanager.createChat("[email protected]", new 
MessageListener() {
              public void processMessage(Chat chat, Message message) {
                try {
                  Log.v(TAG, "Got:" + message.getBody());
                  chat.sendMessage(message.getBody());
                } catch (XMPPException e) {
                  Log.v(TAG, "Couldn't respond:" + e);
                }
                Log.v(TAG, message.toString());
              }
            });

            try {
              newChat.sendMessage("testing");
            } catch (XMPPException e) {
              Log.v(TAG, "couldn't send:" + e.toString());
            }

            // IF I UNCOMMENT THE FOLLOWING BLOCK, I CAN RECEIVE
            //  MESSAGES AS EXPECTED
            /*
            PacketFilter filter 
                = new AndFilter(new PacketTypeFilter(Message.class), 
                                new FromContainsFilter("[email protected]"));

            PacketCollector collector = xmpp.createPacketCollector(filter);

            while(true) {
                Packet packet = collector.nextResult();

                if (packet instanceof Message) {
                    Message msg = (Message) packet;
                    Log.v(TAG, "Got message:" + msg.getBody());
                }
            }
            */
          }
        }).start();

Original issue reported on code.google.com by [email protected] on 2 Mar 2010 at 4:15

Using the ServiceDiscoveryManager throws an error

What are you doing to produce the error?
1. discoveryManager.discoverInfo or discoveryManager.discoverItems

What do you see instead? (Please attach a debug enabled logcat)
05-17 12:29:25.999: ERROR/AndroidRuntime(798): java.lang.RuntimeException:
Failure delivering result ResultInfo{who=null, request=0, result=2,
data=null} to activity {...}: java.lang.ClassCastException:
org.jivesoftware.smack.util.PacketParserUtils$2

What version of aSmack / Android / Device do you use?
the latest version of aSmack (2010.05.07)

What server do you use? Is there a public server to reproduce the problem?
OpenFire

Comments...
It seems like the smackx.jar is missing from the classpath... so none of
the relevant classes are being loaded... isn't smackx.jar already inbuilt
within asmack... or do I need to manually add this jar ? if so, could you
please let me know which version to add.. is there a specific one for
android or can I just use the general one found at "ignite realtime"

much appreciated



Original issue reported on code.google.com by [email protected] on 17 May 2010 at 5:17

Problems with pubsub

Hi,

First of all I would like to thank you for the great job that you have done
by porting the Smack library to the Android platform, nevertheless I have a
problem with it.

The problem is related to publish/subscribe service of XMPP. In fact, when
I try to use publish/subscribe service on Android 2.1 with
asmack-2010.04.02.jar I get a ClassCastException, while if I try the same
code on the PC, with the smack from SVN (r11655), it works perfectly.
I have attached an Android class that tries to use the publish/subscribe
service by subscribing to a node as example (see nomeclasse.java). Also,
the Android log is attached (see Debug.rtf).

As you can see from the log the exception is thrown by the instruction:
eventNode = manager.getNode(PUBLISHER_NODE).
Do you have any idea to fix the issue? Am I doing something wrong?

P.S.: I left the crediantials to the server as plain text, to give you a
chance to use my OpenFire server. Please don't warry about the credentials
because it is a dummy account on a testing server.

Thank you,
Selene

Original issue reported on code.google.com by [email protected] on 6 Apr 2010 at 3:24

Attachments:

directory structure not available

Hi i downloaded the source code for asmack.But when i included all those files 
in my project it should lots of error and the errors wre bcz of directory 
structure.Some directories were missing for instance : 
1. import org.apache.http.HttpHost;(there is no http directory inside 
org.apache).
2. import org.xmlpull.v1.XmlPullParser;(No xmlpull inside org).
And there are lots of such missing directories.

Can you please elaborate why these directory structures are missing.??And if 
these are required where can i get them

Original issue reported on code.google.com by [email protected] on 29 Sep 2010 at 3:58

new location of harmony repository

Please update build.bash with this new location:

fetch 
"http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib/modules/au
th/src/main/java/common/" "harmony"

Original issue reported on code.google.com by [email protected] on 11 Aug 2010 at 12:38

ar

What are you doing to produce the error?
1.
2.
3.

What is the expected output?

What do you see instead? (Please attach a debug enabled logcat)

What version of aSmack / Android / Device do you use?

What server do you use? Is there a public server to reproduce the problem?

What else might help us to reproduce and hunt down the problem?

Original issue reported on code.google.com by [email protected] on 1 Aug 2010 at 1:08

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.