I tried to put the files somewhere else, but it did not solve the problem. However, I made some progress : if I run the application as Root, is works perfectly.
So I have two questions : - with the previous version of javax-usb (running on Mandrake 8.1) I did not need to connect as root. Why do I need it now ? - why don't you recommend to put the jarfiles in the jre/lib/ext dircetoy ? Thanks vey much for your help, Aurelien -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Dan Streetman Envoye : jeudi 9 octobre 2003 16:04 A : Aurelien Godin Cc : [EMAIL PROTECTED] Objet : RE: [javax-usb-devel] 0.10.1 I don't recommend putting either the jarfiles or the .so in the jre/lib/ext directory. Can you try it with those somewhere else? If that still fails, can you send the detailed output from the error file it mentions at the end? Also, can you send the output when you run it with -DJAVAX_USB_MSG_LEVEL=DEBUG3 defined? On Wed, 8 Oct 2003, Aurelien Godin wrote: >I built the javax-usb package and try to run my application on the same >machine. >The current installed JVM is java 1.4.2-b28. >When trying to run the program, the following error is returned : > >########################### > >An unexpected exception has been detected in native code outside the VM. >Unexpected Signal : 11 occurred at PC=0x42073499 >Function=__libc_free+0x49 >Library=/lib/tls/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) > at >com.ibm.jusb.os.linux.LinuxUsbServices.access$100(LinuxUsbServices.java:26) > at >com.ibm.jusb.os.linux.LinuxUsbServices$2.run(LinuxUsbServices.java:116) > at >com.ibm.jusb.util.RunnableManager$ManagerRunnable.run(RunnableManager.java: 2 >36) > at java.lang.Thread.run(Thread.java:534) > >Dynamic libraries: >08048000-0804e000 r-xp 00000000 03:08 243386 >/usr/java/j2sdk1.4.2/bin/java >0804e000-0804f000 rw-p 00005000 03:08 243386 >/usr/java/j2sdk1.4.2/bin/java >40000000-40015000 r-xp 00000000 03:08 548444 /lib/ld-2.3.2.so >40015000-40016000 rw-p 00014000 03:08 548444 /lib/ld-2.3.2.so >40017000-4001f000 r-xp 00000000 03:08 453962 >/usr/java/j2sdk1.4.2/jre/lib/i386/native_threads/libhpi.so >4001f000-40020000 rw-p 00007000 03:08 453962 >/usr/java/j2sdk1.4.2/jre/lib/i386/native_threads/libhpi.so >40020000-40024000 rw-s 00000000 03:08 550911 >/tmp/hsperfdata_aurelien/4217 >40025000-4002f000 r-xp 00000000 03:08 16219 /lib/tls/libpthread-0.29.so >4002f000-40030000 rw-p 0000a000 03:08 16219 /lib/tls/libpthread-0.29.so >40032000-40034000 r-xp 00000000 03:08 548455 /lib/libdl-2.3.2.so >40034000-40035000 rw-p 00002000 03:08 548455 /lib/libdl-2.3.2.so >40036000-4042d000 r-xp 00000000 03:08 163403 >/usr/java/j2sdk1.4.2/jre/lib/i386/client/libjvm.so >4042d000-40448000 rw-p 003f6000 03:08 163403 >/usr/java/j2sdk1.4.2/jre/lib/i386/client/libjvm.so >4045b000-4046d000 r-xp 00000000 03:08 548459 /lib/libnsl-2.3.2.so >4046d000-4046e000 rw-p 00011000 03:08 548459 /lib/libnsl-2.3.2.so >40470000-40491000 r-xp 00000000 03:08 16217 /lib/tls/libm-2.3.2.so >40491000-40492000 rw-p 00020000 03:08 16217 /lib/tls/libm-2.3.2.so >40492000-40495000 r--s 00000000 03:08 565450 >/usr/java/j2sdk1.4.2/jre/lib/ext/dnsns.jar >40495000-40497000 r--s 00000000 03:08 565479 >/usr/java/j2sdk1.4.2/jre/lib/ext/Joystick.jar >40497000-404a0000 r--s 00000000 03:08 565482 >/usr/java/j2sdk1.4.2/jre/lib/ext/mediaplayer.jar >404a0000-404ab000 r-xp 00000000 03:08 548465 /lib/libnss_files-2.3.2.so >404ab000-404ac000 rw-p 0000a000 03:08 548465 /lib/libnss_files-2.3.2.so >404ac000-404bc000 r-xp 00000000 03:08 163428 >/usr/java/j2sdk1.4.2/jre/lib/i386/libverify.so >404bc000-404be000 rw-p 0000f000 03:08 163428 >/usr/java/j2sdk1.4.2/jre/lib/i386/libverify.so >404be000-404de000 r-xp 00000000 03:08 163414 >/usr/java/j2sdk1.4.2/jre/lib/i386/libjava.so >404de000-404e0000 rw-p 0001f000 03:08 163414 >/usr/java/j2sdk1.4.2/jre/lib/i386/libjava.so >404e0000-404f4000 r-xp 00000000 03:08 163429 >/usr/java/j2sdk1.4.2/jre/lib/i386/libzip.so >404f4000-404f7000 rw-p 00013000 03:08 163429 >/usr/java/j2sdk1.4.2/jre/lib/i386/libzip.so >404f7000-41e82000 r--s 00000000 03:08 760598 >/usr/java/j2sdk1.4.2/jre/lib/rt.jar >41ecc000-41ee2000 r--s 00000000 03:08 760596 >/usr/java/j2sdk1.4.2/jre/lib/sunrsasign.jar >41ee2000-41fbd000 r--s 00000000 03:08 760595 >/usr/java/j2sdk1.4.2/jre/lib/jsse.jar >41fbd000-41fce000 r--s 00000000 03:08 760587 >/usr/java/j2sdk1.4.2/jre/lib/jce.jar >41ff6000-41ffd000 r--s 00000000 03:08 565484 >/usr/java/j2sdk1.4.2/jre/lib/ext/jsr80.jar >42000000-4212e000 r-xp 00000000 03:08 16215 /lib/tls/libc-2.3.2.so >4212e000-42131000 rw-p 0012e000 03:08 16215 /lib/tls/libc-2.3.2.so >42133000-4268c000 r--s 00000000 03:08 760588 >/usr/java/j2sdk1.4.2/jre/lib/charsets.jar >4c910000-4cb10000 r--p 00000000 03:08 451746 >/usr/lib/locale/locale-archive >4cd10000-4cd54000 r--s 00000000 03:08 565475 >/usr/java/j2sdk1.4.2/jre/lib/ext/vecmath.jar >4cd54000-4cd61000 r--s 00000000 03:08 565451 >/usr/java/j2sdk1.4.2/jre/lib/ext/ldapsec.jar >4cd61000-4ce1d000 r--s 00000000 03:08 565466 >/usr/java/j2sdk1.4.2/jre/lib/ext/localedata.jar >4ce1d000-4ce39000 r--s 00000000 03:08 565453 >/usr/java/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar >4ce39000-4d030000 r--s 00000000 03:08 565476 >/usr/java/j2sdk1.4.2/jre/lib/ext/j3dcore.jar >4d030000-4d04d000 r--s 00000000 03:08 565477 >/usr/java/j2sdk1.4.2/jre/lib/ext/j3daudio.jar >4d04d000-4d0fe000 r--s 00000000 03:08 565478 >/usr/java/j2sdk1.4.2/jre/lib/ext/j3dutils.jar >4d0fe000-4d10c000 r--s 00000000 03:08 565480 >/usr/java/j2sdk1.4.2/jre/lib/ext/RXTXcomm.jar >4d10c000-4d2c8000 r--s 00000000 03:08 565481 >/usr/java/j2sdk1.4.2/jre/lib/ext/jmf.jar >4d2c8000-4d2d6000 r--s 00000000 03:08 565483 >/usr/java/j2sdk1.4.2/jre/lib/ext/multiplayer.jar >4d2d6000-4d2f1000 r--s 00000000 03:08 565485 >/usr/java/j2sdk1.4.2/jre/lib/ext/jsr80_ri.jar >4d2f1000-4d2f9000 r--s 00000000 03:08 565486 >/usr/java/j2sdk1.4.2/jre/lib/ext/jsr80_linux.jar >4d379000-4d399000 r-xp 00000000 03:08 163465 >/usr/java/j2sdk1.4.2/jre/lib/i386/libJavaxUsb.so >4d399000-4d39a000 rw-p 0001f000 03:08 163465 >/usr/java/j2sdk1.4.2/jre/lib/i386/libJavaxUsb.so > >Heap at VM Abort: >Heap > def new generation total 576K, used 433K [0x44710000, 0x447b0000, >0x44bf0000) > eden space 512K, 72% used [0x44710000, 0x4476c598, 0x44790000) > from space 64K, 99% used [0x447a0000, 0x447afff8, 0x447b0000) > to space 64K, 0% used [0x44790000, 0x44790000, 0x447a0000) > tenured generation total 1408K, used 58K [0x44bf0000, 0x44d50000, >0x48710000) > the space 1408K, 4% used [0x44bf0000, 0x44bfeac8, 0x44bfec00, >0x44d50000) > compacting perm gen total 4096K, used 1347K [0x48710000, 0x48b10000, >0x4c710000) > the space 4096K, 32% used [0x48710000, 0x48860d28, 0x48860e00, >0x48b10000) > >Local Time = Wed Oct 8 18:13:01 2003 >Elapsed Time = 0 ># ># The exception above was detected in native code outside the VM ># ># Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) ># ># An error report file has been saved as /tmp/hs_err_pid4217.log. ># Please refer to the file for further information. ># > >-----Message d'origine----- >De : [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] la part de Dan >Streetman >Envoye : lundi 6 octobre 2003 23:46 >A : Aurelien Godin >Cc : javax.usb devel >Objet : RE: [javax-usb-devel] 0.10.1 > > > >Can you attach the output from the JVM crash? Also, what JVM are you >using? > >Also, I'm assuming you built the linux package on that system...? > > >On Mon, 6 Oct 2003, Aurelien Godin wrote: > >>I'm currently using Linux RedHat 9.0. The javax-usb package is installed >>without any difficulty and I can compile the java classes using it. >>But when launching the application, an error is detected, something like >>"external error detected outside the JVM", and the program stops. The trace >>then indicates it comes from /lib/tls/libc.so.6, in the function called >>"free". >>What is the problem ? >> >>I've read in an internet forum that the glibc contained in the RedHat 9 >>distribution is slightly different from the versions used before (I guess >it >>does recognize some error signals). What is the exact difference and how >can >>I do to get javax-usb work anyway ? >> >>Thanks for your help, >> >>Aurelien >> >>-----Message d'origine----- >>De : [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] la part de Dan >>Streetman >>Envoye : mercredi 17 septembre 2003 02:33 >>A : javax.usb devel >>Objet : [javax-usb-devel] 0.10.1 >> >> >> >>the source packages are there, try it out. Let me know if anything >>doesn't work, or if it's not backwards-compatible (it shoudl be). >> >>The most interesting change is the UsbInterfacePolicy. An interesting >>side note to the policy is the 'forceClaim' option, which allows you (on >>certain Linux kernels, 2.5 and from 2.4.23-pre2) to remove existing USB >>drivers from any usb interface, so you can drive the interface from >>userspace. >> >>Thanks! >> >>-- >>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:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>javax-usb-devel mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/javax-usb-devel >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>javax-usb-devel mailing list >>[EMAIL PROTECTED] >>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:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >javax-usb-devel mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > > > >------------------------------------------------------- >This SF.net email is sponsored by: SF.net Giveback Program. >SourceForge.net hosts over 70,000 Open Source Projects. >See the people who have HELPED US provide better services: >Click here: http://sourceforge.net/supporters.php >_______________________________________________ >javax-usb-devel mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > -- Dan Streetman [EMAIL PROTECTED] -------------------------------------------------- 186,282 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel