org.gnu.jcifs.CifsIOException: Unexpected SMB error code.( SMB=1:67)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

org.gnu.jcifs.CifsIOException: Unexpected SMB error code.( SMB=1:67)

Steve Schols
Hi everyone,

I'm a Junior Software Engineer Java and have to implement extensions to an
existing Java application.
In this application, i have to fetch files from a Windows server (2 Windows
servers to be exact). On one server i have .tif files which are scans of
documents, and an index.dat file which is a text file that has to be read. On
another server i have attachments, or the original documents of the scans.

With these files and information in a database, i have to create an e-mail
(JavaMail Message object) that will be stored in an e-mail archive and will be
accessible through a Struts web application.

Well ... it works splendid, completely functional...on my local computer.
But it has to be tested and delivered on a Linux server ...

There the problems begin ... i found out that i can't get to the windows server
as easily as from my local computer/
(not just 'File file = new File("//servername/directoroy/subdirectory");', it
worked locally, but not on the Linux machine)...

Searched the Internet and found JCIFS (which is already used for god knows what
in the application, but an older version so i downloaded the new one, didn't
have CifsDisk and stuff yet).

I implemented it, what i could understand from the tutorial, found out that the
server couldn't be found in NETBIOS on linux ... so put a DNS name
in /etc/hosts ...
Then he could find the server, but now i get this , and i can't find anything
about it on the internet, nor can i trace the cause:
(warning: large amount of info)


PRINT SHARENAME: cifs://husfp002/emailarchive/eArchive

NetBIOS: Timeout=30000
NetBIOS: Tcpnodelay=true
SMB_COM_NEGOTIATE
Check name in Cache
Check name in DNS
NetBIOS name found in DNS: HUSFP002=HUSFP002/10.16.16.4
NetBIOS: doCall
Called  name=HUSFP002
Calling name=aws00229
Called  addr=HUSFP002/10.16.16.4
Send SMB buffer
smb_com  = 0x72
smb_rcls = 0
smb_reh  = 0
smb_flg  = 0x00000000
smb_flg2 = 0x00000000
smb_tid  = 0xffff
smb_pid  = 0x663f
smb_uid  = 0x0000
smb_mid  = 0x0000
smb_wct  = 0
smb_bcc  = 58
smb_boff = 35
02 50 43 20 4E 45 54 57 4F 52 4B 20 50 52 4F 47     .PC NETWORK PROG
52 41 4D 20 31 2E 30 00 02 4C 41 4E 4D 41 4E 31     RAM 1.0..LANMAN1
2E 30 00 02 4C 4D 31 2E 32 58 30 30 32 00 02 4E     .0..LM1.2X002..N
54 20 4C 4D 20 30 2E 31 32 00                       T LM 0.12.      
Receive SMB buffer
smb_com  = 0x72
smb_rcls = 0
smb_reh  = 0
smb_flg  = 0x00000080
smb_flg2 = 0x00000000
smb_tid  = 0xffff
smb_pid  = 0x663f
smb_uid  = 0x0000
smb_mid  = 0x0000
smb_wct  = 17
smb_vwv[0]= 0x0003 (3)
smb_vwv[1]= 0x3203 (12803)
smb_vwv[2]= 0x0100 (256)
smb_vwv[3]= 0x0400 (1024)
smb_vwv[4]= 0x0011 (17)
smb_vwv[5]= 0x0000 (0)
smb_vwv[6]= 0x0100 (256)
smb_vwv[7]= 0x0000 (0)
smb_vwv[8]= 0x0000 (0)
smb_vwv[9]= 0xfd00 (-768)
smb_vwv[10]= 0x0043 (67)
smb_vwv[11]= 0x9400 (-27648)
smb_vwv[12]= 0x66ae (26286)
smb_vwv[13]= 0x023c (572)
smb_vwv[14]= 0xc60a (-14838)
smb_vwv[15]= 0xc401 (-15359)
smb_vwv[16]= 0x08ff (2303)
smb_bcc  = 22
smb_boff = 69
DA 57 E9 6B 34 D4 5C 81 44 00 4F 00 4C 00 4D 00     .W.k4.\.D.O.L.M.
45 00 4E 00 00 00                                   E.N...          
Negotiated protocol:NT LM 0.12
SMB_COM_SESSION_SETUP_ANDX
Send SMB buffer
smb_com  = 0x73
smb_rcls = 0
smb_reh  = 0
smb_flg  = 0x00000000
smb_flg2 = 0x00000003
smb_tid  = 0x0000
smb_pid  = 0x663f
smb_uid  = 0x0000
smb_mid  = 0x0001
smb_wct  = 13
smb_vwv[0]= 0x00ff (255)
smb_vwv[1]= 0x0000 (0)
smb_vwv[2]= 0xa000 (-24576)
smb_vwv[3]= 0x0001 (1)
smb_vwv[4]= 0x0000 (0)
smb_vwv[5]= 0x0000 (0)
smb_vwv[6]= 0x0000 (0)
smb_vwv[7]= 0x0018 (24)
smb_vwv[8]= 0x0018 (24)
smb_vwv[9]= 0x0000 (0)
smb_vwv[10]= 0x0000 (0)
smb_vwv[11]= 0x0014 (20)
smb_vwv[12]= 0x0000 (0)
smb_bcc  = 77
smb_boff = 61
42 05 66 1E 08 D0 78 41 A5 D9 4F 3A 06 5B 8A 1E     B.f..xA..O:.[.
BF D1 B5 27 81 97 DB 27 47 A9 5F 0C FC 7B 70 53     ...'...'G._..{pS
B6 98 38 2F FD D9 FA 8B A8 D3 04 39 AD 32 F7 69     ..8/.......9.2.i
73 73 6F 72 71 37 31 00 3F 00 43 49 46 53 20 4A     ssorq71.?.CIFS J
61 76 61 56 4D 20 43 6C 69 65 6E 74 00              avaVM Client.  
Receive SMB buffer
smb_com  = 0x73
smb_rcls = 0
smb_reh  = 0
smb_flg  = 0x00000080
smb_flg2 = 0x00000003
smb_tid  = 0x0000
smb_pid  = 0x663f
smb_uid  = 0x4803
smb_mid  = 0x0001
smb_wct  = 3
smb_vwv[0]= 0x00ff (255)
smb_vwv[1]= 0x0052 (82)
smb_vwv[2]= 0x0000 (0)
smb_bcc  = 41
smb_boff = 41
57 69 6E 64 6F 77 73 20 4E 54 20 34 2E 30 00 4E     Windows NT 4.0.N
54 20 4C 41 4E 20 4D 61 6E 61 67 65 72 20 34 2E     T LAN Manager 4.
30 00 44 4F 4C 4D 45 4E 00                          0.DOLMEN.      
SMB_COM_TREE_CONNECT_ANDX
Send SMB buffer
smb_com  = 0x75
smb_rcls = 0
smb_reh  = 0
smb_flg  = 0x00000000
smb_flg2 = 0x00000003
smb_tid  = 0x0000
smb_pid  = 0x663f
smb_uid  = 0x4803
smb_mid  = 0x0002
smb_wct  = 4
smb_vwv[0]= 0x00ff (255)
smb_vwv[1]= 0x0000 (0)
smb_vwv[2]= 0x0000 (0)
smb_vwv[3]= 0x0018 (24)
smb_bcc  = 60
smb_boff = 43
47 A9 5F 0C FC 7B 70 53 B6 98 38 2F FD D9 FA 8B     G._..{pS..8/....
A8 D3 04 39 AD 32 F7 69 5C 5C 48 55 53 46 50 30     ...9.2.i\\HUSFP0
30 32 5C 45 4D 41 49 4C 41 52 43 48 49 56 45 2F     02\EMAILARCHIVE/
45 41 52 43 48 49 56 45 00 41 3A 00                 EARCHIVE.A:.    
SMB ERROR: 1, 67: Unexpected SMB error code.( SMB=1:67)
1
Receive SMB buffer
smb_com  = 0x75
smb_rcls = 1
smb_reh  = 67
smb_flg  = 0x00000080
smb_flg2 = 0x00000003
smb_tid  = 0x0000
smb_pid  = 0x663f
smb_uid  = 0x4803
smb_mid  = 0x0002
smb_wct  = 0
smb_bcc  = 0
smb_boff = 35
                                                                   
org.gnu.jcifs.CifsIOException: Unexpected SMB error code.( SMB=1:67)
        at org.gnu.jcifs.SessionImpl.doTreeConnect(SessionImpl.java:724)
        at org.gnu.jcifs.SessionImpl.tryTreeConnect(SessionImpl.java:485)
        at org.gnu.jcifs.SessionImpl.connect(SessionImpl.java:410)
        at org.gnu.jcifs.CifsSessionManager.connectDisk
(CifsSessionManager.java:220)
        at be.dolmen.scanarch.application.ScanRetriever.getScansToArchive
(ScanRetriever.java:143)
        at be.dolmen.scanarch.application.ScanArchiver.main
(ScanArchiver.java:46)


Can anyone help me with this exception? If you have any questions regarding the
application or implementation, feel free to ask.
(This is something that should be finished by the end of the week :-s )

Thanks in advance

Reply | Threaded
Open this post in threaded view
|

Re: org.gnu.jcifs.CifsIOException: Unexpected SMB error code.( SMB=1:67)

Michael B Allen-4
We are http://jcifs.samba.org/. We don't support the one you're
using. It's totally different.

Mike
Reply | Threaded
Open this post in threaded view
|

Re: org.gnu.jcifs.CifsIOException: Unexpected SMB error code.( SMB=1:67)

Steve Schols
Michael B Allen <mba2000 <at> ioplex.com> writes:

>
> We are http://jcifs.samba.org/. We don't support the one you're
> using. It's totally different.
>
> Mike
>
>


What is the difference then please?

I got the jar from jcifs.samba.org.
:-s

Reply | Threaded
Open this post in threaded view
|

Re: Re: org.gnu.jcifs.CifsIOException: Unexpected SMB error code.( SMB=1:67)

Michael B Allen-4
On Tue, 27 Dec 2005 08:22:26 +0000 (UTC)
Steve Schols <[hidden email]> wrote:

> Michael B Allen <mba2000 <at> ioplex.com> writes:
>
> >
> > We are http://jcifs.samba.org/. We don't support the one you're
> > using. It's totally different.
> >
> > Mike
> >
> >
>
>
> What is the difference then please?
>
> I got the jar from jcifs.samba.org.
> :-s

The question you asked is about org.gnu.jcifs.* classes. Although
those classes serve the same purpose they are from a differnet project
that is not related at all to http://jcifs.samba.org or this mailing
list. Therefore, your question is off topic here.

If you have a question about about a package downloaded from
http://jcifs.samba.org you are welcome to ask here.

Mike