[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] HTTPClient bug (gst 2.1.2)
From: |
Chao-Kuo Lin |
Subject: |
[Help-smalltalk] HTTPClient bug (gst 2.1.2) |
Date: |
Fri, 6 Feb 2004 13:08:47 -0500 (EST) |
Hi!
I have attemped to run the following code:
PackageLoader fileInPackage: 'NetClients'!
NetClients.HTTP.HTTPClient
exampleURL: 'http://www.gnu.org'
host: 'www.gnu.org'
port: 80!
and I got "error: Invalid argument nil: must be a Character".
After a bit of tracing, I think that it's probably related to
the fill block being used by the socket's read buffer when calling
FileDescriptor>>#read:numBytes:
The following is the detailed transcript and stack dump when I run the
above code:
Loading package TCP
Loading Buffers.st
Loading Datagram.st
Loading SocketAddress.st
Loading AbstractSocketImpl.st
"Scavenging... 70% reclaimed, done"
Loading IPSocketImpl.st
Loading Sockets.st
Loading Tests.st
Loading cfuncs.st
"Scavenging... 53% reclaimed, done"
Loading init.st
Loading package SUnit
SUnitTest->13 run, 13 passed, 0 failed, 0 errors
"Scavenging... 56% reclaimed, done"
"Scavenging... 43% reclaimed, done"
"Scavenging... 43% reclaimed, done"
TestSuitesScriptTest->10 run, 10 passed, 0 failed, 0 errors
Loading package NetClients
"Scavenging... 59% reclaimed, done"
"Scavenging... 35% reclaimed, done"
"Scavenging... 30% reclaimed, done"
Recompiling classes...
Object: '.html">
ภาษาไทย
</a>
| <a href="/home.tr.html">Türkçe</a><!-- Turkish -->
| <a href="/home.vi.html">Tiếng Việt</a><!-- Vietnamese -->
]
<!-- NNNN END MARK by RMS46 031117 -->
</p>
</td>
</tr>
</table>
<div class="copyright">
<p id="ContactInfo" style="font-size: 8pt;">
Please send inquiries about GNU and the FSF to
</p>
<pre>
Free Software Foundation Voice: +1-617-542-5942
59 Temple Place - Suite 330 Fax: +1-617-542-2652
Boston MA 02111-1307 USA E-Mail: <a
href="mailto:address@hidden">address@hidden</a>
</pre>
<p style="font-size: 8pt;">
Please send broken links and other corrections (or suggestions) to
</p>
<pre>
<a href="/people/webmeisters.html">The GNU Webmasters</a>
<a href="mailto:address@hidden">address@hidden</a>
</pre>
<p style="font-size: 8pt;">
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111, USA
<br />
Verbatim copying and distribution of this entire article is permitted
in any medium without royalty provided this notice is preserved.
</p>
<p style="font-size: 8pt;">
Updated:
<!-- timestamp start -->
$Date: 2004/01/24 21:55:40 $ $Author: sinuhe $
<!-- timestamp end -->
</p>
</div>
</div>
</body>
</html>
' error: Invalid argument nil: must be a Character
SystemExceptions.WrongClass(Exception)>>#signal
SystemExceptions.WrongClass class>>#signalOn:mustBe:
SystemExceptions.WrongClass class>>#signalOn:mustBe:
String>>#at:put:
TCP.ReadBuffer(Stream)>>#next:
TCP.Socket>>#next:
[] in NetClients.HTTP.HTTPProtocolInterpreter>>#readResponseInto:
BlockClosure>>#whileFalse:
NetClients.HTTP.HTTPProtocolInterpreter>>#readResponseInto:
NetClients.HTTP.HTTPProtocolInterpreter>>#get:requestHeaders:into:
NetClients.HTTP.HTTPClient>>#get:requestHeaders:into:
[] in NetClients.HTTP.HTTPClient class>>#exampleURL:host:port:
BlockClosure>>#ensure:
NetClients.HTTP.HTTPClient class>>#exampleURL:host:port:
UndefinedObject>>#executeStatements
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-smalltalk] HTTPClient bug (gst 2.1.2),
Chao-Kuo Lin <=