Show Some Love

jcifs.smb.SmbException: The network name cannot be found

This forum was posted on Tuesday, May 21, 2013 6:16:42 AM

The below is my piece of code snippet

SmbFile catalExp = new SmbFile("smb:///Project share/Home/4. Folders/planning - Design & Exec/sample.txt" 
new NtlmPasswordAuthentication(LoadProp.getShrdDomain() "user" "paswd"));

In this I'm facing the error
jcifs.smb.SmbException: The network name can't be found
at jcifs.smb.SmbTransport.send(
at jcifs.smb.SmbSession.sessionSetup(
at jcifs.smb.SmbSession.send(
at jcifs.smb.SmbTree.treeConnect(
at jcifs.smb.SmbFile.connect(
at jcifs.smb.SmbFile.connect0(
at jcifs.smb.SmbFile.open0(
at jcifs.smb.SmbFile.createNewFile(

Is this anything to do with the member rights to that specific shared folder or am I doing anything wrong
Plz advice

369 Viewed this Question

 Recent Replies on "jcifs.smb.SmbException: The network name cannot be found"

  • Nobody has replied on this post, be first to post answer.

Post Your Solution for this Question

Note: Please Put Code into <code></code> block.

Threads related to "jcifs.smb.SmbException: The network name cannot be found":

Init field after constructor execution

Suppose a Car Validator and various methods that read it's properties to valid them.Thus the best approach to structure it is to make Car an instance field.Two ways of making it : 1) make a constructor taking a Car as argument and then call validate().2) delete all constructors but rather pass Car to validate method as arguments: validate(Car car).If we imagine that this validator must continuously validate let's say 500 cars.With the 1) method 500 validator objects must be instanciated ...

Passing annotation properties to meta-annotations

Say I hv an annotation with a feature:@Named(name = "Steve")private Person personand i require to generate a compound annotation with a some meta-annotations including the one that takes a property@Named@AnotherAnnotation@YetAnotherAnnotationpublic @interface CompoundAnnotation { ...}do you know approach that I can pass properties to the compound annotation to one of the meta annotations?illustration something like this:@CompoundAnnotation(name = "Bob")private Person person;that

xpath in java to extract all the xml elements

could any one provide an illustration of extracting all the elements with their properties and values from an xml file using xpath in java?Thanks : Performance Tuning

I am having a file of around 4MB the file is an ascii file containing normal keyboard characters only. I tried various classes in package to read the file contents as string. Reading them char by char (using FileReader and BufferedReader) takesapproximately 40 seconds reading the content using java.nio package (FileChannel and ByteBuffer) takes approximately 25 seconds. This is from my knowledge a little bit greateramount of time. Does someone knows any approach to reduce this time

Is there any tool which can help me to convert the data from the Java Swing code to a Template file?

I hv designed a text areas based form using Swing and when I enter the data into the text fields and when I click on the submit button i require that data to be converted into a template file in xml format. Are there any tool which I can be helpful for this goal ?ThanksNavneet

Merging two XML files in Java and also adding extra information

I hv two XML files which i wish to merge using java into one XML file at the end. Format of File1: --include two lines under Format of File2: -- include 1 more line at the last Can anybody tell me How do I merge these files after adding specific info in both the files.And this is what I hv tried but it doesn't fix my goal.. public class Xml { public static void main(String args) throws Exception { Writer o/p = null; o/p = new BufferedWriter(new FileWriter("H:\\merg

Submitting ASP form from Java application

I am writing a Java application that has a log in screen. Ideally i wish to take the user supplied data (name password) and submit it to an ASP form that can sure their credentials. I do not own the ASP form I can only access the URL. I also do not want the user to be entering their credentials straight into the web form. They would enter their credentials into my program and my program would put the data into the form and submit and allow/deny the user based on the o/p.definitely the s

How to load an image in matlab from java

generally I am trying to generate a little program that will permit me to make calls in matlab from a jave GUIit is mainly going to be used for image manipulation and deblurring but I am struggling to find a approach that will effectively give me full matlab control from the java endI'm hoping to have it work like so:{ //create matlab execution call String loadImage = " image1 = imread ('imageOnComputer.jpg'); "; //send instruction to matlab and save the path to it so java can //

convert a to a long

i wish to update a and I fight with the signed / unsigned issues. Such a pain.I read update from short to byte and viceversa in Java and Why byte b = (byte) 0xFF is equals to integer -1?And as a solution came up with: final byte pumpeIPAddressRaw = (pumpeIPAddressName).getAddress (); final big pumpeIPAddress = ((pumpeIPAddressRaw 0 & 0xFF) ((pumpeIPAddressRaw 1 & 0xFF) ((pumpeIPAddressRaw 2 & 0xFF) (pumpeIPAddressRaw 3 & 0xF

How do I use InterruptibleChannel?

I'm trying to manipulate a thread in Android that will use Bluetooth communication. i require the thread to be interruptible even when blocking on I/O so it seems InterruptibleChannel is a best solution. my problem is what should the code snippet snippet appear like? What I hv so far doesn't appear to send anything. Here it is:this.outstream = Channels.newChannel(outstream);this.outstream.write(msg); Where outstream is an OutputStream I derived from the Bluetooth socket.