Is this a Java API bug?

This only happens in Win2K. I can’t reproduce it in XP.

Create a session.

Unplug network cable.

Try to access remote mail db.

As expected, get NotesException: Database open failed

Plug network cable back in.

Try to access remote mail db.

Same exception as before, even though network is now up.

The odd thing is, once the network is back up, I’m able to connect to the mail server and get the title of the first database in its directory. But I can’t open the mail db on the same server! This problem goes away when I restart the app, i.e. reload the Notes API. Is there some kind of network-related caching going on in Win2K that doesn’t happen in XP? It seems like a bug to me.

[Edited in: More info. After plugging the network cable back in, I am able to call DbDirectory.openDatabaseByReplicaID successfully. But DbDirectory.openMailDatabase does not work! And the replica ID may not always be available.]

Subject: Is this a Java API bug?

Umm, why are you doing this? It’s like driving a car and not putting any petrol in and wondering why you’re not moving when it runs out. Are you trying to replicate an offline situation of some sort? Seems daft to me.

How long do you give it before trying to open the db after the cable is plugged back in? Is the connection really made? It can take a minute or so for everything to re-establish itself IME.

George :slight_smile:

Subject: RE: Is this a Java API bug?

You wrote:It’s like driving a car and not putting any petrol in and wondering why you’re not moving when it runs out.

No, it’s nothing like that at all. It’s like running out of gas, then putting gas in the car and it still won’t run.

And if you can’t respond without talking to me like I’m an idiot, please refrain from responding to my posts. Just because you don’t understand why someone’s doing something doesn’t mean it’s “daft”. What I’m doing is perfectly reasonable, you just haven’t read my post carefully.

Subject: RE: Is this a Java API bug?

Gotta stop with the car analogy – your carburettor’s bowl is still empty in your scenario, Rose.

George is simply wondering why you’re doing the cable-pull test. As in, are you testing to reproduce a real-world failed-connection problem you’ve experienced, or are you just trying to see if the connection is maintained over an outage? (Maybe the “daft” part was a bit OTT, but it does kind of seem a bit extreme.)

Since the Notes code is the same on both machines, and nobody’s done anything to change servers in the meantime, I’d suggest that it’s a comms issue with Win2K – “it wasn’t there last time I checked, and I see no particular reason why it shouldn’t still not be there”.

Subject: RE: Is this a Java API bug?

You run cars on gas? How modern, if you do that in London you don’t pay a congestion charge :slight_smile:

OK Rose, I apologise about the word daft, but I’m still no wiser as to what you are trying to achieve. I’ve got into trouble here before for my sense of humour but I have been using Notes for 11 years now both as an admin and developer I’ve solved many networking issues over those years. I’d like to help if I can.

I’ll be clearer - why are you doing this at all?

George :slight_smile: