[jcifs] jcifs.smb.SmbException: Incorrect function

tinius_paul at emc.com tinius_paul at emc.com
Fri Jun 6 21:54:22 GMT 2008


Are you accessing the filer using the FQDN name? Just using the hostname fixed it for us.

Paul

-----Original Message-----
From: jcifs-bounces+tinius_paul=emc.com at lists.samba.org [mailto:jcifs-bounces+tinius_paul=emc.com at lists.samba.org] On Behalf Of harald.preczek at bundesbank.de
Sent: Friday, June 06, 2008 5:21 AM
To: jcifs at lists.samba.org
Subject: [jcifs] jcifs.smb.SmbException: Incorrect function



Hi,

we have an application running on IBM Websphere 5.1/6.1 (hosted on Sun Solaris 10) using jcifs to access a fileshare on a netapp-filer via smb and write files into a windows filesystem.

Since the filer was updated to Ontap 7.2.3 we receive "
jcifs.smb.SmbException: Incorrect function".

This looks like a problem that should be fixed with jcifs-1.2.15. We tried every jcifs-version since then, but it still won't work.

It also didn't change when we moved from Websphere 5.1 to 6.1.

On an older filer with Ontap 7.0.6 it still works.

Netapp refuses to solve the problem since they think their software works correctly.

I found this link on the web desribing the same problem with jcifs-1.2.17 and forwarded it to the netapp support, but i'm not very hopeful.

http://www.nabble.com/SmbFileOutputStream-with-append%3Dtrue-misbehaving-on-a-certain-NAS-td14944774.html

Here is a part of the stacktrace

jcifs.smb.SmbException: Incorrect function.
      [10.12.07 10:36:07:983 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:583)
      [10.12.07 10:36:07:983 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbTransport.send(SmbTransport.java:683)
      [10.12.07 10:36:07:983 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbSession.sessionSetup(SmbSession.java:330)
      [10.12.07 10:36:07:983 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbSession.send(SmbSession.java:269)
      [10.12.07 10:36:07:984 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbTree.treeConnect(SmbTree.java:154)
      [10.12.07 10:36:07:984 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbFile.connect(SmbFile.java:806)
      [10.12.07 10:36:07:984 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbFile.connect0(SmbFile.java:772)
      [10.12.07 10:36:07:984 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbFile.open0(SmbFile.java:837)
      [10.12.07 10:36:07:984 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbFile.open(SmbFile.java:866)
      [10.12.07 10:36:07:984 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
      [10.12.07 10:36:07:985 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
      [10.12.07 10:36:07:985 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
      [10.12.07 10:36:07:985 IRST]   d5454d SystemErr     R   at
      jcifs.smb.SmbFile.getOutputStream(SmbFile.java:2625)
      [10.12.07 10:36:07:985 IRST]   d5454d SystemErr     R   at
      de.bundesbank.esb.web.view.RootRiverView.renderToUrl(RootRiverView.java:134)

Does anybody know a solution or a workaround?

Best regards
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 at bundesbank.de
Homepage: www.bundesbank.de

(Embedded image moved to file: pic08793.jpg)


--
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.


More information about the jcifs mailing list