• 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
Re: Weird "No Instance Available" and its fix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird "No Instance Available" and its fix


  • Subject: Re: Weird "No Instance Available" and its fix
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 20 Apr 2006 12:26:29 -0400

I do think it's the same problem, but because it was a "permanent" issue with that box, bouncing Apache didn't fix it (once Apache restarted, it was still using bogus DNS info). "apachectl restart" is normally my savior for these as well. But yeah, I suspect the same fundamental problem happened under the covers as the changing network issue. But it took me a while to find it because it's one of those things that you don't expect someone to do (you HALF updated dns? wtf?) ...

ms

On Apr 20, 2006, at 11:46 AM, Miguel Arroz wrote:

Hi!

It happens to me all the time, as I develop on a Powerbook that is connected to 2 or 3 different networks every day. I just pop up a terminal and "sudo apachectl restart" and everything is fine again.

  Yours

Miguel Arroz

On 2006/04/20, at 15:12, Mike Schrag wrote:

Occasionally I run into something really odd, and I thought I'd pass along the solution in case someone else runs into it ...

One of our clients is running a prototype WO app and launching it from Eclipse. Yesterday they changed the IP of that machine and all of a sudden, the app just gives everyone's favorite friend "No instance available". No error messages anywhere. Console looks fine. After dorking around for quite a while, Brendan Duddridge recommended I try changing my adaptor URL from 127.0.0.1 to localhost to see if it made any difference. Upon changing it, instead of no instance available, Safari tells me it can't find host228.theirdomain.com, which was SUPPOSED to be the DNS name of the box running the WO app (i.e. it doesn't know itself by its own name). It turns out that there was ONLY a reverse DNS entry and not a forward DNS entry. Somewhere deep in the bowels of WO, this caused a series of explosions that resulted in silent failure -- my favorite kind of time-wasting failure. By temporarily adding an /etc/hosts entry, it immediately started working again.

So the moral of the story is to make sure the name that WO/Apache/ etc are using are resolvable, or you are going to have really strange problems. At least with Wonder installed (this might display on regular WO apps also? been a while), it will print out at startup the InetAddress it's binding to. The toString of InetAddress is ("x.y.z.w/host.domain.com"). Whatever name is displayed on the right side of the toString needs to be the name that is resolved. If you just run locally, it's probably a rendezvous .local name, which should be fine. But if it's a full- blown DNS name, make sure that the entry for that name is configured properly.

Hope this saves someone at least a little time someday ...

ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40guiamac.com


This email sent to email@hidden


      "GUERRA E' PAZ
       LIBERDADE E' ESCRAVIDAO
       IGNORANCIA E' FORCA"       -- 1984

Miguel Arroz
http://www.ipragma.com




_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Weird "No Instance Available" and its fix (From: Mike Schrag <email@hidden>)
 >Re: Weird "No Instance Available" and its fix (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Re: java 101 question "integer compare"
  • Next by Date: Re: Java 1.5 & WO?
  • Previous by thread: Re: Weird "No Instance Available" and its fix
  • Next by thread: java 101 question "integer compare"
  • Index(es):
    • Date
    • Thread