GeeCON Prague 2014*
The moose likes Sockets and Internet Protocols and the fly likes SMB connection is not working for Windows 2008 R2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "SMB connection is not working for Windows 2008 R2" Watch "SMB connection is not working for Windows 2008 R2" New topic
Author

SMB connection is not working for Windows 2008 R2

Naresh Kavala
Greenhorn

Joined: Jun 07, 2008
Posts: 23
Hi Ranchers,

I am trying to read some flat file from remote windows machine using smb protocol. I am using jcifs- 1.3.15. Its working fine with Windows 2003, 2000 but not with 2008 R2.
Could anybody explain is it not compatible with 2008 R2?. Is there any other alternative which will work for all windows versions.

I get following exception for 2008 servers.

java.lang.NullPointerException
at jcifs.smb.SmbFile.getType(SmbFile.java:1278)
at jcifs.smb.SmbFile.doEnum(SmbFile.java:1733)
at jcifs.smb.SmbFile.listFiles(SmbFile.java:1715)
at jcifs.smb.SmbFile.listFiles(SmbFile.java:1648)
at com.ge.nbcu.dashboard.core.util.Test.fetchLatestMonValueFile(Test.java:44)
at com.ge.nbcu.dashboard.core.util.Test.main(Test.java:75)


Regards,
Naresh.
Naresh Kavala
Greenhorn

Joined: Jun 07, 2008
Posts: 23
Any Suggestions Please ......
 
GeeCON Prague 2014
 
subject: SMB connection is not working for Windows 2008 R2