Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Pages: [1]
  Print  
Author Topic: Java Whiteboard and Linux  (Read 4080 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 5
Offline Offline
View Profile Email
« on: July 31, 2010, 05:02:36 AM »

Morning
I've followed the instructions to install Wiimote Whiteboard on Linux (ie bluecove.jar) but when the application is started i get:
31/07/2010 10:43:09 AM com.sun.corba.se.impl.ior.IORImpl getProfile
WARNING: "IOP00511201: (INV_OBJREF) IOR must have at least one IIOP profile"
org.omg.CORBA.INV_OBJREF:   vmcid: SUN  minor code: 1201  completed: No
   at com.sun.corba.se.impl.logging.IORSystemException.iorMustHaveIiopProfile(IORSystemException.java:473)
   at com.sun.corba.se.impl.logging.IORSystemException.iorMustHaveIiopProfile(IORSystemException.java:495)
   at com.sun.corba.se.impl.ior.IORImpl.getProfile(IORImpl.java:334)
   at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:787)
   at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:761)
   at com.sun.corba.se.impl.encoding.CDRInputStream.read_Object(CDRInputStream.java:231)
   at com.sun.corba.se.impl.resolver.INSURLOperationImpl.getIORFromString(INSURLOperationImpl.java:120)
   at com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(INSURLOperationImpl.java:130)
   at com.sun.corba.se.impl.orb.ORBImpl.string_to_object(ORBImpl.java:836)
   at org.GNOME.Accessibility.AccessUtil.getRegistryObject(AccessUtil.java:143)
   at org.GNOME.Accessibility.JavaBridge.registerApplication(JavaBridge.java:1147)
   at org.GNOME.Accessibility.JavaBridge.<init>(JavaBridge.java:398)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at java.lang.Class.newInstance0(Class.java:372)
   at java.lang.Class.newInstance(Class.java:325)
   at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:786)
   at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:875)
   at java.awt.Toolkit.getEventQueue(Toolkit.java:1698)
   at java.awt.EventQueue.invokeLater(EventQueue.java:957)
   at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1292)
   at org.jdesktop.application.Application.launch(Application.java:181)
   at org.uweschmidt.wiimote.whiteboard.WiimoteWhiteboard.main(WiimoteWhiteboard.java:79)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at com.simontuffs.onejar.Boot.run(Boot.java:306)
   at com.simontuffs.onejar.Boot.main(Boot.java:159)
JarClassLoader: Warning: Unable to load native library: java.lang.NullPointerException
Native Library bluecove not available
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.
   at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:74)
   at org.uweschmidt.wiimote.whiteboard.WiimoteConnector.connect(WiimoteConnector.java:48)
   at org.uweschmidt.wiimote.whiteboard.WiimoteDataHandler.<init>(WiimoteDataHandler.java:84)
   at org.uweschmidt.wiimote.whiteboard.WiimoteWhiteboard.startup(WiimoteWhiteboard.java:99)
   at org.jdesktop.application.Application$1.run(Application.java:171)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available
   at com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries(BlueCoveImpl.java:381)
   at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:429)
   at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)
   at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1020)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1018)
   at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1011)
   at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
   at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
   at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:67)
   ... 12 more
31/07/2010 10:43:15 AM org.uweschmidt.wiimote.whiteboard.WiimoteWhiteboard startup
SEVERE: Error on startup
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.
   at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:74)
   at org.uweschmidt.wiimote.whiteboard.WiimoteConnector.connect(WiimoteConnector.java:48)
   at org.uweschmidt.wiimote.whiteboard.WiimoteDataHandler.<init>(WiimoteDataHandler.java:84)
   at org.uweschmidt.wiimote.whiteboard.WiimoteWhiteboard.startup(WiimoteWhiteboard.java:99)
   at org.jdesktop.application.Application$1.run(Application.java:171)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available
   at com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries(BlueCoveImpl.java:381)
   at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:429)
   at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)
   at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1020)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1018)
   at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1011)
   at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
   at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
   at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:67)
   ... 12 more
I've used both Linux Mint and Puppy Linux and get the same bluetooth error. I assume the bluetooth stack is working on both distributions as I can connect to my phone using bluetooth.
On Linux Mint I disabled the bluetooth manager in case it was interfering with the application but I still get the same error.
Can any one help? Thanks
Brendan
Logged
*
Karma: +10/-0
Posts: 134
Offline Offline
View Profile WWW
« Reply #1 on: August 24, 2010, 06:45:49 PM »

Hi Brendan,

did you follow the these instructions?
I have neither tried this with Linux Mint nor Puppy Linux, but it might work with some tweaking.
Try starting the app with java -Dbluecove.debug=true -jar WiimoteWhiteboard.jar to see additional debug messages.

Sorry for the late reply,
Uwe
Logged

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.
*
Karma: +0/-0
Posts: 5
Offline Offline
View Profile Email
« Reply #2 on: January 25, 2011, 04:36:31 AM »

Thanks for the reply.
I got it going in Puppy Linux 5.2
For those interested what I did was:
1. installed bluez and java.
2.make sure that the modules rfkill and l2cap are installed ie lsmod|grep rfkill (using a terminal); if not present   modprobe rfkill. Same with l2cap.
3. check that hci0 is running ie hciconfig. If it is not running type hciconfig hci0 up.
4. at this stage you should be able to detect the wiimote by typing hcitools scan while depressing buttons 1 and 2 on the wiimote. If it doesn't work make sure your batteries in the wiimote are fresh or charged.
5. follow the instructions from ujs.

Again thankyou for this program and your help
Brendan
Logged
Pages: [1]
  Print  
 
Jump to:  

Clicky Web Analytics