[jcifs] "Invalid operation for IPC Service" - while trying to list files

Praveen Tammana praveen.public at gmail.com
Fri Aug 5 06:47:18 GMT 2005


> Well if you are certain that the following:
> 
> java -Djcifs.properties=test.properties ListFiles "smb://filer/home/praveen/"
> 
> where test.properties is the above properties file and 'home' is a share
> on an XP pro workstation named 'filer' and you are getting an "Invalid
> operation for IPC$" error then there is a bug in jCIFS and it would be
> delightful if you could send me a capture [1].
> 
> But do you think it is odd that no one has reported this error before? Please
> double check your results again.
> 

I am terribly sorry - filer isn't an XP pro workstation (I was working
with a different XP workstation most of the time and hence the
mistake).  It is our corp file server and I don't know exactly what it
is (some sort of netapp server, I think.  I'll find out exactly
tomorrow).  Here is what jCIFS thinks though.

[tammana: examples] /home/build/buildtools/java/jdk1.4.2/bin/java
-classpath .:./jcifs.jar: -Djcifs.properties=test.properties ListTypes
"smb://domain/" | grep -i filer
 FILER/[TYPE_SERVER]

[tammana: examples] /home/build/buildtools/java/jdk1.4.2/bin/java
-classpath .:./jcifs.jar: -Djcifs.properties=test.properties ListTypes
"smb://filer/"
 IPC$/[TYPE_NAMEDPIPE]
 vol1home$/[TYPE_SHARE]
 home/[TYPE_SHARE]
 shares/[TYPE_SHARE]
 vol3home$/[TYPE_SHARE]
 vol2home$/[TYPE_SHARE]
6 files in 6218ms

[tammana: examples] /home/build/buildtools/java/jdk1.4.2/bin/java
-classpath .:./jcifs.jar: -Djcifs.properties=test.properties ListTypes
"smb://filer/home/" | grep -w praveen
 praveen/[TYPE_FILESYSTEM]

[tammana: examples] /home/build/buildtools/java/jdk1.4.2/bin/java
-classpath .:./jcifs.jar: -Djcifs.properties=test.properties ListTypes
"smb://filer/home/praveen/"
Exception in thread "main" jcifs.smb.SmbException: Invalid operation
for IPC service
        at jcifs.smb.SmbTree.send(SmbTree.java:86)
        at jcifs.smb.SmbTransport.getDfsReferral(SmbTransport.java:570)
        at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:447)
        at jcifs.smb.SmbTransport.send(SmbTransport.java:530)
        at jcifs.smb.SmbSession.send(SmbSession.java:226)
        at jcifs.smb.SmbTree.send(SmbTree.java:95)
        at jcifs.smb.SmbFile.send(SmbFile.java:688)
        at jcifs.smb.SmbFile.doFindFirstNext(SmbFile.java:1679)
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1570)
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1478)
        at ListTypes.main(ListTypes.java:12)

Apologies again for the wrong info earlier.

-Praveen


More information about the jcifs mailing list