Re: java.io.IOException: Unexpected DCERPC PDU header

Michael B Allen <[email protected]>
Newsgroups gmane.network.samba.java
Message-ID <CAGMFw4iGYAZNk+SkgzjFxXBUcW43yHxSU_gmAgBjhTr+vYjLcA@mail.gmail.com>
On Sun, Feb 26, 2012 at 11:09 AM, talis <[email protected]> wrote:
> Getting the following exception:
>
>
> java.io.IOException: Unexpected DCERPC PDU header
>        at
> jcifs.dcerpc.DcerpcPipeHandle.doReceiveFragment(DcerpcPipeHandle.java:77)
>        at jcifs.dcerpc.DcerpcHandle.sendrecv(DcerpcHandle.java:213)
>        at jcifs.smb.SmbFile.doMsrpcShareEnum(SmbFile.java:1864)
>        at jcifs.smb.SmbFile.doShareEnum(SmbFile.java:1777)
>        at jcifs.smb.SmbFile.doEnum(SmbFile.java:1723)
>        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1702)
>        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1635)
>
>
>
> NetShareEnum[command=SMB_COM_TRANSACTION,received=false,errorCode=0,flags=0x0018,flags2=0xC803,signSeq=0,tid=63,pid=38680,uid=63,mid=15,wordCount=14,byteCount=46,totalParameterCount=19,totalDataCount=0,maxParameterCount=8,maxDataCount=65023,maxSetupCount=0,flags=0x00,timeout=5000,parameterCount=19,parameterOffset=90,parameterDisplacement=0,dataCount=0,dataOffset=110,dataDisplacement=0,setupCount=0,pad=0,pad1=1]
> 00000: FF 53 4D 42 25 00 00 00 00 18 03 C8 00 00 00 00  |ÿSMB%......È....|
> 00010: 00 00 00 00 00 00 00 00 3F 00 18 97 3F 00 0F 00  |........?...?...|
> 00020: 0E 13 00 00 00 08 00 FF FD 00 00 00 00 88 13 00  |.......ÿý.......|
> 00030: 00 00 00 13 00 5A 00 00 00 00 00 00 00 2E 00 00  |.....Z..........|
> 00040: 5C 00 50 00 49 00 50 00 45 00 5C 00 4C 00 41 00  |\.P.I.P.E.\.L.A.|
> 00050: 4E 00 4D 00 41 00 4E 00 00 00 00 00 57 72 4C 65  |N.M.A.N.....WrLe|
> 00060: 68 00 42 31 33 42 57 7A 00 01 00 FF FD           |h.B13BWz...ÿý   |
>
>
>
> Does anyone familiar with such a problem?

Hi Talis,

The second NetShareEnum is probably just a fail-over reaction to the
DCERPC call failing. The only way to see why you're getting an
"Unexpected DCERPC PDU header" error would be to get a network packet
capture. If you can get a capture and send it to me directly (do not
post captures to the mailing list), I might be able to tell you more.

Mike

-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.