[jcifs] "DCERPC pipe is no longer open" in DcerpcPipeHandle.doSendFragment()

Michael B Allen ioplex at gmail.com
Mon Aug 16 15:55:01 MDT 2010


Hi Marasim,

That error means pretty much what it says. The connection to the
server has closed since it was last used. If you're doing custom
DCERPC calls, you'll need a retry loop to handle this condition.

Mike

On Mon, Aug 16, 2010 at 2:39 PM, Marasim <marasim at gmail.com> wrote:
> I am getting a lot of these messages and somehow cannot make sense of it. Can
> anybody please point me to the documentation or the reason so that I can
> understand and avoid getting into this?
>
> Thanks a lot for your help!
>
> Marasim
>
> --
>
> protected void doSendFragment(byte[] buf,
>                    int off,
>                    int length,
>                    boolean isDirect) throws IOException {
>        if (out != null && out.isOpen() == false)
>            throw new IOException("DCERPC pipe is no longer open");
>
>        if (in == null)
>            in = (SmbFileInputStream)pipe.getNamedPipeInputStream();
>        if (out == null)
>            out = (SmbFileOutputStream)pipe.getNamedPipeOutputStream();
>        if (isDirect) {
>            out.writeDirect( buf, off, length, 1 );
>            return;
>        }
>        out.write(buf, off, length);
>    }
>
>



-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/


More information about the jCIFS mailing list