... this will probably break 1 or 2 lines in GeoServer (sorry).
Here is the deal.
FeatureSource roads = dataStore.getFeatureSource("roads");
FeatureResults features = roads.getFeatures( Query.ALL );
Envelope env = features.getBounds(); // no longer throws an IOException
So in the rare case where you have:
try {
env = features.getBounds();
}
catch( IOException erp){
env = new Envelope(); // Nil envelope indicating unknown bounds
}
I would ask you to remove the try/catch statement.
This was the least damage I could do to the code base (and the geoserver codebase).
Your feedback is requested, am going to see if uDig is effected now.
Jody