+ Reply to Thread
Results 1 to 4 of 4

Thread: Squeak Smalltalk Error

  1. #1
    tdata13 is offline x10Hosting Member tdata13 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    2

    Question Squeak Smalltalk Error

    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?

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Squeak Smalltalk Error

    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 by misson; 02-06-2011 at 06:40 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    tdata13 is offline x10Hosting Member tdata13 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    2
    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

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Squeak Smalltalk Error

    Please use [php], [html] or [code] tags (as appropriate) to separate and format code.

    That's not enough to reproduce the problem. Please follow the directions in my sig and read over the linked documents, following their guidelines.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 02-16-2011, 09:42 AM
  2. Replies: 1
    Last Post: 08-20-2010, 03:26 AM
  3. Replies: 1
    Last Post: 08-15-2010, 08:18 PM
  4. Replies: 1
    Last Post: 03-03-2008, 10:58 AM
  5. Replies: 1
    Last Post: 09-01-2007, 02:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers