Squeak Smalltalk Error

tdata13

New Member
Messages
2
Reaction score
0
Points
0
I'm programming a web server in smalltalk, and in the code I need to use the socket class. First, I have to call Socket initializeNetwork. This causes a problem.
Somewhere along the line of message calls, primNameResolverStatus is sent to NetNameResolver. This primitive is repeatedly failing, and there is nothing I can do about it.
Can anybody help, please? :confused:
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
A quick web search suggests you may be running into a bug in IPv6 handling. If you need more than that, you'll have to provide sample code and the error message. All problem descriptions should include what you expect to happen and what actually happens, which includes any error messages.
 
Last edited:

tdata13

New Member
Messages
2
Reaction score
0
Points
0
A few methods from the program:
The method calling Socket initializeNetwork:
startHosting
"Open a socket on my port and start accepting connections."

Socket initializeNetwork.
self shutdownServer.

serverSocket _ Socket new.
serverSocket listenOn: self class portNumber backlogSize: 20.

incomingUDPSocket _ Socket newUDP setPort: self class portNumber.

The method with the failing primitive:
primNameResolverStatus
"Return an integer reflecting the status of the network name resolver. For a list of possible values, see the comment in the 'initialize' method of this class."

<primitive: 207>
self primitiveFailed

The error message:
NetNameResolver class(Object)>>error:
NetNameResolver class(Object)>>primitiveFailed
NetNameResolver class>>primNameResolverStatus
NetNameResolver class>>resolverStatus
NetNameResolver class>>initializeNetworkIfFail:
Socket class>>initializeNetwork
PowerpackWebServer(ScratchServer)>>startHosting
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Please use
PHP:
, [html] or [code] tags (as appropriate) to separate and format code.

That's not enough to [URL=http://www.catb.org/~esr/faqs/smart-questions.html#beprecise]reproduce the problem[/URL]. Please follow the directions in my sig and read over the linked documents, following their guidelines.
 
Top