powered by Jive Software

I am getting ''Internal server error'' on Wildfire

I am running Wildfire server 2.6.2 and my client using Smack 2.2.1.

The moment I use smack to call con.getAccountManager().getAccountAttribute(“name”) or any other attributes, the server will return me the following error:

Internal server error

java.lang.IllegalArgumentException: Adding text to an XML document must not be null

at org.dom4j.DocumentFactory.createText(DocumentFactory.java:174)

at org.dom4j.tree.AbstractElement.addText(AbstractElement.java:899)

at org.dom4j.tree.AbstractElement.setText(AbstractElement.java:1120)

at org.jivesoftware.wildfire.handler.IQRegisterHandler.handleIQ(IQRegisterHandler. java:173)

at org.jivesoftware.wildfire.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.wildfire.IQRouter.handle(IQRouter.java:265)

at org.jivesoftware.wildfire.IQRouter.route(IQRouter.java:96)

at org.jivesoftware.wildfire.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.wildfire.net.SocketReader.processIQ(SocketReader.java:396)

at org.jivesoftware.wildfire.net.ClientSocketReader.processIQ(ClientSocketReader.j ava:50)

at org.jivesoftware.wildfire.net.SocketReader.readStream(SocketReader.java:264)

at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:119)

at java.lang.Thread.run(Unknown Source)

2006.06.15 12:02:45 [org.jivesoftware.wildfire.handler.IQHandler.process(IQHandler.java:68)

I have checked that the attributes are all set.

Does anyone have any clues about this error?

From the Smack debugger,

//sending packets

Not sure if this is a Smack problem or Wildfire problem.

I realised that the code works again after I set the email attribute of the account. Is it a requirement to set the email before creating an account on the wildfire server? If it is, then perhaps the server should validate it upon account creation.

AccountManager.getAccountAttribute() using Smack just would not work if the email is not set.

Hmmmm…