db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald McLean <dmclea...@gmail.com>
Subject Re: Unexplained problem
Date Tue, 22 Nov 2016 15:14:01 GMT
Hi Bryan,

The contents of the derby.log are confusing to me (see below). How can it
be complaining that it can't bind to the port one minute and then get
connections the next?

Tue Nov 22 10:10:06 EST 2016 : Apache Derby Network Server - 10.12.1.1
- (1704137) started and ready to accept connections on port 2148
Tue Nov 22 10:10:06 EST 2016 : Could not listen on port 2148 on host localhost:
 java.net.BindException: Address already in use (Bind failed)
An exception was thrown during network server startup.
DRDA_ListenPort.S:Could not listen on port 2148 on host localhost:
 java.net.BindException: Address already in use (Bind failed)
java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.apache.derby.iapi.jdbc.DRDAServerStarter.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: DRDA_ListenPort.S:Could not listen on
port 2148 on host localhost:
 java.net.BindException: Address already in use (Bind failed)
   at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessageWork(Unknown
Source)
   at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessage(Unknown
Source)
   at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(Unknown
Source)
   ... 6 more
Tue Nov 22 10:10:07 EST 2016 : Connection number: 1.
Tue Nov 22 10:10:08 EST 2016 : Connection number: 2.
----------------------------------------------------------------
Tue Nov 22 10:10:10 EST 2016:
Booting Derby version The Apache Software Foundation - Apache Derby -
10.12.1.1 - (1704137): instance a816c00e-0158-8c96-3a19-000062666399
on database directory
/Users/dmclean/IdeaProjects/aoiJWSTbuild7/MyDbTest with class loader
sun.misc.Launcher$AppClassLoader@6bc7c054
Loaded from file:/Users/dmclean/Library/java/db-derby-10.12.1.1-bin/lib/derby.jar
java.vendor=Oracle Corporation
java.runtime.version=1.8.0_112-b16
user.dir=/Users/dmclean/IdeaProjects/aoiJWSTbuild7
os.name=Mac OS X
os.arch=x86_64
os.version=10.11.6
derby.system.home=/Users/dmclean/IdeaProjects/aoiJWSTbuild7
Database Class Loader started - derby.database.classpath=''
Tue Nov 22 10:10:14 EST 2016 Thread[DRDAConnThread_2,5,main] (DATABASE
= MyDbTest), (DRDAID = {2}), Apache Derby Network Server connected to
database MyDbTest
Tue Nov 22 10:10:23 EST 2016 : Connection number: 3.
Tue Nov 22 10:10:23 EST 2016 Thread[DRDAConnThread_3,5,main] (DATABASE
= MyDbTest), (DRDAID = {3}), Apache Derby Network Server connected to
database MyDbTest
Tue Nov 22 10:10:24 EST 2016 : Connection number: 4.



On Tue, Nov 22, 2016 at 9:36 AM, Bryan Pendleton <bpendleton.derby@gmail.com
> wrote:

> On 11/21/2016 1:52 PM, Donald McLean wrote:
>
>> I'm trying to run a Derby in server mode. When I go to shut it down, I'm
>> getting this weird error:
>>
>> Mon Nov 21 16:19:44 EST 2016 : Invalid reply from network server:
>> Insufficient data.
>>
>> The command line arguments:
>>
>> /usr/bin/java, -jar, /Users/dmclean/Library/java/db
>> -derby-10.12.1.1-bin/lib/derbyrun.jar, server, shutdown
>>
>> Does anyone have any suggestions as to what the problem would be and how
>> to fix it?
>>
>> Thank you,
>>
>> Donald
>>
>
>
> I don't think I recall having seen that before. There are some old jobs
> in the Derby issues database (e.g., DERBY-6337) that indicate that if the
> Network Server is slow to respond, or slow to shut down, then the client
> may print some odd messages.
>
> Does this happen *every* time you shut down the Network Server?
>
> What does the end of your derby.log file look like?
>
> thanks,
>
> bryan
>
>


-- 
Family photographs are a critical legacy for
ourselves and our descendants. Protect that
legacy with a digital backup and recovery plan.

Mime
View raw message