Friday, May 18, 2012

JOC-058, JOC-043, and JOC-823 when starting up SOA Suite 11g

Problem:

Getting the following error when starting up the soa_server1 managed server:

<May 18, 2012 1:53:31 PM EDT> <Warning> <oracle.sdp.messaging.driver.base> <SDP-26035> <JNDI lookup of server command endpoint OraSDPM/ejb/sdpmessagingserver/CommandProcessorRemote failed with the following error message: While trying to lookup 'OraSDPM.ejb.sdpmessagingserver/CommandProcessorRemote' didn't find subcontext 'ejb'. Resolved 'OraSDPM'. Will retry until successful.>
<May 18, 2012 1:57:25 PM EDT> <Error> <oracle.as.cache.groupv2.Distributor> <BEA-000000> <DI Unable to find or become a group coordinator within 300000 seconds>
<May 18, 2012 1:57:27 PM EDT> <Error> <oracle.as.cache> <BEA-000000> <oracle.ias.cache.NetworkException: J2EE JOC-058 distributed cache initialization failure
J2EE JOC-043 base exception:
J2EE JOC-823 unable to contact the packet-distributor at [localhost:20030] segID=0

    at oracle.ias.cache.groupv2.Client.init(Client.java:86)
    at oracle.ias.cache.groupv2.GroupMember.<init>(GroupMember.java:383)
    at oracle.ias.cache.groupv2.GroupMember.create(GroupMember.java:93)
    at oracle.ias.cache.groupv2.GrpCommunication.init(GrpCommunication.java:141)
    at oracle.ias.cache.groupv2.GrpCommunication.init(GrpCommunication.java:121)
    at oracle.ias.cache.Net.init(Net.java:104)
    at oracle.ias.cache.CacheInternal.initNet(CacheInternal.java:2924)
    at oracle.ias.cache.CacheInternal.init(CacheInternal.java:695)
    at oracle.ias.cache.CacheInternal.init(CacheInternal.java:343)
    at oracle.ias.cache.CacheInternal.createNamedCache(CacheInternal.java:2601)
    at oracle.ias.cache.Cache.createNamedCache(Cache.java:661)
    at oracle.mds.internal.cache.JOCCacheProvider.createNamedCacheInternal(JOCCacheProvider.java:292)
    at oracle.mds.internal.cache.JOCCacheProvider.createNamedCache(JOCCacheProvider.java:255)
    at oracle.mds.internal.cache.JOCCacheProvider.<init>(JOCCacheProvider.java:87)
    at oracle.mds.core.MDSInstance.initCache(MDSInstance.java:1620)
    at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1758)

Solution:

This was a 2-node clustered installation of Oracle SOA Suite 11g. There were multiple problems in this case.

1. The AdminServer was incorrectly started up on both nodes. Shut them both down.

2. NodeManager was not started on the second node. Start it up.

3. Shutdown all soa_server managed servers, then bring them all up again (AdminServer, soa_server1, soa_server2)

 
Applicable Versions:
  • Oracle SOA Suite 11g (11.1.1.5)

Ahmed Aboulnaga

Monday, May 7, 2012

"Content is not allowed in prolog" in OSB server logs

Problem:

In the osb_server1.out log file, we get the following error:

<Mar 28, 2012 3:17:00 PM EDT> <Error> <WliSbTransports> <BEA-381502> <Exception in JmsInboundMDB.onMessage: com.bea.wli.sb.transports.TransportException: OSB Replace action failed updating variable "body": javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.
com.bea.wli.sb.transports.TransportException: OSB Replace action failed updating variable "body": javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.
    at com.bea.wli.sb.transports.TransportException.newInstance(TransportException.java:214)
    at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:390)
    at com.bea.wli.sb.transports.jms.JmsInboundMDB.onMessage(JmsInboundMDB.java:132)
    at sun.reflect.GeneratedMethodAccessor2153.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Truncated. see log file for complete stacktrace
Caused By: com.bea.wli.sb.pipeline.PipelineException: OSB Replace action failed updating variable "body": javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.
    at stages.transform.runtime.ReplaceRuntimeStep.processMessage(ReplaceRuntimeStep.java:166)
    at com.bea.wli.sb.pipeline.StatisticUpdaterRuntimeStep.processMessage(StatisticUpdaterRuntimeStep.java:41)
    at com.bea.wli.sb.pipeline.debug.DebuggerRuntimeStep.processMessage(DebuggerRuntimeStep.java:74)
    at com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:346)
    at com.bea.wli.sb.stages.impl.SequenceRuntimeStep.processMessage(SequenceRuntimeStep.java:33)
    Truncated. see log file for complete stacktrace
Caused By: com.bea.wli.sb.stages.StageException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.
    at com.bea.wli.sb.stages.transform.XsltTransformImpl.execute(XsltTransformImpl.java:93)
    at com.bea.wli.sb.stages.expressions.xslt.XsltTransformExecutor.getXSLTResultAsTokenIterator(XsltTransformExecutor.java:228)
    at com.bea.wli.sb.stages.expressions.xslt.XsltTransformExecutor.execute(XsltTransformExecutor.java:114)
    at com.bea.wli.sb.stages.expressions.xslt.XsltTransformExecutor.executeJavaObject(XsltTransformExecutor.java:135)
    at stages.transform.runtime.ReplaceRuntimeStep.processMessage(ReplaceRuntimeStep.java:144)
    Truncated. see log file for complete stacktrace
Caused By: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:719)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
    at com.bea.wli.sb.stages.transform.XsltTransformImpl.execute(XsltTransformImpl.java:89)
    at com.bea.wli.sb.stages.expressions.xslt.XsltTransformExecutor.getXSLTResultAsTokenIterator(XsltTransformExecutor.java:229)
    at com.bea.wli.sb.stages.expressions.xslt.XsltTransformExecutor.executeJavaObject(XsltTransformExecutor.java:135)
    Truncated. see log file for complete stacktrace
Caused By: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:546)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:709)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
    at com.bea.wli.sb.stages.transform.XsltTransformImpl.execute(XsltTransformImpl.java:89)
    at com.bea.wli.sb.stages.expressions.xslt.XsltTransformExecutor.getXSLTResultAsTokenIterator(XsltTransformExecutor.java:229)
    Truncated. see log file for complete stacktrace
Caused By: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.
    at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:446)
    at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:234)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:524)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
    at com.bea.wli.sb.stages.transform.XsltTransformImpl.execute(XsltTransformImpl.java:89)
    Truncated. see log file for complete stacktrace
>
ERROR:  'Content is not allowed in prolog.'
ERROR:  'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.'



Solution:

Oracle Bug 13638131 - OSB10.3.1 PERFORMANCE ISSUE -"REPLACE" ACTION FAILED UPDATING VARIABLE "BODY" is specific to this error.

1. Download patch 13638131 applicable to your environment and apply it (e.g., p13638131_111150_Generic.zip).


Applicable Versions:
  • Oracle Service Bus 11g (11.1.1.5)

 Ahmed Aboulnaga

Sunday, May 6, 2012

BEA-090402 and BEA-000386: Authentication denied

Problem:

In WebLogic Server 11g, if you start up the AdminServer (or any managed server for that matter), whether through the console or through the command line, you may receive the following error at the prompt:

<May 6, 2012 12:00:12 AM EDT> <Critical> <Security> <BEA-090402> <Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.>
<May 6, 2012 12:00:12 AM EDT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:960)
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1054)
        at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
        at weblogic.security.SecurityService.start(SecurityService.java:141)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        Truncated. see log file for complete stacktrace
Caused By: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User weblogic javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User weblogic denied
        at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
        at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
        at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        Truncated. see log file for complete stacktrace
>
 

Solution:

As the error describes, this is quite simple.

1. Locate your boot.properties file (typically located in $MW_HOME/user_projects/domains/soa_domain/servers/AdminServer/security/boot.properties)

2. If this file does not exist, then create it with the following two lines:
username=weblogic
password=welcome1

3. If the file exists, then re-enter the correct username and password (it will be encrypted upon next startup):
username=weblogic
password=welcome1

Applicable Versions:
  • Oracle WebLogic Server 11g (10.3.x)


Ahmed Aboulnaga

Tuesday, April 24, 2012

Oracle Application Integration Architecture (AIA) Foundation Pack 11gR1: Essentials

Ever wanted to get into AIA but found it intimidating? I feel your pain.

Whether you agree or disagree with certain elements of the AIA Foundation Pack, it's very important to have exposure to it if you're working in the Oracle SOA space. Despite being cumbersome in some areas, the AIA Foundation Pack is a framework based on true SOA principles which I have personally learned and continue to adopt to this day.

I have just started reading the book titled Oracle Application Integration Architecture (AIA) Foundation Pack 11gR1: Essentials from Packt Publishing.


The author, Hariharan Ganesarethinam, is a well accomplished Enterprise Solution Architect within the SOA and EAI spaces. Quickly glancing through it, the book seems to have covered all core areas, so give me a couple of weeks and I'll let you know my opinion.

Ahmed Aboulnaga