BAM API

Hi,
BizTalk Server 2013
I'm getting following error when I pass my XLANG messages to a method in the helper class and trying to create XML Document from it:
Inner exception: "Cannot use XLANGMessage.RetrieveAs to convert message part part with type Payments.Schemas.Vendor_Payments_BAM to type System.Xml.XmlDocument."
The error is coming at the following syntax in the helper class:
XmlDocument XmlDocMsg = (XmlDocument)msg[0].RetrieveAs(typeof(XmlDocument));
The error is coming only when there are multiple nodes under the root element. When there is only one segment, it works fine.
The same is working fine in BizTalk Server 2006 (with framework 2.0)
Any help will be greatly appreciated.

It seems like it is not passing the XML validation. Tried to send out the message from ODX using send port with XmlTransmit pipeline, getting following error:
Inner exception: The result set for the XPath expression '/*[local-name()='Vendor_Payments' and namespace-uri()='']/*[local-name()='Payment_Info' and namespace-uri()='']/*[local-name()='Payment_Run_ID' and
namespace-uri()='']' contains more than a single node. 
XML looks good to me with 3 nodes of Payment_Info
1) As your inner exception says that there are multiple nodes being returned with the xpath you are using. Check
whether you are assigning the result to a single node or an array of nodes. In case you are assigning the result to a single node, change it to an array and process accordingly.
<o:p>If you wish to assign the output of the XPath expression to a single node only, make use of below expression. This will extract first record instance using
XPath "position()" function.
'/*[local-name()='Vendor_Payments' and namespace-uri()='']/*[local-name()='Payment_Info' and namespace-uri()=''] and position()=1]/*[local-name()='Payment_Run_ID' and namespace-uri()='']'
2) For the error: Inner exception: "Cannot use XLANGMessage.RetrieveAs to convert message
part part with type Payments.Schemas.Vendor_Payments_BAM to type System.Xml.XmlDocument."
RetrieveAs method exposed by the XLANGPart class is not able to desterilize the content of the message part and creates an instance of the System.Xml.XmlDocument because
it’s not a valid XML returning more than 1 root node.
Rachit

Similar Messages

  • BAM APIs and TPE in BizTalk

    Hi - i have been assigned work related to tracking data using BAM (its like Purchase Order, Sending/receiving Invoice, for Property related work)
    I know TPE is used to track only at Ports level which is not always helpful and if there is looping involved it doesnt work.
    BAM APIs is better way to approach as it can be customisable as per requirement. 
    Is there any real good detailed example of showing  using BAM for tracking # of Received files, # of loop records, tracking within Orchestration, Sent delivery , and lot other stuff.
    Please let me know.
    MBH

    There are few SDK samples available for learning about BAM
    API:
    From BizTalk SDK samples:
    BAM
    API(BizTalk
    Server Sample)
    Instrumenting a Solution: Step-by-Step
    APIUsage
    BAM
    APIfrom
    an Orchestration Expression (BizTalk Server Sample)
    For looping records:
    Capturing BizTalk 2006 BAM Data On Looping Process
    I would also recommend this book,
    Pro BAM in BizTalk Server 2009
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • In BAM, how to get activity ID for the running instance in the orchestration.

    I am trying to add document reference URL to the active instance in the orchestration for the activity which is already started.
    Please let me know how to get such activity ID.
    Thanks
    Jagadeesh 
    Jagadeesh RS

    Are you using TPE to set up the Activity Tracking or BAM API. If you are using TPE then identify what has been set as the Activity Id in the BTT file. If the Message Id is used then use "BTS.InterchangeID" [refer
    http://msdn.microsoft.com/en-us/library/aa562116.aspx] on the received message to get the Activity Id.
    If however you've mapped the Activity Id in BTT to the InstanceId then use
    "Microsoft.XLANGs.Core.Service.RootService.InstanceId"
    to get the activity id.
    Regards.

  • Can somebody explain relation between BAM and TrackingHost

    In My application I have used BAM API to track some business data.
    Is it mandatory to have at lease one tracking host is running to move data between BizTalk Message box database to BAM primary import database?
    Thanks
    Ammu.

    Is it mandatory to have at lease one tracking host is running to move data between BizTalk Message box database to BAM primary import database?--> Yes. There should be at least one tracking host (a BizTalk host which has tracking enabled) to move data
    from message box to BAM Primary Import.
    Check below link
    https://msdn.microsoft.com/en-us/library/cc296633(v=bts.10).aspx
    Hope this helps
    Greetings,HTH
    Naushad Alam
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or
    Mark As Answer
    alamnaushad.wordpress.com

  • BAM Portal issue while implementing BAM tutorial 4

    Hello All,
    I am trying to implement BAM tutorial. I have deployed everything as specified in the tutorial, except for RTA. I am not using RTA.
    When I checked the BAM Portal I can see views and activities over there. But not all fields are having values in it.
    Do anyone have any idea why few fields are blank over here?
    Thanks, Girish R. Patil.

    The reason for fields in a BAM View being empty is because
    They are not assigned any value - Values in BAM are assigned either through TPE mapping OR through BAM API in the orchestration.
    If a BAM Activity is populated using a mixture of BAM API & TPE then it is possible that there are different fields being used for Activity ID and as a result TPE is mapping the same activity using Message ID while the orchestration is using the Instance
    Id to create the activity. In such a scenario TWO activities are being created.
    In your case, it is possible that you've missed some steps in the tutorial where after deploying the Activity (through bm.exe) there may have been instructions on TPE and mapping of the message instance data into the BAM Activity.
    Regards.

  • How to track repeting record data using BAM in biztalk

    Hi All,
      am new bam, How can How to track repeting record data using BAM in biztalk,please find the below input record
    <ns0:Employee xmlns:ns0="http://BizTalk_.Employee.Schemas.emp_In">
      <Emp>
        <id>122</id>
        <sal>222222222</sal>
        <name>.srinu</name>
        <dept>java</dept>
      </Emp>
       <Emp>
        <id>666</id>
        <sal>44444444</sal>
        <name>.srinu</name>
        <dept>java</dept>
      </Emp>
       <Emp>
        <id>333</id>
        <sal>7777</sal>
        <name>.biztalk</name>
        <dept>C#</dept>
      </Emp>
    </ns0:Invoice>
    am tried using TPE but its showing all the 3 rows as NULL  in bam primary import database.
    So please let know how can i achieve above issue.
    Regards,
    srinivas

    Hi Srinivas,
    Using TPE you cannot process repeating records. It doesn’t allow you to loop through your InvoiceDetails (repeating record), hence it shows null in tracked record. This
    is one of the limitations when you use TPE.
    This can be done using BAM API. If you use Orchestration or by writing a custom pipeline component you can use BAM API where you have the flexibility to loop through the
    repeating record and insert each InvoiceDetails node as a record in your BAM activity. BAM API is the only option to track repeating items inside a message as separate activity instances.
    Refer this MSDN article for more info:http://msdn.microsoft.com/en-us/library/aa559527.aspx
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Milestone Duration in BAM indicating negative values

    Hi All,
    We happen to install BAM feature of BizTalk in our current project which has turned out to be the key source of information to all our clients and stakeholders. They have been tracking all the necessary KPI's on a daily basis. So far things have been pretty
    straight and smoothly running but while observing the duration of the responses on BAM (the duration is set in the activity model tracking the difference in start & end time), we happen to see negative values. We see values like -1.92 sec, -2.55 sec which
    will look ridiculous to all our stakeholders. We have been trying to trace as to why such values are appearing in BAM.
     To give a background, we have two application nodes and a single database connection in cluster. We have used BAM API to track the necessary fields & details. We have used Duration which is set in the BAM activity model for specific product. We
    earlier felt probably both application nodes may not be in sync with respect to system timestamp, but that is not the case and in either way seems to not be related. Please let us know if anyone has faced such issue on observing negative values of duration
    on BAM portal. 

    The process milestone is set correctly i.e the start process one is set earlier to end process milestone . The negative values are appearing for few entries and it occurs intermittently during the day. For example if I collect around 100 entries for the
    entire day for a specific activity , 3% of them will have duration set to negative values.
    Like this there are around 5 activities deployed in our live environment and all of them have intermittent occurrences of negative value of time taken in the report.
    This is really puzzling for us to understand how this comes up , yet we are even looking at the approaches suggested by others.

  • SessionID property is showing in promoted property under pipeline

    Hi ,
    We are using BAM API to track the BAM data at receive and send port.
    For some reason we need sessionID value at receive side but unable to find it .However, it is available when using TPE under message property.
    object _SessionID = inmsg.Context.Read("SessionID", "http://schemas.microsoft.com/BizTalk/2003/system-properties");
                        string SessionID = (string)_SessionID;
    it is coming NULL.
    can you pls help in finding the sessionid
    Manish

    Any deployed property will be selectable in the TPE, it has no knowledge of what may or may not appear an any given message.
    If reading MessageID returns null, then...it's most likely a bug in your code ;)

  • Tracking Profile Editor - Continuation with a Call orchestration with Scope

    Hi,
    I am tracking data using Tracking profile editor and trying to use continuation.
    Orchestration2 is being called from Orchestration1 and the data I am tracking from Orchestration1 and Orchestration2 should be in the same row of the Activity table.
    Because of the Scope in Orchestration2, I am not able to have a ContinuationID from Orchestration2.
    Can someone tell me if you are able to track data from Calling and Called orchestrations in a single BAM Activity table row?

    Hi,
    Try one or both of the following:
    Use the BAM API and custom code to track the data.
    Rewrite and simplify the complex orchestrations. For example, use a non-transactional Scope shape instead of the Group shape or wrap a While shape
    in a non-transactional Scope shape.
    Refer the MSDN for details.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Info Needed On BAM Adapters /Webservice APIs

    Hi All,
    Can you please provide me links/documents about configuring BAM Adapters. Also information on BAM Webservice APIs will also be really helpful.
    Thanks,
    Angeline

    Look at the very end of this document:
    http://www.oracle.com/technology/products/integration/bam/10.1.3/htdocs/bam_1013_faq.html#WebServices
    It describes the following:
    BAM webservice inspection - To verify BAM webservices open:
    http://localhost/oraclebam/inspection.wsil.
    And then you can inspect individual data objects as per the WSDL described in this page. These individual end point WSIL gives the webservice end point for the individual BAM dataobjects.
    BAM data object operations - To describe BAM operations open: http://localhost/OracleBAM/Services/DataObject/DataObjectOperations.asmx?wsdl
    BAM data object layout (definitions) - To describe data object layout: http://localhost/OracleBAM/Services/DataObject/DataObjectDefinition.asmx?wsdl

  • ERROR WHILE RUNNING ODI SCENARIO FROM BAM ALERT

    We are using oracle data integrator 11g and have created an ODI Scenario and able to run the scenario from ODI studio client.
    We have done the configuration for BAM-ODI integration as mentioned in http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bam_odi.htm#BABEJIGD
    We have started ODI Agent, soa and bam servers. Created a BAM alert -> select action - Run ODI Scenario -> selected the same scenario.
    Alert ran at scheduled time but failed with following error:
    java.io.IOException : truncated data integrator frame received
    Error Message (if any)
    [2012-08-06T11:24:21.046+05:30] [bam_server1] [WARNING] []
    [oracle.bam.eventengine] [tid: bam-pool-Action-thread-1] [userId:
    OracleSystemUser] [ecid:
    3576f9092ef9497a:-743c430a:138fa7450c3:-8000-00000000000000a8,1:23453] [APP:
    oracle-bam#11.1.1] EventEngine: Error occured while running a ODI Scenario.
    [2012-08-06T11:24:21.250+05:30] [bam_server1] [ERROR] []
    [oracle.bam.eventengine] [tid: bam-pool-Action-thread-1] [userId:
    OracleSystemUser] [ecid:
    3576f9092ef9497a:-743c430a:138fa7450c3:-8000-00000000000000a8,1:23453] [APP:
    oracle-bam#11.1.1] EventEngine: Action exception: EEInstEv2 EEInstAct1 Rule
    Id: 2 exception: java.io.IOException: truncated Data Integrator Frame
    received
    [2012-08-06T11:24:21.250+05:30] [bam_server1] [WARNING] []
    [oracle.bam.eventengine] [tid: bam-pool-Action-thread-1] [userId:
    OracleSystemUser] [ecid:
    3576f9092ef9497a:-743c430a:138fa7450c3:-8000-00000000000000a8,1:23453] [APP:
    oracle-bam#11.1.1] EventEngine: Exception stack trace: [[
    at
    oracle.bam.eventengine.engine.event.action.RunScenario.invokeScenario(RunScena
    rio.java:145)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.runScenario(ActionP
    rocessor.java:891)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.actionHandler(Actio
    nProcessor.java:337)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
    ava:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.bam.system.Delegate$Sink.invoke(Delegate.java:80)
    at oracle.bam.system.Delegate.dynamicInvoke(Delegate.java:186)
    at
    oracle.bam.common.threading.threadpool.ThreadPoolController$PoolQueueItem.proc
    essWorkRequest(ThreadPoolController.java:155)
    at
    oracle.bam.common.threading.threadpool.ThreadPoolController$PoolQueueItem.run(
    ThreadPoolController.java:128)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java
    :886)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908
    at java.lang.Thread.run(Thread.java:619)
    Any help on this is highly appreciated...
    Thanks
    Rajdip Mukherjee

    Hi,
    Forgot to include the ODI classes RunScenario.invokeScenario() is invoking odi scenario using odi sdk api. Please see the below stack trace :-
    java.io.IOException: truncated Data Integrator Frame received
    at
    oracle.odi.sdk.invocation.internal.AgentNetworkCmd.readCmd(AgentNetworkCmd.java:303)
    at
    oracle.odi.sdk.invocation.OdiInvocation.invokeCommand(OdiInvocation.java:176)
    at
    oracle.bam.eventengine.engine.event.action.RunScenario.invokeScenario(RunScenario.java:140)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.runScenario(ActionProcessor.java:891)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.actionHandler(ActionProcessor.java:337)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Thanks
    Rajdip Mukherjee

  • REQD for Fresh BAM Install 11.1.1.3.0 -Data labels missing issue

    Hi
    This information is relevant to anyone who is doing upgrading to 11.1.1.3.0.
    There are 2 options if you encounter the data labels missing on the Active Studio tab :
    (1) Switch to Jrockit
    -Edit setDomainEnv.sh in directory $MW_HOME/user_projects/domains/base_domain/bin
    -Set JAVA_VENDOR variable
    JAVA_VENDOR=Oracle # For JRockit
    JAVA_VENDOR=Sun # For Sun JVM
    You'll see that JAVA_HOME should then point to "$MW_HOME/jrockit_160_17_R28.0.0-679"
    **Jrockit version packaged with the 11.1.1.3.0 install***
    -Start services
    (2) For people who want to use Sun JDK, access support.oracle.com -- look for patch 9553040
    This will provide an upgrade to JDK 1.6.0_20-b03.
    Follow the instruction in the read me file . Refer to the following notes
    - Upgrade the JDK within the Application Server $OH per the instructions in Note 272808.1
    - Upgrade the JDK within the Database $OH per the instructions in Note 418399.1
    Regards
    Payal
    Edited by: PayalS on May 17, 2010 11:07 AM

    Hi,
    I'm having the same problem than you.
    I install the new JDK but now everything work besides BAM.
    That happens with you after the upgrade?
    The error is :
    java.lang.RuntimeException: Invocation target exception.
         at oracle.bam.system.Delegate.dynamicInvoke(Delegate.java:196)
         at oracle.bam.system.threading.LoadObjectDelegate.invoke(LoadObjectDelegate.java:41)
         at oracle.bam.system.threading.SynchedHash.getObject(SynchedHash.java:104)
         at oracle.bam.web.shared.WebPage.userAuthCheck(WebPage.java:1371)
         at oracle.bam.web.shared.WebPage.processRequest(WebPage.java:347)
         at oracle.bam.web.shared.WebPage.processRequest(WebPage.java:316)
         at jsp_servlet._8533.__startpage._jspService(__startpage.java:71)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         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.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bam.web.cache.ClientSideCache.doFilter(ClientSideCache.java:93)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bam.web.filters.GZIPFilter.doFilter(GZIPFilter.java:97)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bam.web.filters.ValidateBrowserSession.doFilter(ValidateBrowserSession.java:212)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bam.web.redirect.Redirect.doFilter(Redirect.java:80)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bam.web.filters.ValidateBrowserSupport.doFilter(ValidateBrowserSupport.java:133)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bam.web.filters.CharsetFixupFilter.doFilter(CharsetFixupFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         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.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.bam.system.Delegate$Sink.invoke(Delegate.java:80)
         at oracle.bam.system.Delegate.dynamicInvoke(Delegate.java:186)
         ... 44 more
    Caused by: oracle.bam.common.remoting.ServiceUnavailableException: BAM-00223: Service interface oracle.bam.adc.common.core.IDataStore is unavailable.
         at oracle.bam.common.remoting.AgentBase.getServiceWrapper(AgentBase.java:190)
         at oracle.bam.adc.api.util.Context.(Context.java:187)
         at oracle.bam.adc.api.util.Context.(Context.java:161)
         at oracle.bam.web.shared.WebPage.createContext(WebPage.java:248)
         ... 50 more
    Caused by: oracle.bam.adc.api.exceptions.ServerUnavailableException: BAM-01261: Cannot connect to the Oracle BAM Server.
         at oracle.bam.common.remoting.ConnectionPoolBase.getLocalService(ConnectionPoolBase.java:954)
         at oracle.bam.common.remoting.ConnectionPoolBase.createProxy(ConnectionPoolBase.java:855)
         at oracle.bam.common.remoting.ConnectionPoolBase.open(ConnectionPoolBase.java:588)
         at oracle.bam.common.remoting.ConnectionPoolBase.open(ConnectionPoolBase.java:77)
         at oracle.bam.common.remoting.AgentBase.getServiceWrapper(AgentBase.java:179)
         ... 53 more
    Thank you
    CD

  • Is this a best practice of BAM implementation?

    Hello everyone:
    Currently we have done an Oracle BAM implementation. To explain briefly our implementation:
    We have an Oracle Database 8.1.7, were all transactions are recorded. We tried using JMS to import the data into data objects in the Oracle BAM respository. We did this by using a database link to a Oracle Database 10G and then through Advanced Queueing. This did not work due to performance issues. The AQ messages were not consumed as fast as they were produced, so there was no real time data.
    Then we developed a Java component to read the table in the Oracle Database 10g and started using batch upserts into the Oracle BAM through the web services API provided. This solved the performance issue mentioned above.
    Currently we are using all the data procesing in the Oracle 10G database through PL/SQL stored procedures, data mining is applied on the transactions and the summary information is collected intro several tables. This tables are updated and then imported into the Oracle BAM data objects.
    We have noticed, that Oracle BAM has some performance issues when trying to view a report based on a data object with large number of records. Is this really an issue on Oracle BAM? The average number of transactions is 200,000 records. How can we solve this issue?
    Another issue we want to expose is. When viewing reports through the browser, and the browser hangs or suddenly closes. Sometimes the Active Data Cached Feed window hangs or doesn´t close. When this happens, an we try to open another report, the report never displays. Is this a browser side issue or server side issue?
    The Oracle BAm is installed on a Blade with 2X2 Xeon Procesors (4 cpus), 16GB RAM and Windows Server 2003 Enterprise Ed. with SP2.
    How can we get a tuning guide based on best practices?
    Where can we get suggestions about our implementation?
    Thanks to anyone who can help us.

    Even i am facing similar issue. Any pointers would be appreciated.
    Thanks.

  • Oracle BAM error BAM-01262

    Hi,
    I installed a WebCenter/SOA/BAM server, and the install is all ok. The BAM Server and SOA Server is all ok too.
    I use the version 11.1.1.3.
    Well..., when the user create a dashboard, it's all ok, but the automatic refresh doesn't work.
    I see the log file and I cut this text above:
    [2010-08-27T12:23:08.959-03:00] [bam_server1] [ERROR] [] [oracle.bam.reportcache] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: dba_marcos] [ecid: 0000Ieo9IeqDsXs5ojt1iY1CTbA80002AS,1:20420] [APP: oracle-bam#11.1.1] [dcid: 4e2baeab78ae1645:14238b0b:12aaeb09415:-7ff6-0000000000003958] ReportCache: ReportCacheServer.OpenViewSet: ADC exception=*BAM-01262: Active Data Cache Server exception in openViewset().*
    at oracle.bam.adc.kernel.util.Util.getCacheException(Util.java:101)
    at oracle.bam.adc.kernel.util.Util.getCacheException(Util.java:154)
    at oracle.bam.adc.kernel.util.Util.getCacheException(Util.java:172)
    at oracle.bam.adc.kernel.server.DataStoreServer.openViewset(DataStoreServer.java:1117)
    at oracle.bam.adc.ejb.BamAdcServerBean.openViewset(BamAdcServerBean.java:898)
    at sun.reflect.GeneratedMethodAccessor438.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
    at oracle.bam.adc.ejb.BamAdcServerBean.interceptor(BamAdcServerBean.java:267)
    at sun.reflect.GeneratedMethodAccessor402.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
    at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:88)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
    at oracle.security.jps.wls.JpsWeblogicEjbInterceptor.runJaasMode(JpsWeblogicEjbInterceptor.java:61)
    at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:106)
    at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:106)
    at sun.reflect.GeneratedMethodAccessor401.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy184.openViewset(Unknown Source)
    at oracle.bam.adc.ejb.BamAdcServerBean_wf34ei_BamAdcServerRemoteImpl.openViewset(BamAdcServerBean_wf34ei_BamAdcServerRemoteImpl.java:1561)
    at oracle.bam.adc.api.client.BamAdcClient.openViewset(BamAdcClient.java:969)
    at sun.reflect.GeneratedMethodAccessor437.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.bam.common.remoting.BamEjbProxy.invoke(BamEjbProxy.java:209)
    at $Proxy183.openViewset(Unknown Source)
    at oracle.bam.adc.api.viewsets.Viewset.open(Viewset.java:75)
    at oracle.bam.reportcache.data.DataStoreProxy.openViewSet(DataStoreProxy.java:98)
    at oracle.bam.reportcache.engine.ViewSet.openViewSet(ViewSet.java:1519)
    at oracle.bam.reportcache.engine.ViewSet.openSharedViewSet(ViewSet.java:547)
    at oracle.bam.reportcache.engine.ViewSet.open(ViewSet.java:531)
    at oracle.bam.middleware.reportcache.viewsetbuilders.ViewSetBuilderBase.open(ViewSetBuilderBase.java:74)
    at oracle.bam.middleware.reportcache.viewsetbuilders.SingleRecordSetViewSetBuilder.build(SingleRecordSetViewSetBuilder.java:77)
    at oracle.bam.reportcache.engine.ViewSet.<init>(ViewSet.java:320)
    at oracle.bam.reportcache.engine.CacheEngine.openViewSet(CacheEngine.java:248)
    at oracle.bam.reportcache.server.ReportCacheServer.openViewSet(ReportCacheServer.java:108)
    at oracle.bam.reportcache.ejb.ReportCacheServerBean.openViewSet(ReportCacheServerBean.java:244)
    at sun.reflect.GeneratedMethodAccessor511.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
    at oracle.bam.reportcache.ejb.ReportCacheServerBean.interceptor(ReportCacheServerBean.java:192)
    at sun.reflect.GeneratedMethodAccessor463.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
    at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:88)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
    at oracle.security.jps.wls.JpsWeblogicEjbInterceptor.runJaasMode(JpsWeblogicEjbInterceptor.java:61)
    at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:106)
    at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:106)
    at sun.reflect.GeneratedMethodAccessor401.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy194.openViewSet(Unknown Source)
    at oracle.bam.reportcache.ejb.ReportCacheServerBean_vm1wm8_ReportCacheServerRemoteImpl.openViewSet(ReportCacheServerBean_vm1wm8_ReportCacheServerRemoteImpl
    .java:930)
    at sun.reflect.GeneratedMethodAccessor510.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.bam.common.remoting.BamEjbProxy.invoke(BamEjbProxy.java:209)
    at $Proxy193.openViewSet(Unknown Source)
    at oracle.bam.web.reportserver.data.DataManager.openViewSet(DataManager.java:218)
    at oracle.bam.web.reportserver.views.kpi.KPI.openKPIViewSet(KPI.java:1567)
    at oracle.bam.web.reportserver.views.kpi.KPI.getSnapshot(KPI.java:1594)
    at oracle.bam.web.reportserver.views.kpi.KPI.initialize(KPI.java:267)
    at oracle.bam.web.reportserver.views.kpi.KPI.initializeForGetAllViews(KPI.java:452)
    at oracle.bam.web.reportserver.views.ViewStreamer.sendViewToClient(ViewStreamer.java:216)
    at oracle.bam.web.reportserver.views.ViewStreamerWork.run(ViewStreamerWork.java:75)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    The Oracle BAM Active Data Cache (Oracle BAM ADC) is active and work well.
    I search the error in the web, but I don't found a solution.
    Any idea?
    Thank you in advance,
    Braga

    This problem was solved when I installed a new product version.

  • SOA 11g: Intergation with BAM 11g failed with ThreadPool has stuck threads

    Hi,
    I have installed BAM and SOA server on local host. Now while integrating BAM with BAMAdapter it's going into long running state and finally failing with below error.
    <Notice> <Diagnostics> <mars.as.local> <soa_server1> <[ACTIVE] ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <c82d73b0a2a7776f:37a0afd7:130d1278d97:-8000-0000000000028a7f> <1309264042380> <BEA-320068> <Watch 'StuckThread' with severity 'Notice' on server 'soa_server1' has triggered at Jun 28, 2011 1:27:22 PM BST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-000337') OR (MSGID = 'BEA-000337'))
    WatchData: DATE = Jun 28, 2011 1:27:22 PM BST SERVER = soa_server1 MESSAGE = *[STUCK] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "638" seconds working on the request "weblogic.servlet.internal.ServletRequestImpl@16e92176[*
    *POST /soa-infra/services/default/BAMInsert/bpelprocess1_client_ep HTTP/1.1*
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10h
    SOAPAction: "process"
    Accept-Encoding: gzip, x-gzip, compress, x-compress
    ECID-Context: 1.c82d73b0a2a7776f:2ced6156:130d1186ef6:-8000-00000000000046b2;kYjE0ZJOoOTLkKPOoLRKlSODoITT_G
    Content-type: text/xml; charset=UTF-8
    Content-Length: 270
    *]", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:*
    *Thread-139 "[STUCK] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'" <alive, suspended, sleeping, priority=1, DAEMON> {*
    *java.lang.Thread.sleep(Thread.java:???)*
    oracle.bam.common.remoting.BamEjbClient.getSession(BamEjbClient.java:973)
    oracle.bam.common.remoting.BamEjbClient.getADCSession(BamEjbClient.java:350)
    oracle.bam.adc.api.util.Context.<init>(Context.java:270)
    oracle.bam.adapter.adc.CachedConnection.<init>(CachedConnection.java:134)
    oracle.bam.adapter.adc.ADCManagedConnectionFactory.getCachedConnection(ADCManagedConnectionFactory.java:490)
    ^-- Holding lock: java.lang.String@13416588[fat lock]
    What could be root cause of this? Can anyone please help to find the solution?
    Even though both servers on same host why BAM connection is getting to much time and Putting server in warning state like :
    +[STUCK] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'+
    *Do i need to modify any config file at Admin or BAM level? if Yes, what parameter Do i need to change?*
    Please guide.
    Thanks,
    Sagar.

    Further Updates on this :
    I further debugged and found out few more things. This might help.
    In Weblogic Admin console Home > Summary of Deployments >oracle-bam(11.1.1)
    MDB application oracle-bam is NOT connected to messaging system with below error.
    EJBs
    MessageDispatcherBean - Error java.lang.IllegalArgumentException: Getting Deployment configuration...
    connectionFactoryJNDIName - Red Cross with warning
    destinationJNDIName - Red Cross with warning
    resourceAdapterJNDIName - Red Cross with warning
    Modules
    Also please check out another similar thread and please update.
    BAMAdapter Issue : java.rmi.ConnectException: Destination unreachable;
    Thanks,
    Sagar

Maybe you are looking for