Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » eclipse cannot resolve domain names
eclipse cannot resolve domain names [message #327466] Mon, 21 April 2008 17:53 Go to next message
rektide is currently offline rektideFriend
Messages: 15
Registered: July 2009
Junior Member
Very strange issue, Eclipse cannot resolve domain names. I'm on debian
linux, testing distro, 2.6.23-AMD64 kernel. I dont use any proxies, and
eclipse is setup to work without proxies. My /etc/resolv.conf is just:
nameserver 4.2.2.5

Evidence that DNS resolving does not work:

Help -> Software Update -> Find and Install cannot connect to anything, if
I hit finish to start updating a "problem occured, network connection
problems encountered during search" dialog with the following details:
"""Network connection problems encountered during search. Unable to
access " http://hudson-eclipse.googlecode.com/svn/trunk/hudson-update /".
Error parsing site stream. [Premature end of file.]
Premature end of file.
Error parsing site stream. [Premature end of file.]
Premature end of file."""

CVS perspective is a little bit clearer, if I add a site using a hostname
it says:
"could not locate host"
However if I change it to an IP address it works fine.

Anyone have any suggestions for how to fix Eclipse to get DNS resolves
working again?
Re: eclipse cannot resolve domain names [message #327467 is a reply to message #327466] Mon, 21 April 2008 18:37 Go to previous messageGo to next message
rektide is currently offline rektideFriend
Messages: 15
Registered: July 2009
Junior Member
Also, I'm using the 32 bit winter build against the 32bit
ia32-sun-java6-bin package. I just wiped my ~/.eclipse folder and
/usr/local/eclipse but am still experiencing this grievously annoying
issue (I cannot install remote plugins).
Re: eclipse cannot resolve domain names [message #327468 is a reply to message #327466] Mon, 21 April 2008 18:46 Go to previous messageGo to next message
Eclipse Webmaster is currently offline Eclipse WebmasterFriend
Messages: 607343
Registered: July 2009
Senior Member
rektide wrote:
> Very strange issue, Eclipse cannot resolve domain names. I'm on debian
> linux, testing distro, 2.6.23-AMD64 kernel. I dont use any proxies, and
> eclipse is setup to work without proxies. My /etc/resolv.conf is just:
> nameserver 4.2.2.5

I'm guessing a properly-working DNS server is reacheable at 4.2.2.5 ?

Denis


>
> Evidence that DNS resolving does not work:
>
> Help -> Software Update -> Find and Install cannot connect to anything,
> if I hit finish to start updating a "problem occured, network connection
> problems encountered during search" dialog with the following details:
> """Network connection problems encountered during search. Unable to
> access " http://hudson-eclipse.googlecode.com/svn/trunk/hudson-update /".
> Error parsing site stream. [Premature end of file.]
> Premature end of file.
> Error parsing site stream. [Premature end of file.]
> Premature end of file."""
>
> CVS perspective is a little bit clearer, if I add a site using a
> hostname it says:
> "could not locate host"
> However if I change it to an IP address it works fine.
>
> Anyone have any suggestions for how to fix Eclipse to get DNS resolves
> working again?
>

--

Eclipse WebMaster - webmaster@eclipse.org
Questions? Consult the WebMaster FAQ at
http://wiki.eclipse.org/index.php/Webmaster_FAQ
View my status at http://wiki.eclipse.org/index.php/WebMaster
Re: eclipse cannot resolve domain names [message #327470 is a reply to message #327468] Mon, 21 April 2008 19:03 Go to previous messageGo to next message
rektide is currently offline rektideFriend
Messages: 15
Registered: July 2009
Junior Member
4.2.2.2 is a high performant public DNS server hosted by L3, it should
work for anyone. it works for all my other apps. :)
JDK is pooched [Was: eclipse cannot resolve domain names] [message #327471 is a reply to message #327466] Mon, 21 April 2008 19:52 Go to previous messageGo to next message
rektide is currently offline rektideFriend
Messages: 15
Registered: July 2009
Junior Member
Error appears to lie in my JDK. Again for reference I am using the
ia32-java-6-sun package on Debian Testing. I have filed a bug report
against it at: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477211

I used the following program to test whether the JDK can resolve domain
names:

// code modified from
// http://www.rgagnon.com/javadetails/java-0452.html
import java.net.InetAddress;

public class SimpleDNS {

public static void main( String args[] ) {
if( args.length == 0 ) {
System.err.println( "Usage: SimpleDNS host" );
System.exit( 99 );
}
for( int i = 0; i < args.length; i++ ) {
try {
System.out.println( args[i] + " is " +
doLookup( args[i] ));
}
catch( Exception e ) {
System.out.println(args[i] + " : " + e.getMessage());
e.printStackTrace();
}
}
}

static String doLookup( String hostName ) throws Exception {
InetAddress addr = InetAddress.getByName( hostName );
return addr.getHostAddress();
}
}

Excepted:
slashdot.org is 66.35.250.150 [ed: or permutation thereof]

Result:
slashdot.org : slashdot.org
java.net.UnknownHostException: slashdot.org
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:84 9)
at
java.net.InetAddress.getAddressFromNameService(InetAddress.j ava:1200)
at java.net.InetAddress.getAllByName0(InetAddress.java:1153)
at java.net.InetAddress.getAllByName(InetAddress.java:1083)
at java.net.InetAddress.getAllByName(InetAddress.java:1019)
at java.net.InetAddress.getByName(InetAddress.java:969)
at SimpleDNS.doLookup(SimpleDNS.java:25)
at SimpleDNS.main(SimpleDNS.java:14)
Re: JDK is pooched [Was: eclipse cannot resolve domain names] [message #327475 is a reply to message #327471] Mon, 21 April 2008 21:17 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

"rektide" <rektide@gmail.com> wrote in message
news:06cada9a28126d134cd44b1eb2275d18$1@www.eclipse.org...
> Error appears to lie in my JDK. Again for reference I am using the
> ia32-java-6-sun package on Debian Testing. I have filed a bug report
> against it at: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477211
>
> I used the following program to test whether the JDK can resolve domain
> names:
>
> // code modified from
> // http://www.rgagnon.com/javadetails/java-0452.html
> import java.net.InetAddress;
>
> public class SimpleDNS {
>
> public static void main( String args[] ) {
> if( args.length == 0 ) {
> System.err.println( "Usage: SimpleDNS host" );
> System.exit( 99 );
> }
> for( int i = 0; i < args.length; i++ ) {
> try {
> System.out.println( args[i] + " is " +
> doLookup( args[i] ));
> }
> catch( Exception e ) {
> System.out.println(args[i] + " : " + e.getMessage());
> e.printStackTrace();
> }
> }
> }
>
> static String doLookup( String hostName ) throws Exception {
> InetAddress addr = InetAddress.getByName( hostName );
> return addr.getHostAddress();
> }
> }
>
> Excepted:
> slashdot.org is 66.35.250.150 [ed: or permutation thereof]
>
> Result:
> slashdot.org : slashdot.org
> java.net.UnknownHostException: slashdot.org
> at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
> at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:84 9)
> at
> java.net.InetAddress.getAddressFromNameService(InetAddress.j ava:1200)
> at java.net.InetAddress.getAllByName0(InetAddress.java:1153)
> at java.net.InetAddress.getAllByName(InetAddress.java:1083)
> at java.net.InetAddress.getAllByName(InetAddress.java:1019)
> at java.net.InetAddress.getByName(InetAddress.java:969)
> at SimpleDNS.doLookup(SimpleDNS.java:25)
> at SimpleDNS.main(SimpleDNS.java:14)
>

Have you tried to perform the lookup manually outside of a Java application?
What does "nslookup slashdot.org" give you back?
Previous Topic:XSL transform on eclipse platform
Next Topic:hyperlink detector in the text framework
Goto Forum:
  


Current Time: Wed Jul 17 20:41:08 GMT 2024

Powered by FUDForum. Page generated in 0.03623 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top