On Sun, 1 Jun 2003, Chuan Guo wrote: >I think, the device has a name of Manufactory, >with a "usbview" program (not in Java) from www.usbview.sourceforge.net >I can see the Manufactory: KOBIL(exact what i use). >like you said, debug shows the Exception is throwed here when getLangId(): > if (4 > len || 4 > UsbUtil.unsignedInt(data[0])) > throw new UsbException("Strings not supported by device");
It's possible that your device is "broken", i.e. doesn't correctly implement the USB spec...can you try using JNI debugging and send that to me? It probably will be a lot of output so you may not want to copy the mailing list... you can turn on JNI debugging with java -DJAVAX_USB_MSG_LEVEL=DEBUG3 ...class... or you may have to edit the com/ibm/jusb/os/linux/JavaxUsb.java file to print out the debugging, depending on what code version you have. >> Try using a different Java version, like Blackdown's or IBM's, >> or a different SUN version. Maybe try using 1.3.X instead of 1.4.X... >i have tryed IBMJava2-1.3, unfortunately it also doesn't run: >//---ErrorMsg--- >/Exception in thread "main" java.lang.UnsupportedClassVersionError: > com/ibm/jusb/tools/swing/SwingUsbView (Unsupported major.minor >version 48.0) > at java.lang.ClassLoader.defineClass(ClassLoader.java:496)... >//---------------- >but does not matter, i learn from it, and test in my simple Program. the error here is you are trying to run code with a 1.3 JVM, when the code was compiled with a 1.4 compiler. You just need to recompile javax.usb with the 1.3 compiler. > >I have still another Problem, when i insert another Device, a Camera or a >Zip, my test >program is immediately down. log shows: >//---Log---- >/An unexpected exception has been detected in native code outside the VM. >/Unexpected Signal : 11 occurred at PC=0x400B7C1D >/Function=__libc_free+0x71 >/Library=/lib/libc.so.6 >/ >/Current Java thread: >/at com.ibm.jusb.os.linux.JavaxUsb.nativeTopologyUpdater(Native Method) >/at >com.ibm.jusb.os.linux.LinuxUsbServices.updateTopology(LinuxUsbServices.java: >150) >/......... >//---End of Log-------------- >is it from USB-hotplug of Linux? >it is very comically, when i insert the Device before Linux-boot, it' ok, >but sometimes when i take it off, and insert once again, Linux notic it no >more:( >and device obtain also no energy! i must reboot linux, this is simply >irritating :((( >have you also experience this? this is a JNI bug, can you try the JNI debugging and send that (at least the last part) to me if this happens? Also, are you using the latest code, either 0.10.0 package or CVS code? -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel