What data specifically are you sending to the device?  Did you rebuilt the 
native library or just the jar?  You need to rebuild the native library 
(i.e. "ant all" or "ant clean jars").

Getting a JNI trace will help too, you can enable it either by editing the 
javax.usb.properties file to enable JNI tracing, or pass 
-DJAVAX_USB_MSG_LEVEL=DEBUG3 on the java command line.

On Fri, 24 Sep 2004, André Neto wrote:

>Hello,
>
>Thanks for the help.
>I've exported
>CINCLUDES=-I/usr/src/linux-2.6.5-1.358/include/:-I/usr/src/linux-2.6.5-1.358/include/linux/,
>and rebuilt the jar. I've actualized the jar and the libJavaxUsb.so, and tried
>to run the my code again, but I still get the same error in my 2.6.5 kernel.
>
>javax.usb.UsbException: Error submitting IRP : Invalid
>        at
>com.ibm.jusb.os.linux.LinuxPipeRequest.completeUsbIrp(LinuxPipeRequest.java:84)
>        at
>com.ibm.jusb.os.linux.LinuxPipeRequest.setCompleted(LinuxPipeRequest.java:74)
>        at com.ibm.jusb.os.linux.JavaxUsb.nativeDeviceProxy(Native Method)
>        at com.ibm.jusb.os.linux.LinuxDeviceProxy$1.run(LinuxDeviceProxy.java:87)
>        at java.lang.Thread.run(Thread.java:534)
>
>Any other ideas?
>Thank you very much.
>Regards,
>André
>
>
>Quoting Susheel Yadav <[EMAIL PROTECTED]>:
>
>> Build javax-usb-ri-linux  using this option:
>> 
>> export CINCLUDES=-I/usr/src/linux-2.6.1/include
>> ant clean jars
>> 
>> 
>> 
>> and use the jar built this way.
>> 
>> On Thu, 2004-09-23 at 19:20, Andre Neto wrote:
>> 
>> > Hello,
>> > 
>> > I have exactly the same problem, it all works fine with RedHat 
>> > 9.0(kernel version 2.4), but i get the same error with Fedora Core 
>> > release 2, kernerl version(2.6).
>> > Did some one manage to get a solution to this problem?
>> > Regards,
>> > André
>> > 
>> > >Very strange.  Can you try editing your javax.usb.properties file and 
>> > >enable JNI debugging?  It may help determine what the problem is...
>> > >
>> > >On Thu, 29 Jul 2004, Sathya Peri wrote:
>> > >
>> > >  
>> > >
>> > >>Hello,
>> > >>
>> > >>Iam trying to submit data to a device (Card reader) suing syncSubmit().
>> Now
>> > >>this program works perfectly fine when I execute it in Mandrake linux
>> 9.1,
>> > >>kernel version 2.4. But when I try to execute the same program for
>> Fedora
>> > >>Core release 2, kernel version 2.6.5, it fails. I get the error  Error
>> > >>submitting IRP :Invalid, which is as follows:
>> > >>
>> > >>javax.usb.UsbException: Error submitting IRP : Invalid at
>> >
>> >>com.ibm.jusb.os.linux.LinuxPipeRequest.completeUsbIrp(LinuxPipeRequest.java:
>> > >>84)
>> > >>       at
>> >
>> >>com.ibm.jusb.os.linux.LinuxPipeRequest.setCompleted(LinuxPipeRequest.java:74
>> > >>)
>> > >>       at com.ibm.jusb.os.linux.JavaxUsb.nativeDeviceProxy(Native
>> > >>Method)
>> > >>       at
>> > >>com.ibm.jusb.os.linux.LinuxDeviceProxy$1.run(LinuxDeviceProxy.java:87)
>> > >>       at java.lang.Thread.run(Thread.java:534)
>> > >>
>> > >>
>> > >>Do you think there could be some problem/incompatibility with linux
>> kernel
>> > >>version 2.6 that causes syncSubmit() function not to work??
>> > >>
>> > >>Can anybody give me some suggestions? Thanks a lot!!
>> > >>
>> > >>Regds
>> > >>Sathya
>> > >>
>> > >>    
>> > >>
>> > >
>> > >  
>> > >
>> > 
>> > 
>> > 
>> > -------------------------------------------------------
>> > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
>> > Project Admins to receive an Apple iPod Mini FREE for your judgement on
>> > who ports your project to Linux PPC the best. Sponsored by IBM.
>> > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
>> > _______________________________________________
>> > javax-usb-devel mailing list
>> > [EMAIL PROTECTED]
>> > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
>> 
>> -- 
>> Susheel Yadav
>> 
>
>
>
>
>-------------------------------------------------
>This mail sent through cfn webmail
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
>Project Admins to receive an Apple iPod Mini FREE for your judgement on
>who ports your project to Linux PPC the best. Sponsored by IBM.
>Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
>_______________________________________________
>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: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
javax-usb-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to