On Wed, Aug 11, 2010 at 3:06 AM, Alex <alexandre.dal...@gmail.com> wrote: > Hi,
> I'm having a problem with C2DM,
> It may be related to the fact that the sender email for C2DM that I > use is the same of the receiver google email, can this be the > problem ?
> StackTrace following,
> Thanks in advance,
> Alex.
> E/TalkProvider( 550): query db caught > E/TalkProvider( 550): java.lang.IllegalArgumentException: the bind > value at index 2 is null > E/TalkProvider( 550): at > android.database.sqlite.SQLiteProgram.bindString(SQLiteProgram.java: > 234) > E/TalkProvider( 550): at > android.database.sqlite.SQLiteQuery.bindString(SQLiteQuery.java:182) > E/TalkProvider( 550): at
> android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDr iver.java: > 48) > E/TalkProvider( 550): at
> android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.j ava: > 1345) > E/TalkProvider( 550): at > android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java: > 330) > E/TalkProvider( 550): at > com.google.android.gsf.talk.TalkProvider.queryInternal(TalkProvider.java: > 1740) > E/TalkProvider( 550): at > com.google.android.gsf.talk.TalkProvider.query(TalkProvider.java:1436) > E/TalkProvider( 550): at android.content.ContentProvider > $Transport.query(ContentProvider.java:163) > E/TalkProvider( 550): at > android.content.ContentResolver.query(ContentResolver.java:245) > E/TalkProvider( 550): at
> com.google.android.gsf.gtalkservice.DatabaseHelper.getOffTheRecordCursor(Da tabaseHelper.java: > 756) > E/TalkProvider( 550): at
> com.google.android.gsf.gtalkservice.ChatSession.queryOtrCursor(ChatSession. java: > 206) > E/TalkProvider( 550): at > com.google.android.gsf.gtalkservice.ChatSession.<init>(ChatSession.java: > 168) > E/TalkProvider( 550): at > com.google.android.gsf.gtalkservice.ChatMgr.createChatSession(ChatMgr.java: > 264) > E/TalkProvider( 550): at
> com.google.android.gsf.gtalkservice.ChatMgr.processIncomingMessage(ChatMgr. java: > 721) > E/TalkProvider( 550): at > com.google.android.gsf.gtalkservice.ChatMgr.processPacket(ChatMgr.java: > 521) > E/TalkProvider( 550): at org.jivesoftware.smack.PacketReader > $ListenerWrapper.notifyListener(PacketReader.java:1860) > E/TalkProvider( 550): at > org.jivesoftware.smack.PacketReader.processListeners(PacketReader.java: > 451) > E/TalkProvider( 550): at org.jivesoftware.smack.PacketReader.access > $200(PacketReader.java:91) > E/TalkProvider( 550): at org.jivesoftware.smack.PacketReader > $3.run(PacketReader.java:154) > E/Smack/Packet( 550): [PacketReader] listenerThread: caught exception > E/Smack/Packet( 550): notify conn error. close connection! > E/Smack/Packet( 550): java.lang.NullPointerException > E/Smack/Packet( 550): at
> com.google.android.gsf.gtalkservice.ChatSession.queryOtrCursor(ChatSession. java: > 208) > E/Smack/Packet( 550): at > com.google.android.gsf.gtalkservice.ChatSession.<init>(ChatSession.java: > 168) > E/Smack/Packet( 550): at > com.google.android.gsf.gtalkservice.ChatMgr.createChatSession(ChatMgr.java: > 264) > E/Smack/Packet( 550): at
> com.google.android.gsf.gtalkservice.ChatMgr.processIncomingMessage(ChatMgr. java: > 721) > E/Smack/Packet( 550): at > com.google.android.gsf.gtalkservice.ChatMgr.processPacket(ChatMgr.java: > 521) > E/Smack/Packet( 550): at org.jivesoftware.smack.PacketReader > $ListenerWrapper.notifyListener(PacketReader.java:1860) > E/Smack/Packet( 550): at > org.jivesoftware.smack.PacketReader.processListeners(PacketReader.java: > 451) > E/Smack/Packet( 550): at org.jivesoftware.smack.PacketReader.access > $200(PacketReader.java:91) > E/Smack/Packet( 550): at org.jivesoftware.smack.PacketReader > $3.run(PacketReader.java:154)
Thanks for answering, and sorry for the lack of info. I use a Nexus
One FRF91, The test I'm doing is the following:
- I've implemented registration to C2DM services as documented by
google,
On Aug 11, 3:57 pm, Costin Manolache <cos...@gmail.com> wrote:
Sorry, sent uncomplete (Tab / Enter typed to fast to indent the text
in the text entry...) so I repeat:
- I've implemented registration to C2DM services as documented by
google
- Once the registration id is received from Android intent, send
the registration identifier to my personal server.
- A webservice on my personal server that gets the auth token sent
by the phone, and sends a test message through the documented C2DM
interface, I get a message id back, so from that point of view it does
work.
- When I try this procedure with a friend's phone, it does work
(not my gmail id)
- When I try same procedure with my phone, I have the mentioned
Exception.
Hope that will help in understanding what's happening,
> > Please include phone and software version with all bug descriptions, and
> > more informations
> > about what you did, what worked, where it broke.
> > You shouldn't have any problems with having the sender the same as the
> > receiver.
On Wed, Aug 11, 2010 at 7:10 AM, Alex <alexandre.dal...@gmail.com> wrote: > Sorry, sent uncomplete (Tab / Enter typed to fast to indent the text > in the text entry...) so I repeat:
> - I've implemented registration to C2DM services as documented by > google > - Once the registration id is received from Android intent, send > the registration identifier to my personal server. > - A webservice on my personal server that gets the auth token sent > by the phone, and sends a test message through the documented C2DM > interface, I get a message id back, so from that point of view it does > work.
> - When I try this procedure with a friend's phone, it does work > (not my gmail id) > - When I try same procedure with my phone, I have the mentioned > Exception.
> Hope that will help in understanding what's happening,
> Alex.
> > > Please include phone and software version with all bug descriptions, > and > > > more informations > > > about what you did, what worked, where it broke.
> > > You shouldn't have any problems with having the sender the same as the > > > receiver.