This discussion is archived
7 Replies Latest reply: Jan 28, 2013 6:16 AM by 987083 RSS

oms.automation.AutomationException: java.lang.NullPointerException

987083 Newbie
Currently Being Moderated
Hi,

In an automation task I've added an automation plugin to pringt GetOrder.Response in Log.

But if I deploy and initiate the automated task I getting oms.automation.AutomationException: java.lang.NullPointerException. Please take look at it and reply back ASAP. Below is my xquery and log file



declare namespace oms="urn:com:metasolv:oms:xmlapi:1";
declare namespace context = "java:com.mslv.oms.automation.TaskContext";
declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";
declare namespace log = "java:org.apache.commons.logging.Log";


declare variable $context external;
declare variable $automator external;
declare variable $log external;

let $order := ..//oms:GetOrder.Response



return (
log:info($log,"*********** Response - START ***********"),

log:info($log,$order),


log:info($log,"*********** Response - END ***********")
     
     )

Log file :

####<Jan 25, 2013 12:53:46 PM IST> <Info> <EJB> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626861> <BEA-010213> <Message-Driven EJB: com.mslv.oms.automation.AutomationEventHandler's transaction was rolled back. The transaction details are: Name=[EJB com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.onMessage(javax.jms.Message)],Xid=BEA1-1D5D095D1BCA3057A4BD(42161434),Status=Rolled back. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException: setRollbackOnly called on transaction],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=30,XAServerResourceInfo[WLStore_base_domain__WLS_AdminServer]=(ServerResourceInfo[WLStore_base_domain__WLS_AdminServer]=(state=rolledback,assigned=AdminServer),xar=WLStore_base_domain__WLS_AdminServer216074163,re-Registered = false),NonXAServerResourceInfo[WL_JDBC_LLR_POOL.oms_pool]=(ServerResourceInfo[WL_JDBC_LLR_POOL.oms_pool]=(state=rolledback,assigned=AdminServer),nonXAResource=JDBC LLR, pool=oms_pool, table=ORDERMGMT001.WL_LLR_ADMINSERVER),SCInfo[base_domain+AdminServer]=(state=rolledback),properties=({weblogic.transaction.nonXAResource=WL_JDBC_LLR_POOL.oms_pool, weblogic.jdbc.remote.oms_pool=t3://10.117.160.51:7001, weblogic.transaction.name=[EJB com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.onMessage(javax.jms.Message)], weblogic.jdbc.llr=oms_pool}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+10.117.160.51:7001+base_domain+t3+, XAResources={WSATGatewayRM_AdminServer_base_domain, WLStore_base_domain__WLS_AdminServer},NonXAResources={})],CoordinatorURL=AdminServer+10.117.160.51:7001+base_domain+t3+).>
####<Jan 25, 2013 12:53:46 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-1D5E095D1BCA3057A4BD> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626892> <BEA-000000> <sample.New_Automation: *********** Response - START ***********>
####<Jan 25, 2013 12:53:46 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-1D5E095D1BCA3057A4BD> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626907> <BEA-000000> <sample.New_Automation: net.sf.saxon.tinytree.TinyElementImpl@bd04001>
####<Jan 25, 2013 12:53:46 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-1D5E095D1BCA3057A4BD> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626907> <BEA-000000> <sample.New_Automation: *********** Response - END ***********>
####<Jan 25, 2013 12:53:46 PM IST> <Warning> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-1D5E095D1BCA3057A4BD> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626907> <BEA-000000> <sample.New_Automation: Attempting to clean up references to bad EJB references>
####<Jan 25, 2013 12:53:46 PM IST> <Error> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-1D5E095D1BCA3057A4BD> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626923> <BEA-000000> <automation.AutomationDispatcher: Failed to execute plugin[automation/plugin/internal/task/Sample/1.0.0.0.0/SecondTask/do] due to java.lang.NullPointerException
com.mslv.oms.automation.AutomationException: java.lang.NullPointerException
     at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.a(Unknown Source)
     at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage(Unknown Source)
     at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
     at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)
     at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)
     at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:388)
     at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
     at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
     at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
     at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
     at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
     at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
Caused By: java.lang.NullPointerException
     at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.updateOrderData(Unknown Source)
     at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.runCommonFunctionality(Unknown Source)
     at oracle.communications.ordermanagement.automation.plugin.ScriptRunnerImpl.runScript(Unknown Source)
     at oracle.communications.ordermanagement.automation.plugin.AbstractScriptAutomator.run(Unknown Source)
     at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator(Unknown Source)
     at com.mslv.oms.automation.AutomationDispatcher.a(Unknown Source)
     at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage(Unknown Source)
     at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
     at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)
     at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)
     at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:388)
     at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
     at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
     at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
     at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
     at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
     at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
>
####<Jan 25, 2013 12:53:46 PM IST> <Info> <EJB> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626923> <BEA-010213> <Message-Driven EJB: com.mslv.oms.automation.AutomationEventHandler's transaction was rolled back. The transaction details are: Name=[EJB com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.onMessage(javax.jms.Message)],Xid=BEA1-1D5E095D1BCA3057A4BD(607878497),Status=Rolled back. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException: setRollbackOnly called on transaction],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=30,XAServerResourceInfo[WLStore_base_domain__WLS_AdminServer]=(ServerResourceInfo[WLStore_base_domain__WLS_AdminServer]=(state=rolledback,assigned=AdminServer),xar=WLStore_base_domain__WLS_AdminServer216074163,re-Registered = false),NonXAServerResourceInfo[WL_JDBC_LLR_POOL.oms_pool]=(ServerResourceInfo[WL_JDBC_LLR_POOL.oms_pool]=(state=rolledback,assigned=AdminServer),nonXAResource=JDBC LLR, pool=oms_pool, table=ORDERMGMT001.WL_LLR_ADMINSERVER),SCInfo[base_domain+AdminServer]=(state=rolledback),properties=({weblogic.transaction.nonXAResource=WL_JDBC_LLR_POOL.oms_pool, weblogic.jdbc.remote.oms_pool=t3://10.117.160.51:7001, weblogic.transaction.name=[EJB com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.onMessage(javax.jms.Message)], weblogic.jdbc.llr=oms_pool}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+10.117.160.51:7001+base_domain+t3+, XAResources={WSATGatewayRM_AdminServer_base_domain, WLStore_base_domain__WLS_AdminServer},NonXAResources={})],CoordinatorURL=AdminServer+10.117.160.51:7001+base_domain+t3+).>
####<Jan 25, 2013 12:53:46 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-1D5F095D1BCA3057A4BD> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626954> <BEA-000000> <sample.New_Automation: *********** Response - START ***********>
####<Jan 25, 2013 12:53:46 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-1D5F095D1BCA3057A4BD> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626954> <BEA-000000> <sample.New_Automation: net.sf.saxon.tinytree.TinyElementImpl@bd04001>
####<Jan 25, 2013 12:53:46 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-1D5F095D1BCA3057A4BD> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626954> <BEA-000000> <sample.New_Automation: *********** Response - END ***********>
####<Jan 25, 2013 12:53:46 PM IST> <Warning> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-1D5F095D1BCA3057A4BD> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626954> <BEA-000000> <sample.New_Automation: Attempting to clean up references to bad EJB references>
####<Jan 25, 2013 12:53:46 PM IST> <Error> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-1D5F095D1BCA3057A4BD> <f5151d0564cdef6b:-147e7759:13c7066ab82:-8000-00000000000018b6> <1359098626954> <BEA-000000> <automation.AutomationDispatcher: Failed to execute plugin[automation/plugin/internal/task/Sample/1.0.0.0.0/SecondTask/do] due to java.lang.NullPointerException
com.mslv.oms.automation.AutomationException: java.lang.NullPointerException
     at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.a(Unknown Source)
     at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage(Unknown Source)
     at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
     at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)
     at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)
     at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:388)
     at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
     at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
     at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
     at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
     at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
     at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
Caused By: java.lang.NullPointerException
     at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.updateOrderData(Unknown Source)
     at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.runCommonFunctionality(Unknown Source)
     at oracle.communications.ordermanagement.automation.plugin.ScriptRunnerImpl.runScript(Unknown Source)
     at oracle.communications.ordermanagement.automation.plugin.AbstractScriptAutomator.run(Unknown Source)
     at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator(Unknown Source)
     at com.mslv.oms.automation.AutomationDispatcher.a(Unknown Source)
     at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage(Unknown Source)
     at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.impl.a.a(Unknown Source)
     at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
     at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)
     at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)
     at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:388)
     at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
     at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
     at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
     at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
     at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
     at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
>

Thanks in advance,

Menaka

Edited by: 984080 on Jan 25, 2013 3:56 AM
  • 1. Re: oms.automation.AutomationException: java.lang.NullPointerException
    975124 Newbie
    Currently Being Moderated
    HI Menaka,
    you must be selected in your receiver automation for Update Order Check Box.

    In your xquery you posted, doesn't contain setUpdateOrder(False).
    this xquery is only printing not returning a valid Update order Xml to update OSM.
    Please check.

    Thanks
    Tarini.
  • 2. <sample.New_Automation: net.sf.saxon.tinytree.TinyElementImpl@4001>
    987083 Newbie
    Currently Being Moderated
    Hi Tharini,

    Thanks for your reply. Now the error is not coming, but in the log its printing only the response start and stop and its not printing the GetOrder.Response xml instead its showing the message _<ExecuteThread: '14' for queue: 'oms.automation'> <net.sf.saxon.tinytree.TinyElementImpl@4001>_. Can you please help me in solving the issue. I have given the xquery and log file with this.

    declare namespace oms="urn:com:metasolv:oms:xmlapi:1";
    declare namespace context = "java:com.mslv.oms.automation.TaskContext";
    declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";
    declare namespace log = "java:org.apache.commons.logging.Log";

    declare variable $context external;
    declare variable $automator external;
    declare variable $log external;

    let $osmOrder := fn:root(.)//oms:GetOrder.Response
    return
    (
    log:info($log,"*********** Response - START ***********"),

    log:info($log,$osmOrder),


    log:info($log,"*********** Response - END ***********")

    )



    Log File


    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C9> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890550> <BEA-000000> <base.BaseMetaData: Evaluating system health policies - Running>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890612> <BEA-000000> <base.BaseMetaData: Evaluating system health policies - Completed>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890612> <BEA-000000> <base.BaseMetaData: Refreshing MetaData cartridge[Sample] version[1.0.0.0.0] - Running>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890612> <BEA-000000> <base.BaseMetaData: Refreshing MetaData cartridge[default] version[1.0] - Running>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890612> <BEA-000000> <base.BaseMetaData: Refreshing MetaData cartridge[defaultOrchestration] version[1.0] - Running>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <oms-internal> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890659> <BEA-000000> <j2ee.d: Searching for compatible authentication providers in default security realm - Running>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <oms-internal> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890675> <BEA-000000> <j2ee.d: Found[4] application users through authentication provider[DefaultAuthenticator] desc[WebLogic Authentication Provider] class[weblogic.security.providers.authentication.DefaultAuthenticationProviderImpl] version[1.0] - Running>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <oms-internal> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890675> <BEA-000000> <j2ee.d: Found a total of[4] application users in group[[Ljava.lang.String;@be96442] across all compatible authentication providers - Completed>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890722> <BEA-000000> <net.a: No XML catalogs specified>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890768> <BEA-000000> <c.c: Preparation of module[Sample] for deployment - Running>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890768> <BEA-000000> <c.c: Preparation of module[Sample] for deployment - Complete>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890800> <BEA-000000> <base.b: Loaded model resource file [osmmodel:///Sample/1.0.0.0.0/xmlCatalogs]>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890831> <BEA-000000> <net.a: Loaded XML Catalog[osmmodel:///Sample/1.0.0.0.0/xmlCatalogs/core/catalog.xml]>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890878> <BEA-000000> <net.a: Loaded XML Catalog[osmmodel:///Sample/1.0.0.0.0/xmlCatalogs/core/catalog.xml]>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890909> <BEA-000000> <net.a: Loaded XML Catalog[osmmodel:///Sample/1.0.0.0.0/xmlCatalogs/core/catalog.xml]>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890909> <BEA-000000> <c.c: Preparation of module[Sample] for deployment - Running>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890909> <BEA-000000> <c.c: Preparation of module[Sample] for deployment - Complete>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890956> <BEA-000000> <base.b: Loaded model resource file [osmmodel:///Sample/1.0.0.0.0/resources]>
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890956> <BEA-000000> <a.e: The following resource files were added to the classpath for [Order and Service Management]
    osmmodel:///Sample/1.0.0.0.0/resources/automation/Sample_1.0.0.0.0.jar
    osmmodel:///Sample/1.0.0.0.0/resources
    >
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890971> <BEA-000000> <a.e: The following resource files were added to the classpath for [cartridge namespace[Sample] version[1.0.0.0.0]]
    osmmodel:///Sample/1.0.0.0.0/resources/automation/Sample_1.0.0.0.0.jar
    osmmodel:///Sample/1.0.0.0.0/resources
    >
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890971> <BEA-000000> <base.b: Found the following automationMap.xml files:
    osmmodel:///Sample/1.0.0.0.0/resources/automation/automationMap.xml
    >
    ####<Jan 28, 2013 2:51:30 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364890971> <BEA-000000> <generation.c: Initializing orchestration model - COMPLETED>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891065> <BEA-000000> <model.Cartridge:

    ******************************************************************************************************************************************************************************************************
    Cartridges Deployment Information
    ******************************************************************************************************************************************************************************************************
    Cartridge Namespace Version Default Deployment Date Build Id Copyright
    --------------------------------------------------------------------- ------------------- --------- ----------------------- ------------- -----------------------------------------------------------
    -1 N/A Y 1/28/13 2:51 PM NO_BUILD_ID N/A
    Sample N/A Y 1/28/13 2:34 PM 37 N/A
    default N/A Y 12/31/12 12:00 AM NO_BUILD_ID N/A

    >
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891065> <BEA-000000> <impl.a: Clearing orchestrationPlanCache cache - Running>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891065> <BEA-000000> <impl.a: Clearing orchestrationPlanCache cache - Completed>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891081> <BEA-000000> <jboss.JBossOrderCacheManager: Clearing order cache - Running>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891081> <BEA-000000> <jboss.JBossOrderCacheManager: Clearing order cache - Completed>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891081> <BEA-000000> <jboss.JBossOrderCacheManager: Clearing redo order cache - Running>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891081> <BEA-000000> <jboss.JBossOrderCacheManager: Clearing redo order cache - Completed>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891081> <BEA-000000> <jboss.JBossOrderCacheManager: Clearing historical order cache - Running>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891081> <BEA-000000> <jboss.JBossOrderCacheManager: Clearing historical order cache - Completed>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891081> <BEA-000000> <plugin.AutomationEventHandlerImpl: Parsing and validating automationMap[osmmodel:///Sample/1.0.0.0.0/resources/automation/automationMap.xml]>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <oms-internal> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891096> <BEA-000000> <core.logRegisterEvent: Registering plugin type = Task mnemonic = SecondTask plugin = /automation/plugin/internal/task/Sample/1.0.0.0.0/SecondTask/do>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891112> <BEA-000000> <plugin.AutomationEventHandlerImpl: Activated plugin[SecondTask.automatedtask.sample.New_Automation] from automationMap[osmmodel:///Sample/1.0.0.0.0/resources/automation/automationMap.xml]>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891112> <BEA-000000> <base.BaseMetaData: Refreshing notification definitions - RUNNING>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891112> <BEA-000000> <base.BaseMetaData: Refreshing notification definitions - COMPLETED>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891112> <BEA-000000> <base.BaseMetaData: Refreshing plug-ins registration definitions - RUNNING>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891127> <BEA-000000> <base.BaseMetaData: Refreshing plug-insregistration definitions - COMPLETED>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <admin> <BEA1-0E8A90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000ab8> <1359364891127> <BEA-000000> <model.MetaDataManager: Refreshing MetaData - Completed>
    ####<Jan 28, 2013 2:51:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.xml'> <<anonymous>> <> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000aba> <1359364891205> <BEA-000000> <core.logLogout: User admin at host 127.0.0.1 [127.0.0.1] has logged out.>
    ####<Jan 28, 2013 2:53:47 PM IST> <Info> <Health> <B4L-BSM0ZR1> <AdminServer> <weblogic.GCMonitor> <<anonymous>> <> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000068> <1359365027959> <BEA-310002> <19% of the total memory in the server is free>
    ####<Jan 28, 2013 2:56:31 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '9' for queue: 'oms.web'> <oms-internal> <BEA1-0FB390D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000bac> <1359365191603> <BEA-000000> <j2ee.d: Searching for compatible authentication providers in default security realm - Running>
    ####<Jan 28, 2013 2:56:41 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.web'> <oms-automation> <BEA1-0FC890D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000be6> <1359365201416> <BEA-000000> <jboss.JBossOrderCacheManager: Loading order /18 into order cache.>
    ####<Jan 28, 2013 2:57:02 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-100F90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000c52> <1359365222558> <BEA-000000> <sample.New_Automation: Creating automation plugin [class oracle.communications.ordermanagement.automation.plugin.XQueryReceiver] jndi[SecondTask.automatedtask.sample.New_Automation] built using SDK version [7.2.2.336]>
    ####<Jan 28, 2013 2:57:02 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-100F90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000c52> <1359365222620> <BEA-000000> <sample.New_Automation: *********** Response - START ***********>
    ####<Jan 28, 2013 2:57:02 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-100F90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000c52> <1359365222620> <BEA-000000> <sample.New_Automation: net.sf.saxon.tinytree.TinyElementImpl@4001>
    ####<Jan 28, 2013 2:57:02 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-100F90D2B8C93057A4BD> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-0000000000000c52> <1359365222620> <BEA-000000> <sample.New_Automation: *********** Response - END ***********>
    ####<Jan 28, 2013 2:57:42 PM IST> <Info> <oms> <B4L-BSM0ZR1> <AdminServer> <Timer-12> <oms-automation> <> <f5151d0564cdef6b:-2de87147:13c804e91ed:-8000-00000000000001c4> <1359365262836> <BEA-000000> <impl.OrchestrationCascadingLRUPolicy: Evicted order /18 from orchestration cache due to cache entry expiry>


    Thanks in Advance
    Menaka
  • 3. Re: oms.automation.AutomationException: java.lang.NullPointerException
    987083 Newbie
    Currently Being Moderated
    I need more clarifications on that
  • 4. Re: oms.automation.AutomationException: java.lang.NullPointerException
    975124 Newbie
    Currently Being Moderated
    Hi

    You can't print into log, a document Object, so here is the Code

    declare namespace saxon="http://saxon.sf.net/";
    declare namespace xsl="http://www.w3.org/1999/XSL/Transform";

    let $osmOrder := fn:root(.)//oms:GetOrder.Response
    let $inputXml:= saxon:serialize($osmOrder, <xsl:output method='xml' omit-xml-declaration='yes' indent='yes' saxon:indent-spaces='4'/>)



    now you can print this
    by using this

    log:info($log,$inputXml)

    By the way my name is Tarini.
    Thanks
  • 5. Re: oms.automation.AutomationException: java.lang.NullPointerException
    987083 Newbie
    Currently Being Moderated
    Thank you so much Tarini.

    I need one more clarification please

    let $osmOrder := fn:root(.)/oms:GetOrder.Response
    let $osmOrderRoot := $osmOrder//oms:_root

    In the above $osmOrderRoot, what will the oms:_root contain? will that always contains some valye

    For me when I give let $osmOrder := fn:root(.)/oms:GetOrder.Response, the following thing is getting printed. But if I give let $osmOrderRoot := $osmOrder//oms:_root
    its just printing as <<_root xmlns="urn:com:metasolv:oms:xmlapi:1" index="0"/>>. that should contain the user entered values right? why it is not getting printed inside the response?

    <28-Jan-2013 5:30:14,553 IST PM> <INFO> <sample.New_Automation> <ExecuteThread: '14' for queue: 'oms.automation'> <*********** Response - START ***********>
    <28-Jan-2013 5:30:14,556 IST PM> <INFO> <sample.New_Automation> <ExecuteThread: '14' for queue: 'oms.automation'> <<GetOrder.Response xmlns="urn:com:metasolv:oms:xmlapi:1">
    <OrderID>22</OrderID>
    <OrderHistID>203</OrderHistID>
    <Task>SecondTask</Task>
    <OrderSource>Sample</OrderSource>
    <OrderType>Sample</OrderType>
    <OrderState>open.running.in_progress</OrderState>
    <State>accepted</State>
    <ExecutionMode>do</ExecutionMode>
    <Reference>RepeatCheck</Reference>
    <ExpectedDuration>P1D</ExpectedDuration>
    <ExpectedOrderCompletionDate>2013-01-29T17:29:58 IST</ExpectedOrderCompletionDate>
    <Priority>5</Priority>
    <Namespace>Sample</Namespace>
    <Version>1.0.0.0.0</Version>
    <ProcessStatus>n/a</ProcessStatus>
    <_root index="0"/>
    </GetOrder.Response>>
    <28-Jan-2013 5:30:14,561 IST PM> <INFO> <sample.New_Automation> <ExecuteThread: '14' for queue: 'oms.automation'> <*********** Response - END ***********>


    Thanks in Advance
    Menaka B
  • 6. Re: oms.automation.AutomationException: java.lang.NullPointerException
    975124 Newbie
    Currently Being Moderated
    Hi,

    if you want to print your whole input order xml then use this
    let $osmOrder := fn:root(.)/oms:GetOrder.Response

    to print only Order Data Elements then use
    let $osmOrder := fn:root(.)/oms:GetOrder.Response/oms:_root



    In your xquery you are not getting anything printed for let $osmOrder := fn:root(.)/oms:GetOrder.Response/oms:_root because, you didnt assign any Task Data in your
    Automated task view.

    Please drag and drop your required Order Data Elements from DataDictionary to your Automated Task View.


    Thanks
    Enjoy.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points