Warning: Failed to initialize WMA message routing support
It’s past midnight, and I still working at my noob Java Mobile application using Netbeans. After type a few lines of code just to create a so-much-like-a-Hello-World-application, I hitted the Run button, and walla … there it goes, the emulator showed up and after few seconds … nothing happened. No MIDlet showed, no error message, and I couldn’t press any key on the emulator except the close button. Tried it again for 2 or 3 times, and then a message showed on the output tab :
Warning: Failed to initialize WMA message routing support
Yes, I’m not an expert in Java Mobile programming, so this issue made me spent 30 minutes search and rescue for help on Google. I remember having the same problem few months ago (*gosh*), but I don’t remember how to solve it. The only part I remember is it has something to do with the network connection … but what???
Then I bump into this page here. Seems that the WTK is strictly prohibit changes of IP address. Contributor on that page said that
giving write permissions does not correct the problem when the problem seems to be linked to changing ip address.
if one installs WTK2.1 with one ip address and then the ip adress is changed at some later point (say one’s ip address is being set via dhcp) the problem erupts.
The error doesn’t occour because of write permissions. INSTEAD it happens cause of WMA routing support fetches IP info from /etc/hosts file. If you update /etc/hosts with your current IP address, WTK will work perfectly. This happens, for example, when your IP is changed from static to dinamic and dhcpcd doesn’t update /etc/hosts file
Seems fit to my case, since I remember installing WTK at my office, and here I am at my room (different IP address of course). Hmm, then I tried to add a line on /etc/hosts refering to both of my office IP and my room IP … still no use …
Last try, since there are two interface here on my notebook, I put my room IP address to my wired interface, and then my office IP address to my wireless interface.
Yep, that’s fix the problem … geez … the conclusion is I feel sleepy now, time to go to my bed … hoahm ^^
thanks for the information.
my emulator suddenly stopped working. it starts but after some seconds it just exits. i thought it has todo with a java update, but that wasn’t the problem. if i delete the the settings folder j2mewtk inside my documents & settings i get once the mentioned warning, but never ever again. After some minutes i found you’re blog entry and remembered that i updated my network interface list (putting Hamachi network connection to the top). I moved it down again, restarted and emulator is working again! i’m using windows xp pro. This is a very annoying bug since emulator is missing some verbose output on this.
thanks!
@krusha
you’re welcome … it’s nice to know if someone is helped by sharing our experiences …
yeah, it’s so annoying since not everybody is working on same IP address all the time (and yes, we’re developing something mobile here, so it should be mobile enough even from the development process *giggles*) …
Hi…
I am developing a j2me project using NetBeans and i must connect to the server frm the mobile using HTTP protocol.. But i am getting a warning that WMA routing protocol not initilized wen i run the application using NetBean emulator… Can any one help me plz….
Alvonnnnnnnnnn tengkyuuuu mwah mwah! Gila gue botak 2 hari macet gara2 ginian, taunya solusinya edit file hosts doang *facepalm*
I’ve just found this annoying bug, googling and arrive here.
Unfortunately I used Windows.
anyone know how to solve this problem in windows?
thanks..
ha changed hosts file, but nothing changed, my emulator still blank..
need help..