Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2001 10:09:48 -0400 (EDT)
From:      Alexander Litvin <archer@whichever.org>
To:        j mckitrick <jcm@FreeBSD-uk.eu.org>
Cc:        freebsd-java@freebsd.org
Subject:   Re: argh!! Can't get bind/rmi to work....
Message-ID:  <200108021409.f72E9m323877@unknown.whichever.org>
In-Reply-To: <20010703135949.F35349@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> | Looks like some sort of DNS issue, right?
> | is BindTest a valid hostname on your system?
> | I doubt it.
> | Try replacing:
> | 
> |    String name = "//BindTest";
> | by
> |     tring name = "//localhost/BindTest";

> Well, according to the API, the host name defaults to localhost if left out,
> and the port defaults to 1099 (rmiregistry's default) if left out.  But even
> when i use localhost, it doesn't work.  :-\

Do you by any chance run current?

Why I'm asking is that I got the same kind of failure with very
straightforward networking program (just does getByName() and sends
udp packets to the obtained address). And this program used to work
at least some 6 months ago. Since then I upgraded system couple
of times, and now the very same program causes java 1.2.2 (FreeBSD
native built from port) to coredump with the similar simpthoms
as yours. So, I figure, it has something to do with my system
upgrade (libraries? syscalls?). I even rebuilt jdk, but it didn't
help.

The simple program below causes java to die at the line where
DatagramPacket is constructed:

----
import java.net.*;
import java.io.*;

public class dns {
  public static void main(String[] args) throws InterruptedException {
    byte[] buffer = new byte[2048];
    try {
      InetAddress addr=InetAddress.getByName(args[0]);
      DatagramPacket packet = new DatagramPacket(buffer,buffer.length,
        addr,1111);
    } catch(Exception e) {
      e.printStackTrace(System.out);
    }
  }
}
----

I'm going to investigate this, if I can.

-- 
#include <signature.h>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108021409.f72E9m323877>