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