db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Embretsen <John.Embret...@Sun.COM>
Subject Re: org.apache.derby.client.am.DisconnectException in Derby
Date Mon, 25 Sep 2006 07:52:21 GMT
Xianghan Zheng wrote:
> hi,
> I get a strange exception:
> Failure making connection: org.apache.derby.client.am.DisconnectException:
> java.security.PrivilegedActionException : Error opening socket to server
> on port 1527 with message : null

[snipped stack trace]

> The problem is that i can only access the derby server in localhost, not
> the remote access. Does somebody know what is the problem. How to solve
> it?

The Derby Network Server listens to the localhost interface only by
default. If you want the server to accept remote connections, you have
to set the  derby.drda.host property to before/when starting the
server, or by using the -h option if you are using a script or
NetworkServerControl from the command line.



Please note that you should use other means to secure Derby once you
allow remote connections. You can read more about this in the Derby
Server and Administration Guide, available from


View raw message