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.
amir damirovAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
Why don't you just kill that process and start a new one?
0
Apurva BhandariLinux/Cloud/DB/DevOpsCommented:
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.
0
amir damirovAuthor Commented:
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
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

CEHJCommented:
Check the log
0
amir damirovAuthor Commented:
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
0
Apurva BhandariLinux/Cloud/DB/DevOpsCommented:
this issue looks like with DB error. not able to fetch the data or missing in code. first check JDBC connectivity with DB.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CEHJCommented:
DbOperations.java:210

Open in new window

is the line you need to look at
0
Ashish PatelJr Business AnalystCommented:
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)
0
amir damirovAuthor Commented:
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"
0
manoj kumarCommented:
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
0
Ashish PatelJr Business AnalystCommented:
I agree with Manoj. Please post your code.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.