[jcifs] Event id 2012 error when using jcifs

Joe Kulig Jkulig at everstream.com
Mon Oct 17 19:16:34 GMT 2005


This error is happening randomly on my windows 2000 server when I use jcifs to read a file over. It does not happen consistently and appears not to have any effect on the windows 2000 server except to generate the below nt event:

Event Type: Error
Event Source: Srv
Event Category: None
Event ID: 2012
Date:  10/14/2005
Time:  10:26:43 AM
User:  N/A
Computer: GROOVY
Description:
The server has encountered a network error. 
Data:
0000: 00 00 04 00 01 00 54 00   ......T.
0008: 00 00 00 00 dc 07 00 c0   ....Ü..À
0010: 00 00 00 00 84 01 00 c0   ...."..À
0018: 00 00 00 00 00 00 00 00   ........
0020: 00 00 00 00 00 00 00 00   ........
0028: 41 09 00 00               A...    

This is the code used to transfer the file is:

  SmbFile f = new SmbFile(smbUrl);
  SmbFileInputStream in = new SmbFileInputStream(f);
  FileOutputStream out = new FileOutputStream(localFilename);
  try {
   byte[] b = new byte[8192];
   int n, tot = 0;
   while ((n = in.read(b)) > 0) {
    out.write(b, 0, n);
    tot += n;
   }

  } catch (Exception e) {
   throw (e);
  } finally {
   //close in and out
   in.close();
   out.close();
  }

Any suggestions on how to avoid this event 2012 error?

Joe
kulandthegang at cox.net
This message and any attachment is intended for use only by the individual or entity to which the email is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any retention, dissemination, distribution or copying of this communication or any attachment is strictly prohibited. If you have received this communication in error, please delete the e-mail and any attachment and notify Everstream, Inc. immediately by telephone at 440-498-8899.


More information about the jcifs mailing list