It looks like the NPE is happening in your code, not javax.usb code.  I 
assume you're replacing the standard ClassLoader with your own?  You 
should check your "BundleClassLoader" line 291, that's where the NPE is 
happening.


On Mon, 9 May 2005, Szabolcs Tahin wrote:

>Hello,
>
>just installed the newest javax.usb package and enabled tracing. Here a
>snippet with the exception. Can you recognize something wrong?
>
>Szabolcs
>
>
>
>[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](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device
>/proc/bus/usb/002/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
>[stderr] java.lang.NullPointerException
>[stderr]        at
>org.knopflerfish.framework.BundleClassLoader.loadOwnClass(BundleClassLoader.java:291)
>[stderr]        at
>org.knopflerfish.framework.BundleClassLoader.findClass(BundleClassLoader.java:136)
>[stderr]        at
>org.knopflerfish.framework.BundleClassLoader.loadClass(BundleClassLoader.java:224)
>[stderr]        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>[stderr]        at
>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>[stderr]        at com.ibm.jusb.UsbDeviceImp.disconnect(UsbDeviceImp.java:363)
>[stderr]        at
>com.ibm.jusb.os.linux.LinuxUsbServices.updateTopology(LinuxUsbServices.java:221)
>[stderr]        at
>com.ibm.jusb.os.linux.LinuxUsbServices.access$000(LinuxUsbServices.java:26)
>[stderr]        at
>com.ibm.jusb.os.linux.LinuxUsbServices$1.run(LinuxUsbServices.java:141)
>[stderr]        at java.lang.Thread.run(Thread.java:595)
>[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](3) JavaxUsbTopologyUpdater.c.build_device[112] Building device
>/proc/bus/usb/002/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
>[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/002/001
>[hotplug](4) JavaxUsbActive.c.getActiveConfig[272] Getting active config using
>GET_CONFIGURATION standard request.
>
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: NEC IT Guy Games.
>Get your fingers limbered up and give it your best shot. 4 great events, 4
>opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
>win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
>_______________________________________________
>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!


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to