On 26.08.2013 23:02, Michaël Michaud wrote: > Hi, > > Good catch Ede, > Any reason to save and re-apply old values rather than to change the option > for the whole jvm session with -D option in the batch file ?
yeah, just because postgis cannot or we don't allow it to use IP6 does not mean that othe rparts of OJ might not already be able to do IP6. so just enforcing momentarily seems to do the least harm. also note my comment to research a proper option to deal with IP6. there must be a googleable howto somewhere ;) > Also, do you thing it is worth testing java version to apply the change > for java 7 + only ? no > Anyway, if the best fix is to change the property at connection time, > I'll do > the change. see comment above. it's your choice, i can live with both results ... ede > Michaël > >> Michael, >> >> actually there must be a way to fix the code.. something is fishy here. i am >> sure we can at least enforce ip4 for the socket creation. >> >> http://stackoverflow.com/questions/9882357/how-to-set-java-net-preferipv4stack-true-in-the-java-code >> seems to have a solution. >> 1. use System.getProperty() to save the old values of >> 'java.net.preferIPv4Stack' and 'java.net.preferIPv6Addresses' >> 2. use System.setProperty() to change the values to >> java.net.preferIPv4Stack=true , java.net.preferIPv6Addresses=false >> programmatically >> 3. now create the postgis socket >> 4. use System.setProperty() to reapply the old values saved before >> >> ..ede >> >> On 26.08.2013 21:07, michael michaud wrote: >>> Thanks for all your tests John, >>> We'll add some information in the wiki about this problem. >>> It is strange that java.net.preferIPv4Stack did not do the trick though. >>> >>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ >>> >>> *[bugs:#330] <http://sourceforge.net/p/jump-pilot/bugs/330/> Postgis fails >>> to connect for 1.6.3 (rev. 3576)* >>> >>> *Status:* open >>> *Labels:* postgis >>> *Created:* Mon Aug 26, 2013 02:43 PM UTC by John L. Poole >>> *Last Updated:* Mon Aug 26, 2013 06:07 PM UTC >>> *Owner:* nobody >>> >>> Postgis fails to connect for 1.6.3 (rev. 3576) >>> >>> I downloaded and installed OpenJUMP-Installer-1.6.3-r3576-PLUS.exe on >>> 8/25/2013. I select "File-SQL run Datastore Query" and I am presented with >>> the "Run Datasotre Query" dialog. I click the database icon to create a new >>> connection, I get the "Connection Manager" dialog and I click "Add". I then >>> fill in the dialog "Add Connection" with 1) name "Test", 2) leave deafult >>> picklist item of "PostGIS", 3) a recognized server (also tried the IP of my >>> server), 4) "5432", 5) a known database, 6) confirmed user account, 7) >>> confirmed password. After clicking "OK", I then select my newly created >>> entry in Connection Manager and then I click "Connect". >>> >>> I get a window titled "PSQL Exception" with "The connection attempt failed >>> (PSQL Exception)". The Java stack trace reflected in the "Details" child >>> window will be attached hereto. >>> >>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ >>> >>> Sent from sourceforge.net because you indicated interest in >>> https://sourceforge.net/p/jump-pilot/bugs/330/ >>> >>> To unsubscribe from further messages, please visit >>> https://sourceforge.net/auth/subscriptions/ >>> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel