El Exception - attemp to coerce a value

I need to perform some arithmatic operation on the value which is from a vo. I tried the below code for it.
"#{(bindings.XxWorkExpDetailsVO1ExperienceMonths mod '2')}"
But am getting the exception
javax.faces.el.EvaluationException: com.sun.faces.el.impl.ElException: Attempt to coerce a value of type "oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding" to type "java.lang.Long"
I tried by removing single quotes also. But getting the same error. Kindly help.

Hi,
it all boils down to knowing what you do.
1. #{bindings.XxWorkExpDetailsVO1ExperienceMonths} accesses an attribute binding. This is not a scalar type nor can it converted to one
2. "#{bindings.XxWorkExpDetailsVO1ExperienceMonths.inputValue} accesses the exposed value of an attribute binding. If its a numeric value in ADF BC then either its BigDecinal (11.1.2) or oracle jbo.domain.Number (11.1.1.x)
3. If it is oracle.jbo.domain.Number then this object has a method "longValue" to cast it to type long. So your expression - in theory - need to be #{bindings.XxWorkExpDetailsVO1ExperienceMonths.inputValue.longValue}. This however doesn't work with EL because EL value expressions look for properties and not methods.
The solution to your problem is like explained in this thread
https://forums.oracle.com/forums/thread.jspa?threadID=717868
Create a managed bean to perform the calculation
{code}
long calculatedVal;
public void setCalculatedVal(long v){}
public long getCalculatedVal(){
BindingContext bctx = BindingContext.getCurrent();
BindingContainer bindings = bctx.getCurrentBindingsEntry();
AttributeBinding expMonth = (AttributeBinding) bindings.get("XxWorkExpDetailsVO1ExperienceMonths");
long attrValue = ((oracle.jbo.domain.Number)expMonth.getInputValue()).longValue();
return (attrValue % 2);
{code}
You then reference the managed bean property #{bean.calculatedVal} in your page
Frank

Similar Messages

  • Exception Aggregation (Average of all values 0)  -  Non cumulative KF

    Hi Experts,
    I am using the Exception Aggregation (Average of all values <> 0) on a Non Cumulative KF. Most of the times i am not getting the desired results but some times it gives me the desired result.
    my doubt is whether we can use  Exception Aggregation on Non cumulatives?????
    Thanks for any help
    boobal

    Hi,
    Non-cumulative valuesare those key figures that are measured in relation to a period in time; that is to say they cannot be meaningfully cumulated over time. Non-cumulative values are summarized over time using so-called exception aggregation.
    Example:stock quantities/-values, number of employees, account balances, etc.
    Please check this document:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d61b1e95-0501-0010-dfbe-a03970712ef1
    Hope this helps.
    Regards,
    Mona
    Edited by: Mona Kapur on Jan 17, 2008 10:45 AM

  • Javax.servlet.jsp.el.ELException: Attempt to coerce a value of type

    I've written a web service to retrieve informations from the database based on a client's criteria. The service endpoint is the following:
    public WSMissionBean getProfiles( WSMissionBean mission, WSProfileBean profile ) throws java.rmi.RemoteException;
    The WSMissionBean object is as follows:
    public class WSMissionBean implements Serializable {
    private WSProfileBean[] lstProfile;
    private WSProfileBean[] lstProfileMoinsQualifie;
    private WSProfileBean[] lstProfileByPoste;
    private WSProfileBean[] lstProfileByCompetences;
    And WSProfileBean is an object containing just simple data types. The whole idea is to have an object which, besides the criteria entered by a client, holds differents arrays, each of which answers a certain number of criteria required by the client.
    The service is deployed correctly, and I can access it, from a stand alone simple program, to retrieve data from the database as expected. The big problem is when I try to show the results in a JSP page! And the error message is:
    javax.servlet.jsp.el.ELException: Attempt to coerce a value of type "[Lclient.WSProfileBean;" to type "java.lang.reflect.Array"
    My JSP pages are as follows:
    <table border=0 cellspacing=1 cellpadding=3>
       <%-- sessionScope.mission.profiles contain data return by the web service, and gr:listRenderer is a tag file to show the result--%>
       <gr:listRenderer list="${sessionScope.mission.profiles}" />
    </table>
    And in the tag file, I have
    <%@ attribute name="list" required="true" type="java.lang.reflect.Array" %>
    <c:forEach var="profile" begin="0" items="${list}">
         <tr>
         <c:set var="profileId" value="${profile.id}" />
         <c:if test="${profile.selected}" >
              <td bgcolor="#0099FF"><input type="checkbox" name="${profileId}" checked="checked"/></td>
         </c:if>
         <c:if test="${!profile.selected}" >
              <td bgcolor="#0099FF"><input type="checkbox" name="${profileId}"/></td>
         </c:if>
         <td bgcolor="#0099FF"><font face="Verdana, Arial" size="2">${profile.nom}</font></td>
         <td bgcolor="#0099FF"><font face="Verdana, Arial" size="2">${profile.preNom}</font></td>
         <td bgcolor="#0099FF"><font face="Verdana, Arial" size="2">${profile.fonction}</font></td>
         <td bgcolor="#0099FF"><font face="Verdana, Arial" size="2">${profile.competences}</font></td>
         <td bgcolor="#0099FF"><font face="Verdana, Arial" size="2">${profile.nbAnneeExperience}</font></td>
         <td bgcolor="#0099FF"><font face="Verdana, Arial" size="2"><a target="_blank" href="./doc/myCV.html"><image border="0" alt="CV d�taill�" src="./image/cv.gif"/></a></font></td>
         </tr>
    </c:forEach>
    I've been searching desperately for days on the web for an answer, but to no result! I appreciate if someone can give me some advice, explanation... Thanks in advance
    Van Binh

    java.lang.reflect.Array is NOT a class which represents an array.
    It is a class that provides several static methods for using on arrays.
    The type of your attribute should be Object[] - an array of Objects.
    That will be compatible with an array of any sort of object (but not with an int[] for instance)
    <%@ attribute name="list" required="true" type="java.lang.Object[]" %>

  • Exception in thread "main" Context Value Management Failed.

    Hi
    I am facing one issue when i regenerate autoconfig.
    We are running Multi Node installation of Oracle EBS on SUN O.S, and
    when I regenerate Autoconfig, I am getting
    Using AutoConfig to configure the Applications environment
    Loading APPL_TOP environment from /u11/oracle/k24eb1appl
    Verifying Context file ...
    found context version : 115.121
    minimum required version : 115.121
    available update version : 115.178
    An update for the Context File is available.
    java.lang.NullPointerException
    at oracle.apps.ad.context.CtxValueMgt.main(Compiled Code)
    Exception in thread "main" Context Value Management Failed.
    Exiting with status 1
    Any Solutions pls
    Reg
    Sundar

    Cross posted in java-forums.
    OP, please do not cross-post without notification such as links to the other cross-posts. Nobody likes duplicating work that's already been done.

  • To coerce passed values, use the In Range and Coerce function.

    -" Device Number for Card 1 uses data range coercion, which now only applies to data entry; values will not be coerced when passed to subVIs. To coerce passed values, use the In Range and Coerce function."
    Hi,
    I had program runnning fine in labview version 5.0, Recently i updated to labview version 6.0, but when i opened file i will see many warnings like above.
    I saved the file as 6.0, all the warnings are gone and program compiles as well but i am not sure saving as 6.0 eliminate those problems like..."value will not be coereced when passed to subvis"

    It means that some of your controls use coercion to alter data if it is not within a range. In LV 5.0 this worked for either typing the data into the control or passing it through the connector as a sub-vi. In 6.0 the data won't be coerced if it has been passed through the connector as a sub-vi, only if it is entered on the front panel. If your sub-vis relied on this coercion to operate properly then you will need to add the "In Range and Coerce" function to your block diagram to manipulate these values. If the coercion wasn't important then disregard the warning.
    Hope this helps
    Brian

  • Exception aggregation 'Average of all values'

    Hi,
    What is Exception aggregation 'Average of all values' wrt a reference characteristic. an how do I use it in Bex?
    -Simmi

    hi,
    it determines how the key figure is aggregated in the BEx in relation to the exception characteristic, in your case it's averaged for all values.
    another case sample maybe you need to report stock, which should not accumulated, but the last value, then you can choose 'last value', with reference chacarteristic to certain time characteristic.
    you may also use it for 'calculated key figure' in BEx to get average value.
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/6f/56853c08c7aa11e10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/9d/76563cc368b60fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/e0173f5ff48443e10000000a114084/content.htm

  • Exception Aggregation (Average) displaying incorrect values after EHP1 Upgr

    Hi All,
    Exception Aggregation (Average) displaying incorrect values after EHP1 Upgrade in our BW system
    We have recently upgraded the system to EHP1. After the upgrade some of the queries where we are using Exception Aggregation (Average) started giving the incorrect values.
    Eg. We are displaying three Key Figures KF1, KF2 and KF3 (=KF1 %A KF2) against Store Hierarchy. In KF3 we are using Exception Aggregation (Average) on a characteristic 0PLANT.
    There are 14 rows against 0PLANT and out of those 2 rows are blank for KF1, so for KF3. When it is calculating the average of these key figures its dividing the total value by 12 instead of 14 which is not correct in our case. Earlier it was dividing the total by 14.       
    So in this case 'Average' and "Average of all values <>0" are behaving the same way.
    Kindly provide some inputs on this.
    Best Regards,
    Sachin Verma
    +44 7506740018

    Hi,
    Thanks for viewing the thread. And happy to let you know that the issue was resolved.
    The solution was:
    Two formulas (local) were created, one including the formula variable with replacement path for ZD1, with exception aggregation on ZD1, and the other with formula variable with replacement path for ZD2, with exception aggregation on ZD2. Both these formulas are hidden.
    Another formula (local) was created for u2018time takenu2019 = formula with ZD1 u2013 formula with ZD2, with exception aggregation total on u2018ZDOCNOu2019.
    For the second instance, when one requires exception aggregation on records that has multiple values for keys, a nesting of formulas can be done displaying only the ones required.
    For e.g. a formula with exception aggregation on say characteristic u2018item no.u2019 can be hidden, and included in another formula for exception aggregation on characteristic u2018document no.u2019. This is a typical case where one can achieve calculation before aggregation for a calculated key figure, formula or a counter.
    Hope it might help someone, and saves time and effort for a similar issue posted.
    Also would like to keep this thread open for exploring better solutions.   
    Regards,
    Vijay

  • Exception message, failed to get value, could not load managed metadata, invalid field name

    Hi, i have created some site collection columns with managed metdata and taxonomy term sets. I have then created some site content types of those site columns. Some of them function properly and some don't.
    When i have created or uploaded a document to the document library i start to "tag" the document by first choosing witch conent type i want too use, but when it comes to save the document it renders an error message(its not the full content
    of the message):
    "exception message, failed to get value, could not load managed metadata, invalid field name"
    I have created some other site content types before and with the same site columns and they do not generate a error message. Is there a solution for my dilemma?

    try these links:
    https://prashobjp.wordpress.com/2014/02/14/failed-to-get-value-of-the-column-name-column-from-the-managed-metadata-field-type-control-see-details-in-log-exception-message-invalid-field-name-guid-site-url/
    http://www.sharepointconfig.com/2011/03/issues-provisioning-sharepoint-2010-managed-metadata-fields/
    http://blog.goobol.com/category/sharepoint/sharepoint-issue-troubleshooting/
    http://www.instantquick.com/index.php/correctly-provisioning-managed-metadata-columns?c=elumenotion-blog-archive/random-whatnot
    https://pholpar.wordpress.com/2010/03/03/taxonomy-issues/
    Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

  • Invalid Attribute value Exception while adding Timestamp Attribute value

    Good Day friends,
    I'm using IBM Directory Server 4.1 LDAP to maintain the Online User Registeration for a Web Application. I need to store the Timestamp at the time user registers, so that another java application of mine can delete non-active users within specific amount of time. But when i provide a value for "createTimestamp" attribute in LDAP using Java sql class object Timestamp, it gives me a exception of InvalidAttributeValueException. I tried inserting the entry with String, but without success. What is the type or format for createTimestamp Attribute? How i can bind a time or date object to this object? Any Help or Suggestions will be highly appreciated. Thanks in Advance. Cheers..!!
    The source code is as follows:
    public void createUserProfile(String afname, String alname, String aemail, String apassword) {
              String fname, lname, email, password;
              fname = afname;
              lname = alname;
              email = aemail;
              password = apassword;
              Date regDate = new Date();
              //java.sql.Time tsObj = new java.sql.Time(regDate.getTime());
              Timestamp tsObj = new Timestamp(regDate.getTime());
              String strTS = tsObj.toString();
              System.out.println("Created Date: "+tsObj);
              try {
                   InitialDirContext ctx = new InitialDirContext(prop);
                   BasicAttribute objClasses = new BasicAttribute("objectclass");
                   objClasses.add("inetOrgPerson");
                   BasicAttributes attrs = new BasicAttributes();
                   attrs.put(objClasses);
                   attrs.put("givenName", fname);
                   attrs.put("sn", lname);
                   attrs.put("mail", email);
                   attrs.put("userPassword", password);
                   attrs.put("createTimestamp", tsObj);
                   ctx.createSubcontext("cn="+fname+",ou=Dept,o=InterComp", attrs);
                   ctx.close();
                   } catch (Exception e) {
                   System.out.println("Error : " + e.getMessage());
                   e.printStackTrace();
    The Error is as follows:
    Error : Malformed 'createTimestamp' attribute value
    javax.naming.directory.InvalidAttributeValueException: Malformed 'createTimestamp' attribute value; remaining name 'cn=arun15382,ou=Dept,o=InterComp'
         at com.sun.jndi.ldap.LdapClient.encodeAttribute(LdapClient.java:964)
         at com.sun.jndi.ldap.LdapClient.add(LdapClient.java:1012)
         at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:648)
         at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:323)
         at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:253)
         at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:241)
         at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:180)

    I've the same problem with lastModifiedTime:
    java.sql.Timestamp cal = new java.sql.Timestamp(System.currentTimeMillis());
    myAttrs.put(new BasicAttribute("lastModifiedTime", cal));
    this results in:
    javax.naming.directory.InvalidAttributeValueException: Malformed 'lastModifiedTime' attribute value; remaining name 'uid=tester,ou=people,dc=...'
         at com.sun.jndi.ldap.LdapClient.encodeAttribute(LdapClient.java:1041)
         at com.sun.jndi.ldap.LdapClient.add(LdapClient.java:1089)
    Have you fixed it?

  • Exception in assigning XML elements value in Workshop

    Hi ,
    I tried creating a variable of type XML object(OrderREsponse). I have one MB Publisher control which sends in a variable of type OrderResponse. Before sending it , I try setting the individual XML elements value in it. So, for all the individual elemtns , I set accordinglly in both the formats.
    responseXML.addNewOrderResponse().setOrderNumber("N12121212");
    responseXML.getOrderResponse().setOrderNumber("N12121212");
    where responseXML is a variable of type OrderResponse document.
    This place while executing I'm getting an exception.
    Here is the exception I'm getting.
    <Jan 4, 2005 10:51:11 AM MST> <Warning> <WLW> <000000> <Id=top-level; Method=com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration()
    ; Failure=com.bea.wli.bpm.runtime.UnhandledProcessException: Unhandled process exception [ServiceException]>
    <Jan 4, 2005 10:51:12 AM MST> <Warning> <WLW> <000000> <A message was unable to be delivered from a WLW Message Queue. Attempting to deliver
    the onAsyncFailure event>
    Let me know if the approach is the right one... or how can i set the individual XML elements value from a XML variable.
    Thanks
    Ramesh

    Hi ,
    I tried creating a variable of type XML object(OrderREsponse). I have one MB Publisher control which sends in a variable of type OrderResponse. Before sending it , I try setting the individual XML elements value in it. So, for all the individual elemtns , I set accordinglly in both the formats.
    responseXML.addNewOrderResponse().setOrderNumber("N12121212");
    responseXML.getOrderResponse().setOrderNumber("N12121212");
    where responseXML is a variable of type OrderResponse document.
    This place while executing I'm getting an exception.
    Here is the exception I'm getting.
    <Jan 4, 2005 10:51:11 AM MST> <Warning> <WLW> <000000> <Id=top-level; Method=com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration()
    ; Failure=com.bea.wli.bpm.runtime.UnhandledProcessException: Unhandled process exception [ServiceException]>
    <Jan 4, 2005 10:51:12 AM MST> <Warning> <WLW> <000000> <A message was unable to be delivered from a WLW Message Queue. Attempting to deliver
    the onAsyncFailure event>
    Let me know if the approach is the right one... or how can i set the individual XML elements value from a XML variable.
    Thanks
    Ramesh

  • Raise exception when the user entered value is not present

    Hello Abap experts,
    To raise an exception in the function module when the imported variable value is not presnt in the table.
    import variable: cust_name.
    how to define a exception for this raise it in the code. any examples and suggestions.
    Thanks,
    BWer

    Here is the F1 help on RAISE.
    <i>
    RAISE
    Basic form 1
    RAISE except.
    Effect
    This statement is only effective in function modules and methods.
    It triggers the exception except.
    If the exception is to be handled by the caller of the function module or method ( CALL FUNCTION or CALL METHOD ), the system passes control straight back to the caller. EXPORT parameters of a function module or method are not filled. The EXPORTING, CHANGING, and RETURNING parameters of a function module or method are only filled with the current values if they were defined to be passed by reference. reference).If they are defined to be passed by value, they are not filled.
    If the exception is not handled by the caller, the program terminates with an appropriate error message.
    Example
    Let there be a function module STRING_SPLIT containing the following code (see also the example in the documentation of the CALL FUNCTION statement):</i>
    <b>FUNCTION-POOL CSTR.
    FUNCTION STRING_SPLIT.
      IF STRING NA DELIMITER.
        RAISE NOT_FOUND.
      ENDIF.
    ENDFUNCTION.</b>
    The calling program might then contain the following:
    <b>PROGRAM EXAMPLE.
    CALL FUNCTION 'STRING_SPLIT'
         EXCEPTIONS
              NOT_FOUND = 7.
    IF SY-SUBRC = 7.
      WRITE / 'There is a problem.'.
    ELSE.
    ENDIF.</b>
    <i>
    If the NOT_FOUND exception is raised in a RAISE statement in the function module STRING_SPLIT, the system exits the function module and returns control to the calling program. The return code, which you should evaluate directly after the CALL FUNCTION statement, now contains the value 7.
    Note
    Runtime errors:
    RAISE_EXCEPTION: The caller did not handle the exception that was triggered.
    Related
    MESSAGE ... RAISING
    Additional help
    Creating Function Modules
    </i>
    Regards,
    Rich Heilman

  • OAS 4.0.8 PL/SQL Catridge exception ORA-6502 (Numeric or value error)

    Hello,
    Out product is using OAS 4.0.8.2 on UNIX running SOlaris. We are using Oracles Web Toolkit for application development and
    presentation. I am basically trying to fill up some HTML form fields and calling
    an HTTP post procedure in response
    to a user clicking a submit button.
    For some reason the PL/SQL cartridge throws an ORA-6502 error(Numeric or value error). Is there any restrictions to the
    string types that can be passed to an HTTP
    post procedure ??
    Any pointers would be greatly appreciated ?
    Thanks,
    Ricko
    null

    We have fixed the problem !!! :-DDD
    Thanks to all Oracle analysts who replied this issue.
    aLeX
    [email protected]

  • Exception while updating a clob value using dbms_lob.fragment_insert

    Hi,
    Here is the query
    procedure tempProc(str3 in varchar2) is
    QI CLOB;
    -- LOB(QI) STORE AS securefile ;
    v_cursor refcursor;
    str varchar2(50);
    i number default '30';
    begin
    open v_cursor for select b.OCEAN_RATE_XML.getClobVal() from TNMAB_OCEAN_RATE_XML B
    WHERE (XMLCast(XMLQuery('declare default element namespace "http://com.oocl.schema.tnm.agreementbuilder"; (: :) /OceanOfferRate/ObjectID'
    PASSING B.OCEAN_RATE_XML RETURNING CONTENT) AS NUMBER(20))) = 200000000000050;
    fetch v_cursor into QI;
    close v_cursor;
    dbms_output.put_line('abcds'||DBMS_LOB.getlength(QI));
    dbms_lob.fragment_insert(QI,3,DBMS_LOB.getlength(QI)-17,'<abc/>');
    dbms_output.put_line('Done insert');
    DBMS_LOB.READ (QI, i, DBMS_LOB.getlength(QI)-i, str);
    --DBMS_LOB.READ(QI,20,DBMS_LOB.getlength(QI)-20,str);
    dbms_output.put_line('Doem read');
    dbms_output.put_line(str);
    end tempProc;
    I am getting the below exceptionError report:
    ORA-43856: Unsupported LOB type for SECUREFILE LOB operation
    ORA-06512: at "SYS.DBMS_LOB", line 1076
    ORA-06512: at "TNM_PLSQL.TNM_AB_QI_UPDT_PKG", line 377
    ORA-06512: at line 5
    ORA-06512: at line 9
    <OceanOfferRate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://com.oocl.schema.tnm.agreementbuilder">
    <ObjectID>200000000000050</ObjectID>
    <RateID>2</RateID>
    <AgreementID>00000002</AgreementID>
    <StartingVersion>0</StartingVersion>
    <EndingVersion>0</EndingVersion>
    <EffectiveFrom>2010-05-16T00:00:00.000000</EffectiveFrom>
    <EffectiveTo>2010-06-30T00:00:00.000000</EffectiveTo>
    <RateStatus>QuoteExpired</RateStatus>
    <ApprovalStatus>Approved</ApprovalStatus>
    <Flags>3</Flags>
    <Tariffs>015</Tariffs>
    <BaseRates>
    <SizeType>20GP</SizeType>
    <Amount>65</Amount>
    <Currency>USD</Currency>
    <EffectiveFrom>2010-05-16T00:00:00.000000</EffectiveFrom>
    <EffectiveTo>2010-06-30T00:00:00.000000</EffectiveTo>
    <Flags>0</Flags>
    </BaseRates>
    <BaseRates>
    <SizeType>40GP</SizeType>
    <Amount>100</Amount>
    <Currency>USD</Currency>
    <EffectiveFrom>2010-05-16T00:00:00.000000</EffectiveFrom>
    <EffectiveTo>2010-06-30T00:00:00.000000</EffectiveTo>
    <Flags>0</Flags>
    </BaseRates>
    <BaseRates>
    <SizeType>40HQ</SizeType>
    <Amount>100</Amount>
    <Currency>USD</Currency>
    <EffectiveFrom>2010-05-16T00:00:00.000000</EffectiveFrom>
    <EffectiveTo>2010-06-30T00:00:00.000000</EffectiveTo>
    <Flags>0</Flags>
    </BaseRates>
    <ShippingPartyGroupName>Default</ShippingPartyGroupName>
    <CustomerContactGroupName>Default</CustomerContactGroupName>
    <NamedCustomerGroupName>Default</NamedCustomerGroupName>
    <LastSentDate>2010-06-14T22:42:48.536000</LastSentDate>
    <ValidityDays>30</ValidityDays>
    <ValidityExpirationDate>2010-06-30T00:00:00.000000</ValidityExpirationDate>
    <GuidelineRateReference>
    <Trunk>
    <RateID>100001510668470</RateID>
    <SurchargeIDs>684172719752758</SurchargeIDs>
    <SurchargeIDs>626856918161564</SurchargeIDs>
    <SurchargeIDs>680028613161439</SurchargeIDs>
    <SurchargeIDs>679555629913553</SurchargeIDs>
    <SurchargeIDs>673382151283681</SurchargeIDs>
    <SurchargeIDs>679789705628181</SurchargeIDs>
    <SurchargeIDs>653835218283772</SurchargeIDs>
    <SurchargeIDs>653955477367768</SurchargeIDs>
    <SurchargeIDs>653955477367759</SurchargeIDs>
    </Trunk>
    </GuidelineRateReference>
    <CreatedOn>2010-05-16T13:40:29.201344</CreatedOn>
    <CreatedBy>KRISHSA</CreatedBy>
    <SalesPerson>COOKBR</SalesPerson>
    <SalesOffice>PHE</SalesOffice>
    <LastUpdated>2010-06-30T00:13:06.000000</LastUpdated>
    <LastUpdatedBy>TNM_APPLN</LastUpdatedBy>
    <Origins>
    <ID_Wrappers>
    <Value>100000000026067</Value>
    </ID_Wrappers>
    <ID_Wrappers>
    <Value>100000000008923</Value>
    </ID_Wrappers>
    <ID_Wrappers>
    <Value>100000000024173</Value>
    </ID_Wrappers>
    </Origins>
    <Destinations>
    <ID_Wrappers>
    <Value>100000000008923</Value>
    </ID_Wrappers>
    <ID_Wrappers>
    <Value>100000000024173</Value>
    </ID_Wrappers>
    <ID_Wrappers>
    <Value>100000000013006</Value>
    </ID_Wrappers>
    <ID_Wrappers>
    <Value>100000000046704</Value>
    </ID_Wrappers>
    </Destinations>
    <DeliveryMode>YY</DeliveryMode>
    <TradeLane>IAT</TradeLane>
    <Commodity>
    <Description>Cotton for test</Description>
    <CargoNatureGroup>32</CargoNatureGroup>
    </Commodity>
    <RateLevel>1</RateLevel>
    </OceanOfferRate>
    Any advise if there is any other ways to update the clob with additional information at the end of the XML before </OceanOfferRate> ?

    A quick example illustrating what I mean :
    Settings
    SQL> create table department_xml (
      2    xmldoc xmltype
      3  , depid  number(4) as
      4    (
      5      xmlcast(
      6        xmlquery('declare default element namespace "http://some.namespace.org"; (: :)
      7                  /Department/@ID' passing xmldoc returning content)
      8        as number(4)
      9      )
    10    ) virtual
    11  )
    12  xmltype xmldoc store as binary xml
    13  ;
    Table created.
    SQL> create unique index department_xml_depid_uix on department_xml (depid);
    Index created.
    SQL> insert into department_xml (xmldoc)
      2  select xmlelement("Department",
      3           xmlattributes('http://some.namespace.org' as "xmlns"
      4                        , department_id as "ID")
      5         , xmlforest(
      6             d.department_name as "departmentName"
      7           , d.manager_id as "managerID"
      8           , xmlforest(
      9               l.street_address as "street"
    10             , l.postal_code as "zipcode"
    11             , l.city as "city"
    12             , l.state_province as "state"
    13             , c.country_name as "country"
    14             ) as "address"
    15           )
    16         )
    17  from hr.departments d
    18       join hr.locations l on l.location_id = d.location_id
    19       join hr.countries c on c.country_id = l.country_id
    20  ;
    27 rows created.
    SQL> commit;
    Commit complete.
    Sample document
    SQL> select xmlserialize(document xmldoc as clob indent) from department_xml where depid = 50;
    XMLSERIALIZE(DOCUMENTXMLDOCASCLOBINDENT)
    <Department xmlns="http://some.namespace.org" ID="50">
      <departmentName>Shipping</departmentName>
      <managerID>121</managerID>
      <address>
        <street>2011 Interiors Blvd</street>
        <zipcode>99236</zipcode>
        <city>South San Francisco</city>
        <state>California</state>
        <country>United States of America</country>
      </address>
    </Department>
    Updating each doc with the list of employees from the corresponding department
    SQL> UPDATE department_xml d
      2  SET d.xmldoc =
      3      insertChildXMLBefore(
      4        d.xmldoc
      5      , '/Department'
      6      , 'address'
      7      , (
      8          select xmlelement("employees",
      9                   xmlagg(
    10                     xmlelement("employee",
    11                       xmlattributes(e.employee_id as "ID")
    12                     , xmlforest( e.first_name || ' ' || e.last_name as "employeeName"
    13                                , e.hire_date as "hireDate"
    14                                , e.salary as "salary" )
    15                     )
    16                     order by e.employee_id
    17                   )
    18                 )
    19          from hr.employees e
    20          where e.department_id = d.depid
    21        )
    22      , 'xmlns="http://some.namespace.org"'
    23      )
    24  ;
    27 rows updated.
    Checking...
    SQL> select xmlserialize(document xmldoc as clob indent) from department_xml where depid = 50;
    XMLSERIALIZE(DOCUMENTXMLDOCASCLOBINDENT)
    <Department xmlns="http://some.namespace.org" ID="50">
      <departmentName>Shipping</departmentName>
      <managerID>121</managerID>
      <employees>
        <employee ID="120">
          <employeeName>Matthew Weiss</employeeName>
          <hireDate>2004-07-18</hireDate>
          <salary>8000</salary>
        </employee>
        <employee ID="121">
          <employeeName>Adam Fripp</employeeName>
          <hireDate>2005-04-10</hireDate>
          <salary>8200</salary>
        </employee>
        <employee ID="122">
          <employeeName>Payam Kaufling</employeeName>
          <hireDate>2003-05-01</hireDate>
          <salary>7900</salary>
        </employee>
        <employee ID="123">
          <employeeName>Shanta Vollman</employeeName>
          <hireDate>2005-10-10</hireDate>
          <salary>6500</salary>
        </employee>
        <employee ID="124">
          <employeeName>Kevin Mourgos</employeeName>
          <hireDate>2007-11-16</hireDate>
          <salary>5800</salary>
        </employee>
        <employee ID="125">
          <employeeName>Julia Nayer</employeeName>
          <hireDate>2005-07-16</hireDate>
          <salary>3200</salary>
        </employee>
        <employee ID="126">
          <employeeName>Irene Mikkilineni</employeeName>
          <hireDate>2006-09-28</hireDate>
          <salary>2700</salary>
        </employee>
        <employee ID="127">
          <employeeName>James Landry</employeeName>
          <hireDate>2007-01-14</hireDate>
          <salary>2400</salary>
        </employee>
        <employee ID="128">
          <employeeName>Steven Markle</employeeName>
          <hireDate>2008-03-08</hireDate>
          <salary>2200</salary>
        </employee>
        <employee ID="129">
          <employeeName>Laura Bissot</employeeName>
          <hireDate>2005-08-20</hireDate>
          <salary>3300</salary>
        </employee>
        <employee ID="130">
          <employeeName>Mozhe Atkinson</employeeName>
          <hireDate>2005-10-30</hireDate>
          <salary>2800</salary>
        </employee>
        <employee ID="131">
          <employeeName>James Marlow</employeeName>
          <hireDate>2005-02-16</hireDate>
          <salary>2500</salary>
        </employee>
        <employee ID="132">
          <employeeName>TJ Olson</employeeName>
          <hireDate>2007-04-10</hireDate>
          <salary>2100</salary>
        </employee>
        <employee ID="133">
          <employeeName>Jason Mallin</employeeName>
          <hireDate>2004-06-14</hireDate>
          <salary>3300</salary>
        </employee>
        <employee ID="134">
          <employeeName>Michael Rogers</employeeName>
          <hireDate>2006-08-26</hireDate>
          <salary>2900</salary>
        </employee>
        <employee ID="135">
          <employeeName>Ki Gee</employeeName>
          <hireDate>2007-12-12</hireDate>
          <salary>2400</salary>
        </employee>
        <employee ID="136">
          <employeeName>Hazel Philtanker</employeeName>
          <hireDate>2008-02-06</hireDate>
          <salary>2200</salary>
        </employee>
        <employee ID="137">
          <employeeName>Renske Ladwig</employeeName>
          <hireDate>2003-07-14</hireDate>
          <salary>3600</salary>
        </employee>
        <employee ID="138">
          <employeeName>Stephen Stiles</employeeName>
          <hireDate>2005-10-26</hireDate>
          <salary>3200</salary>
        </employee>
        <employee ID="139">
          <employeeName>John Seo</employeeName>
          <hireDate>2006-02-12</hireDate>
          <salary>2700</salary>
        </employee>
        <employee ID="140">
          <employeeName>Joshua Patel</employeeName>
          <hireDate>2006-04-06</hireDate>
          <salary>2500</salary>
        </employee>
        <employee ID="141">
          <employeeName>Trenna Rajs</employeeName>
          <hireDate>2003-10-17</hireDate>
          <salary>3500</salary>
        </employee>
        <employee ID="142">
          <employeeName>Curtis Davies</employeeName>
          <hireDate>2005-01-29</hireDate>
          <salary>3100</salary>
        </employee>
        <employee ID="143">
          <employeeName>Randall Matos</employeeName>
          <hireDate>2006-03-15</hireDate>
          <salary>2600</salary>
        </employee>
        <employee ID="144">
          <employeeName>Peter Vargas</employeeName>
          <hireDate>2006-07-09</hireDate>
          <salary>2500</salary>
        </employee>
        <employee ID="180">
          <employeeName>Winston Taylor</employeeName>
          <hireDate>2006-01-24</hireDate>
          <salary>3200</salary>
        </employee>
        <employee ID="181">
          <employeeName>Jean Fleaur</employeeName>
          <hireDate>2006-02-23</hireDate>
          <salary>3100</salary>
        </employee>
        <employee ID="182">
          <employeeName>Martha Sullivan</employeeName>
          <hireDate>2007-06-21</hireDate>
          <salary>2500</salary>
        </employee>
        <employee ID="183">
          <employeeName>Girard Geoni</employeeName>
          <hireDate>2008-02-03</hireDate>
          <salary>2800</salary>
        </employee>
        <employee ID="184">
          <employeeName>Nandita Sarchand</employeeName>
          <hireDate>2004-01-27</hireDate>
          <salary>4200</salary>
        </employee>
        <employee ID="185">
          <employeeName>Alexis Bull</employeeName>
          <hireDate>2005-02-20</hireDate>
          <salary>4100</salary>
        </employee>
        <employee ID="186">
          <employeeName>Julia Dellinger</employeeName>
          <hireDate>2006-06-24</hireDate>
          <salary>3400</salary>
        </employee>
        <employee ID="187">
          <employeeName>Anthony Cabrio</employeeName>
          <hireDate>2007-02-07</hireDate>
          <salary>3000</salary>
        </employee>
        <employee ID="188">
          <employeeName>Kelly Chung</employeeName>
          <hireDate>2005-06-14</hireDate>
          <salary>3800</salary>
        </employee>
        <employee ID="189">
          <employeeName>Jennifer Dilly</employeeName>
          <hireDate>2005-08-13</hireDate>
          <salary>3600</salary>
        </employee>
        <employee ID="190">
          <employeeName>Timothy Gates</employeeName>
          <hireDate>2006-07-11</hireDate>
          <salary>2900</salary>
        </employee>
        <employee ID="191">
          <employeeName>Randall Perkins</employeeName>
          <hireDate>2007-12-19</hireDate>
          <salary>2500</salary>
        </employee>
        <employee ID="192">
          <employeeName>Sarah Bell</employeeName>
          <hireDate>2004-02-04</hireDate>
          <salary>4000</salary>
        </employee>
        <employee ID="193">
          <employeeName>Britney Everett</employeeName>
          <hireDate>2005-03-03</hireDate>
          <salary>3900</salary>
        </employee>
        <employee ID="194">
          <employeeName>Samuel McCain</employeeName>
          <hireDate>2006-07-01</hireDate>
          <salary>3200</salary>
        </employee>
        <employee ID="195">
          <employeeName>Vance Jones</employeeName>
          <hireDate>2007-03-17</hireDate>
          <salary>2800</salary>
        </employee>
        <employee ID="196">
          <employeeName>Alana Walsh</employeeName>
          <hireDate>2006-04-24</hireDate>
          <salary>3100</salary>
        </employee>
        <employee ID="197">
          <employeeName>Kevin Feeney</employeeName>
          <hireDate>2006-05-23</hireDate>
          <salary>3000</salary>
        </employee>
        <employee ID="198">
          <employeeName>Donald OConnell</employeeName>
          <hireDate>2007-06-21</hireDate>
          <salary>2600</salary>
        </employee>
        <employee ID="199">
          <employeeName>Douglas Grant</employeeName>
          <hireDate>2008-01-13</hireDate>
          <salary>2600</salary>
        </employee>
      </employees>
      <address>
        <street>2011 Interiors Blvd</street>
        <zipcode>99236</zipcode>
        <city>South San Francisco</city>
        <state>California</state>
        <country>United States of America</country>
      </address>
    </Department>

  • MakePersistent exception and second class object value

    1. When makePersistent is called on an object with application id that
    already exists in the database, a JDOFatalDataStoreException is thrown.
    The JDO specification calls for a JDOUserException (17.1.4).
    2. If there are stray data for a second class field (e.g. Hashtable)
    before the object is created, the stray data will become part of the value
    of the second class object.
    Suggestion: Delete statements should be issued to delete stray values for
    second class fields.
    ---------- Program output -------------
    After makePersistent: Persistent-Dirty-New
    After add inside transaction: Persistent-Dirty-New
    [ C:9; S:58; T:5; D:11/29/02 9:47 PM ] INSERT INTO PORTFOLIOX(JDOLOCKX,
    JDOCLASSX, NAMEX) VALUES (0, 'quocp.ent.Portfolio', 'TESTPF')
    [ C:9; T:5; D:11/29/02 9:47 PM ] roll back data store transaction
    javax.jdo.JDOFatalDataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO
    PORTFOLIOX(JDOLOCKX, JDOCLASSX, NAMEX) VALUES (0, 'quocp.ent.Portfolio',
    'TESTPF')] Invalid argument value: Duplicate entry 'TESTPF' for key 1
    [code=1062;state=S1009]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO
    PORTFOLIOX(JDOLOCKX, JDOCLASSX, NAMEX) VALUES (0, 'quocp.ent.Portfolio',
    'TESTPF')] Invalid argument value: Duplicate entry 'TESTPF' for key 1
    end trans[11/29 21:47:28:913]

    Well, you can always do this type of cleanup manually if you so desire.
    Having Kodo automatically guess about what constitutes valid data seems
    pretty dangerous though.
    I'd suggest that you put the appropriate deferred referential integrity
    checks on your schema instead. This will let the database guarantee the
    consistency of the data.
    -Patrick
    Quoc Pham wrote:
    If the data for the second class member somehow are there in the table
    (maybe someone deleted the owning instance without cleaning up the owned
    data), then it woul be picked up. It would be safer to have an option to
    issue an SQL statement to clean up the data.
    "Patrick Linskey" wrote in message
    news:asegfu$9r0$[email protected]..
    Quoc Pham wrote:
    2. If there are stray data for a second class field (e.g. Hashtable)
    before the object is created, the stray data will become part of the
    value
    of the second class object.What do you mean by 'stray data?'
    -Patrick
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Error messessage for software update is NSI Invalid Argument Exception attempt to insert nil value. No other apps work but Safari help?

    I can't get through software update - keep getting this on the thread. How do I fix?

    I would reinstall OS X:
    Reinstall OS X without erasing the drive
    Do the following:
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install the Combo Updater for the version you prefer from support.apple.com/downloads/.

Maybe you are looking for

  • BPEL Scheduling in SOA Suite 11g

    Hi, I am new to Oracle SOA. I have come across of multiple ways of scheduling in BPEL (Using Servelts with Quartz, DBMS_JOB, Enterprise Scheduler, Wiat activity etc). Can any one suggest best approach to handle various scenarios in scheduling. What i

  • Extent GL Account

    Dear Expert, I have one company code (A) and want to make new company codes (B) and (C). Is it possible to extend all G/L account in company code (A) to company code (B) and (C) ? Is it possible to use same Customer Master, Vendor Master, Chart Of Ac

  • COR2 release flag(Process Order Release)

    HI all, can we release a work order from  cor2 if yes where can we find that release flag Thanks in Advance, Suresh

  • Cross Platform migration AIX to linux (ERROR IN CONVERSION ORA-19994: Message 19994 not found)

    I am performing a cross platform migration aix to Linux from release 11.2.0.2 to 11.2.0.4. I am using this doc Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 1389592.1). I am using the db_file_transer method

  • Sharing presentations online privately

    We created a presentation in keynote for an important client. He's requested that we give him the ability to share the slide show with individuals over the internet. He also wants to be able to make it, not only private, but also only temporarily vie