IllegalArgument error

I get this error when trying to start the wildfire server? I need help Thanks. Randy

java.lang.IllegalArgumentException: Illegal JID: midwest im

at org.xmpp.packet.JID.init(JID.java:401)

at org.xmpp.packet.JID.(XMPPServer.java:145)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.jivesoftware.wildfire.starter.ServerStarter.start(ServerStarter.java:88)

at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)

Caused by: org.jivesoftware.stringprep.IDNAException: Contains non-LDH characters.

at org.jivesoftware.stringprep.IDNA.toASCII(IDNA.java:106)

at org.jivesoftware.stringprep.IDNA.toASCII(IDNA.java:53)

at org.xmpp.packet.JID.init(JID.java:366)

… 20 more

Hi Randy,

a JID must not contain a space character. And if I remember right it should contain the user and the domain and not only one or the other, but this should not be the cause for this exception.

LG

How does one change the JID back to what it was before?

Hey jwcmonkey,

  1. Stop the server

  2. If you are using the embedded DB then edit embedded-db/wildfire.script

  3. If you are using an external DB then connect to the DB using some nice and friendly SQL tool

  4. Locate the jiveProperty table

  5. Modify the propValue of the entry named xmpp.domain

  6. Restart the server

In step #5 make sure that you are not using white spaces.

Regards,

– Gato

Thanks,

Yesterday I changed my server name from 127.0.0.1 to something_something and when I restarted Wildfire I got the same illegal error as above.

But when I changed it back all was well.

Is the underscore an illegal character for the server name?

Hey jwcmonkey,

The name of your Wildfire server should follow some rules that are

explained

here. In a

nutshell, some characters are not allowed such as white spaces or

underscores.

Regards,

– Gato

Thanks!

Hi Gato,

a nice link and as I read “Before comparing two domain identifiers, a server MUST (and a client SHOULD) first apply the Nameprep profile to the labels (as defined in Faltstrom, P., Hoffman, P. and A. Costello, Internationalizing Domain Names in Applications (IDNA), March 2003.) that make up each identifier.”

So I wonder whether Wildfire can also check the supplied xmpp.domain before accepting it.

LG