Usb4java和Windows 7 64位操作系统我得到USB错误8或12

我试图让usb4java包工作。 我得到的基本连接,但是当我尝试获得产品,序列号或制造商,我得到USB错误12或8.我想我可能会有图书馆搞砸了。

我正在使用Win 7 Pro 64位操作系统Service Pack 1. Eclipse版本:Luna Service Release 2(4.4.2)版本ID:20150219-0600。
以下是我拥有的图书馆:

引用的图书馆:

代码:

`import java.io. ; 导入java.util。 ; import javax.usb。*;

public class PrettyUSBDeviceLister { public static void main(String[] args) throws UnsupportedEncodingException, UsbException { UsbServices services = UsbHostManager.getUsbServices(); UsbHub root = services.getRootUsbHub(); System.out.println(" USB Root Hub: "); listDevices(root); } // main public static void listDevices(UsbHub hub) { String prod = ""; String sn = ""; String man = ""; List<UsbDevice> devices = hub.getAttachedUsbDevices(); Iterator<UsbDevice> iterator = devices.iterator(); while ( iterator.hasNext()) { UsbDevice device = iterator.next(); if((device.isUsbHub())) { System.out.println("HUB: "); listDevices((UsbHub)device); } try { prod = device.getProductString(); } catch (UnsupportedEncodingException e) { prod = "UEE"; } catch (UsbException e) { String ts = e.getLocalizedMessage(); System.out.println(" USB e L msg = "+ts); prod = "UsbException\n " + e.toString(); } catch (UsbDisconnectedException e) { prod = "USBdis"; } System.out.println("Product : "+prod); try { sn = device.getSerialNumberString(); --similar to the above-- } System.out.println("Serial #: "+sn); try { man = device.getManufacturerString(); --similar to the above-- } System.out.println("Manufact: "+man); System.out.println(); } System.out.println(" ... end Hub ...."); } // static void listdevices(UsbHub root) } // class PrettyUSBDeviceLister 

`我已经包括了下面的错误中的一个。 我得到错误8,13,或NULL为所有电话获得产品,序列号或制造商,

节目输出:

 USB Root Hub: 

USB e L msg = USB错误12:无法打开设备总线008设备002:ID 1058:1078:该平台上不支持或未实现的操作产品:UsbException USB错误12串行号:UsbException USB错误12 javax.usb.UsbPlatformException :USB错误12:无法打开设备总线008设备002:ID 1058:1078:此平台上的操作在org.usb4java.javax.ExceptionUtils.createPlatformException(ExceptionUtils.java:39)org.usb4java不支持或未实现。 javax.AbstractDevice.open(AbstractDevice.java:226)at org.usb4java.javax.AbstractDevice.getLanguages(AbstractDevice.java:538)at org.usb4java.javax.AbstractDevice.getUsbStringDescriptor(AbstractDevice.java:507)at org.usb4java (PrettyUSBDeviceLister.java:PrettyUSBDeviceLister.java:65)处的PrettyUSBDeviceLister.java:65处的org.usb4java.javax.AbstractDevice.getManufacturerString(AbstractDevice.java:304)处的.javax.AbstractDevice.getString(AbstractDevice.java:526) 17)制造商:UsbException USB错误12

USB e L msg = USB错误8:无法获取string描述符语言:溢出产品:UsbException USB错误8:序列号:null javax.usb.UsbPlatformException:USB错误8:无法获取string描述符语言:org.usb4java溢出.javax.ExceptionUtils.createPlatformException(ExceptionUtils.java:39)at org.usb4java.javax.AbstractDevice.getLanguages(AbstractDevice.java:544)at org.usb4java.javax.AbstractDevice.getUsbStringDescriptor(AbstractDevice.java:507)at org。 (PrettyUSBDeviceLister.java:65)在PrettyUSBDeviceLister.main(PrettyUSBDeviceLister.java)处的org.usb4java.javax.AbstractDevice.getManufacturerString(AbstractDevice.java:304)处的usb4java.javax.AbstractDevice.getString(AbstractDevice.java:526) :17)制造商:UsbException USB错误8:

我怎样才能避免这一点,并获得读取数据?
谢谢你的帮助悬崖

Solutions Collecting From Web of "Usb4java和Windows 7 64位操作系统我得到USB错误8或12"