This discussion is archived
2 Replies Latest reply: Dec 11, 2012 6:09 AM by 905535 RSS

Error in SIEntry point xquery -Task execution mode 'Redo'.

905535 Newbie
Currently Being Moderated
Hi,

We are using OSM 7.0.3 and O2A cartridge 7.0.3 .We have added one new fullfilment function as per O2A cartridge guide.

For this function everything is working fine in DO mode and function get executed successfuly.

But in revision order when Entry point task execute in redo mode we are getting below exception in 'SIEntry point.xquery' . We are using OOB copy of 'SIEntry point.xquery' . Any idea about this error?

We are getting this error at line number '234' in 'SIEntry point.xquery'.
On this line below line of code is available.

"
return
*If (fn:exists($updatePONRData)) (: Use Task scope update :)*
then context:updateOrderDataDom($context, componentdatafn:getTaskScopeUpdateData($updatePONRData))
"

26-Nov-2012 11:09:19,062 GMT+03:00 AM> <INFO> <jboss.JBossOrderCacheManager> <ExecuteThread: '3' for queue: 'oms.automation'> <Removed order /893 from redo order cache >
<26-Nov-2012 11:09:21,159 GMT+03:00 AM> <INFO> <jboss.JBossOrderCacheManager> <ExecuteThread: '3' for queue: 'oms.automation'> <Loading order /893 into order cache.>
<26-Nov-2012 11:09:24,625 GMT+03:00 AM> <ERROR> <xmlapi.UpdateOrderProcessor> <ExecuteThread: '3' for queue: 'oms.automation'> <createDocument() : Modifications of references are not allowed in this context.>
java.lang.UnsupportedOperationException: Modifications of references are not allowed in this context.
at com.mslv.oms.handler.order.compare.o.visit(Unknown Source)
at com.mslv.oms.handler.order.compare.n.a(Unknown Source)
at com.mslv.oms.handler.order.compare.o.nodeAdded(Unknown Source)
at com.mslv.oms.handler.order.compare.d.nodeAdded(Unknown Source)
at com.mslv.oms.handler.order.compare.i.nodeAdded(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.handler.order.compare.s.b(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.handler.order.compare.s.b(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.handler.order.compare.s.b(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.handler.order.compare.s.b(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.handler.order.compare.s.b(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.handler.order.compare.s.a(Unknown Source)
at com.mslv.oms.jsp.xmlapi.UpdateOrderProcessor.compareOrders(Unknown Source)
at com.mslv.oms.jsp.xmlapi.UpdateOrderProcessor.parseXmlData(Unknown Source)
at com.mslv.oms.jsp.xmlapi.UpdateOrderProcessor.parseXmlData(Unknown Source)
at com.mslv.oms.security.base.ControllerBean.updateOrderNoResponse(Unknown Source)
at com.mslv.oms.automation.TaskContextLocal.updateOrderDataDom(Unknown Source)
at sun.reflect.GeneratedMethodAccessor3652.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.sf.saxon.functions.ExtensionFunctionCall.invokeMethod(ExtensionFunctionCall.java:690)
at net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCall.java:343)
at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:224)
at net.sf.saxon.expr.Expression.evaluateItem(Expression.java:352)
at net.sf.saxon.expr.Expression.process(Expression.java:461)
at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:688)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.expr.LetExpression.process(LetExpression.java:378)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.expr.LetExpression.process(LetExpression.java:378)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator.java:376)
at net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java:322)
at net.sf.saxon.instruct.Instruction.iterate(Instruction.java:308)
at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:653)
at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:306)
at net.sf.saxon.instruct.Choose.iterate(Choose.java:754)
at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:306)
at net.sf.saxon.query.XQueryExpression.iterator(XQueryExpression.java:307)
at net.sf.saxon.query.XQueryExpression.evaluate(XQueryExpression.java:217)
at oracle.communications.ordermanagement.rule.c.a(Unknown Source)
at oracle.communications.ordermanagement.rule.c.a(Unknown Source)
at oracle.communications.ordermanagement.rule.n.a(Unknown Source)
at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
at oracle.communications.ordermanagement.automation.plugin.d.transform(Unknown Source)
at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.transform(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.e.a(Unknown Source)
at oracle.communications.ordermanagement.cluster.message.impl.c.a(Unknown Source)
at oracle.communications.ordermanagement.cluster.message.impl.c.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:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
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)
<Nov 26, 2012 11:09:24 AM GMT+03:00> <Error> <oms> <BEA-000000> <xmlapi.UpdateOrderProcessor: createDocument() : Modifications of references are not allowed in this context.
java.lang.UnsupportedOperationException: Modifications of references are not allowed in this context.
at com.mslv.oms.handler.order.compare.o.visit(Unknown Source)
at com.mslv.oms.handler.order.compare.n.a(Unknown Source)
at com.mslv.oms.handler.order.compare.o.nodeAdded(Unknown Source)
at com.mslv.oms.handler.order.compare.d.nodeAdded(Unknown Source)
at com.mslv.oms.handler.order.compare.i.nodeAdded(Unknown Source)
Truncated. see log file for complete stacktrace
>
Error at xsl:if on line 234 of module with no systemId:
Exception in extension function com.mslv.oms.automation.OrderUpdateException: Error
updating order data: orderId[893] orderHistId[15661]
<26-Nov-2012 11:09:24,628 GMT+03:00 AM> <ERROR> <rule.XQueryHelper> <ExecuteThread: '3' for queue: 'oms.automation'> <Exception in extension function com.mslv.oms.automation.OrderUpdateException: Error updating order data: orderId[893] orderHistId[15661]. . File[*module with no systemId* (actual location resolved to [*module with no systemId*])] Line[234] Column[-1]
[
]
>
; SystemID: module with no systemId; Line#: 234; Column#: -1
net.sf.saxon.trans.XPathException: Exception in extension function com.mslv.oms.automation.OrderUpdateException: Error updating order data: orderId[893] orderHistId[15661]
at net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCall.java:368)
at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:224)
at net.sf.saxon.expr.Expression.evaluateItem(Expression.java:352)
at net.sf.saxon.expr.Expression.process(Expression.java:461)
at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:688)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.expr.LetExpression.process(LetExpression.java:378)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.expr.LetExpression.process(LetExpression.java:378)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator.java:376)
at net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java:322)
at net.sf.saxon.instruct.Instruction.iterate(Instruction.java:308)
at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:653)
at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:306)
at net.sf.saxon.instruct.Choose.iterate(Choose.java:754)
at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:306)
at net.sf.saxon.query.XQueryExpression.iterator(XQueryExpression.java:307)
at net.sf.saxon.query.XQueryExpression.evaluate(XQueryExpression.java:217)
at oracle.communications.ordermanagement.rule.c.a(Unknown Source)
at oracle.communications.ordermanagement.rule.c.a(Unknown Source)
at oracle.communications.ordermanagement.rule.n.a(Unknown Source)
at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
at oracle.communications.ordermanagement.automation.plugin.d.transform(Unknown Source)
at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.transform(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.e.a(Unknown Source)
at oracle.communications.ordermanagement.cluster.message.impl.c.a(Unknown Source)
at oracle.communications.ordermanagement.cluster.message.impl.c.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:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
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: com.mslv.oms.automation.OrderUpdateException: Error updating order data: orderId[893] orderHistId[15661]
at com.mslv.oms.automation.TaskContextLocal.updateOrderDataDom(Unknown Source)
at sun.reflect.GeneratedMethodAccessor3652.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.sf.saxon.functions.ExtensionFunctionCall.invokeMethod(ExtensionFunctionCall.java:690)
at net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCall.java:343)
... 55 more
Caused by: com.mslv.oms.handler.InternalErrorException: Unexpected error : Invalid Xml Data :Modifications of references are not allowed in this context.
<OrderDataUpdate xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns="http://www.metasolv.com/OMS/OrderDataUpdate/2002/10/25">
<UpdatedNodes xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns="">
<_root xmlns:xml="http://www.w3.org/XML/1998/namespace">
<ControlData xmlns:xml="http://www.w3.org/XML/1998/namespace">
<Functions xmlns:xml="http://www.w3.org/XML/1998/namespace">
<XYZFunction xmlns:xml="http://www.w3.org/XML/1998/namespace">
<componentKey xmlns:xml="http://www.w3.org/XML/1998/namespace">XYZFunction.PG-ALL.OrderGranularity.XYZSignificantUpdates</componentKey>
<orderItem xmlns:xml="http://www.w3.org/XML/1998/namespace">
<orderItemRef xmlns:xml="http://www.w3.org/XML/1998/namespace">
<BaseLineId xmlns:xml="http://www.w3.org/XML/1998/namespace">32353238383237303036383236333832</BaseLineId>
<WorkLineItemData xmlns:xml="http://www.w3.org/XML/1998/namespace">
<RevisionPermissibleCode xmlns:xml="http://www.w3.org/XML/1998/namespace">NOT YET</RevisionPermissibleCode>
</WorkLineItemData>
</orderItemRef>
</orderItem>
<orderItem xmlns:xml="http://www.w3.org/XML/1998/namespace">
<orderItemRef xmlns:xml="http://www.w3.org/XML/1998/namespace">
<BaseLineId xmlns:xml="http://www.w3.org/XML/1998/namespace">35323232393733303939353930313931</BaseLineId>
<WorkLineItemData xmlns:xml="http://www.w3.org/XML/1998/namespace">
<RevisionPermissibleCode xmlns:xml="http://www.w3.org/XML/1998/namespace">NOT YET</RevisionPermissibleCode>
</WorkLineItemData>
</orderItemRef>
</orderItem>
<orderItem xmlns:xml="http://www.w3.org/XML/1998/namespace">
<orderItemRef xmlns:xml="http://www.w3.org/XML/1998/namespace">
<BaseLineId xmlns:xml="http://www.w3.org/XML/1998/namespace">37383532333536323834383939343534</BaseLineId>
<WorkLineItemData xmlns:xml="http://www.w3.org/XML/1998/namespace">
<RevisionPermissibleCode xmlns:xml="http://www.w3.org/XML/1998/namespace">NOT YET</RevisionPermissibleCode>
</WorkLineItemData>
</orderItemRef>
</orderItem>
<orderItem xmlns:xml="http://www.w3.org/XML/1998/namespace">
<orderItemRef xmlns:xml="http://www.w3.org/XML/1998/namespace">
<BaseLineId xmlns:xml="http://www.w3.org/XML/1998/namespace">2d343331343237313138333434313135</BaseLineId>
<WorkLineItemData xmlns:xml="http://www.w3.org/XML/1998/namespace">
<RevisionPermissibleCode xmlns:xml="http://www.w3.org/XML/1998/namespace">NOT YET</RevisionPermissibleCode>
</WorkLineItemData>
</orderItemRef>
</orderItem>
<orderItem xmlns:xml="http://www.w3.org/XML/1998/namespace">
<orderItemRef xmlns:xml="http://www.w3.org/XML/1998/namespace">
<BaseLineId xmlns:xml="http://www.w3.org/XML/1998/namespace">2d353637313632323630393232343931</BaseLineId>
<WorkLineItemData xmlns:xml="http://www.w3.org/XML/1998/namespace">
<RevisionPermissibleCode xmlns:xml="http://www.w3.org/XML/1998/namespace">NOT YET</RevisionPermissibleCode>
</WorkLineItemData>
</orderItemRef>
</orderItem>
</XYZFunction>
</Functions>
</ControlData>
</_root>
</UpdatedNodes>
</OrderDataUpdate>

at com.mslv.oms.security.base.ControllerBean.updateOrderNoResponse(Unknown Source)
... 61 more

Regards,
UJ
  • 1. Re: Error in SIEntry point xquery -Task execution mode 'Redo'.
    viktor.jarolim Explorer
    Currently Being Moderated
    Hi, I think I have seen this error. But I have not been able to figure out what are the rules which determine where you can and cannot update via a reference node (judging from the error message, this appears to be the issue).
    What I would try if I were you is a direct update bypassing the reference nodes and see if that one works (need to add the nodes to task data).
    At least this will show whether the issue is indeed linked to the reference nodes; sometimes the error messages are misleading, too.

    <UpdatedNodes xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns="">
    <_root xmlns:xml="http://www.w3.org/XML/1998/namespace">
    <ControlData xmlns:xml="http://www.w3.org/XML/1998/namespace">
    <OrderItem xmlns:xml="http://www.w3.org/XML/1998/namespace">
    <BaseLineId xmlns:xml="http://www.w3.org/XML/1998/namespace">32353238383237303036383236333832</BaseLineId>
    <WorkLineItemData xmlns:xml="http://www.w3.org/XML/1998/namespace">
    <RevisionPermissibleCode xmlns:xml="http://www.w3.org/XML/1998/namespace">NOT YET</RevisionPermissibleCode>
    </WorkLineItemData>
    </OrderItem>
    ...

    Would you please post back your findings once you've solved the issue?
    Since this subject is highly interesting.
    Viktor
  • 2. Re: Error in SIEntry point xquery -Task execution mode 'Redo'.
    905535 Newbie
    Currently Being Moderated
    Hi Viktor,

    Thanks for your reply I was waiting for reply.

    Somehow we are able to solve this problem but I am also not able to find out root cause of this issue.

    Our problem and its sotution:

    Problem:
    OSM was receiving one revision order with one additinal product in it with action add.
    When base order start executing in Amend mode its failing at Entry point task.
    Observation:
    1. In revision order when we add this product inside service bundle then order fails in entry point task with above error message.
    2. When we added this new product parallel to service bundels (VOIP and Broadband) then its working fine and we are not getting above error.

    Solution:
    Now CRM is sending this product parallel to service bundels . :)
    We accepted this as workaraound and not a permanant solution.

    Im analyzing this two xml and let you know once found something.

    Also if you found something from above information please post it.

    Thnks & Regards,
    UJ

Legend

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