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 ^^
Recent Comments