ArrayIndexOutOfBoundsException while running SampleAppWiiuseJ

14 views
Skip to first unread message

sanmoy

unread,
Mar 1, 2011, 2:40:09 PM3/1/11
to WiiuseJ users
Hi All,

I was trying to run the sample application and got this
exception"java.lang.ArrayIndexOutOfBoundsException: 0"

Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1, true);
Wiimote wiimote = wiimotes[0];

I have tried to run this application in both windows xp and windows 7.

First I was using default MS stack, then I installed Broadcom.
My nintendo remote is connected to my pc and I can view the services.

I have tried this api also, but i am getting the same result :
Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1,
true ,WiiUseApiManager.WIIUSE_STACK_MS);

I started debugging the code, and found it is failing inside
connectWiimotes() of WiiUseApiManager class. wiiuse.find(nb, 3) is
returning 0, find is an native method, so I cannot analyze more.

Please help me to resolve this problem.

Guilhem Duch�

unread,
Mar 2, 2011, 10:36:46 AM3/2/11
to wiiuse...@googlegroups.com
Hello,

if your wiimote is properly connected it shoudl work. More reliable bluetooth stacks are widcomm and bluesoleil.
Please try with blue soleil and make sure you are connected in bluesoleil before launching your app.


cheers

guilhem

2011/3/1 sanmoy <san...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "WiiuseJ users" group.
To post to this group, send email to wiiuse...@googlegroups.com.
To unsubscribe from this group, send email to wiiusej-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wiiusej-users?hl=en.




--
Cordialement

Guilhem Duché


Tél GFI : 02 23 20 99 17

sanmoy

unread,
Mar 2, 2011, 10:25:23 PM3/2/11
to WiiuseJ users
Dear guilhem,

Thanks for your reply.

wiiusej is working fine with bluesoleil. But its not free.. i have to
think for other alternative

Regards
Sanmoy

Guilhem Duch�

unread,
Mar 3, 2011, 4:27:34 AM3/3/11
to wiiuse...@googlegroups.com
Yeah to be honest i had widcomm and bluesoleil working.
The wiiuse website tells it works with MS and toshiba stacks but i couldn't validate it since i did not have the hardware for it...

GL

++

guilhem


2011/3/3 sanmoy <san...@gmail.com>
Reply all
Reply to author
Forward
0 new messages