Link to home
Start Free TrialLog in
Avatar of amir damirov
amir damirov

asked on

Glassfih 4.1 domain couldnt start. — it probably is another instance of a GlassFish server

I have glassfish app on my Linux red hat 6.
I cant start my glassfish node it gives me next error :

There is a process already using the admin port 5858 -- it probably is another instance of a GlassFish server.Command start-domain failed.

But when i run comman in linux " netstat -tulnp | grep 5858 " It shows me:

tcp :::5858 LISTEN 47256/java

Port used by java app. But i cant log in to my glassfish interface.

How can i solve this issue, any expierenced specialist with glassfish maybe can help.
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Why don't you just kill that process and start a new one?
looks like running in ipv6 by netstat command. disable ipv6 permanently if you're not using. check with localhost first.
kill the running process freshly start once again.
Avatar of amir damirov
amir damirov

ASKER

Dear All,

I have already done this. But still no result.

I killed process, and run command in glassfish : ./asadmin start-domain "domainname".

After executing this command it shows me that command was successfully ran.

But then when i execute command : ./asadmin list-domains :

It shows me that domain not running
Check the log
I have no expierence with glassfish and java apps. Maybe you know what does it mean.

[2018-06-13T16:54:54.976+0400] [glassfish 4.1] [INFO] [] [] [tid: _ThreadID=15 _ThreadName=Thread-8] [timeMillis: 1528894494976] [levelValue: 800] [[
  2018-06-13 16:54:54 ERROR DbOperations:223 - Exception :null
java.lang.NullPointerException
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:210)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
        at com.bravo.utility.PropertyCache.getValue(PropertyCache.java:29)
        at com.bravo.db.common.DbOperations.getDataFromDB(DbOperations.java:224)
        at com.bravo.utility.Utils.fetchAllMessage(Utils.java:73)
        at com.bravo.utility.PropertyCache.getMessage(PropertyCache.java:55)
"server.log_2018-06-13T16-54-56" 29673L, 2002797C
ASKER CERTIFIED SOLUTION
Avatar of Apurva Bhandari
Apurva Bhandari
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To list any process listening to the port 5858:

lsof -i:5858

To kill any process listening to the port 5858:

kill $(lsof -t -i:5858)

or more violently:

kill -9 $(lsof -t -i:5858)
Dear Ashish.

I've tried it before but no result.

After killing process which use that port ( it's also used by java app ) i start domain via asadmin. It shows me " Start-domain executed successfully" but after i execute command " list-domains" it shows me again "domain not runing"
Dear amir damirov

can u look for DbOperations.java: or canShow your code;it's seems to Error while creating the connection( con.createStatement();) so bettrer to look that code else show me the code so that i can assist u
Thank U
I agree with Manoj. Please post your code.