Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

Jump to content

Issue with sap activity in BW6


Ajay Vikas

Recommended Posts

I have created a sample project with a process which is as follows:

timer--> invoke RFC BAPI in SAP-->Log

 

I have hard coded the input parameters in the "invoke RFC BAPI in sap" activity. When i run the project, i notice that the response appears in the output job data tab of the "Invoke RFC BAPI in SAP" activity. So i know it is working fine. But it fails to reach the LOG activity. I have mapped the response to the LOG activity. Below is the log excerpt:

==========================================================================================================

17:46:37.375 INFO [main] com.tibco.thor.frwk - TIBCO ActiveMatrix BusinessWorks version 6.3.1, hotfix 1, build V19, 2016-3-17

@BWEclipseAppNode> 17:46:44.344 INFO [main] com.tibco.thor.frwk.Deployer - Started by BusinessStudio.

Apr 28, 2016 5:46:48 PM org.springframework.beans.TypeConverterDelegate findDefaultEditor

WARNING: PropertyEditor [com.sun.beans.editors.EnumEditor] found through deprecated global PropertyEditorManager fallback - consider using a more isolated form of registration, e.g. on the BeanWrapper/BeanFactory!

Apr 28, 2016 5:46:48 PM org.springframework.beans.TypeConverterDelegate findDefaultEditor

WARNING: PropertyEditor [com.sun.beans.editors.EnumEditor] found through deprecated global PropertyEditorManager fallback - consider using a more isolated form of registration, e.g. on the BeanWrapper/BeanFactory!

Apr 28, 2016 5:46:48 PM org.springframework.beans.TypeConverterDelegate findDefaultEditor

WARNING: PropertyEditor [com.sun.beans.editors.EnumEditor] found through deprecated global PropertyEditorManager fallback - consider using a more isolated form of registration, e.g. on the BeanWrapper/BeanFactory!

Apr 28, 2016 5:46:48 PM org.springframework.beans.TypeConverterDelegate findDefaultEditor

WARNING: PropertyEditor [com.sun.beans.editors.EnumEditor] found through deprecated global PropertyEditorManager fallback - consider using a more isolated form of registration, e.g. on the BeanWrapper/BeanFactory!

Apr 28, 2016 5:46:48 PM org.springframework.beans.TypeConverterDelegate findDefaultEditor

WARNING: PropertyEditor [com.sun.beans.editors.EnumEditor] found through deprecated global PropertyEditorManager fallback - consider using a more isolated form of registration, e.g. on the BeanWrapper/BeanFactory!

17:46:49.313 INFO [main] com.tibco.bw.frwk.engine.BWEngine - TIBCO-BW-FRWK-300002: BW Engine [Main] started successfully.

17:46:49.472 INFO [Framework Event Dispatcher: Equinox Container: 2061b517-260d-0016-16dc-9a0be77338c1] com.tibco.thor.frwk.Deployer - TIBCO-THOR-FRWK-300001: Started OSGi Framework of AppNode [bWEclipseAppNode] in AppSpace [bWEclipseAppSpace] of Domain [bWEclipseDomain]

17:46:49.613 INFO [Framework Event Dispatcher: Equinox Container: 2061b517-260d-0016-16dc-9a0be77338c1] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300018: Deploying BW Application [bWTESTSAP:1.0].

17:46:49.713 INFO [Thread-37] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300019: BW Application [bWTESTSAP:1.0] is impaired.

17:46:49.724 INFO [Framework Event Dispatcher: Equinox Container: 2061b517-260d-0016-16dc-9a0be77338c1] com.tibco.thor.frwk.Application - Started by BusinessStudio, ignoring .enabled settings.

17:46:53.833 INFO [Job_Executor0] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300021: All Application dependencies are resolved for Application [bWTESTSAP:1.0]

17:47:02.174 INFO [Thread-42] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300019: BW Application [bWTESTSAP:1.0] is impaired.

17:47:24.955 INFO [Thread-37] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300006: Started BW Application [bWTESTSAP:1.0]

17:48:06.357 ERROR [bwEngThread:In-Memory Process Worker-2] com.tibco.bw.core - TIBCO-BW-CORE-500050: The BW process [bwtestsap.module.Process] instance faulted, JobId [bw0a100], ProcessInstanceId [bw0a100], ParentProcessInstanceId [-], Module [bWTESTSAP.module:1.0.0.qualifier], Application [bWTESTSAP:1.0].

TIBCO-BW-CORE-500054: Activity [Log] XSLT transformation error.

com.tibco.pvm.dataexch.xml.util.exceptions.PmxException: PVM-XML-106027: Transformation failed for XSLT input '

http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.tibco.com/xmlns/sap/SAPConnectionResource/ZBAPI_GET_PAYSLIP" version="2.0">'

java.lang.ClassCastException: org.genxdm.bridgekit.xs.constraint.FacetMaxLengthImpl cannot be cast to com.tibco.xml.schema.SmTypeFacet

...

com.tibco.pvm.dataexch.xml.util.exceptions.PmxException: PVM-XML-106027: Transformation failed for XSLT input '

http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.tibco.com/xmlns/sap/SAPConnectionResource/ZBAPI_GET_PAYSLIP" version="2.0">'

at com.tibco.pvm.infra.dataexch.xml.genxdm.expr.IpmxGenxXsltExprImpl.eval(IpmxGenxXsltExprImpl.java:65)

at com.tibco.bx.core.behaviors.BxExpressionHelper.evalAsSubject(BxExpressionHelper.java:105)

at com.tibco.bx.core.behaviors.BxExpressionHelper.evaluate(BxExpressionHelper.java:120)

at com.tibco.bx.core.behaviors.BxExpressionHelper.evaluateAndSetInputBindings(BxExpressionHelper.java:194)

at com.tibco.bx.core.behaviors.activity.BxExtensionBehavior.evaluateInputBindings(BxExtensionBehavior.java:111)

at com.tibco.bx.core.behaviors.activity.BxActivityBaseBehavior.doEnter(BxActivityBaseBehavior.java:571)

at com.tibco.bx.core.behaviors.activity.BxActivityBaseBehavior.enter(BxActivityBaseBehavior.java:467)

at com.tibco.bx.core.behaviors.activity.BxActivityBaseBehavior.enter(BxActivityBaseBehavior.java:1)

at com.tibco.pvm.infra.api.impl.util.director.IpmEventDirectorBase.handleModelEvent(IpmEventDirectorBase.java:192)

at com.tibco.pvm.im.rt.xm.util.work.ImxEventDirector.invokeModelEvent(ImxEventDirector.java:30)

at com.tibco.pvm.im.rt.xm.util.work.ImxProcessWork.invokeModelEvent(ImxProcessWork.java:125)

at com.tibco.pvm.im.rt.xm.ImxInstControl.invokeModelEvent(ImxInstControl.java:145)

at com.tibco.bx.core.behaviors.link.BxLinkBehavior.invokeEnterOnSuccessors(BxLinkBehavior.java:418)

at com.tibco.bx.core.behaviors.link.BxLinkBehavior.eval(BxLinkBehavior.java:232)

at com.tibco.bx.core.behaviors.link.BxLinkBehavior.enter(BxLinkBehavior.java:73)

at com.tibco.bx.core.behaviors.link.BxLinkBehavior.enter(BxLinkBehavior.java:1)

at com.tibco.pvm.infra.api.impl.util.director.IpmEventDirectorBase.handleModelEvent(IpmEventDirectorBase.java:192)

at com.tibco.pvm.im.rt.xm.util.work.ImxEventDirector.invokeModelEvent(ImxEventDirector.java:30)

at com.tibco.pvm.im.rt.xm.util.work.ImxProcessWork.invokeModelEvent(ImxProcessWork.java:125)

at com.tibco.pvm.im.rt.xm.ImxInstControl.invokeModelEvent(ImxInstControl.java:145)

at com.tibco.bx.core.behaviors.activity.BxActivityBaseBehavior.invokeEnterOnSuccessors(BxActivityBaseBehavior.java:3078)

at com.tibco.bx.core.behaviors.activity.BxActivityBaseBehavior.handleStateChange(BxActivityBaseBehavior.java:1669)

at com.tibco.bx.core.behaviors.activity.BxActivityBaseBehavior.handleModelEvent(BxActivityBaseBehavior.java:1252)

at com.tibco.bx.core.behaviors.activity.BxActivityBaseBehavior.handleModelEvent(BxActivityBaseBehavior.java:1)

at com.tibco.pvm.infra.api.impl.util.director.IpmEventDirectorBase.handleModelEvent(IpmEventDirectorBase.java:204)

at com.tibco.pvm.infra.api.impl.util.director.IpmEventDirectorBase.handleEvent(IpmEventDirectorBase.java:111)

at com.tibco.pvm.infra.support.work.impl.WorkItemAbstract.execute(WorkItemAbstract.java:177)

at com.tibco.pvm.im.rt.xm.util.work.ImxSTWorkRunnable.doWorkBlock(ImxSTWorkRunnable.java:170)

at com.tibco.pvm.infra.services.engine.impl.STWorkRunnable.run(STWorkRunnable.java:50)

at com.tibco.pvm.im.rt.xm.util.work.ImxSTWorkRunnable.run(ImxSTWorkRunnable.java:62)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.ClassCastException: org.genxdm.bridgekit.xs.constraint.FacetMaxLengthImpl cannot be cast to com.tibco.xml.schema.SmTypeFacet

at com.tibco.xml.validation.model.separate.SeparateVmType.(SeparateVmType.java:46)

at com.tibco.xml.validation.model.separate.SeparateVmTypeCompiler.compile(SeparateVmTypeCompiler.java:12)

at com.tibco.xml.validation.impl.LeafValidator.newTextbookValidator(LeafValidator.java:930)

at com.tibco.xml.validation.impl.LeafValidator.getLeafValidator(LeafValidator.java:912)

at com.tibco.genxdm.bridge.xinode.smadapters.gxml2txml.Gx2TxSmTypeAdapter.getValidator(Gx2TxSmTypeAdapter.java:303)

at com.tibco.genxdm.bridge.xinode.smadapters.gxml2txml.Gx2TxSmTypeAdapter.validate(Gx2TxSmTypeAdapter.java:274)

at com.tibco.xml.datamodel.nodes.h.getTypedValue(XiParentNode.java:770)

at com.tibco.xml.datamodel.nodes.h.getTypedValue(XiParentNode.java:847)

at com.tibco.xml.datamodel.nodes.h.getTypedValue(XiParentNode.java:841)

at com.tibco.xml.datamodel.nodes.h.getTypedValue(XiParentNode.java:841)

at com.tibco.genxdm.bridge.xinode.typed.XiTypedModel.getValue(XiTypedModel.java:133)

at com.tibco.genxdm.bridge.xinode.typed.XiTypedModel.getValue(XiTypedModel.java:1)

at org.genxdm.processor.xpath.v20.widget.XSimpleValueWidget.append(XSimpleValueWidget.java:247)

at org.genxdm.processor.xpath.v20.widget.XSimpleValueWidget.typedValue(XSimpleValueWidget.java:219)

at com.tibco.genxdm.processor.xslt.exprimpl.TxSimpleContentHelper.constructSimpleContent(TxSimpleContentHelper.java:79)

at com.tibco.genxdm.processor.xslt.exprimpl.TxValueOfExpr.stream(TxValueOfExpr.java:29)

at com.tibco.genxdm.processor.xslt.exprimpl.TxLiteralResultElementExpr.stream(TxLiteralResultElementExpr.java:93)

at com.tibco.genxdm.processor.xslt.exprimpl.TxLiteralResultElementExpr.stream(TxLiteralResultElementExpr.java:93)

at c

Link to comment
Share on other sites

Adding the sample code i used.

java.lang.ClassCastException: org.genxdm.bridgekit.xs.constraint.FacetMaxLengthImpl cannot be cast to com.tibco.xml.schema.SmTypeFacet

 

The above part of the log made me think that it could be an issue with the length. Is there an option to configure the data length in LOG activity

Link to comment
Share on other sites

  • 3 years later...
×
×
  • Create New...