Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fwd: jdk-1.6.0.3p4_12 Problem (Socket Thing)

2 views
Skip to first unread message

Wilhelm Greiner

unread,
Mar 25, 2010, 10:05:04 AM3/25/10
to freebs...@freebsd.org
Hi,

i now also tested it with openjdk6 (compiled).

The Error Message "java.net.BindException" is exactly the
same.

In the Ports i see the openjdk7 Port since any days, does
it make any sense to test this Port with the Applikation?

It seems imho that it must be a FreeBSD Problem, with
the loopback interface or whatever.

Does anyone have a hint about that?

regards,
Wilhelm


Old Post quoting:

i have a Problem with the Port "jdk-1.6.0.3p4_12" on FreeBSD
"8.0-RELEASE #0".

An Application dies with the Error "java.net.BindException: Can't assign
requested address".

In the lack of compatibility i cant use diablo JRE or Open Java Runtime
(the gpled Thing).

On my Test Box i disabled ipv6 in rc.conf, also i used the Java
Parameter "-Djava.net.preferIPv4Stack=true".

Also i read about problems with the loopback interface, the command
"ifconfig lo0" says:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000


Think the settings should be ok, can anyone help please to find the problem?

I dont have the sources of the applikation.

Jonathan Chen

unread,
Mar 25, 2010, 1:47:59 PM3/25/10
to Wilhelm Greiner, freebs...@freebsd.org
On Thu, Mar 25, 2010 at 03:05:04PM +0100, Wilhelm Greiner wrote:

[...]


> i have a Problem with the Port "jdk-1.6.0.3p4_12" on FreeBSD
> "8.0-RELEASE #0".
>
> An Application dies with the Error "java.net.BindException: Can't assign
> requested address".
>
> In the lack of compatibility i cant use diablo JRE or Open Java Runtime
> (the gpled Thing).
>
> On my Test Box i disabled ipv6 in rc.conf, also i used the Java
> Parameter "-Djava.net.preferIPv4Stack=true".
>
> Also i read about problems with the loopback interface, the command
> "ifconfig lo0" says:
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
> options=3<RXCSUM,TXCSUM>
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
> inet6 ::1 prefixlen 128
> inet 127.0.0.1 netmask 0xff000000
>
>
> Think the settings should be ok, can anyone help please to find the problem?

All this means is that the application is trying set up a listener on a
tcp or udp port that is being used by some other process.

Check you app's configuration again.
--
Jonathan Chen <jo...@chen.org.nz>
----------------------------------------------------------------------
When you don't know what you are doing, do it neatly.

Jonathan Chen

unread,
Mar 26, 2010, 12:31:12 AM3/26/10
to Wilhelm Greiner, freebs...@freebsd.org
On Thu, Mar 25, 2010 at 10:48:47PM +0100, Wilhelm Greiner wrote:
> Hi,

>
> Am 25.03.2010 um 18:47 schrieb Jonathan Chen:
>
> > On Thu, Mar 25, 2010 at 03:05:04PM +0100, Wilhelm Greiner wrote:
> >
> > [...]
> >> i have a Problem with the Port "jdk-1.6.0.3p4_12" on FreeBSD
> >> "8.0-RELEASE #0".
> >>
> >> An Application dies with the Error "java.net.BindException: Can't assign
> >> requested address".
> >>
> >> In the lack of compatibility i cant use diablo JRE or Open Java Runtime
> >> (the gpled Thing).
> >>
> >> On my Test Box i disabled ipv6 in rc.conf, also i used the Java
> >> Parameter "-Djava.net.preferIPv4Stack=true".
> >>
> >> Also i read about problems with the loopback interface, the command
> >> "ifconfig lo0" says:
> >> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
> >> options=3<RXCSUM,TXCSUM>
> >> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
> >> inet6 ::1 prefixlen 128
> >> inet 127.0.0.1 netmask 0xff000000
> >>
> >>
> >> Think the settings should be ok, can anyone help please to find the problem?
> >
> > All this means is that the application is trying set up a listener on a
> > tcp or udp port that is being used by some other process.
>
> Thanks for your reply.
>
> There is definitly no other process on the requested ports.
>
> On the box only ssh && syslog is up.

Add the result of `hostname` to the 127.0.0.1 aliases in /etc/hosts.


--
Jonathan Chen <jo...@chen.org.nz>
----------------------------------------------------------------------

"Nyuck, nyuck, nyuck" - Curly

Achilleas Mantzios

unread,
Mar 26, 2010, 4:53:01 AM3/26/10
to freebs...@freebsd.org

Additionally with what Jonathan wrote, could it be that the port is a privileged one (<1024) and the user
not root?

--
Achilleas Mantzios

Ronald Klop

unread,
Mar 28, 2010, 6:14:11 AM3/28/10
to freebs...@freebsd.org, Achilleas Mantzios

Can you share part of your program, so people can reproduce your problem?

Ronald.

0 new messages