Re: Re: Re: jcifs.smb.SmbException: Incorrect function

View: New views
4 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Re: Re: jcifs.smb.SmbException: Incorrect function

by harald.preczek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Mike,

we've done a little debugging using Jcifs 1.2.21/1.2.22 and here is what we
found.

when we try to set up a connection with the NetApp-filer we receive an
error c0000002. according to the defined constants this means "not
implemented". the exception is thrown by the jcifs-method checkStatus.

It don't know wether this means the filer returns a status jcifs can't
handle or jcifs tried to use a function that's not implemented on the
filer.

we checked this with our own programs as well as with the geturl.java
example shipped with jcifs. the results ar always the same.

Harald
_____________________________________________________
Harald Preczek
Deutsche Bundesbank
Zentralbereich IT
Produktmanagement Anwendungssysteme
Wertpapier, Kredit, Devisen, Risiko-Controlling, Depot
Tel: +49 511 30332246 | Fax: +49 69 7090927589
Email: harald.preczek@...
Homepage: www.bundesbank.de

(Embedded image moved to file: pic02850.jpg)


                                                                       
             "Michael B                                                
             Allen"                                                    
             <ioplex@...                                            An
             om>                       "harald.preczek@..."  
                                       <harald.preczek@...>  
             13.06.2008                                              Kopie
             21:45                                                    
                                                                     Thema
                                       Re: Re: [jcifs]                
                                       jcifs.smb.SmbException: Incorrect
                                       function                        
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       




Harald,

I have installed the NetApp simulator but all of the tests I have work
perfectly. I cannot reproduce the "Incorrect function" Exception.

Your last NullPointerException was coming from one of your own classes
(CsvRenderer.java).

Perhaps 1.2.21 is now working?

Or JCIFS is not returning the data you expect?

If you can create a small test program like the examples shipped with
JCIFS so that I can reproduce the issue here, it should be easy to fix
now that I have the simulator.

Mike

--
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/




--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail oder von Teilen dieser Mail ist nicht gestattet.

Wir haben alle verkehrsüblichen Maßnahmen unternommen, um das Risiko der
Verbreitung virenbefallener Software oder E-Mails zu minimieren, dennoch
raten wir Ihnen, Ihre eigenen Virenkontrollen auf alle Anhänge an dieser
Nachricht durchzuführen. Wir schließen außer für den Fall von Vorsatz oder
grober Fahrlässigkeit die Haftung für jeglichen Verlust oder Schäden durch
virenbefallene Software oder E-Mails aus.

Jede von der Bank versendete E-Mail ist sorgfältig erstellt worden, dennoch
schließen wir die rechtliche Verbindlichkeit aus; sie kann nicht zu einer
irgendwie gearteten Verpflichtung zu Lasten der Bank ausgelegt werden.
______________________________________________________________________

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of  the material in this
e-mail or of parts hereof is strictly forbidden.

We have taken precautions to minimize the risk of transmitting software
viruses but nevertheless advise you to carry out your own virus checks on
any attachment of this message. We accept no liability for loss or damage
caused by software viruses except in case of gross negligence or willful
behaviour.

Any e-mail messages from the Bank are sent in good faith, but shall not be
binding or construed as constituting any kind of obligation on the part of
the Bank.

pic02850.jpg (4K) Download Attachment

Re: Re: Re: jcifs.smb.SmbException: Incorrect function

by Michael B Allen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 7/10/08, harald.preczek@... <harald.preczek@...> wrote:

>
>  Mike,
>
>  we've done a little debugging using Jcifs 1.2.21/1.2.22 and here is what we
>  found.
>
>  when we try to set up a connection with the NetApp-filer we receive an
>  error c0000002. according to the defined constants this means "not
>  implemented". the exception is thrown by the jcifs-method checkStatus.
>
>  It don't know wether this means the filer returns a status jcifs can't
>  handle or jcifs tried to use a function that's not implemented on the
>  filer.

Hi Harald,

The 0xc0000002 "Incorrect function" error means the NetApp basically
does not like the specific operation you are trying to perform. It
could be some flags or something that it doesn't like.

Please provide a minimal test program that fails with NetApp. Provided
I can reproduce the issue with the simulator here at my end I will fix
it asap.

Otherwise, as I said before, all of the examples run fine against the
simulator here so I need to know exactly what is failing.

>  we checked this with our own programs as well as with the geturl.java
>  example shipped with jcifs. the results ar always the same.

The GetURL.java example works fine against the simulator here:

$ java -Djcifs.properties=../user2.prp GetURL smb://na2.w.net/tmp/test/file.txt
$ cat ../user2.php
jcifs.smb.client.username=user2
jcifs.smb.client.password=pAsswOrd
jcifs.smb.client.domain=w.net
jcifs.resolveOrder=DNS,BCAST

Perhaps you should get a packet capture instead. If you're not sure
how to do that, let me know and I'll walk you through it.

I assume the NetApp server is a member of a Windows domain?

Mike

--
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/

RE: Re: Re: jcifs.smb.SmbException: Incorrect function

by tinius_paul :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We've found that if you use the FQDN the NetApp filer you will receive
the "incorrect function". Removing the FQDN seems to clear up the issue.

-----Original Message-----
From: jcifs-bounces+tinius_paul=emc.com@...
[mailto:jcifs-bounces+tinius_paul=emc.com@...] On Behalf Of
Michael B Allen
Sent: Thursday, July 10, 2008 12:52 PM
To: harald.preczek@...
Cc: jcifs@...
Subject: Re: Re: Re: [jcifs] jcifs.smb.SmbException: Incorrect function

On 7/10/08, harald.preczek@... <harald.preczek@...>
wrote:
>
>  Mike,
>
>  we've done a little debugging using Jcifs 1.2.21/1.2.22 and here is
what we
>  found.
>
>  when we try to set up a connection with the NetApp-filer we receive
an
>  error c0000002. according to the defined constants this means "not
>  implemented". the exception is thrown by the jcifs-method
checkStatus.
>
>  It don't know wether this means the filer returns a status jcifs
can't
>  handle or jcifs tried to use a function that's not implemented on the
>  filer.

Hi Harald,

The 0xc0000002 "Incorrect function" error means the NetApp basically
does not like the specific operation you are trying to perform. It
could be some flags or something that it doesn't like.

Please provide a minimal test program that fails with NetApp. Provided
I can reproduce the issue with the simulator here at my end I will fix
it asap.

Otherwise, as I said before, all of the examples run fine against the
simulator here so I need to know exactly what is failing.

>  we checked this with our own programs as well as with the geturl.java
>  example shipped with jcifs. the results ar always the same.

The GetURL.java example works fine against the simulator here:

$ java -Djcifs.properties=../user2.prp GetURL
smb://na2.w.net/tmp/test/file.txt
$ cat ../user2.php
jcifs.smb.client.username=user2
jcifs.smb.client.password=pAsswOrd
jcifs.smb.client.domain=w.net
jcifs.resolveOrder=DNS,BCAST

Perhaps you should get a packet capture instead. If you're not sure
how to do that, let me know and I'll walk you through it.

I assume the NetApp server is a member of a Windows domain?

Mike

--
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/


Re: Re: Re: jcifs.smb.SmbException: Incorrect function

by Michael B Allen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So maybe the path in the SMB_COM_TREE_CONNECT_ANDX needs to match what
NetApp was configured for. Or perhaps it's a DNS issue. I used an FQDN
ok but I didn't try the NetBIOS name (not running WINS here). Another
thing to try is the IP.

I know the NetApp Filers are fast but I think they're based on NT 3.x
code which makes them a bit fickle. We'll just have to learn how to
dodge the quirks.

Mike

On 7/10/08, tinius_paul@... <tinius_paul@...> wrote:

> We've found that if you use the FQDN the NetApp filer you will receive
>  the "incorrect function". Removing the FQDN seems to clear up the issue.
>
>
>  -----Original Message-----
>  From: jcifs-bounces+tinius_paul=emc.com@...
>  [mailto:jcifs-bounces+tinius_paul=emc.com@...] On Behalf Of
>
> Michael B Allen
>  Sent: Thursday, July 10, 2008 12:52 PM
>  To: harald.preczek@...
>  Cc: jcifs@...
>  Subject: Re: Re: Re: [jcifs] jcifs.smb.SmbException: Incorrect function
>
>  On 7/10/08, harald.preczek@... <harald.preczek@...>
>  wrote:
>  >
>  >  Mike,
>  >
>  >  we've done a little debugging using Jcifs 1.2.21/1.2.22 and here is
>  what we
>  >  found.
>  >
>  >  when we try to set up a connection with the NetApp-filer we receive
>  an
>  >  error c0000002. according to the defined constants this means "not
>  >  implemented". the exception is thrown by the jcifs-method
>  checkStatus.
>  >
>  >  It don't know wether this means the filer returns a status jcifs
>  can't
>  >  handle or jcifs tried to use a function that's not implemented on the
>  >  filer.
>
>  Hi Harald,
>
>  The 0xc0000002 "Incorrect function" error means the NetApp basically
>  does not like the specific operation you are trying to perform. It
>  could be some flags or something that it doesn't like.
>
>  Please provide a minimal test program that fails with NetApp. Provided
>  I can reproduce the issue with the simulator here at my end I will fix
>  it asap.
>
>  Otherwise, as I said before, all of the examples run fine against the
>  simulator here so I need to know exactly what is failing.
>
>  >  we checked this with our own programs as well as with the geturl.java
>  >  example shipped with jcifs. the results ar always the same.
>
>  The GetURL.java example works fine against the simulator here:
>
>  $ java -Djcifs.properties=../user2.prp GetURL
>  smb://na2.w.net/tmp/test/file.txt
>  $ cat ../user2.php
>  jcifs.smb.client.username=user2
>  jcifs.smb.client.password=pAsswOrd
>  jcifs.smb.client.domain=w.net
>  jcifs.resolveOrder=DNS,BCAST
>
>  Perhaps you should get a packet capture instead. If you're not sure
>  how to do that, let me know and I'll walk you through it.
>
>  I assume the NetApp server is a member of a Windows domain?
>
>  Mike
>
>  --
>  Michael B Allen
>  PHP Active Directory SPNEGO SSO
>  http://www.ioplex.com/
>
>


--
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/
LightInTheBox - Buy quality products at wholesale price