[jcifs] No Access Exception Question

Michael B. Allen miallen at eskimo.com
Tue Jul 9 04:22:07 EST 2002

On Mon, 8 Jul 2002 10:01:53 -0700
"Yibo Dong" <ydong at mail.arc.nasa.gov> wrote:

> Hi,
> I have downloaded your jcifs package and are using the following pair in
> a Windows 2000 environment (machine name: ydong, domain name: not used,
> group name: CDS) to test:
> createnp \\.\pipe\name
> CallNamedPipe smb://ydong/IPC$/PIPE/name c:\JCIFSTest\pipes\inFile.txt
> c:\JCIFSTest\pipes\outFile.txt
> The call "out.write( b, 0, n )" in CalledNamedPipe.java results in the
> following access exception:
> jcifs.smb.SmbAuthException: Access denied 	at
> jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:626) 	at
> jcifs.smb.SmbSession.sendTransaction(SmbSession.java:123) 	at
> jcifs.smb.SmbTree.sendTransaction(SmbTree.java:65) 	at
> jcifs.smb.SmbFile.sendTransaction(SmbFile.java:456) 	at
> jcifs.smb.TransactNamedPipeOutputStream.write(TransactNamedPipeOutputStream.
> java:62) 	at CallNamedPipe.main(CallNamedPipe.java:44) Exception in thread
> "main"

With  the  CallNamedPipe  example  you  have  to  use the /P 0x5 flags with
creatnp. That might help. See this page for complete instructions on how to
run those examples: 


Also,  just  a  note, the available() method of the InputStream returned by
SmbNamedPipe.getNamedPipeInputStream  is  not  implemented.  This  might be
necessary for certain types of I/O. It is very high on my todo list though.



More information about the jcifs mailing list