Get a Hashtable key given a value

hi,
can anyone tell me how I get a the key of Hashtable value given the value. I cant see anything in the api, and having been trying to figure this out for hours.
Hashtable numbers = new Hashtable();
numbers.put("one", new Integer(1));
numbers.put("two", new Integer(2));
numbers.put("three", new Integer(3));
if say I had value Integer 2, how can I find the key of this if I didn't know the key.

I prefer HashMaps. You have to look for it yourself.import java.util.*;
public class Test3 {
  public static void main(String[] args) {
    String[] data = {"Zero","One","Two","Three","Four","Five","Six"};
    HashMap hm = new HashMap();
    for (int i=0; i<data.length; i++) hm.put(data, new Integer(i));
Random rand = new Random();
Set keys = hm.keySet();
for (int i=0; i<10; i++) {
Integer value = new Integer(rand.nextInt(data.length));
System.out.println("Looking for "+value);
for (Iterator iter=keys.iterator(); iter.hasNext();) {
Object key = iter.next();
if (value.equals(hm.get(key))) {
System.out.println(" Found key '"+key+"' with value '"+value+"'");
}You might think about a reverse hashmap or else letting us know what you are trying to do.

Similar Messages

  • Why i can't get the hashtable value printed?

    hello all
    i have simple hashtable i can get the keys but i cant get the values
    why?
    <%
    String event = request.getParameter("eventFrom") ;
    event = (event != null ? event : "");
    if(event.equalsIgnoreCase("result")){
    java.util.Hashtable myHashtbl = new java.util.Hashtable(request.getParameterMap());
    if(!myHashtbl.isEmpty()){
    Enumeration keysEnum = myHashtbl.keys();
    while(keysEnum.hasMoreElements()){
    String keyName = (String)keysEnum.nextElement();
    String keyValue = (String)myHashtbl.get(keyName.toString());
    out.println("KeyName: "+keyName+"<br>");
    out.println("ValueName: "+keyValue+"<br>");
    }else{
    %>
    <html>
    <body>
    <form name="test" id="test" action="<%= request.getRequestURI() %>" method="get" >
    <input type="hidden" name="eventFrom" value="result" >
    <input type="hidden" name="<%="this_is_key_1" %>" value="<%= "4444444" %>" />
    <input type="hidden" name="<%="this_is_key_2" %>" value="<%= "2424"%>" />
    <input type="submit" name="okButton" id="okButton" class="button" style="width:80px;" value="Submit" />
    </form>
    </body>
    </html>

    The object returned is a Map because that is exactly what it is - a mapping of request parameter to their values.
    Take a look at the API for [url = http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html]Servlet Request
    You will see that getParameterMap() returns a Map
    The keys in this map are of type String
    The values in this map are of type String[] (ie an array of Strings)
    The reason it is an array is that you can send multiple parameters with the same name in the request eg test.jsp?a=1&a=2&b=3 and have two values for "a"
    Things I think are wrong in this code
    1 - you are casting it to Hashtable. Ok, it might work, but it is not guarunteed. The API says it returns a Map, so you should use a Map.
    2 - you are casting the value to a String, when it is String[]. That would be a runtime ClassCastException
    Here is my version of what I think it should be in scriptlet code
    <%@ page import="java.util.*" %>
    <%
    Map parameterMap = request.getParameterMap();
    for(Iterator it = parameterMap.entrySet().iterator(); it.hasNext(); ){
      Map.Entry entry = (Map.Entry)it.next();
      String keyName = (String)entry.getKey();
      String[] values = (String[])entry.getValue();
      out.println("KeyName: "+keyName+"<br>");
      out.println("Value: "+Arrays.asList(values) +"<br>");
    %>And because I like to promote use of JSTL, heres a JSTL version:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    Parameters:
    <table>
    <c:forEach var="p" items="${paramValues}">
      <tr><td><c:out value="${p.key}"/></td>
      <td>
        <c:forEach var="val" items="${p.value}" varStatus="status">
          <c:out value="${val}"/>
          <c:if test="${not status.last}">,</c:if>
        </c:forEach>
      </td></tr>
    </c:forEach>
    </table>Cheers,
    evnafets

  • Is any way to get keys according to values in collection?

    suppose,
    three key has same value,and i want to get the these key in some array or some collection class when i have passed value of it. ( in jdk 1.4)
    Message was edited by:
    [email protected]

    Hello,
    i do not have answer to your question. But i found in this an other discussion in this forum : "FM for VK13 to get condition value of a material ?".*
    The question was :
    "Hi All,
    I would like to know if there are any FM that retrieve condition values similar to transaction:VK13 based on access sequence.What I mean by access sequence is if there are no records maintained for the first key combination then it should search for the next key combination until a condition value exist.
    I have all the mandatory information like VKORG,VTWEG,MATNR,VKGRP..etc similar to VK3
    for all the key combinations of VK13.
    Thanks,
    Neeth"
    The answer of Christian WOLF was :
    "Hi Neeth!
    Have a look at FM CONDITION_RECORD_READ. Don't fill PI_KOTABNR, then whole access sequence is searched (otherwise just one step of the access).
    To fill KOMK and KOMP structures, you can get help from FM WV_KOMK_FILL_V, WV_KOMP_FILL_V (sales) or ME_FILL_KOMK_PO, ME_FILL_KOMP_PO (purchasing).
    Regards,
    Christian"
    Is it helping you ?
    Cordialement,
    Chaouki AKIR.

  • Struts - example of iterate using a hashtable (key,value)

    I am trying to create a dynamic menu system and each menu group
    is storied within a single hashmap with the name of the menu as the key (e.g. "mainmenu", "adminmenu"). I am having problems understanding the documentation on how to pass the key to select the
    right entry within the hashmap. I have read the following but find
    it confusing. Could someone provide a detailed example?
    http://jakarta.apache.org/struts/struts-logic.html#iterate

    Here's some code to show you what I am doing.
    I will start out with how I am creating the List and the HashMap
        menuList = new ArrayList();
        sqlStatement = "select * from menu where admin = 'Y' ";
        // gets the menu items from the database and builds the menuList
        this.buildMenu( (DBResultSet)db.executeSQL( sqlStatement, args ) );
        // puts the menuList into a HashMap with a key of adminmenu
        //  NOTE: the menuList is actually a collection (list) of beans
        menuMap.setItem ("adminmenu", menuList );
        ...Here's my bean that stores I use to store the HashMap (menuMap).
    import java.util.*;
    public class MenuBO extends BaseBusinessObject
      private HashMap menuMap;
      public MenuBO()
        menuMap = new HashMap();
      public void setItem ( String menuType, List menuList )
        menuMap.put ( menuType, menuList);
      public List getItem( String menuType )
        return  (List)this.menuMap.get( menuType ) ;
      public HashMap getMenuMap ()
        return menuMap;
      public void removeItem ( String menuType)
        menuMap.remove( menuType);
    }And here's my iterate which is not working. I want to single out the value that has a key of "adminmenu" and process that list of menu elements. This is easy to do with scriptlets but I am spending many hours trying to figure out Struts documentation - they need some real world examples if they want Struts to catch on...
    <jsp:useBean id="menuMap" scope="session"
              class="com.benchdogs.webapp.beans.MenuBO"/>
            <logic:iterate id="mapEntry" name="menuMap" property="menuMap">
                <bean:write name="mapEntry" property="key"/>
            </logic:iterate>This example loops through the hashmap and displays the keys. I want to be able to process a specific value based on the key. The value is a List so I would need to do another iterate statement within the master iterate.

  • Trading partner agreement not found for the given input values

    Hi,
    I am working on EDI X12 over generic exchange outbound.
    In enqueue script:
    replyToMsgID =
    from =TEE
    to =RF
    actionName =BASFEDI841
    doctypeName =841
    doctypeRevision =4010
    msgType =1
    payload =RF_841_4010_1_12.xml
    attachment=
    I am getting the Trading partner agreement not found.
    B2B log:
    ***** REQUEST MESSAGE *****
    Exchange Protocol: Generic Version 1.0
    Transport Protocol: FTP
    Unique Message ID: TEE_2009Mar01_15_37_29_170.dat
    Trading Partner: RF
    Message Signed: No
    Payload encrypted: No
    Information incomplete
    2009.03.01 at 15:37:29:477: Thread-20: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processOutgoingMessage Exit
    2009.03.01 at 15:37:29:477: Thread-20: B2B - (DEBUG) DBContext commit: Enter
    2009.03.01 at 15:37:29:477: Thread-20: B2B - (DEBUG) DBContext commit: Leave
    2009.03.01 at 15:37:29:478: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:onMessage Exit
    2009.03.01 at 15:37:32:910: Thread-21: B2B - (DEBUG)
    Protocol = FTP
    Version = 1.0
    Transport Header
    filename:TEE_2009Mar01_15_37_29_170.dat
    filesize:7787
    file_ext:dat
    fullpath://users/dab2b01/RF841/TEE_2009Mar01_15_37_29_170.dat
    timestamp:1970-01-01T00:00:00.000-00:00
    2009.03.01 at 15:37:32:973: Thread-21: B2B - (DEBUG) DBContext beginTransaction: Enter
    2009.03.01 at 15:37:32:974: Thread-21: B2B - (DEBUG) DBContext beginTransaction: Transaction.begin()
    2009.03.01 at 15:37:32:974: Thread-21: B2B - (DEBUG) DBContext beginTransaction: Leave
    2009.03.01 at 15:37:32:974: Thread-21: B2B - (DEBUG) InterfaceListener:onMessage - Invoke inbound callout - null - null
    2009.03.01 at 15:37:32:975: Thread-21: B2B - (DEBUG) InterfaceListenersyncAckEBMSchecking header names
    2009.03.01 at 15:37:32:975: Thread-21: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertNativeEvtTblRow(2 params) Enter
    2009.03.01 at 15:37:32:998: Thread-21: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertNativeEvtTblRow(2 params) Exit
    2009.03.01 at 15:37:32:999: Thread-21: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.InterfaceListener:onMessage sendEventtrue
    2009.03.01 at 15:37:33:005: Thread-21: B2B - (DEBUG) DBContext commit: Enter
    2009.03.01 at 15:37:33:011: Thread-21: B2B - (DEBUG) DBContext commit: Transaction.commit()
    2009.03.01 at 15:37:33:011: Thread-21: B2B - (DEBUG) DBContext commit: Leave
    2009.03.01 at 15:37:33:012: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:onMessage Enter
    2009.03.01 at 15:37:33:013: Thread-20: B2B - (DEBUG) DBContext beginTransaction: Enter
    2009.03.01 at 15:37:33:013: Thread-20: B2B - (DEBUG) DBContext beginTransaction: Transaction.begin()
    2009.03.01 at 15:37:33:013: Thread-20: B2B - (DEBUG) DBContext beginTransaction: Leave
    2009.03.01 at 15:37:33:014: Thread-20: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processEvents Enter
    2009.03.01 at 15:37:33:014: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processEvents begin transaction
    2009.03.01 at 15:37:33:015: Thread-20: B2B - (DEBUG) DBContext beginTransaction: Enter
    2009.03.01 at 15:37:33:015: Thread-20: B2B - (DEBUG) DBContext beginTransaction: Leave
    2009.03.01 at 15:37:33:015: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleMessageEvent Enter
    2009.03.01 at 15:37:33:015: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:incomingContinueProcess Enter
    2009.03.01 at 15:37:33:015: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:getWireMessage Enter
    2009.03.01 at 15:37:33:019: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:getWireMessage Exit
    2009.03.01 at 15:37:33:020: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:formTransportMessage Enter
    2009.03.01 at 15:37:33:027: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:formTransportMessage Exit
    2009.03.01 at 15:37:33:028: Thread-20: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage Enter
    2009.03.01 at 15:37:33:042: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage Identify Business Protocol
    2009.03.01 at 15:37:33:042: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage Do Unpack using the BP specific package class
    2009.03.01 at 15:37:33:043: Thread-20: B2B - (DEBUG) MimePackaging:unpack:Enter
    2009.03.01 at 15:37:33:043: Thread-20: B2B - (DEBUG) MimePackaging:doUnpack:Enter
    2009.03.01 at 15:37:33:044: Thread-20: B2B - (DEBUG) MimePackaging:unpackNonMimeMessage:Enter
    2009.03.01 at 15:37:33:044: Thread-20: B2B - (DEBUG) MimePackaging:unpackNonMimeMessage:encoding = UTF-8
    2009.03.01 at 15:37:33:045: Thread-20: B2B - (DEBUG) MimePackaging:unpackNonMimeMessage:oracle.tip.adapter.b2b.packaging.Component@8a2023
    2009.03.01 at 15:37:33:045: Thread-20: B2B - (DEBUG) MimePackaging:unpackNonMimeMessage:Exit
    2009.03.01 at 15:37:33:046: Thread-20: B2B - (DEBUG) MimePackaging:unpack:Exit
    2009.03.01 at 15:37:33:046: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage Decode the Incoming Message into B2B Message
    2009.03.01 at 15:37:33:046: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:decodeIncomingMessage Enter
    2009.03.01 at 15:37:33:046: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:decodeIncomingMessage Number of Components = 1
    2009.03.01 at 15:37:33:047: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:decodeIncomingMessage Transport Protocol = {FTP}
    2009.03.01 at 15:37:33:047: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:decodeIncomingMessage filename = TEE_2009Mar01_15_37_29_170.dat
    2009.03.01 at 15:37:33:048: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:decodeIncomingMessage FILE_FORMAT = FROM_PARTY - TEE
    2009.03.01 at 15:37:33:048: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:decodeIncomingMessage File TP Host name = TEE
    2009.03.01 at 15:37:33:048: Thread-20: B2B - (DEBUG) calling setInitiatingPartyId() changing from null to TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:048: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:decodeIncomingMessage fromParty = TEE
    2009.03.01 at 15:37:33:048: Thread-20: B2B - (DEBUG) calling setFromPartyId() changing from null to TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:049: Thread-20: B2B - (DEBUG) calling setToPartyId() changing from null to TPName: null Type: null Value: null
    2009.03.01 at 15:37:33:049: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:decodeIncomingMessage security info NULL
    2009.03.01 at 15:37:33:056: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:decodeIncomingMessage Exit
    2009.03.01 at 15:37:33:056: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processHubMessage Enter
    2009.03.01 at 15:37:33:056: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processHubMessage toTP null
    2009.03.01 at 15:37:33:057: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processHubMessage hubUrl null
    2009.03.01 at 15:37:33:057: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processHubMessage Exit
    2009.03.01 at 15:37:33:057: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage ProtocolCollabId = null
    2009.03.01 at 15:37:33:057: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage CollaborationName null
    2009.03.01 at 15:37:33:057: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:checkDuplicate Enter
    2009.03.01 at 15:37:33:058: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:checkDuplicate check non-RosettaNet Message
    2009.03.01 at 15:37:33:060: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:checkDuplicate Exit
    2009.03.01 at 15:37:33:060: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage Protocol Collaboration Id : null
    2009.03.01 at 15:37:33:060: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:identifyIncomingDocument Enter
    2009.03.01 at 15:37:33:063: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:preProcessor enter
    2009.03.01 at 15:37:33:064: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:preProcessor edi = X12
    2009.03.01 at 15:37:33:064: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:preProcessor segment delimiter is 27
    2009.03.01 at 15:37:33:073: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:identifyIncomingDocument preprocess result =
    ISA~00~Authorizat~00~Security I~01~Interchange Sen~01~Interchange Rec~090301~1935~U~00401~000001101~0~I~+'GS~SP~Application Sen~Application Rec~20090301~1537~1101~T~004010'ST~841~5709'SPI~00~01~Reference Identification~Entity Title~Entity Purpose~A~00~01~00~10~Source Subquali~773~1~AA~0001'RDT~A~Revision Value~001~~~01'RDT~A~Revision Value~001~~~01'RDT~A~Revision Value~001~~~01'RDT~A~Revision Value~001~~~01'NTE~AAA~Description'X1~C~Export Licen~C~~1~1~COU~SCHEDULE B~D~252876~59154.0269~A~01~8~U~Identification Code'X2~Import License Number~~20090301~~20090301~20090301'X7~Free-Form Message~Free-Form Message'AMT~1~1~C'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'DTM~001~~~01~CC~Date Time Period'PER~1A~Name~AA~Communication Number~AA~Communication Number~AA~Communication Number~Contact Inquiry Refe'N1~01~Name~1~Identification Code~01~01'N2~Name~Name'N3~Address Information~Address Information'N4~City Name~ST~POSTAL CODE~COU~A~Location Identifier'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'PER~1A~Name~AA~Communication Number~AA~Communication Number~AA~Communication Number~Contact Inquiry Refe'HL~1~~1~0'SPI~00~01~Reference Identification~Entity Title~Entity Purpose~A~00~01~00~10~Source Subquali~4~1~AA~0001'RDT~A~Revision Value~001~~~01'PRR~Assigned Identificat~10~Source Subquali~BRK~Description~10~Source Subquali~A~10~Source Subquali~1'PRT~EXC~10~Source Subquali~N'PRS~1~Description'LIN~Assigned Identificat~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID'PER~1A~Name~AA~Communication Number~AA~Communication Number~AA~Communication Number~Contact Inquiry Refe'MSG~Free-Form Message Text~AA~3'N1~01~Name~1~Identification Code~01~01'N2~Name~Name'N3~Address Information~Address Information'N4~City Name~ST~POSTAL CODE~COU~A~Location Identifier'PER~1A~Name~AA~Communication Number~AA~Communication Number~AA~Communication Number~Contact Inquiry Refe'N9~01~Reference Identification~Free-form Description~~~01~01+Reference Identification+01+Reference Identification+01+Reference Identification'PID~F~01~10~Product Desc~Description~1S~Source Subquali~N~LAN'PKD~AMM01~Source Subquali~10~Packagi~L'QTY~01~1~01+3+60.42665+01+5+3+01+1+51887.5+01+6+7.79+01+2+3953.97808'MEA~9L~1~6~01+5+56318.8+01+1+30.72+01+1+1+01+7+8887.19467+01+6+661.97698~6~7~01~~1S~BM'MEA~9L~1~5~01+3+696.4+01+4+4+01+3+1221.27922+01+1+994232.001+01+3+872.859~3~9~01~~1S~BM'MEA~9L~1~3~01+8+8+01+1+7.75+01+2+6.395+01+1+2.1+01+6+7.59~6~4~01~~1S~BM'MEA~9L~1~6~01+6+7393.71+01+3+54258.8579+01+8+28012.940+01+5+8+01+7+8.8~9~9~01~~1S~BM'MEA~9L~1~8~01+5+8661152.98+01+7+6356848.72+01+7+1010847.39+01+5+4939.33859+01+3+7.84050~8~4~01~~1S~BM'UIT~01+7+8.3+01+2+8.702047+01+8+323.16049+01+8+40699.4+01+5+30.909~1~AA'LOC~01~Reference Identification~Description~Reference Identification~Catego~01~Reference Identification~Description~Reference Identification~6~01+7+257.30155+01+1+963640.085+01+1+9.42+01+4+1+01+3+67.61~8~01+6+3.6+01+2+20.5+01+4+6.99+01+7+5+01+5+213.507492~5~01+2+3077486.5+01+7+78023.621+01+3+6.74+01+7+138554.0+01+3+4111.4~2~01+9+2.6+01+8+91290.0173+01+9+1.9+01+2+6.168+01+1+26.9~2~01+2+1+01+6+67348.246+01+4+8.50+01+7+37.63+01+5+130691508.0~1~01+5+8.39+01+1+2.0+01+6+7.3+01+5+173.68084+01+5+550.4928~01~Reference Identification~Description'PWK~01~1~26~01~1~Identification Code~Description~1+1+1+1+1~AR'PKG~F~01~10~Packagi~Description~01'MEA~9L~1~6~01+9+99.2217+01+5+6.5043+01+8+30.76+01+9+3+01+1+7~3~2~01~~1S~BM'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'DTM~001~~~01~CC~Date Time Period'PER~1A~Name~AA~Communication Number~AA~Communication Number~AA~Communication Number~Contact Inquiry Refe'LX~6'LIN~Assigned Identificat~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID'TMD~01~10~Product Desc~01~01~Description~~Reference Identification~Source Subquali'MEA~9L~1~4~01+7+71.1+01+2+277.0+01+2+9.19003+01+1+901.516+01+3+7803582.87~8~7~01~~1S~BM'PSD~01~01~9661549~01+2+140318.0112+01+3+30.74740+01+9+67.17+01+7+5.1130+01+3+56743.0~01~01~01~Description'SPS~193487350~66823328~472426~5.6~01+3+519.45554+01+6+145146.03+01+2+63994262.5+01+3+1.3166+01+8+4.7~440443'DTM~001~~~01~CC~Date Time Period'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'EFI~00~Free-Form Message Text~9A~Version Identifier~Program Identifier~Version Identifier~Interchange Format~Version Identifier~Compression Technique~A0~File Name~Bloc~7~84410~Version Identifier~ASB'BIN~3~hii'CID~1~01~10~Product Desc~Description~Source Subquali~N'UIT~01+6+940.5+01+3+4.7+01+9+3.1+01+6+58.1+01+2+115728.9010~3~AA'TMD~01~10~Product Desc~01~01~Description~~Reference Identification~Source Subquali'PSD~01~01~595~01+1+5.139+01+3+1+01+5+4+01+5+19.1+01+5+3441.57231~01~01~01~Description'CSS~GC~01+1+33832819.6+01+1+1.5332+01+5+1.1+01+1+12173.83+01+5+813.282453~874~27~1~2~38'SPS~9~1154210~75~9.5~01+2+473.9+01+5+28.394421+01+6+755.69932+01+3+8407.2+01+3+1~54261910'MSG~Free-Form Message Text~AA~66511'MEA~9L~1~3~01+6+4.979+01+8+60.167241+01+8+48.03003+01+1+1.6086+01+5+2417168.92~3~1~01~~1S~BM'DTM~001~~~01~CC~Date Time Period'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'STA~01~9~01+6+66133.5+01+1+1+01+6+45813032.4+01+3+3329.6+01+7+63878.29~1~9L~3~5~01'DTM~001~~~01~CC~Date Time Period'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'CRF~01+6+7050.3+01+3+892.07605+01+6+847.7520+01+7+4+01+4+1.7~59.926'LS~CID'CID~1~01~10~Product Desc~Description~Source Subquali~N'MEA~9L~1~1~01+2+316324.35+01+8+852.8+01+7+4.2+01+8+6.3+01+7+9.3~2~4~01~~1S~BM'STA~01~6~01+2+751.60984+01+2+5+01+7+60.63+01+3+5366069.5+01+7+1.891~1~9L~1~8~01'LE~CID'EFI~00~Free-Form Message Text~9A~Version Identifier~Program Identifier~Version Identifier~Interchange Format~Version Identifier~Compression Technique~A0~File Name~Bloc~2~64~Version Identifier~ASB'BIN~3~hii'SE~91~5709'GE~1~1101'IEA~1~000001101'

    .... b2b.log:
    2009.03.01 at 15:37:33:077: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl Enter
    2009.03.01 at 15:37:33:078: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl validateEnvelope = false
    2009.03.01 at 15:37:33:078: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl Leave
    2009.03.01 at 15:37:33:078: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:cloneSelector Enter
    2009.03.01 at 15:37:33:079: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:cloneSelector Return = oracle.tip.adapter.b2b.document.edi.ISelectorImpl@43da1b
    2009.03.01 at 15:37:33:085: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:getValue Param Name = SeverityConfig
    2009.03.01 at 15:37:33:085: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:getValue Value = null
    2009.03.01 at 15:37:33:107: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode ISA Key = InterchangeSenderID Val = Interchange Sen
    2009.03.01 at 15:37:33:108: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode ISA Key = InterchangeSenderQual Val = 01
    2009.03.01 at 15:37:33:108: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode standard = X12
    2009.03.01 at 15:37:33:108: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode ISA Key = InterchangeReceiverID Val = Interchange Rec
    2009.03.01 at 15:37:33:109: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode ISA Key = InterchangeControlVersion Val = 00401
    2009.03.01 at 15:37:33:109: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode ISA Key = InterchangeReceiverQual Val = 01
    2009.03.01 at 15:37:33:109: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode Group Key = GroupSenderID Val = Application Sen
    2009.03.01 at 15:37:33:110: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode X12 Doc Revision : 004010
    2009.03.01 at 15:37:33:110: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode X12 Doc Revision : 4010
    2009.03.01 at 15:37:33:110: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode Group Key = GroupReceiverID Val = Application Rec
    2009.03.01 at 15:37:33:110: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode Transaction Count = 1
    2009.03.01 at 15:37:33:111: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode DocType = 841
    2009.03.01 at 15:37:33:111: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeReceiverQual = 01
    2009.03.01 at 15:37:33:112: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeSenderID = Interchange Sen
    2009.03.01 at 15:37:33:112: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeReceiverID = Interchange Rec
    2009.03.01 at 15:37:33:112: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter GroupReceiverID = Application Rec
    2009.03.01 at 15:37:33:112: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeControlVersion = 00401
    2009.03.01 at 15:37:33:113: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter GroupSenderID = Application Sen
    2009.03.01 at 15:37:33:113: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeSenderQual = 01
    2009.03.01 at 15:37:33:113: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:identifyIncomingDocument exit
    2009.03.01 at 15:37:33:113: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Correlation:incomingCorrelate Enter
    2009.03.01 at 15:37:33:113: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Correlation:incomingCorrelate msginfo reftomsgid is null, nothing to correlate
    2009.03.01 at 15:37:33:114: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Correlation:incomingCorrelate Exit
    2009.03.01 at 15:37:33:114: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage number of b2b messages 1
    2009.03.01 at 15:37:33:114: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage msgtype = 1
    2009.03.01 at 15:37:33:115: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processIncomingTPA() Begin TPA Processing..
    2009.03.01 at 15:37:33:115: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() PARTIES (before calling processParty) :
    initial : null
    from : TPName: TEE Type: null Value: null
    to : TPName: null Type: null Value: null
    final : null
    initiating : TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:115: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() direction is incoming
    2009.03.01 at 15:37:33:115: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() calling processparty with : TPName: null Type: null Value: null
    2009.03.01 at 15:37:33:116: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor:processParty() Begin..
    2009.03.01 at 15:37:33:119: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() after calling processparty : TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:119: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() PARTIES (after calling processParty):
    initial : null
    from : TPName: TEE Type: null Value: null
    to : TPName: TEE Type: null Value: null
    final : null
    initiating : TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:120: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() docTypeName: 841 docTypeRevision: 4010
    2009.03.01 at 15:37:33:127: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() actionName: BARFEDI841 actionRevision: 1.0
    2009.03.01 at 15:37:33:127: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor:getCollaborationDetails() Begin.. Activity Name : BARFEDI841 Activity Version: 1.0
    2009.03.01 at 15:37:33:131: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() eventName:<BARFEDI841>
    2009.03.01 at 15:37:33:131: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() messageType:1
    2009.03.01 at 15:37:33:136: Thread-20: B2B - (DEBUG) calling setMode() changing from -1 to 2
    2009.03.01 at 15:37:33:137: Thread-20: B2B - (DEBUG) calling setInitiatingPartyId() changing from TPName: TEE Type: null Value: null to TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:137: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() cpaID=null
    2009.03.01 at 15:37:33:137: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() TPA Name : null
    2009.03.01 at 15:37:33:137: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() TPA Name : null
    2009.03.01 at 15:37:33:138: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAIdentifier:identifyTPA() Begin..
    2009.03.01 at 15:37:33:138: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAIdentifier:identifyTPA()
    From Party -> null-null-TEE-null To Party -> null-null-TEE-null Business Action name -> BARFEDI841
    2009.03.01 at 15:37:33:138: Thread-20: B2B - (DEBUG) RepoDataAccessor:getAgreementNameByBaTPName() Begin..
    2009.03.01 at 15:37:33:138: Thread-20: B2B - (DEBUG) RepoDataAccessor:getAgreementNameByBaTPName() fromParty: TPName: TEE Type: null Value: null toParty: TPName: TEE Type: null Value: null initiatingParty: TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:139: Thread-20: B2B - (DEBUG) RepoDataAccessor:getAgreementNameByBaTPName() SELECT ag.name FROM TIP_BusinessAction_ra ba1, TIP_Party_ra tp1, TIP_BusinessAction_ra ba2, TIP_Party_ra tp2, TIP_SupportedBusinessAction_ra sba1, TIP_SupportedBusinessAction_ra sba2, TIP_Participant_ra tpp1, TIP_Participant_ra tpp2, TIP_Agreement_ra ag WHERE tp1.name = ? AND ba1.name = ? AND ba1.revision = ? AND sba1.isinitiator = ? AND tpp1.agreement = ag.ID AND tpp1.supportedbusinessaction = sba1.ID AND sba1.tradingpartner = tp1.ID AND sba1.businessaction = ba1.ID AND tp2.name = ? AND ba2.name = ? AND ba2.revision = ? AND sba2.isinitiator = ? AND tpp2.agreement = ag.ID AND tpp2.supportedbusinessaction = sba2.ID AND sba2.tradingpartner = tp2.ID AND sba2.businessaction = ba2.ID AND tpp1.agreement = tpp2.agreement AND ((ag.effectivefromdate <= SYSDATE) OR (ag.effectivefromdate IS NULL)) AND ((ag.effectivetodate +1 >= SYSDATE) OR (ag.effectivetodate IS NULL))
    2009.03.01 at 15:37:33:139: Thread-20: B2B - (DEBUG) RepoDataAccessor:getAgreementNameByBaTPName() bind vars: TEE,BARFEDI841,1.0,Y,TEE,BARFEDI841,1.0,N
    2009.03.01 at 15:37:33:145: Thread-20: B2B - (ERROR) Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate
    at oracle.tip.adapter.b2b.tpa.RepoDataAccessor.getAgreementNameByBaTPName(RepoDataAccessor.java:2345)
    at oracle.tip.adapter.b2b.tpa.TPAIdentifier.identifyTPA(TPAIdentifier.java:186)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:587)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processIncomingTPA(TPAProcessor.java:238)
    at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1832)
    at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
    at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
    at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
    at java.lang.Thread.run(Thread.java:534)
    2009.03.01 at 15:37:33:145: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: processIncomingMessage B2BDE
    2009.03.01 at 15:37:33:146: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleExceptionBeforeIncomingTPA Enter
    2009.03.01 at 15:37:33:146: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: handleInboundException Enter
    2009.03.01 at 15:37:33:146: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: handleInboundException Error message is Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate
    2009.03.01 at 15:37:33:146: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: isFARequired Enter
    2009.03.01 at 15:37:33:147: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: isFARequired {filename=TEE_2009Mar01_15_37_29_170.dat, filesize=7787, file_ext=dat, fullpath=//users/dab2b01/RF841/TEE_2009Mar01_15_37_29_170.dat, timestamp=1970-01-01T00:00:00.000-00:00}
    2009.03.01 at 15:37:33:147: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: isFARequired returning false
    2009.03.01 at 15:37:33:147: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: handleInboundException FA not required
    2009.03.01 at 15:37:33:148: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleInboundException Updating Error Message: Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate
    2009.03.01 at 15:37:33:148: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Enter
    2009.03.01 at 15:37:33:149: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Wire message found
    2009.03.01 at 15:37:33:149: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Creating new b2berror object
    2009.03.01 at 15:37:33:149: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState enum0 not null
    2009.03.01 at 15:37:33:149: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating wire message error information
    2009.03.01 at 15:37:33:155: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating wire message protocol message id
    2009.03.01 at 15:37:33:171: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating wire message payload storage
    2009.03.01 at 15:37:33:182: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Creating new business message
    2009.03.01 at 15:37:33:182: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertMsgTblRow Enter
    2009.03.01 at 15:37:33:189: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertMsgTblRow toparty name TEE
    2009.03.01 at 15:37:33:189: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertMsgTblRow toparty type and value nullnull
    2009.03.01 at 15:37:33:196: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertMsgTblRow BusinessAction for the given name BARFEDI841 BusinessAction_0E95
    2009.03.01 at 15:37:33:207: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating business message error information
    2009.03.01 at 15:37:33:217: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Exit
    2009.03.01 at 15:37:33:218: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleInboundException Updating Native Event Tbl Row
    2009.03.01 at 15:37:33:218: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:updateNativeEvtTblRow Enter
    2009.03.01 at 15:37:33:220: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateNativeEvtTblRow msgInfo.id = TEE_2009Mar01_15_37_29_170.dat@0A4DBD5D11FC2AEDA770000018E26600
    2009.03.01 at 15:37:33:220: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:
    ** DbAccess:updateNativeEvtTblRow:tip_wireMsg protocolCollabID = null
    2009.03.01 at 15:37:33:226: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleInboundException notifying App
    2009.03.01 at 15:37:33:226: Thread-20: B2B - (DEBUG) Engine:notifyApp Enter
    2009.03.01 at 15:37:33:232: Thread-20: B2B - (DEBUG) notifyApp:notifyApp Enqueue the ip exception message:
    <Exception xmlns="http://integration.oracle.com/B2B/Exception" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <correlationId>null</correlationId>
    <b2bMessageId>0A4DBD5D11FC2AEDA680000018E265F0</b2bMessageId>
    <errorCode>AIP-50547</errorCode>
    <errorText>Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate</errorText>
    <errorDescription>
    <![CDATA[Machine Info: (dgia21a.TEEis.com)
    Description: Unable to identify the trading partner agreement from the given input values. Also verify agreement effectiveToDate
    StackTrace:
    Error -:  AIP-50547:  Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate
    at oracle.tip.adapter.b2b.tpa.RepoDataAccessor.getAgreementNameByBaTPName(RepoDataAccessor.java:2345)
    at oracle.tip.adapter.b2b.tpa.TPAIdentifier.identifyTPA(TPAIdentifier.java:186)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:587)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processIncomingTPA(TPAProcessor.java:238)
    at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1832)
    at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
    at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
    at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
    at java.lang.Thread.run(Thread.java:534)
    ]]>
    </errorDescription>
    <errorSeverity>2</errorSeverity>
    </Exception>
    2009.03.01 at 15:37:33:244: Thread-20: B2B - (DEBUG) Engine:notifyApp Exit
    2009.03.01 at 15:37:33:244: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleInboundException Updated the Error Message Successfully: Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate
    2009.03.01 at 15:37:33:245: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: handleInboundException Exit
    2009.03.01 at 15:37:33:245: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleExceptionBeforeIncomingTPA Exit
    2009.03.01 at 15:37:33:245: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:incomingContinueProcess Exit
    2009.03.01 at 15:37:33:245: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleMessageEvent Exit
    2009.03.01 at 15:37:33:245: Thread-20: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processEvents Exit
    2009.03.01 at 15:37:33:246: Thread-20: B2B - (DEBUG) DBContext commit: Enter
    2009.03.01 at 15:37:33:263: Thread-20: B2B - (DEBUG) DBContext commit: Transaction.commit()
    2009.03.01 at 15:37:33:263: Thread-20: B2B - (DEBUG) DBContext commit: Leave
    2009.03.01 at 15:37:33:264: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:onMessage Exit

  • Hashtable - Retrieving the two values

    Lets say i have a hashtable as follows
    Hashtable Dictionary = new Hashtable();
    for(int code=0; code<256; code++)
          Integer value = new Integer(code);
          Integer key = new Integer(code);
           Dictionary.put(key, value);
    }How can I point to an index of the hashtable and either retrieve key or value as in...
    Dictionary.get(i).value or Dictionary.get(i).key

    ArrayList<Map.Entry> ame = new ArrayList<Map.Entry>(myHashTable.entrySet());
    Map.Entry<Integer,Integer> me = ame.get(index);
    Integer key = me.getKey();
    Integer value = me.getValue();

  • How to get Request Offering from given Service Offering using Service Manager SDK?

    Recently, I am working on application where I have to fetch all Request Offering from given Service Offering. 
    I can retrieve all Request Offering using following method of SM SDK : 
    var requestOfferings = group.Extensions.Retrieve<RequestOffering>();// group is Management Group
    But I am unable to get request Offering from given Service Offering as I am new to this platform. I have searched in web but can not find solution to this problem.
    It would be great if someone guide for this problem or give me any suggestion related to this problem.
    Thanks in advance.

    RequestOfferings are handled a little differently in the SDK, but fortunately, they're still backed by standard EnterpriseManagementObjects..it just takes a little work to get them.
    There are a few ways you can go about getting a request offering's related service offerings. I'm going to show you the relationship route, but you could also use a type projection to achieve the same goal.
    In your original post, you're simply retrieving _all_ request offerings..that's fine. If you wanted to retrieve a single request offering (as I do in my example) you need to find the request offering's identifier. This identifier is a pipe delimited string
    of various values. The quickest way to find it, in my opinion, is to query the MT_System$RequestOffering table in the database, but you can also find it by looping through all the RequestOfferings returned by group.Extensions.Retrieve<RequestOffering>();
    Anyway, for the following example to work, you only need your request offering's Identifier and your management server name. (Again, you could simply loop through all of your request offerings and retrieve the service offerings for all of them)
    The comments inline with this example should guide you through the steps.
    //Connect to the management group and prepare the class and relationship types that we'll need.
    String strMySCSMServer = "your server";
    EnterpriseManagementGroup emg = new EnterpriseManagementGroup(strMySCSMServer);
    ManagementPackClass mpcRO = emg.EntityTypes.GetClass(new Guid("8FC1CD4A-B39E-2879-2BA8-B7036F9D8EE7")); //System.RequestOffering
    ManagementPackRelationship relSORelatesToRO = emg.EntityTypes.GetRelationshipClass(new Guid("BE417A55-6622-0FC3-FCEA-90CD23E0FC23")); //System.ServiceOfferingRelatesToRequestOffering
    //An example of an extension identifier looks like this:
    //1|My.RO.MP|1.0.0.0|Offeringc921c4feujhoi8cdsjloiz352d7gf3k0|3|RequestOffering
    String strRequestOfferingIdentifier = "your request offering identifier";
    //Retrieve the request offering using an Extension Identifier.
    ExtensionIdentifier ei = null;
    ExtensionIdentifier.TryParse(strRequestOfferingIdentifier, out ei);
    RequestOffering ro = emg.Extensions.Retrieve<RequestOffering>(ei);
    //Using the request offering's Identifier, retrieve the enterprise management object that it represents
    EnterpriseManagementObjectCriteria emocRO = new EnterpriseManagementObjectCriteria("ID = '" + ro.Identifier + "'", mpcRO);
    IObjectReader<EnterpriseManagementObject> orROs = emg.EntityObjects.GetObjectReader<EnterpriseManagementObject>(emocRO, ObjectQueryOptions.Default);
    //Since we queried for only a single Request Offering, the object reader should contain 0 or 1 elements.
    EnterpriseManagementObject emoRO = null;
    if (orROs.Count > 0)
    emoRO = orROs.ElementAt(0);
    else
    Console.WriteLine("No Request Offering found");
    //Now, using the relationship type "System.ServiceOfferingRelatesToRequestOffering", get all Service Offering's related to our request offering
    IList<EnterpriseManagementRelationshipObject<EnterpriseManagementObject>> lstEMROs = emg.EntityObjects.GetRelationshipObjectsWhereTarget<EnterpriseManagementObject>(emoRO.Id, relSORelatesToRO, DerivedClassTraversalDepth.None, TraversalDepth.OneLevel, ObjectQueryOptions.Default);
    //The GetRelationshipObjectsWhereTarget method returns a list of EnterpriseManagementObjectRelationships..These objects represent that relationship between two objects.
    //Thus, these relationship objects have two properties of interest; TargetObject and SourceObject. In this case, service offerings are the source of this relationship type and
    //so, you can access the service offering object itself by using the relationship object's SourceObject property (which is nothing more than an EnterpriseManagementObject)
    foreach (EnterpriseManagementRelationshipObject<EnterpriseManagementObject> emro in lstEMROs)
    //emro.SourceObject is your Service Offering object. You can use it for whatever you need from here on out. In this example, i'm just writing out the DisplayName
    EnterpriseManagementObject emoServiceOffering = emro.SourceObject;
    Console.WriteLine(emoServiceOffering[null, "DisplayName"].Value);
    Give it a try, let me know if you have any questions :)

  • How to get selected row keys from RichSelectManyCheckbox

    Adf Table has getSelectedRowKeys but SelectManyChekcbox does not has anything similar. Can you tell me how to get selected row keys programmatically for RichSelectManyCheckbox?

    Hi User,
    selectManyCheckbox component's value property holds the selected items values. Bind this property to some bean variable(of type list) so that you can get the selected values by accessing the bean property.
    Sireesha

  • How to get the PRIMARY KEY of a table at runtime ???

    Hi everybody,
    My requirement is to update a z-table at runtime according to the data given ata runtime. So the main difficulties for me is that whenever I tried to update the table based on the data given in UI many rows are getting updated as these fields are not unique. So I think if I can get the PRIMARY KEY along with these given fields then I can update only one row at a time.
    So Can anyone suggest me how to get PRIMARY KEY of a table based on the data in UI..??
    Any suggestions will be appreciated..
    Thanks,
    Sekhar

    U will get primary keys of transparent tables using FM "REUSE_FIELDCALATLOG_MERGE".
    pass tyour table name and u will get fieldcatalog filled. In tht their is a field called "KEY" if it has 'X' then tht field is a primary key of transparent tables & if it has "space" then it is not a primary key...
    Or else you can try with 'DDIF_TABT_GET'
    Or try this code
    PARAMETERS: p_table TYPE tabname OBLIGATORY.
    DATA: go_strucdescr   TYPE REF TO cl_abap_structdescr,
          gt_tab_fields   TYPE ddfields.
    FIELD-SYMBOLS: <gwa_tab_field> TYPE dfies.
    TRY .
    *   Get the details of the DDIC table
        go_strucdescr ?= cl_abap_elemdescr=>describe_by_name( p_table ).
      CATCH cx_sy_move_cast_error .
        MESSAGE 'Error while casting' TYPE 'S'. RETURN.
    ENDTRY.
    * Check if input is a DDIC table
    CHECK go_strucdescr->is_ddic_type( ) = 'X'.
    * Get the details of the table fields
    gt_tab_fields = go_strucdescr->get_ddic_field_list( ).
    * Display the Key fields of the table
    LOOP AT gt_tab_fields ASSIGNING <gwa_tab_field> WHERE keyflag = 'X'.
      WRITE: / <gwa_tab_field>-fieldname.
    ENDLOOP.

  • How to get KTOPL for a given BELNR

    Hi all you experts!
    I am codding a simple report that obtains some data from BSAK including BELNR and SAKNR.
    I need to show in this report the description of SAKNR. I know that I can get it from table SKAT but in order to do that I need to know SPRAS and KTOPL.
    I don't have any problem getting SPRAS. But I don't know how to get the correct value for KTOPL.
    Could any of you kindly tell me how can I get KTOPL for a given BSAK-BELNR?
    Many thanks in advance.

    Hello
    Using direct DB selections for such a basic standard functionality is just nonsense.
    BSAK contains both the company code (BUKRS) and the account (SAKNR). Thus, simply feed BAPI_GL_ACC_GETDETAIL with these details and the EXPORTING parameter ACCOUNT_DETAIL contains the required texts.
    Even though there are alternative fm's like
    GL_ACC_GETDETAIL
    READ_SACHKONTO_AND_TEXT
    I always recommend to use the most generic approach (here: BAPI ).
    Regards
      Uwe

  • Key figure Period Value TC has a difference of 123,445- IDR in roundingstep

    Hi,
    Pls suggest some tips, to resolve this, as I am struck in Currency Translation;
    Diagnosis
    While checking the rounding conditions for key figure Period Value TC a difference of 123,445- IDR was found in step Balance Sheet.
    System Response
    The data will not be rounded.
    Procedure
    Examine the data to be rounded with regards to the key figure to be checked, Period Value TC. Check whether the rounding condition has been met for this key figure.
    Make sure that the check looks at the total balance of posting levels 00, 01, and 10 (as opposed to the rounding algorithm, which rounds each posting level separately).
    If the same message (with different differentials) appears elsewhere, please note that the check is performed for each subassignment value of those subassignments that have a selected default indicator in the differential account assignment. In this case, check the customizing settings for method step Balance Sheet.
    Regards
    CSM Reddy

    Hi CSM Reddy,
    The content of this forum is rather rich and contains a lot of questions and solutions given already.
    So, I'm kindly remind you about searching functionality.
    You could find, for example, this link:
    SEM-BCS: Currency translation
    A little remark. Disbalance may occur because of different reasons. So, first of all try to run the RFD validation. If the validation does end with errors, especially an error on the check that compares RE in B/S and NI in P&L, run the reclass (2nd one) mentioned in the link.
    If such a check is green, then go for another reclass (the 1st in the link) which will round the balance. Usually, I run it in a test mode first, in order to see how much differences the system discovered. If they are not material, I round them. If they are, then it'd better to investigate the reason.
    Hope this helps.
    Edited by: Eugene Khusainov on Sep 23, 2008 12:12 PM

  • Need help with locating a key using a value in a HashMap.

    I am quite new to Java and programming, and am just learning this in High School (enjoying it thoroughly). Sorry if I don't respect the etiquette or formatting of this board (it's unintentional).
    I am using the book, Objects First Wth Java A Practical Introduction Using Blue J and am working on extensively improving the "World of Zuul" project. Which is a text-based adventure game.
    Here is a code sample;
    public String getNameFromList(String name)
      boolean found = false;
      Set pairSet = xItemList.entrySet();
      for(Iterator iter = pairSet.iterator(); (found == false && iter.hasNext());){
      Item currentItem = (Item) iter.next().getValue();
      String currentKey = currentItem.getName();
      if(name.equals(currentKey)){
        String changedName = iter.next().getKey();
        return changedName;
    error; cannot resolve symbol:
    method: getValue()xItemList is a HashMap with String keys, and Item values.
    The relevant field of Item is name, which is a string.
    The currentKey local variable is a little misleading, it is the current name, but acts as the 'key' when looking for the actual key.
    changedName (if the parameter name is found from the item.getNames()), is what the method returns, the key associated with a object (by looking at the object's field).
    My objective for this method is for it to have a name as a parameter, which it searches for in the HashMap (by Iteration over the entrySet - or I suppose iteration over Set values(), but this loses which object value is tied to which key, doesn't it?), and returns the respective key.
    Any help would be very much appreciated (even if it is telling me that this can't be done with HashMaps!).

    It's not clear to me what your question is, or if indeed you even have a question.
    You seem to be having a problem with types. Iterators return Objects.
    So in this line:
      Item currentItem = (Item) iter.next().getValue();The iterator's next() method is returning an Object, and you're trying to call getValue() on that Object. But Object doesn't have a getValue() method. That would explain your error message. Map.Entry does; you apparently meant to call Map.Entry's getValue() method. You would cast the result of iter.next() to Map.Entry before you call getValue().
    Also you're calling next() on your iterator twice in the body of the loop, which means you're getting two different values... this is probably not what you intend.
    But you're making this more complicated than it needs to be anyway.
    Why are you iterating through the set of entries in the HashMap?
    The whole point of a Map is that you get an item using an object as the key. Just do xItemList.get(name). Right?

  • How Do I get a License key for Trial version from the App Store?

    I downloaded a Trial version of Aperture 3.1.2 a few weeks ago from the App Store. I love it. Now I want to buy it, but, can't figure out how to get a license key from the App Store. When you start up Aperture Trial version, a 'nag' box comes up asking if you want to buy the application or continue using the trial version or Authorize (I guess that is what you would pick once you have the key). If I pick "Buy", the application opens Safari and takes me to the Apple online store, NOT the App store! At the Apple Store, you can buy the key for $199 or an upgrade from a previous version for $99. Whoopie! What is Apple thinking? The App store is selling Aperture for $79.99. I guess that means you don't get the box or written manuals (which I haven't used for any software in many years).
    So how do I get a license key for the App Store version? Do I just Go to the App Store, pay the money, download and install the program over again. Then transfer my trial version library somehow? Then deinstall the trial version? I'd love to buy and use Aperture for $79.99, but, I'm not willing to pay $199 for it.  Apple has me confused.
    Anybody have a clue?

    Thanks for the 1-800 call tip Allen.
    P.S. I'm quite willing to put in the time and effort necessary to learn Aperture (or any other software I decide to use, "Pro" or not). I simply don't see the value in buying the box version when I'm pretty sure I won't be using any paper manuals.  I very comfortable using online help files, having done so as a professional numerical control programmer for many years in my work. For reference, I'm retired, on a limited income and will be using Aperture as a rank amateur photographer who could use a little more horsepower than iPhoto offers.
    I'll call Apple tomorrow.
    Kevin

  • How to get drop down list (list of values) in selection-screen

    Hi al,
       This is anilreddy. Please let me knew the solution
    How to get the drop down list for a fieldin selection-screen (not in dialog programming)
    (not as POV)
    Regards,
    anilreddy

    REPORT ZTESTPRG.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.
    Thanks
    Mahesh

  • How do i get a recovery key ???????? PLEASE HELP !!

    I need help on getting a recovery key to change my password for icloud because if i change my password it will let me unlock the activation lock on my iphone 4 after restoring my phone and i've tried soooo many things to try to get into my iphone without the activation lock but nothing has been working and im so stressed !!!!

    If you set up 'two-step' verification for your Apple ID you were given a recovery key. Once this is set up you have three items of information:
    Your password
    Your 'trusted device', i.e. a mobile phone to which a code can be sent
    Your recovery key
    You need two of these in order to get into your ID. If you lose one of them you can use the other two. If you lose two of them then you cannot get into ID. There is no way at all round that: Apple cannot help you (as is made clear when you set up two-step verification).

Maybe you are looking for

  • IMac Early 2009 10.7.5-Terminal Open When Logging On

    For the past logins, the Terminal icon is open. When I click on it, it says this: Last login: Sat Jan 26 15:17:15 on ttys000 As-iMac:~ ronimac3$ What does this mean?

  • Effect of using Predict Function

    hi All, we have a data mining model using decision trees that we use to predict one output thats a continuous value, its simply the predicted amount of sales per customer. now our model works and give results, however we were not using the predict()

  • No picture in YouTube videos

    On March 2, Firefox 3 series downloaded a new version, and I also downloaded a new flash version. Since then, I have not been able to see a picture in YouTube videos.

  • Custom Kernel and VMware

    If I build a specific kernel for my machine and use VMware in that machine. Did I need to take account of the driver need by VMware? I suppose the answer is yes! But I want to be sure. I'm building the custom kernel-headers right now and didn't have

  • Keyfigure with units are not loading into transactional DSO in APD

    Hi,    I am loading data from a Query to transactional DSO through APD.  I have formula and new selection keyfigures in my query. I mapped these keyfigures with units to the DSO.  But i didnot see data for these keyfigures and also the units are not