Weblogic server is not starting up ; java.lang.AssertionError

 If the weblogic server is not starting up and giving the below error , please follow the below solution :-

Error :-

#Aug 18, 2014 12:34:29 AM PDT# #Notice# #WebLogicServer# #BEA-000365# #Server state changed to STARTING#
#Aug 18, 2014 12:34:29 AM PDT# #Info# #WorkManager# #BEA-002900# #Initializing self-tuning thread pool#
#Aug 18, 2014 12:34:29 AM PDT# #Notice# #Log Management# #BEA-170019# #The server log file /u01/app/oracle/config/domains/Vinay/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.#
#Aug 18, 2014 12:34:29 AM PDT# #Critical# #WebLogicServer# #BEA-000386# #Server subsystem failed. Reason: java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
                at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:38)
                at weblogic.server.channels.AddressUtils$AddressMaker.#clinit#(AddressUtils.java:33)
                at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:154)
                at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:61)
                at weblogic.server.channels.ChannelService.start(ChannelService.java:207)
                Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: pocsrv2: pocsrv2
                at java.net.InetAddress.getLocalHost(InetAddress.java:1402)
                at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:36)
                at weblogic.server.channels.AddressUtils$AddressMaker.#clinit#(AddressUtils.java:33)
                at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:154)
                at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:62)
                Truncated. see log file for complete stacktrace
#
#Aug 18, 2014 12:34:30 AM PDT# #Notice# #WebLogicServer# #BEA-000365# #Server state changed to FAILED#
#Aug 18, 2014 12:34:30 AM PDT# #Error# #WebLogicServer# #BEA-000383# #A critical service failed. The server will shut itself down#
#Aug 18, 2014 12:34:30 AM PDT# #Notice# #WebLogicServer# #BEA-000365# #Server state changed to FORCE_SHUTTING_DOWN#
[oracle@pocsrv2 Vinay]$ less

Solution :-

 1) Update the hostname value for root user by using the following command:

HOSTNAME=xyz.abc.com
export $HOSTNAME
hostname 
xyz.abc.com

2) After these changes the env variable for root user is modified to the correct hostname value as shown below:

HOSTNAME=xyz.abc.com                    
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
SSH_CLIENT=10.1.2.3 1401 22
SSH_TTY=/dev/pts/2
USER=vinay 






Comments

Anonymous said…
Another way to solve this problem is to change the config.xml
Change of true to false


false
Anonymous said…
Another way to solve this problem is to change the config.xml
Change of true to false

Setting Name="SetWellKnownAddress" Type="htf:map"
Setting Name="EnableSetting" Type="xsd:boolean"

Popular posts from this blog

jstatd error : Could not create remote object : access denied (java.util.PropertyPermission java.rmi.server.ignoreSubClasses write)

ORA-22990: LOB locators cannot span transactions