• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem running a Java Client in Xcode and Project Builder.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem running a Java Client in Xcode and Project Builder.


  • Subject: Problem running a Java Client in Xcode and Project Builder.
  • From: Martin Spenceley <email@hidden>
  • Date: Thu, 18 Mar 2004 10:02:29 +0000

Hello all,

I have a problem with my WebObjects Java client. I have a login window which, when processed opens a new Frame then closes.
I do this by doing the classic code in my Login window:

MYInterfaceController myChooser = new  MYInterfaceController( new EOEditingContext(), userGlobalID );

// Displays the nib file.
EOFrameController.runControllerInNewFrame(myChooser, "Blah" );

/* loginWindow */
makeInvisible();

When I run my application from XCode (WebObjects 5.2.2/3, Java 1.4.1/2, Mac OS X 10.3.2/3) or Project Builder
(WebObjects 5.1, Java 1.3.1, Mac OS X 10.2.8) the login window processes okay than hangs.

Eventually I get the error:

socket=Socket[addr=/10.0.0.36,port=49919,localport=55555]> Timed-out reading from socket (exception ignored): java.net.SocketTimeoutException: Read timed out; dropping connection
[2004-03-18 09:47:24 GMT] <WorkerThread0> java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:129)
	at com.webobjects.appserver._private.WOHttpIO.refillInputBuffer(WOHttpIO.java:131)
	at com.webobjects.appserver._private.WOHttpIO.readLine(WOHttpIO.java:187)
	at com.webobjects.appserver._private.WOHttpIO.readRequestFromSocket(WOHttpIO.java:279)
	at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:79)
	at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)
	at java.lang.Thread.run(Thread.java:552)

It appears when the login window closes it takes the ports with it so myChooser cannot communicate.


Strange this is if I run the same code directly on the WebObject server everything work okay. Similarly if I run
the same code in Debug Mode on Xcode and run the client part of the application in JBuilder, again no problems.
I've had a look at my Xcode target settings and everything looks similar to a fresh Java Client project I created.

Anyone know what I am missing?

Regards,

Martin
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: [OT] Update Pulled?
  • Next by Date: Does This NSLog Readout Mean anything?
  • Previous by thread: Re: [OT] Update Pulled?
  • Next by thread: Does This NSLog Readout Mean anything?
  • Index(es):
    • Date
    • Thread