RE: [Ikvm-developers] (no subject)
Brought to you by:
jfrijters
|
From: Jonathan P. <jp...@ny...> - 2003-07-21 10:42:36
|
>>I assume you're getting a System.Net.Sockets.SocketException (because >>192.168.1.3 doesn't reverse resolve to a host name), Jeroen, Is there a way to include the debug info in the dll? You need to run the code to be sure you have added the correct patch. It doesn't need to resolve to a host name to be valid, since the getByName returns an INetAddress with a "null" name which should not be required to open the socket connection. The exception that I am getting is "object reference not set to an instance of an object" exception. Here is the stack trace: at java.net.InetSocketAddress..ctor(InetAddress , Int32 ) at java.net.Socket..ctor(InetAddress , Int32 , InetAddress , Int32 , Boolean) at java.net.Socket..ctor(String , Int32 ) -----Original Message----- From: ikv...@li... [mailto:ikv...@li...] On Behalf Of Jeroen Frijters Sent: Monday, July 21, 2003 3:02 AM To: Jonathan Pierce; ikv...@li... Subject: RE: [Ikvm-developers] (no subject) Jonathan Pierce wrote: > The following code segment generates a runtime error when I > run it with the classpath.dll in ikvm. It should be valid in > java, so I believe that it indicates an ikvm code generation > error in the implementation of .the constructor for > java.net.InetSocketAddress (theSocketAddress, thePort) > > > > string theHostName = "192.168.1.3"; > > int thePort = 1521; > > java.net.InetAddress theSocketAddress = > java.net.InetAddress.getByName(theHostName); > > java.net.InetSocketAddress theInetSocketAddress = new > java.net.InetSocketAddress (theSocketAddress, thePort); > > > > Please confirm whether this is a bug in ikvm or in classpath. I assume you're getting a System.Net.Sockets.SocketException (because 192.168.1.3 doesn't reverse resolve to a host name), right? This exception should have been caught and a java.net.UnknownHostException should be thrown. I've checked in a fix to classpath.cs. Thanks. Regards, Jeroen ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Ikvm-developers mailing list Ikv...@li... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |