Do send a trace without your fix.

On Tue, 12 Apr 2005, Dmitri Kostioukov wrote:

Can you send a trace? Edit the javax.usb.properties file to set the trace
level to 5 and enable urb-tracing, and run whatever progam you have and
redirect the error output to a file, i.e.

Ok, that's a whole separate issue. There's linking but in jni (I think). I filed a bug report and fixed it in my lib.


Also, I think I found another bug though I haven't filed a bug report yet. I compiled kernel 2.4.30 and it seems they fixed interrupt/bulk situation. I had to change a line in JavaxUsbKernel.c file to:

#define INTERRUPT_USES_BULK_LAST_KERNEL_VERSION KERNEL_VERSION(2,4,29)

Until I done that, I kept getting -22 response on any submit.

Ok, now to the original issue. I'm enclosing a trace. It created using the "fix" I applied. If I don't apply the fix, I just creates NullPointer on the active configuration and the devices never shows up to begin with. But if you want, I can comment out my changes and send you another trace. BTW, it is possible that this active configuration issue has something to do with 2.4.30 - I never tried it with other versions as I had to recompile the kernel to enable usb file system and I updated to 2.4.30 at the same time.



-- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law!
[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device 
/proc/bus/usb/001/001

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[136] Device is hub with 2 
ports

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[151] Device speed is 12 Mbps

[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[217] Building config 1

[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[277] Building interface 0

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x81

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[184] Building device 9 
attached to port 0

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device 
/proc/bus/usb/001/009

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[151] Device speed is 1.5 
Mbps

[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[217] Building config 1

[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[277] Building interface 0

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x81

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x01

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[184] Building device 3 
attached to port 1

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device 
/proc/bus/usb/001/003

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[151] Device speed is 1.5 
Mbps

[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[217] Building config 1

[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[277] Building interface 0

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x81

[default](2) JavaxUsb.h.open_device[216] Opening node /proc/bus/usb/001/001

[hotplug](4) JavaxUsbActive.c.getActiveConfig[272] Getting active config using 
GET_CONFIGURATION standard request.

[hotplug](4) JavaxUsbActive.c.config_ask_device[212] Active device 
configuration is 1

[hotplug](4) JavaxUsbActive.c.getActiveConfig[274] Device returned 1.

[default](2) JavaxUsb.h.open_device[216] Opening node /proc/bus/usb/001/009

[hotplug](4) JavaxUsbActive.c.getActiveConfig[272] Getting active config using 
GET_CONFIGURATION standard request.

[hotplug](4) JavaxUsbActive.c.config_ask_device[212] Active device 
configuration is 1

[hotplug](4) JavaxUsbActive.c.getActiveConfig[274] Device returned 1.

[default](2) JavaxUsb.h.open_device[216] Opening node /proc/bus/usb/001/003

[hotplug](4) JavaxUsbActive.c.getActiveConfig[272] Getting active config using 
GET_CONFIGURATION standard request.

[hotplug](4) JavaxUsbActive.c.config_ask_device[212] Active device 
configuration is 98

[hotplug](4) JavaxUsbActive.c.getActiveConfig[274] Device returned 98.

[default](2) JavaxUsb.h.open_device[216] Opening node /proc/bus/usb/001/001

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[default](2) JavaxUsb.h.open_device[216] Opening node /proc/bus/usb/001/009

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[155] Submitting IsClaimed Request.

[default](2) JavaxUsbInterfaceRequest.c.is_claimed[143] Interface 0 is not 
claimed.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[default](2) JavaxUsb.h.open_device[216] Opening node /proc/bus/usb/001/003

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[75] 
Got Request

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[127] Submitting Request.

[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB

[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78] 
Completed Request

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[91] 
Got completed URB

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[113] Completing URB.

[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[126] Completed URB.

[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[95] 
Finished completed URB

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device 
/proc/bus/usb/001/001

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[136] Device is hub with 2 
ports

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[151] Device speed is 12 Mbps

[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[217] Building config 1

[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[277] Building interface 0

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x81

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[184] Building device 9 
attached to port 0

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device 
/proc/bus/usb/001/009

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[151] Device speed is 1.5 
Mbps

[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[217] Building config 1

[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[277] Building interface 0

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x81

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x01

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[184] Building device 3 
attached to port 1

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device 
/proc/bus/usb/001/003

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[151] Device speed is 1.5 
Mbps

[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[217] Building config 1

[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[277] Building interface 0

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x81

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device 
/proc/bus/usb/001/001

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[136] Device is hub with 2 
ports

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[151] Device speed is 12 Mbps

[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[217] Building config 1

[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[277] Building interface 0

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x81

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[184] Building device 9 
attached to port 0

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device 
/proc/bus/usb/001/009

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[151] Device speed is 1.5 
Mbps

[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[217] Building config 1

[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[277] Building interface 0

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x81

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x01

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[184] Building device 3 
attached to port 1

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device 
/proc/bus/usb/001/003

[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[151] Device speed is 1.5 
Mbps

[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[217] Building config 1

[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[277] Building interface 0

[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[291] Building endpoint 
0x81





java (your main class) 2> some_file



e.g.



java com.ibm.jusb.tools.UsbView 2> /tmp/trace_file



then send the trace file.



Thanks.



On Fri, 8 Apr 2005, Dmitri Kostioukov wrote:



I tried to write a simple program to retreive my topology and it

produce the

following error:



Exception in thread "javax.usb Linux implementation Topology Poller"

java.lang.NullPointerException

at

com.ibm.jusb.os.linux.LinuxUsbServices.setActiveConfigAndInterfaceSett

ings(LinuxUsbServices.java:332)

at

com.ibm.jusb.os.linux.LinuxUsbServices.updateTopology(LinuxUsbServices

.java:225)

at

com.ibm.jusb.os.linux.LinuxUsbServices.access$000(LinuxUsbServices.jav

a:26)

at

com.ibm.jusb.os.linux.LinuxUsbServices$1.run(LinuxUsbServices.java:

141)

at java.lang.Thread.run(Thread.java:595)



Looking at it, I noticed the error was caused by my APC UPS not

returning a

valid configuration. The active config number returned was 98. It

seems that it

being set correctly, but getAcitiveUsbConfiguration() returns null.

This is how

I fixed it for myself:



UsbConfiguration usbConfig = device.getActiveUsbConfiguration();

if (usbConfig == null)

return;



//Iterator interfaces =

device.getActiveUsbConfiguration().getUsbInterfaces().iterator();

Iterator interfaces = usbConfig.getUsbInterfaces().iterator();



I'm not sure what's the best way to deal with it since it's the first

day I'm

using javax.usb or anything usb.





-------------------------------------------------------

SF email is sponsored by - The IT Product Guide

Read honest & candid reviews on hundreds of IT Products from real

users.

Discover which products truly live up to the hype. Start reading now.

http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

_______________________________________________

javax-usb-devel mailing list

javax-usb-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/javax-usb-devel





--

Dan Streetman

[EMAIL PROTECTED]

---------------------

186,272 miles per second:

It isn't just a good idea, it's the law!

Reply via email to