2 Replies Latest reply: Dec 28, 2012 8:39 AM by 905535 RSS

    Failed to create componenetID error.

    905535
      Hi,

      We are using OSM 7.0.3 and O2A cartridges.

      In our one business scenario CRM is sending one revision order.

      While creating this order in OSM its failed with below error message.

      +"oracle.communications.ordermanagement.ws.InvalidOrderSpecificationFault: Failed to create and start the order due to java.lang.RuntimeException: com.mslv.oms.OMSException: encountered error starting orchestration caused by:Orchestration plan could not be generated due to unable to determine order component Id for order item: xxx"+

      I think something is missing in incoming request but im not able to find it.
      To debug this issue i have enabled debugging of class "oracle.communications.ordermanagement.orchestration.generation.OrchestrationXQueryFunctions".

      And i got below things in logs.But there is not much inforamtion available about
      1. 'osmfn:ancestors("CommunicationsSalesOrderLine","parentChildHierarchy","CommunicationsSalesOrderFulfillmentPIP")' and
      2.osmfn:ancestors("CommunicationsSalesOrderLine","relatedItemHierarchy","CommunicationsSalesOrderFulfillmentPIP")''

      So its diffcult to find out what is missing in incoming request?
      Any Idea due to which fields these function failed?

      <27-Dec-2012 11:35:35,579 GMT+03:00 AM> <INFO> <jboss.JBossOrderCacheManager> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <Loading order /2453 into order cache.>
      Error on line 33 of module with no systemId:
      Exception in extension function java.lang.RuntimeException: XPath function
      osmfn:ancestors('parentChildHierarchy') failed.
      <27-Dec-2012 11:35:36,928 GMT+03:00 AM> <ERROR> <rule.XQueryHelper> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <Exception in extension function java.lang.RuntimeException: XPath function osmfn:ancestors('parentChildHierarchy') failed.. . File[*module with no systemId* (actual location resolved to [*module with no systemId*])] Line[33] Column[-1]
      >
      ; SystemID: module with no systemId; Line#: 33; Column#: -1
      net.sf.saxon.trans.XPathException: Exception in extension function java.lang.RuntimeException: XPath function osmfn:ancestors('parentChildHierarchy') failed.
           at net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCall.java:368)
           at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:224)
           at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:89)
           at net.sf.saxon.expr.Literal.iterate(Literal.java:202)
           at net.sf.saxon.expr.FilterExpression.iterate(FilterExpression.java:1058)
           at net.sf.saxon.functions.Existence.effectiveBooleanValue(Existence.java:105)
           at net.sf.saxon.instruct.Choose.iterate(Choose.java:748)
           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.evaluateSingle(XQueryExpression.java:244)
           at oracle.communications.ordermanagement.rule.f.a(Unknown Source)
           at oracle.communications.ordermanagement.rule.n.a(Unknown Source)
           at oracle.communications.ordermanagement.rule.XQueryHelper.a(Unknown Source)
           at oracle.communications.ordermanagement.rule.XQueryHelper.a(Unknown Source)
           at oracle.communications.ordermanagement.rule.XQueryHelper.evaluateString(Unknown Source)
           at oracle.communications.ordermanagement.rule.a.e(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.j.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.j.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.j.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.j.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.ad.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.ab.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.execution.impl.b.a(Unknown Source)
           at com.mslv.oms.handler.completeorder.CompleteOrderHandlerEJB.a(Unknown Source)
           at com.mslv.oms.handler.completeorder.CompleteOrderHandlerEJB.process(Unknown Source)
           at com.mslv.oms.handler.a.processRequest(Unknown Source)
           at com.mslv.oms.handler.createorder.CreateOrderHandlerEJB.process(Unknown Source)
           at com.mslv.oms.handler.a.processRequest(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.a(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.processRequest(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.processRequest(Unknown Source)
           at oracle.communications.ordermanagement.ws.f.a(Unknown Source)
           at oracle.communications.ordermanagement.ws.a.a(Unknown Source)
           at oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl.createOrder(Unknown Source)
           at sun.reflect.GeneratedMethodAccessor1423.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
           at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
           at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
           at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
           at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
           at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
           at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
           at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
           at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
           at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
      Caused by: java.lang.RuntimeException: XPath function osmfn:ancestors('parentChildHierarchy') failed.
           at oracle.communications.ordermanagement.orchestration.generation.OrchestrationXQueryFunctions.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.OrchestrationXQueryFunctions.ancestors(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           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)
           ... 64 more
      Caused by: java.lang.RuntimeException: XPath function ancestors('parentChildHierarchy') failed. hierarchy[parentChildHierarchy] is not in scope
           ... 72 more
      ---------
      java.lang.RuntimeException: XPath function osmfn:ancestors('parentChildHierarchy') failed.
           at oracle.communications.ordermanagement.orchestration.generation.OrchestrationXQueryFunctions.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.OrchestrationXQueryFunctions.ancestors(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           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.value.MemoClosure.iterate(MemoClosure.java:89)
           at net.sf.saxon.expr.Literal.iterate(Literal.java:202)
           at net.sf.saxon.expr.FilterExpression.iterate(FilterExpression.java:1058)
           at net.sf.saxon.functions.Existence.effectiveBooleanValue(Existence.java:105)
           at net.sf.saxon.instruct.Choose.iterate(Choose.java:748)
           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.evaluateSingle(XQueryExpression.java:244)
           at oracle.communications.ordermanagement.rule.f.a(Unknown Source)
           at oracle.communications.ordermanagement.rule.n.a(Unknown Source)
           at oracle.communications.ordermanagement.rule.XQueryHelper.a(Unknown Source)
           at oracle.communications.ordermanagement.rule.XQueryHelper.a(Unknown Source)
           at oracle.communications.ordermanagement.rule.XQueryHelper.evaluateString(Unknown Source)
           at oracle.communications.ordermanagement.rule.a.e(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.j.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.j.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.j.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.j.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.ad.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.ab.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.execution.impl.b.a(Unknown Source)
           at com.mslv.oms.handler.completeorder.CompleteOrderHandlerEJB.a(Unknown Source)
           at com.mslv.oms.handler.completeorder.CompleteOrderHandlerEJB.process(Unknown Source)
           at com.mslv.oms.handler.a.processRequest(Unknown Source)
           at com.mslv.oms.handler.createorder.CreateOrderHandlerEJB.process(Unknown Source)
           at com.mslv.oms.handler.a.processRequest(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.a(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.processRequest(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.processRequest(Unknown Source)
           at oracle.communications.ordermanagement.ws.f.a(Unknown Source)
           at oracle.communications.ordermanagement.ws.a.a(Unknown Source)
           at oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl.createOrder(Unknown Source)
           at sun.reflect.GeneratedMethodAccessor1423.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
           at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
           at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
           at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
           at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
           at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
           at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
           at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
           at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
           at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
      Caused by: java.lang.RuntimeException: XPath function ancestors('parentChildHierarchy') failed. hierarchy[parentChildHierarchy] is not in scope
           ... 72 more
      <Dec 27, 2012 11:35:36 AM GMT+03:00> <Error> <oms> <BEA-000000> <rule.XQueryHelper: Exception in extension function java.lang.RuntimeException: XPath function osmfn:ancestors('parentChildHierarchy') failed.. . File[*module with no systemId* (actual location resolved to [*module with no systemId*])] Line[33] Column[-1]

      net.sf.saxon.trans.XPathException: Exception in extension function java.lang.RuntimeException: XPath function osmfn:ancestors('parentChildHierarchy') failed.
           at net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCall.java:368)
           at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:224)
           at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:89)
           at net.sf.saxon.expr.Literal.iterate(Literal.java:202)
           at net.sf.saxon.expr.FilterExpression.iterate(FilterExpression.java:1058)
           Truncated. see log file for complete stacktrace

      Caused By: java.lang.RuntimeException: XPath function osmfn:ancestors('parentChildHierarchy') failed.
           at oracle.communications.ordermanagement.orchestration.generation.OrchestrationXQueryFunctions.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.OrchestrationXQueryFunctions.ancestors(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           Truncated. see log file for complete stacktrace

      Caused By: java.lang.RuntimeException: XPath function ancestors('parentChildHierarchy') failed. hierarchy[parentChildHierarchy] is not in scope
           at oracle.communications.ordermanagement.orchestration.generation.OrchestrationXQueryFunctions.a(Unknown Source)
           at oracle.communications.ordermanagement.orchestration.generation.OrchestrationXQueryFunctions.ancestors(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           Truncated. see log file for complete stacktrace

      Regards,
      UJ