<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 03/11/2010 04:40 PM, Del Merritt wrote:
<blockquote cite="mid:4B99636B.5090801@alum.mit.edu" type="cite">
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
I'm using JCIFS 1.3.14*.&nbsp; I have code that does this:<br>
  <blockquote><tt>public class NetServerEnum2Ext extends SmbFile<br>
{<br>
&nbsp; myMethod() {<br>
&nbsp;&nbsp;&nbsp; int Flags = 0x00000200;<br>
&nbsp; &nbsp; NetServerEnum2 req = new NetServerEnum2(host, Flags);<br>
&nbsp; &nbsp; NetServerEnum2Response resp = new NetServerEnum2Response();<br>
&nbsp; &nbsp; send(req, resp);<br>
&nbsp; &nbsp; // Check status<br>
&nbsp; &nbsp; if(resp.status != SmbException.ERROR_SUCCESS &amp;&amp; resp.status
!= SmbException.ERROR_MORE_DATA)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new SmbException(resp.status, true);<br>
&nbsp; ...<br>
&nbsp; }<br>
}</tt><br>
  </blockquote>
Usually it works fine.&nbsp; Sometimes it will throw because it doesn't
recognize the response status.&nbsp; The value I see in the response status
is "2".&nbsp; The same host, flags, and authentication info (not shown for
brevity) are used both when it works and when it doesn't.<br>
  <br>
jcifs.smb.SmbException is not figuring out a text translation.&nbsp; Where
should I look to see what the status means? <br>
</blockquote>
<br>
Some additional info: wireshark tells me:<br>
<blockquote>&nbsp;&nbsp; : other stuff snipped...<br>
Microsoft Windows Lanman Remote API Protocol<br>
&nbsp; Function Code: NetServerEnum2 (104)<br>
&nbsp; Status: Unknown (2)<br>
&nbsp; Convert: 0<br>
&nbsp; Entry Count: 0<br>
&nbsp; Available Entries: 0<br>
</blockquote>
It would appear that wireshark too is confused.&nbsp; But the packet is
otherwise labeled as OK at the outer levels.&nbsp; So what is a status of
"2"?<br>
<br>
Thanks again,<br>
-Del<br>
<br>
<br>
<blockquote cite="mid:4B99636B.5090801@alum.mit.edu" type="cite">* My
version is modified to run in a J2ME environment.&nbsp; It works most
of the time, but I'm still ironing out some wrinkles.&nbsp; This is one of
them.<br>
</blockquote>
<br>
<br>
</body>
</html>