[JDEV] Creating new accounts with jabber beans

Bill Abbas zsa at haywd2.sfba.home.com
Tue Aug 22 22:22:10 CDT 2000


Not sure if this is the same problem or not, but I had trouble with the
character encoding string.  This is a few lines above where the input
source is created.

	new InputStreamReader(in, "UTF8")

I'm running IBM's JDK 1.3 on Linux.  I figured there were some encoding
properties that weren't set properly.  Since I didn't want to bother
figuring out where all that lives, I just hacked out the encoding string
and used the other constructor, which uses the default char encoding. 
	
	new InputStreamReader(in)

There's a couple of places in the jabberbeans code where that happened. 
IIRC, the exception wasn't getting thrown until the null pointer was
passed down to the sax parser, which made things a bit confusing.

-Bill


Amarnath Yara wrote:
> 
> Hi all, I am trying to create new account using jabberbeans. I have modified
> the jtest3. After I recieving the key I was submitting all the information
> needed like username, email,key,passord etc. with an instance of
> IQRegisterExtensionBuilder(). But I am getting an exception like this. Can
> you guys make suggestion please..
> Amar.
> 
> CLDebug: Connecting...
> CLDebug: Connected!
> Connection succeeded!
> PLDebug: Sent Packet:
> <?xml version='1.0'?><stream:stream to="phoenix" xmlns="jabber:client"
> xmlns:st
> eam="http://etherx.jabber.org/streams">
> Send requested for IQ
> PLDebug: Sent Packet:
> <iq id="0" type="get"><query xmlns="jabber:iq:register"></query></iq>
> PLDebug: RECEIVED PACKET!!!
> <iq id="0" type="result"><query
> xmlns="jabber:iq:register"><instructions>Choose
> a username and password to register with this
> server.</instructions><password/>
> name/><email/><key>781b5b15fd02bed6018fc7448132c1726e7e1669</key><username/></q
> ery></iq>
> 
> java.lang.NullPointerException
>         at
> org.jabber.jabberbeans.sax.InputStreamHandler.run(InputStreamHandler
> java:79)
> 
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev




More information about the JDev mailing list