Friday, 5 June 2020

SOA Domain failed during the AdminServer start up


INFO: Configuring the Service Table DataSource...
INFO: Getting Database Defaults...
Error: getDatabaseDefaults() failed. Do dumpStack() to see details.
Error: runCmd() failed. Do dumpStack() to see details.
Problem invoking WLST - Traceback (innermost last):
  File "/u01/oracle/container-scripts/createDomain.py", line 624, in ?
  File "/u01/oracle/container-scripts/createDomain.py", line 157, in createDomain
  File "/u01/oracle/container-scripts/createDomain.py", line 374, in extendSoaDomain
  File "/u01/oracle/container-scripts/createDomain.py", line 311, in configureJDBCTemplates
  File "/tmp/WLSTOfflineIni7524882329358641379.py", line 263, in getDatabaseDefaults
  File "/tmp/WLSTOfflineIni7524882329358641379.py", line 19, in command
Failed to build JDBC Connection object:
        at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:69)
        at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:2983)
        at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptContext.java:735)
        at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)

com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: Got exception when auto configuring the schema component(s) with data obtained from shadow table:
Failed to build JDBC Connection object:


----------------------

$ pwd
/opt/oracle/product/12.2.0.1/dbhome_1/network/admin


$ cat sqlnet.ora
NAME.DIRECTORY_PATH= (TNSNAMES, EZCONNECT, HOSTNAME)
SQLNET.INBOUND_CONNECT_TIMEOUT=300

SOA Docker AdminServer failed to Start

SUPP_ATTRS = {severity-value=8, rid=0, partition-id=0, partition-name=DOMAIN} SERVER = AdminServer TIMESTAMP = 1591359709126 USERID = <WLS Kernel> MACHINE = f80e78590414 MSGID = BEA-101020 DATE = Jun 5, 2020 12:21:49,126 PM UTC SUBSYSTEM = HTTP CONTEXTID = 6781aeea-b679-439d-afb3-336ef966f685-0000006e TXID =  THREAD = [ACTIVE] ExecuteThread: '52' for queue: 'weblogic.kernel.Default (self-tuning)' SEVERITY = Error

WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000
> 
<Jun 5, 2020 12:21:49,157 PM UTC> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
 java.lang.NullPointerException.
java.lang.NullPointerException
        at weblogic.servlet.internal.VirtualConnection.getLocalAddr(VirtualConnection.java:89)
        at weblogic.servlet.internal.ServletRequestImpl.getLocalAddr(ServletRequestImpl.java:1117)
        at com.bea.console.utils.ConsoleRequestListener.requestInitialized(ConsoleRequestListener.java:30)
        at weblogic.servlet.internal.EventsManager.notifyRequestLifetimeEvent(EventsManager.java:438)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:28)
        Truncated. see log file for complete stacktrace
> 

com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault} messageType:
{{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage} parts: {{ summary=<summary>oracle.fabric.common.FabricInvocationException: Unable to
invoke endpoint URI "http://soaapdevlb1.corppvt.com:7877/osb/QueryExpenditureService" successfully due to: javax.xml.soap.SOAPException:
javax.xml.soap.SOAPException: Bad response: 503 Service Unavailable from url http://soaapdevlb1.corppvt.com:7877/osb/QueryExpenditureService</summary>
,detail=<detail>Unable to invoke endpoint URI "http://soaapdevlb1.corppvt.com:7877/osb/QueryExpenditureService" successfully due to:
javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 503 Service Unavailable from url
http://soaapdevlb1.corppvt.com:7877/osb/QueryExpenditureService</detail> ,code=<code>503</code>}

Solution –

Added  Server start parameter in config.xml and removed external DNS entry from config.xml

   </web-server-log>
    </web-server>
    <listen-address></listen-address>
        <server-start>
      <arguments>-Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.configuration.schemaValidationEnabled=false -Xms2g -Xmx2g</arguments>
    </server-start>
    <server-diagnostic-config>
      <name>AdminServer</name>
    </server-diagnostic-config>
  </server>