Class or alias

Trying to get this to determine if the added items to a folder are a folder or file. seems to be stuck somewhere. Is alias a better reference for the contents.
if the class of eachitem = folder then
set msgText to "The folder " & thefilename & " has been created in the" & companyName & "FTP"
else
set msgText to "The file " & thefilename & " has been uploaded to the" & companyName & "FTP"
end if

I think "folder of (info for eachitem)" is what you're looking for. Like this example:
<pre style="margin:0px;padding:5px;border:2px dotted green;width:630px; height:auto;color:#ffffff;background-color:#000000;overflow-x:auto;overflow-y:h idden;font-family:Verdana, Monaco, monospace;font-weight:bold;font-size:12px;"
title="Copy this text and paste it into your Script Editor application.">set theItem to path to desktop
set theInfo to info for theItem
set fileName to name of theInfo
set companyName to "CompanyName"
if folder of theInfo then
set msgText to "The folder " & fileName & " has been created in the " & companyName & " FTP"
else
set msgText to "The file " & fileName & " has been uploaded to the " & companyName & " FTP"
end if</pre>
Hope this helps...

Similar Messages

  • OpenJPA - ArgumentException: Could not locate metadata for the class usi...

    I'm getting the following exception when executing logic/queries around JPA entity classes:
    {color:#333399}nested exception is: &lt;1.0.0 fatal user error&gt; org.apache.openjpa.persistence.ArgumentException: Could not locate metadata for the class using alias "MyClass". This could mean that the OpenJPA enhancer or load-time weaver was not run on the type whose alias is "MyClass". Registered alias mappings: "{MyClass=null}"{color}
    I get this exception on occassion. It is intermitent and i can't seem to reproduce it consistently.
    I'm using the following:
    WebLogic: 10
    KODO: 4.1.3.1 bundled with WL10 which in turn uses OpenJPA 1.0.0
    In other forums on the net they have suggested explicitly adding the classes to the persistence.xml file ( i've done this )
    They have also stated to run the openjpa enhancer on the code before deployment to WL ( done this too!)
    One last step that i have yet to attempt is to load the class within the code before use ( haven't tried this as it seems so hackish)
    Any other thoughts? ANyone else experience this?
    Thanks

    We are having the same issue.. Anybody knows how to deal with this problem?

  • KM Scheduler Task

    Hello All,
    We have a scenario where I have scheduled a task written a Java program (System Administration > System Configuration> Knowledge Management --> Global services --> Scheduler Task --> Program (I am able to see the program )).
    But for some reason  I doubt if the scheduler is running .  I have assigned the schedule , BUT NOT THE CM SYSTEM , we have two CM systems here , How do I come to know which one to select ?
    Regards,
    Ronniee.

    Hello,
    Looking at the default trace I am getting the following errors.
    Could not find the command java class for alias xxx . Check whether the archive containing the mapped java class is deployed.
    xxx  = <search_from_here>
               <lock_mass>
               <link_details>
               <new_folder>.
    Any Idea what might be the resolution for the same .
    On the portal level, I have gone to System administration --> System Confguration --> Content Management -->User Interface --> UI Commands , I can see "search_from_here" , "lock_mass" , "link_details" , "new_folder" commands , but how are these commands related ?. How can I resolve the given problem related to the scheduler task.
    Regards,
    Ronniee

  • Use of current time for polling Database Adapter query

    I am writing a simple BPEL process with a Polling Database Adapter and a Recieve. The idea is that we are polling an XE database for any entries in a TRIP table which have an expiration date/time field that has passed.
    The Adapter was build using JDeveloper 10.1.3.2 (with Oracle Application Server patched to 10.1.3.3.0) as a "Poll for New Changed Records in a Table" Operation type with a STATUS field (0 for live, 1 for expired) as the Logical Delete Field.
    I was unable to find a way to generate a SELECT query expression with the wizard that would allow me to use current/system time as an attribute, so I finished the wizard and edited the Toplink Descriptor to use a custom SQL expression for the query. This resulted in the following code in the toplink_mappings.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)"
    xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>ExpiredTripPoller</opm:name>
    <opm:class-mapping-descriptors>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>ExpiredTripPoller.Trip</opm:class>
    <opm:alias>Trip</opm:alias>
    <opm:primary-key>
    <opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy">
    <opm:queries>
    <opm:query name="ExpiredTripPoller" xsi:type="toplink:read-all-query">
    <toplink:timeout>0</toplink:timeout>
    <toplink:call xsi:type="toplink:sql-call">
    <toplink:sql>SELECT ID, LPN, START_TIME, EXPIRY_TIME, STATUS FROM TRIP WHERE ((STATUS = '0') AND (EXPIRY_TIME < SYSDATE)) ORDER BY EXPIRY_TIME ASC</toplink:sql>
    </toplink:call>
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:cache-usage>primary-key</toplink:cache-usage>
    <toplink:lock-mode>none</toplink:lock-mode>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </opm:query>
    <opm:query name="findAllTrip" xsi:type="toplink:read-all-query">
    <toplink:timeout>0</toplink:timeout>
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:cache-usage>primary-key</toplink:cache-usage>
    <toplink:lock-mode>none</toplink:lock-mode>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </opm:query>
    </opm:queries>
    <toplink:does-exist-query xsi:type="toplink:does-exist-query">
    <toplink:existence-check>check-database</toplink:existence-check>
    </toplink:does-exist-query>
    <toplink:read-all-query xsi:type="toplink:read-all-query">
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </toplink:read-all-query>
    </opm:querying>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>id</opm:attribute-name>
    <opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
    <opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>lpn</opm:attribute-name>
    <opm:field table="TRIP" name="LPN" xsi:type="opm:column"/>
    <opm:attribute-classification>java.lang.String</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>startTime</opm:attribute-name>
    <opm:field table="TRIP" name="START_TIME" xsi:type="opm:column"/>
    <opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>expiryTime</opm:attribute-name>
    <opm:field table="TRIP" name="EXPIRY_TIME" xsi:type="opm:column"/>
    <opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>status</opm:attribute-name>
    <opm:field table="TRIP" name="STATUS" xsi:type="opm:column"/>
    <opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    <toplink:always-refresh>true</toplink:always-refresh>
    </toplink:caching>
    <toplink:remote-caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    </toplink:remote-caching>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="TRIP"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    </toplink:object-persistence>
    To test I used the above custom SQL at the command line and it filtered the records by EXPIRY_TIME as expected.
    When deployed, the polling process updates the STATUS file dof table entries, but all entries with status 0 regardless of EXPIRY_DATE. My modification appears to be being ignored. I was unsure as to whether the QUERY was being determined in some other way so I modified the descriptor (with the toplink expression editor) to compare against a literal time value, producing the following modified toplink_mappings.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)"
    xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>ExpiredTripPoller</opm:name>
    <opm:class-mapping-descriptors>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>ExpiredTripPoller.Trip</opm:class>
    <opm:alias>Trip</opm:alias>
    <opm:primary-key>
    <opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy">
    <opm:queries>
    <opm:query name="ExpiredTripPoller" xsi:type="toplink:read-all-query">
    <opm:criteria operator="lessThan" xsi:type="toplink:relation-expression">
    <toplink:left name="expiryTime" xsi:type="toplink:query-key-expression">
    <toplink:base xsi:type="toplink:base-expression"/>
    </toplink:left>
    <toplink:right xsi:type="toplink:constant-expression">
    <toplink:value xsi:type="xsd:date">2007-07-30</toplink:value>
    </toplink:right>
    </opm:criteria>
    <toplink:timeout>0</toplink:timeout>
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:cache-usage>primary-key</toplink:cache-usage>
    <toplink:lock-mode>none</toplink:lock-mode>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </opm:query>
    <opm:query name="findAllTrip" xsi:type="toplink:read-all-query">
    <toplink:timeout>0</toplink:timeout>
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:cache-usage>primary-key</toplink:cache-usage>
    <toplink:lock-mode>none</toplink:lock-mode>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </opm:query>
    </opm:queries>
    <toplink:does-exist-query xsi:type="toplink:does-exist-query">
    <toplink:existence-check>check-database</toplink:existence-check>
    </toplink:does-exist-query>
    <toplink:read-all-query xsi:type="toplink:read-all-query">
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </toplink:read-all-query>
    </opm:querying>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>id</opm:attribute-name>
    <opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
    <opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>lpn</opm:attribute-name>
    <opm:field table="TRIP" name="LPN" xsi:type="opm:column"/>
    <opm:attribute-classification>java.lang.String</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>startTime</opm:attribute-name>
    <opm:field table="TRIP" name="START_TIME" xsi:type="opm:column"/>
    <opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>expiryTime</opm:attribute-name>
    <opm:field table="TRIP" name="EXPIRY_TIME" xsi:type="opm:column"/>
    <opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>status</opm:attribute-name>
    <opm:field table="TRIP" name="STATUS" xsi:type="opm:column"/>
    <opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    <toplink:always-refresh>true</toplink:always-refresh>
    </toplink:caching>
    <toplink:remote-caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    </toplink:remote-caching>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="TRIP"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    </toplink:object-persistence>
    On deployment, this version of the BPEL process behaved as expected - only modifying the records with EXPIRY_TIME less thatn the literal time specified. (Also, I can't really pass in the time as a parameter as this is a polling model).
    Can anyone shed any light on what is happening or suggest how I might go about polling in the desired way?
    Cheers

    Please take a look at this article which states SYSDATE is not supported in a
    where clause.
    http://www.oracle.com/technology/pub/articles/bpel_cookbook/qualcomm-bpel.html
    Excerpt from the article:
    Here are three important things you should do in implementing the above design:
    Have the status of the record being processed stored in the database. The status includes the process state, next process attempt time, and processing attempt count.
    Create an updatable view that exposes only records that are ready to be processed. A view is needed because the database adapter cannot handle a where clause that compares against SYSDATE.
    Design logic that determines if a process instance that has faulted should be retried and when the retry should occur. This information will be updated in the database by use of a stored procedure. This can also be done with an update partner link and additional logic in BPEL.
    mahalo,
    a iii

  • Mediator - convert XSD datetime to SQL date value

    Fusion 11g, JDev 11.1.1, W server 2008
    Hi there,
    using JDev we've defined a DB adapter (towards an ORACLE schema), which basically serves two operations: INSERT and SELECT. On the DB table we've got a DATE_TIME while on on the other side we've defined a wsdl where the INPUT operation takes as parameter an XSD DATETIME value.
    The values have different structures and so we've started to play with the "Assign Values" function on the Mediator component, unfortunately without any success.
    Right now our expression is the following
    from
    ora:formatDate($in.newEventParam/newEventParam/ns:executionTime,"dd-MMM-yy")
    to
    $out.LogCollection/top:LogCollection/top:Log/top:when
    As first question I would like to ask you if our approach is correct and in that case what's wrong with our expression as we tried to use the same pattern as we use in SQL.
    Second, we performed some tests using the EM console. On test failure it shown a stack trace saying only that there was a problem performing a transformation. That's a bit too less, especially when transformation is done on large amount of values. Is there any way to increase trace level and get further details on which transformation didn't work out?
    Thanks in advance
    Alessandro Ilardo

    Thanks Eric for the link. That helped me to get further details about the issue but unfortunately not enough to locate the cause.
    So here I definitely have an issue with the composite application and perhaps another one on getting a SOAP trace from the Mediator log. Even with the finest log level enabled I couldn't see what the Mediator receives from outside.
    The first problem instead, seams to be a missing SOAP parameter, I assume that's why on the log I see this
    [WEBSERVICE.name: AuditService] [J2EE_APP.name: soa-infra] [composite_instance_id: 40011] Transformation failed[[
    oracle.tip.mediator.infra.exception.MediatorException: ORAMED-01203:[No Part]No part exist with name "newEventParam" in source message.Possible Fix:Review the transformation definition in mplan.Contact Oracle Support if the error cannot be fixed.
         at oracle.tip.mediator.service.transformation.XSLTransformer.getPartDocument(XSLTransformer.java:221)
    [J2EE_APP.name: soa-infra] [composite_instance_id: 40011] Got an exception: java.lang.NullPointerException[[
    oracle.tip.mediator.infra.exception.MediatorException: ORAMED-01201:[Error in transform operation]Error occurred while transforming payload.Possible Fix:Review the XSL or source payload. Either the XSL defined does not match with the payload or payload is invalid.
    In this routing there are basically 2 things that take place, an XSL mapping and an Assign value expression.
    Everything is goes fine until we perform a test from the EM, there we get the error.
    Unless someone has further tips on this issue I am considering to make a call from SOAPUI and place WS Monitor in the middle to make sure if the mistake is in the application or platform.
    External WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://xml.virtual-lab.eu/schema/poc-soa/audit/wsdl" xmlns:ns="http://xml.virtual-lab.eu/schema/poc-soa/audit/def" targetNamespace="http://xml.virtual-lab.eu/schema/poc-soa/audit/wsdl">
         <wsdl:types>
              <schema xmlns="http://www.w3.org/2001/XMLSchema">
                   <import namespace="http://xml.virtual-lab.eu/schema/poc-soa/audit/def" schemaLocation="xsd/AuditParamsDef.xsd"/>
              </schema>
         </wsdl:types>
         <wsdl:message name="addNewRequestMessage">
              <wsdl:part name="newEventParam" type="ns:add"/>
         </wsdl:message>
         <wsdl:message name="searchRequestMessage">
              <wsdl:part name="searchParams" type="ns:search"/>
         </wsdl:message>
         <wsdl:message name="searchResponseMessage">
              <wsdl:part name="returnParam" type="ns:eventObj"/>
         </wsdl:message>
         <wsdl:portType name="AuditPortType">
              <wsdl:operation name="addNewEvent">
                   <wsdl:input message="tns:addNewRequestMessage"/>
              </wsdl:operation>
              <wsdl:operation name="searchForEvents">
                   <wsdl:input message="tns:searchRequestMessage"/>
                   <wsdl:output message="tns:searchResponseMessage"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="AuditBinding" type="tns:AuditPortType">
              <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <wsdl:operation name="addNewEvent">
                   <soap:operation soapAction="urn:#addNewEvent"/>
                   <wsdl:input>
                        <soap:body use="literal"/>
                   </wsdl:input>
              </wsdl:operation>
              <wsdl:operation name="searchForEvents">
                   <soap:operation soapAction="urn:#searchForEvents"/>
                   <wsdl:input>
                        <soap:body use="literal"/>
                   </wsdl:input>
                   <wsdl:output>
                        <soap:body use="literal"/>
                   </wsdl:output>
              </wsdl:operation>
         </wsdl:binding>
         <!--
         <wsdl:service name="AuditService">
              <wsdl:port name="AuditPort" binding="tns:AuditBinding" />
         </wsdl:service>
    -->
    </wsdl:definitions>
    XSL
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="WSDL">
    <schema location="../AuditService.wsdl"/>
    <rootElement name="newEventParam" namespace=""/>
    <rootElementDatatype name="add" namespace="http://xml.virtual-lab.eu/schema/poc-soa/audit/def"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="WSDL">
    <schema location="../AuditBackEndService.wsdl"/>
    <rootElement name="LogCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/AuditBackEndService"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.0.0(build 090618.1440.5219) AT [WED DEC 02 22:51:43 CET 2009]. -->
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/AuditBackEndService"
    xmlns:xpath20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/SOA-POC/AuditService/AuditBackEndService%2F"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:ns="http://xml.virtual-lab.eu/schema/poc-soa/audit/def"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    exclude-result-prefixes="xsi xsl ns xsd top tns plt wsdl xpath20 bpws mhdr oraext dvm hwf med ids xdk xref ora socket">
    <xsl:template match="/">
    <top:LogCollection>
    <top:Log>
    <top:who>
    <xsl:value-of select="/newEventParam/ns:fromUser"/>
    </top:who>
    <top:when/>
    <top:whichClient>
    <xsl:value-of select="/newEventParam/ns:usingClient"/>
    </top:whichClient>
    <top:whichSys>
    <xsl:value-of select="/newEventParam/ns:onSys/@ns:which"/>
    </top:whichSys>
    <top:ipClient>
    <xsl:value-of select="/newEventParam/ns:fromIP"/>
    </top:ipClient>
    <top:wsOperation>
    <xsl:value-of select="/newEventParam/ns:callingWS_Operation"/>
    </top:wsOperation>
    </top:Log>
    </top:LogCollection>
    </xsl:template>
    </xsl:stylesheet>
    Internal WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 11g Release 1 (11.1.1.1.0) (Build 090527)" xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>AuditBackEndService-OR</opm:name>
    <opm:class-mapping-descriptors>
    <opm:class-mapping-descriptor xsi:type="toplink:object-relational-class-mapping-descriptor">
    <opm:class>AuditBackEndService.Log</opm:class>
    <opm:alias>LOG</opm:alias>
    <opm:primary-key>
    <opm:field table="LOG" name="ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy">
    <opm:queries>
    <opm:query name="AuditBackEndServiceSelect" xsi:type="toplink:read-all-query">
    <opm:criteria operator="and" xsi:type="toplink:logic-expression">
    <toplink:left operator="and" xsi:type="toplink:logic-expression">
    <toplink:left operator="equal" xsi:type="toplink:relation-expression">
    <toplink:left name="whichSys" xsi:type="toplink:query-key-expression">
    <toplink:base xsi:type="toplink:base-expression"/>
    </toplink:left>
    <toplink:right xsi:type="toplink:parameter-expression">
    <toplink:parameter name="sys" xsi:type="opm:column"/>
    </toplink:right>
    </toplink:left>
    <toplink:right operator="greaterThanEqual" xsi:type="toplink:relation-expression">
    <toplink:left name="when" xsi:type="toplink:query-key-expression">
    <toplink:base xsi:type="toplink:base-expression"/>
    </toplink:left>
    <toplink:right xsi:type="toplink:parameter-expression">
    <toplink:parameter name="fromWhen" xsi:type="opm:column"/>
    </toplink:right>
    </toplink:right>
    </toplink:left>
    <toplink:right operator="lessThanEqual" xsi:type="toplink:relation-expression">
    <toplink:left name="when" xsi:type="toplink:query-key-expression">
    <toplink:base xsi:type="toplink:base-expression"/>
    </toplink:left>
    <toplink:right xsi:type="toplink:parameter-expression">
    <toplink:parameter name="toWhen" xsi:type="opm:column"/>
    </toplink:right>
    </toplink:right>
    </opm:criteria>
    <opm:arguments>
    <opm:argument name="sys">
    <opm:type>java.lang.String</opm:type>
    </opm:argument>
    <opm:argument name="fromWhen">
    <opm:type>java.lang.String</opm:type>
    </opm:argument>
    <opm:argument name="toWhen">
    <opm:type>java.lang.String</opm:type>
    </opm:argument>
    </opm:arguments>
    <toplink:reference-class>AuditBackEndService.Log</toplink:reference-class>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </opm:query>
    </opm:queries>
    </opm:querying>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>id</opm:attribute-name>
    <opm:field table="LOG" name="ID" xsi:type="opm:column"/>
    <toplink:attribute-classification>java.math.BigDecimal</toplink:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>who</opm:attribute-name>
    <opm:field table="LOG" name="WHO" xsi:type="opm:column"/>
    <toplink:attribute-classification>java.lang.String</toplink:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>when</opm:attribute-name>
    <opm:field table="LOG" name="WHEN" xsi:type="opm:column"/>
    <toplink:attribute-classification>java.sql.Timestamp</toplink:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>whichClient</opm:attribute-name>
    <opm:field table="LOG" name="WHICH_CLIENT" xsi:type="opm:column"/>
    <toplink:attribute-classification>java.lang.String</toplink:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>whichSys</opm:attribute-name>
    <opm:field table="LOG" name="WHICH_SYS" xsi:type="opm:column"/>
    <toplink:attribute-classification>java.lang.String</toplink:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>ipClient</opm:attribute-name>
    <opm:field table="LOG" name="IP_CLIENT" xsi:type="opm:column"/>
    <toplink:attribute-classification>java.lang.String</toplink:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>wsOperation</opm:attribute-name>
    <opm:field table="LOG" name="WS_OPERATION" xsi:type="opm:column"/>
    <toplink:attribute-classification>java.lang.String</toplink:attribute-classification>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    <toplink:always-refresh>true</toplink:always-refresh>
    </toplink:caching>
    <toplink:remote-caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    </toplink:remote-caching>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:tables>
    <toplink:table name="LOG"/>
    </toplink:tables>
    <toplink:structure>structureName</toplink:structure>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle9Platform</toplink:platform-class>
    <toplink:user-name></toplink:user-name>
    <toplink:connection-url>null</toplink:connection-url>
    </toplink:login>
    </toplink:object-persistence>

  • Batch reading request doesn't prefix field names by table name

    A batch reading request doesn't prefix field names by table name and I've got a AmbigiousException which is normal because there is the same fields in the 2 tables.
    The following code :
    //call a ReadAllQuery and return a list of AffaireImpl
    List<Affaire> listeAffaire =  affaireDao.getAffaireCorrespondantes(lccJrd, lnaAnnee, lnaOrdre, lcNataffCode, lnaNoSuite);
    for (Affaire affaire : listeAffaire) {
       //there is a one to Many mapping on Affaire to Dossier, with Transparent Indirection, Read-Ony and Batch Reading
       //this metod generate the wrong batch reading method
       List<Dossier> listeDossiers = affaire.getDossier();
    generates the following requests:
    ReadAllQuery(eu.curia.litige.model.AffaireImpl) --
    SELECT * FROM LA_AFF WHERE ( ((LCC_JRD = 'C') AND (LNA_ANNEE = 8)) AND (LNA_ORDRE = 8))
    ReadAllQuery(eu.curia.litige.model.DossierImpl) --
    SELECT t0.*
    FROM LA_DOSSIER t0, LA_AFF t1
    WHERE
    (((t0.LNA_NO_SUITE = t1.LNA_NO_SUITE) AND ((t0.LCC_JRD = t1.LCC_JRD) AND ((t0.LC_NATAFF_CODE = t1.LC_NATAFF_CODE) AND ((t0.LNA_ANNEE = t1.LNA_ANNEE) AND (t0.LNA_ORDRE = t1.LNA_ORDRE)))))
    AND UPPER(LCC_JRD) = 'C' AND UPPER(LNA_ORDRE) = '8' AND UPPER(LNA_ANNEE) = '8')+
    but the request should be :
    SELECT t0.*
    FROM LA_DOSSIER t0, LA_AFF t1
    WHERE
    (((t0.LNA_NO_SUITE = t1.LNA_NO_SUITE) AND ((t0.LCC_JRD = t1.LCC_JRD) AND ((t0.LC_NATAFF_CODE = t1.LC_NATAFF_CODE) AND ((t0.LNA_ANNEE = t1.LNA_ANNEE) AND (t0.LNA_ORDRE = t1.LNA_ORDRE)))))
    AND t1.LCC_JRD = 'C' AND t1.LNA_ORDRE = '8' AND t1.LNA_ANNEE = '8')+
    It's strange because this is the only place the batch reading doesn't prefix and uses a UPPER.
    For now we have disabled the batch reading, but it decreases the performanes (the list of affaire can be hudge).
    Any Idea?
    We use TopLink 10.1.3 on a Oracle 10g Database.
    Edited by: krampstudio on 2 déc. 2011 07:40
    Edited by: krampstudio on Dec 7, 2011 11:57 AM

    Here the mapping (I've also remove the tags of some of the direct mapping fields to simplify the reading)
         <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
             <opm:class>eu.curia.litige.model.AffaireImpl</opm:class>
             <opm:alias>Affaire</opm:alias>
             <opm:primary-key>
                <opm:field table="LA_AFF" name="LC_NATAFF_CODE" xsi:type="opm:column"/>
                <opm:field table="LA_AFF" name="LCC_JRD" xsi:type="opm:column"/>
                <opm:field table="LA_AFF" name="LNA_ANNEE" xsi:type="opm:column"/>
                <opm:field table="LA_AFF" name="LNA_NO_SUITE" xsi:type="opm:column"/>
                <opm:field table="LA_AFF" name="LNA_ORDRE" xsi:type="opm:column"/>
             </opm:primary-key>
             <opm:events xsi:type="toplink:event-policy"/>
             <opm:querying xsi:type="toplink:query-policy">
                <toplink:does-exist-query xsi:type="toplink:does-exist-query">
                   <toplink:existence-check>check-database</toplink:existence-check>
                </toplink:does-exist-query>
             </opm:querying>
             <opm:attribute-mappings>
                <opm:attribute-mapping xsi:type="toplink:one-to-many-mapping">
                   <opm:attribute-name>dossier</opm:attribute-name>
                   <opm:read-only>true</opm:read-only>
                   <opm:get-method>getDossier</opm:get-method>
                   <opm:set-method>setDossier</opm:set-method>
                   <opm:reference-class>eu.curia.litige.model.DossierImpl</opm:reference-class>
                   <opm:target-foreign-key>
                      <opm:field-reference>
                         <opm:source-field table="LA_DOSSIER" name="LCC_JRD" xsi:type="opm:column"/>
                         <opm:target-field table="LA_AFF" name="LCC_JRD" xsi:type="opm:column"/>
                      </opm:field-reference>
                      <opm:field-reference>
                         <opm:source-field table="LA_DOSSIER" name="LNA_ANNEE" xsi:type="opm:column"/>
                         <opm:target-field table="LA_AFF" name="LNA_ANNEE" xsi:type="opm:column"/>
                      </opm:field-reference>
                      <opm:field-reference>
                         <opm:source-field table="LA_DOSSIER" name="LNA_ORDRE" xsi:type="opm:column"/>
                         <opm:target-field table="LA_AFF" name="LNA_ORDRE" xsi:type="opm:column"/>
                      </opm:field-reference>
                      <opm:field-reference>
                         <opm:source-field table="LA_DOSSIER" name="LC_NATAFF_CODE" xsi:type="opm:column"/>
                         <opm:target-field table="LA_AFF" name="LC_NATAFF_CODE" xsi:type="opm:column"/>
                      </opm:field-reference>
                      <opm:field-reference>
                         <opm:source-field table="LA_DOSSIER" name="LNA_NO_SUITE" xsi:type="opm:column"/>
                         <opm:target-field table="LA_AFF" name="LNA_NO_SUITE" xsi:type="opm:column"/>
                      </opm:field-reference>
                   </opm:target-foreign-key>
                   <toplink:batch-reading>true</toplink:batch-reading>
                   <toplink:container xsi:type="toplink:list-container-policy">
                      <toplink:collection-type>oracle.toplink.indirection.IndirectList</toplink:collection-type>
                   </toplink:container>
                   <toplink:indirection xsi:type="toplink:transparent-collection-indirection-policy"/>
                   <toplink:selection-query xsi:type="toplink:read-all-query">
                      <toplink:container xsi:type="toplink:list-container-policy">
                         <toplink:collection-type>oracle.toplink.indirection.IndirectList</toplink:collection-type>
                      </toplink:container>
                   </toplink:selection-query>
                </opm:attribute-mapping>
                <opm:attribute-mapping xsi:type="toplink:direct-mapping">
                   <opm:attribute-name>lccJrd</opm:attribute-name>
                   <opm:field table="LA_AFF" name="LCC_JRD" xsi:type="opm:column"/>
                </opm:attribute-mapping>
                <opm:attribute-mapping xsi:type="toplink:direct-mapping">
                   <opm:attribute-name>lcNataffCode</opm:attribute-name>
                   <opm:field table="LA_AFF" name="LC_NATAFF_CODE" xsi:type="opm:column"/>
                </opm:attribute-mapping>
                <opm:attribute-mapping xsi:type="toplink:direct-mapping">
                   <opm:attribute-name>lnaAnnee</opm:attribute-name>
                   <opm:field table="LA_AFF" name="LNA_ANNEE" xsi:type="opm:column"/>
                </opm:attribute-mapping>
                <opm:attribute-mapping xsi:type="toplink:direct-mapping">
                   <opm:attribute-name>lnaNoSuite</opm:attribute-name>
                   <opm:field table="LA_AFF" name="LNA_NO_SUITE" xsi:type="opm:column"/>
                </opm:attribute-mapping>
                <opm:attribute-mapping xsi:type="toplink:direct-mapping">
                   <opm:attribute-name>lnaOrdre</opm:attribute-name>
                   <opm:field table="LA_AFF" name="LNA_ORDRE" xsi:type="opm:column"/>
                </opm:attribute-mapping>
             </opm:attribute-mappings>
             <toplink:descriptor-type>independent</toplink:descriptor-type>
             <toplink:caching>
                <toplink:cache-invalidation-policy xsi:type="toplink:time-to-live-cache-invalidation-policy">
                   <toplink:time-to-live>30000</toplink:time-to-live>
                </toplink:cache-invalidation-policy>
             </toplink:caching>
             <toplink:instantiation/>
             <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
             <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
             <toplink:tables>
                <toplink:table name="LA_AFF"/>
             </toplink:tables>
          </opm:class-mapping-descriptor>

  • DBAdapter and Sequcne on 10.1.3.3

    I have an issue regarding using native sequnce in DBAdapter to insert a new record into database.
    For Bpel 10.1.2
    I have to problem to use native sequnce by setting *mappig.xml and oc4j.xml.
    For Bpel 10.1.3.3 I saw "cnnot insert NULL" error. I am not sure why.
    ==The error message
    ORA-01400: cannot insert NULL into ("AP"."AP_INVOICES_INTERFACE"."INVOICE_ID") Error Code: 1400 Query:InsertObjectQuery(&lt;ApInvoiceLinesInterface {&lt;ApInvoicesInterface null />} null />)</detail> }}
    ==Setting on my ApInvoice.xml
    <opm:primary-key>
    opm:field table="AP_INVOICE_LINES_INTERFACE" name="INVOICE_ID" xsi:type="opm:column"/>
    <opm:field table="AP_INVOICE_LINES_INTERFACE" name="INVOICE_LINE_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <toplink:sequencing>
    <toplink:sequence-name>AP.AP_INVOICE_LINES_INTERFACE_S</toplink:sequence-name>
    <toplink:sequence-field table="AP_INVOICE_LINES_INTERFACE" name="INVOICE_LINE_ID" xsi:type="opm:column"/>
    </toplink:sequencing>
    <opm:primary-key>
    <opm:field table="AP_INVOICES_INTERFACE" name="INVOICE_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <toplink:sequencing>
    <toplink:sequence-name>AP.AP_INVOICES_INTERFACE_S</toplink:sequence-name>
    <toplink:sequence-field table="AP_INVOICES_INTERFACE" name="INVOICE_ID" xsi:type="opm:column"/>
    </toplink:sequencing>

    I did some experiments
    I created a sequence TESTAN_S start with 50 increment by 50.
    I have inserted 300 rows using DB adaptrer with native sequencing option.
    The ID's in table are incremented by 1 staring with 50 ie 50,51,52,53.....upto 351..
    This is wrong as sequence.nextval should always be incerments of 50 not 1. I dont know why this is happening. What is the significance of preallocation size tag?
    Here are the steps I followed to achieve this. its working somewhat but not exactly what i was expecting. I just changes the files manually and did not run any wizards after changing the files manually.
    1. On the Top link I have selected Native sequencing Option and pre allocation=50 and Save
    2. Open the bpel/servicename_toplink_mappings.xml and add sequence.. see the xml pasted below.
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)" xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>readtest_service</opm:name>
    <opm:class-mapping-descriptors>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>readtestservice.Readtest</opm:class>
    <opm:alias>Readtest</opm:alias>
    <opm:primary-key>
    <opm:field table="READTEST" name="ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy">
    <opm:queries>
    <opm:query name="findAllReadtest" xsi:type="toplink:read-all-query">
    <toplink:timeout>0</toplink:timeout>
    <toplink:reference-class>readtestservice.Readtest</toplink:reference-class>
    <toplink:cache-usage>primary-key</toplink:cache-usage>
    <toplink:lock-mode>none</toplink:lock-mode>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </opm:query>
    </opm:queries>
    <toplink:does-exist-query xsi:type="toplink:does-exist-query">
    <toplink:existence-check>check-database</toplink:existence-check>
    </toplink:does-exist-query>
    </opm:querying>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>id</opm:attribute-name>
    <opm:field table="READTEST" name="ID" xsi:type="opm:column"/>
    <opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>value</opm:attribute-name>
    <opm:field table="READTEST" name="VALUE" xsi:type="opm:column"/>
    <opm:attribute-classification>java.lang.String</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>updateDate</opm:attribute-name>
    <opm:field table="READTEST" name="UPDATE_DATE" xsi:type="opm:column"/>
    <opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    <toplink:always-refresh>true</toplink:always-refresh>
    </toplink:caching>
    <toplink:remote-caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    </toplink:remote-caching>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
              <toplink:sequencing>
    <toplink:sequence-name>TESTAN_S</toplink:sequence-name>
    <toplink:sequence-field table="READTEST" name="ID" xsi:type="opm:column"/>
    </toplink:sequencing>
    <toplink:tables>
    <toplink:table name="READTEST"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    </toplink:object-persistence>
    3. add following in class descriptor.xml in toplink/servicename/descripter/servicename.tablename.ClassDescripter.xml
    <sequence-number-name>TESTAN_S</sequence-number-name>
    <uses-sequencing>true</uses-sequencing>
    see below for the complete file:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <descriptor>
    <unique-filename>readtestservice.Readtest.ClassDescriptor</unique-filename>
    <active>true</active>
    <bldr-class>readtestservice.Readtest</bldr-class>
    <mappings>
    <mapping>
    <inherited>false</inherited>
    <instance-variable-name>id</instance-variable-name>
    <default-field-names>
    <default-field-name>direct field=</default-field-name>
    </default-field-names>
    <uses-method-accessing>false</uses-method-accessing>
    <read-only>false</read-only>
    <get-method-handle>
    <method-handle/>
    </get-method-handle>
    <set-method-handle>
    <method-handle/>
    </set-method-handle>
    <direct-mapping-field-handle>
    <field-handle>
    <field-table>APPS.READTEST</field-table>
    <field-name>ID</field-name>
    </field-handle>
    </direct-mapping-field-handle>
    <mapping-class>MWDirectToFieldMapping</mapping-class>
    </mapping>
    <mapping>
    <inherited>false</inherited>
    <instance-variable-name>value</instance-variable-name>
    <default-field-names>
    <default-field-name>direct field=</default-field-name>
    </default-field-names>
    <uses-method-accessing>false</uses-method-accessing>
    <read-only>false</read-only>
    <get-method-handle>
    <method-handle/>
    </get-method-handle>
    <set-method-handle>
    <method-handle/>
    </set-method-handle>
    <direct-mapping-field-handle>
    <field-handle>
    <field-table>APPS.READTEST</field-table>
    <field-name>VALUE</field-name>
    </field-handle>
    </direct-mapping-field-handle>
    <mapping-class>MWDirectToFieldMapping</mapping-class>
    </mapping>
    <mapping>
    <inherited>false</inherited>
    <instance-variable-name>updateDate</instance-variable-name>
    <default-field-names>
    <default-field-name>direct field=</default-field-name>
    </default-field-names>
    <uses-method-accessing>false</uses-method-accessing>
    <read-only>false</read-only>
    <get-method-handle>
    <method-handle/>
    </get-method-handle>
    <set-method-handle>
    <method-handle/>
    </set-method-handle>
    <direct-mapping-field-handle>
    <field-handle>
    <field-table>APPS.READTEST</field-table>
    <field-name>UPDATE_DATE</field-name>
    </field-handle>
    </direct-mapping-field-handle>
    <mapping-class>MWDirectToFieldMapping</mapping-class>
    </mapping>
    </mappings>
    <sequence-number-name>TESTAN_S</sequence-number-name>
    <uses-sequencing>true</uses-sequencing>
    <should-always-refresh-cache>true</should-always-refresh-cache>
    <primary-key-field-handles>
    <field-handle>
    <field-table>APPS.READTEST</field-table>
    <field-name>ID</field-name>
    </field-handle>
    </primary-key-field-handles>
    <primary-table>APPS.READTEST</primary-table>
    <associated-tables>
    <associated-table>
    <name>APPS.READTEST</name>
    </associated-table>
    </associated-tables>
    <sequence-number-field-handle>
    <field-handle/>
    </sequence-number-field-handle>
    <class-descriptor-query-manager>
    <query-manager>
    <descriptor-alias>Readtest</descriptor-alias>
    <query-list>
    <query>
    <name>findAllReadtest</name>
    <query-type>oracle.toplink.queryframework.ReadAllQuery</query-type>
    <cache-usage>Check Cache by Primary Key</cache-usage>
    <lock-mode>Do Not Acquire Locks</lock-mode>
    <distinct-state>Uncomputed Distinct</distinct-state>
    <in-memory-query-indirection-policy>Throw Indirection Exception</in-memory-query-indirection-policy>
    <cache-query-results>false</cache-query-results>
    <maintain-cache>true</maintain-cache>
    <refresh-identity-map-result>false</refresh-identity-map-result>
    <refresh-remote-identity-map-result>false</refresh-remote-identity-map-result>
    <use-wrapper-policy>true</use-wrapper-policy>
    <prepare>true</prepare>
    <query-timeout>0</query-timeout>
    <maximum-rows>0</maximum-rows>
    <format>
    <query-format>
    <main-compound-expression>
    <expression>
    <operator-type>AND</operator-type>
    <expression-class>MWCompoundExpression</expression-class>
    </expression>
    </main-compound-expression>
    <query-format-class>MWExpressionQueryFormat</query-format-class>
    </query-format>
    </format>
    </query>
    </query-list>
    </query-manager>
    </class-descriptor-query-manager>
    <class-descriptor-identity-policy>
    <identity-policy>
    <identity-map-size>100</identity-map-size>
    <identity-map-class-name>oracle.toplink.internal.identitymaps.WeakIdentityMap</identity-map-class-name>
    <existence-checking>Check database</existence-checking>
    </identity-policy>
    </class-descriptor-identity-policy>
    <descriptor-class>MWClassDescriptor</descriptor-class>
    </descriptor>

  • Query on Import profile in EPMA

    Hi Team,
    I am using an import profile to load metadata into EPMA HFM application from a flat file(.ads file).I am unable to map the below mentioned HFM properties in the Import profile.These properties are not appearing in the Property selector.Version used is Hyperion 11.1.2.2.
    Custom1TopMember
    Custom2TopMember
    Custom3TopMember
    Custom4TopMember
    EnableCustom1Aggr
    EnableCustom2Aggr
    EnableCustom3Aggr
    EnableCustom1Aggr
    Requesting your help.
    Thanks in advance.

    Do you have a Dimension Association section in the ads file? Something similar to below:
    !Section = DimensionAssociations
    'BaseDimension;Property;TargetDimension
    Account;Alias;Alias
    Account;Custom1TopMember;Custom1
    Account;Custom2TopMember;Custom2
    Account;Custom3TopMember;Custom3
    Account;Custom4TopMember;Custom4
    Account;ICPTopMember;ICP
    Account;PlugAccount;Account
    Account;SecurityClass;Security Class
    Currency;Alias;Alias
    Custom1;Alias;Alias
    Custom1;SecurityClass;Security Class
    Custom2;Alias;Alias
    Custom2;SecurityClass;Security Class
    Custom3;Alias;Alias
    Custom3;SecurityClass;Security Class
    Custom4;Alias;Alias
    Custom4;SecurityClass;Security Class
    Entity;Alias;Alias
    Entity;Currency;Currency
    Entity;HoldingCompany;Entity
    Entity;SecurityAsPartner;Security Class
    Entity;SecurityClass;Security Class
    Period;Alias;Alias
    Scenario;Alias;Alias
    Scenario;DefaultFrequency;View
    Scenario;DefFreqForICTrans;View
    Scenario;PhasedSubStartYear;Year
    Scenario;SecurityClass;Security Class
    View;Alias;Alias Or, is the import profile set up to load a single dimension at a time? The profiles can be configured in many different ways.

  • Aggregate one-to-many relationship problem

    Hello,
    After migrating from Toplink 9i I've stumbled across a problem with our aggregate objects.
    Toplink Workbench reports no errors and generates a nice XML but in runtime I get this error whenever a aggregate function is used.
    [TopLink fin]: 2008.02.13 03:18:11.552--ServerSession(12626425)--Connection(29948747)--Thread(Thread[main,5,main])--SELECT DISTINCT t0.NPL_PACK_ID, t0.NPL_ID FROM NPL_MEDPROD t3, FASS_MEDPROD t2, NPL_MEDPROD t1, NPL_PACKAGE t0 WHERE (((t0.NPL_ID = t1._Presentation->NPL_ID_IN_REFERENCE_NPL_PACKAGE_NPL_MEDPROD_Test) AND ((t1.NPL_ID = t2.NPL_ID) AND (t3.NPL_ID LIKE '19750613000031%'))) AND (t3.NPL_ID = t2.NPL_ID))
    Caused by: Undantag [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseException
    Internt undantag: java.sql.SQLException: ORA-00911: invalid character
    Felkod: 911
    I belive that problem resides in this clause :
    t1._Presentation->NPL_ID_IN_REFERENCE_NPL_PACKAGE_NPL_MEDPROD_Test
    I've created a small test project with just a couple of classes but the same aggregate problem occurs which has let me to believe the problem does not come from the migrating process which was my first guess. If anyone could help me discover what I am doing wrong it would be very appreciated. Below is my test project output.
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)" xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>test</opm:name>
    <opm:class-mapping-descriptors>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>se.lif.fass.fassdata.impl.FASSMedProdImpl</opm:class>
    <opm:alias>FASSMedProdImpl</opm:alias>
    <opm:primary-key>
    <opm:field table="FASS_MEDPROD" name="NPL_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy"/>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:one-to-one-mapping">
    <opm:attribute-name>_Medprod</opm:attribute-name>
    <opm:reference-class>schemas_npl.instance.impl.MedprodTypeImpl</opm:reference-class>
    <opm:private-owned>true</opm:private-owned>
    <opm:foreign-key>
    <opm:field-reference>
    <opm:source-field table="FASS_MEDPROD" name="NPL_ID" xsi:type="opm:column"/>
    <opm:target-field table="NPL_MEDPROD" name="NPL_ID" xsi:type="opm:column"/>
    </opm:field-reference>
    </opm:foreign-key>
    <opm:foreign-key-fields>
    <opm:field table="FASS_MEDPROD" name="NPL_ID" xsi:type="opm:column"/>
    </opm:foreign-key-fields>
    <toplink:batch-reading>true</toplink:batch-reading>
    <toplink:selection-query xsi:type="toplink:read-object-query"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>id</opm:attribute-name>
    <opm:read-only>true</opm:read-only>
    <opm:field table="FASS_MEDPROD" name="NPL_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="FASS_MEDPROD"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>schemas_npl.instance.impl.MedprodTypeImpl</opm:class>
    <opm:alias>MedprodTypeImpl</opm:alias>
    <opm:primary-key>
    <opm:field table="NPL_MEDPROD" name="NPL_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy"/>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:aggregate-object-mapping">
    <opm:attribute-name>_Medprodpack</opm:attribute-name>
    <toplink:reference-class>schemas_npl.instance.impl.MedprodTypeImpl$MedprodpackTypeImpl</toplink:reference-class>
    <toplink:allow-null>false</toplink:allow-null>
    <toplink:field-translations>
    <toplink:field-translation>
    <toplink:source-field name="_Presentation->NPL_ID_IN_REFERENCE_NPL_PACKAGE_NPL_MEDPROD_Test" xsi:type="opm:column"/>
    <toplink:target-field table="NPL_MEDPROD" name="NPL_ID" xsi:type="opm:column"/>
    </toplink:field-translation>
    </toplink:field-translations>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>_Nplid</opm:attribute-name>
    <opm:field table="NPL_MEDPROD" name="NPL_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>id</opm:attribute-name>
    <opm:read-only>true</opm:read-only>
    <opm:field table="NPL_MEDPROD" name="NPL_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="NPL_MEDPROD"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>schemas_npl.instance.impl.MedprodTypeImpl$MedprodpackTypeImpl</opm:class>
    <opm:alias>MedprodTypeImpl$MedprodpackTypeImpl</opm:alias>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy"/>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:one-to-many-mapping">
    <opm:attribute-name>_Presentation</opm:attribute-name>
    <opm:reference-class>schemas_npl.instance.impl.MedprodTypeImpl$MedprodpackTypeImpl$PresentationTypeImpl</opm:reference-class>
    <opm:private-owned>true</opm:private-owned>
    <opm:target-foreign-key>
    <opm:field-reference>
    <opm:source-field table="NPL_PACKAGE" name="NPL_ID" xsi:type="opm:column"/>
    <opm:target-field name="_Presentation->NPL_ID_IN_REFERENCE_NPL_PACKAGE_NPL_MEDPROD_Test" xsi:type="opm:column"/>
    </opm:field-reference>
    </opm:target-foreign-key>
    <toplink:batch-reading>true</toplink:batch-reading>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>com.sun.xml.bind.util.ListImpl</toplink:collection-type>
    </toplink:container>
    <toplink:selection-query xsi:type="toplink:read-all-query">
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>com.sun.xml.bind.util.ListImpl</toplink:collection-type>
    </toplink:container>
    </toplink:selection-query>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>aggregate</toplink:descriptor-type>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    </opm:class-mapping-descriptor>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>schemas_npl.instance.impl.MedprodTypeImpl$MedprodpackTypeImpl$PresentationTypeImpl</opm:class>
    <opm:alias>MedprodTypeImpl$MedprodpackTypeImpl$PresentationTypeImpl</opm:alias>
    <opm:primary-key>
    <opm:field table="NPL_PACKAGE" name="NPL_PACK_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy"/>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>_Nplpackid</opm:attribute-name>
    <opm:field table="NPL_PACKAGE" name="NPL_PACK_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:one-to-one-mapping">
    <opm:attribute-name>backref</opm:attribute-name>
    <opm:reference-class>schemas_npl.instance.impl.MedprodTypeImpl</opm:reference-class>
    <opm:foreign-key>
    <opm:field-reference>
    <opm:source-field table="NPL_PACKAGE" name="NPL_ID" xsi:type="opm:column"/>
    <opm:target-field table="NPL_MEDPROD" name="NPL_ID" xsi:type="opm:column"/>
    </opm:field-reference>
    </opm:foreign-key>
    <opm:foreign-key-fields>
    <opm:field table="NPL_PACKAGE" name="NPL_ID" xsi:type="opm:column"/>
    </opm:foreign-key-fields>
    <toplink:indirection xsi:type="toplink:value-holder-indirection-policy"/>
    <toplink:selection-query xsi:type="toplink:read-object-query"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>id</opm:attribute-name>
    <opm:read-only>true</opm:read-only>
    <opm:field table="NPL_PACKAGE" name="NPL_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="NPL_PACKAGE"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle8Platform</toplink:platform-class>
    <toplink:user-name>fassadmin</toplink:user-name>
    <toplink:password>3CC3773C96563CA0C89634305615359CD62D1A19DF561D1E</toplink:password>
    <toplink:driver-class>oracle.jdbc.driver.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:oci8:@DB2</toplink:connection-url>
    </toplink:login>
    </toplink:object-persistence>
    Regards
    /Jonas

    The issue is in the one-to-many mapping in the aggregate,
    <br>
    <opm:attribute-mapping xsi:type="toplink:one-to-many-mapping">
      <opm:attribute-name>_Presentation</opm:attribute-name>
      <opm:reference-class>schemas_npl.instance.impl.MedprodTypeImpl$MedprodpackTypeImpl$PresentationTypeImpl</opm:reference-class>
      <opm:private-owned>true</opm:private-owned>
      <opm:target-foreign-key>
        <opm:field-reference>
          <opm:source-field table="NPL_PACKAGE" name="NPL_ID" xsi:type="opm:column"/>
          <opm:target-field name="_Presentation->NPL_ID_IN_REFERENCE_NPL_PACKAGE_NPL_MEDPROD_Test" xsi:type="opm:column"/>
        </opm:field-reference>
      </opm:target-foreign-key>There is an issue with the Mapping Workbench and shared aggregates with one-to-many mappings and translating the foreign key fields. Did this work before, I would be surprized if it did, unless the 2.5 Builder was used?
    Anyway the easiest workaround is to either edit the XML and change the NPL_ID_IN_REFERENCE_NPL_PACKAGE_NPL_MEDPROD_Test column name to what it should be, or define a descriptor amendment method to define the one-to-many mapping with the correct field names.
    -- James : EclipseLink

  • Load dimensions and members in Planning application via outline load

    it is a classic planning application, after I load dimensions and members into classic Planning application, I can't see new members I added in csv file.
    How could I confirm whether it was successfully loaded.
    This is the log. Please refer to it.
    Successfully logged into "予算応用" application, Release 11.121, Adapter Interface Version 5, Workforce supported and enabled, CapEx supported and enabled, CSS Version 3
    "Account" dimension properties and information:
    Account, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Account Type, Time Balance, Skip Value, Exchange Rate Type, Variance Reporting, Source Plan Type, Plan Type (PL), Aggregation (PL), Plan Type (BS), Aggregation (BS), Plan Type (Plan3), Aggregation (Plan3), Plan Type (Wrkforce), Aggregation (Wrkforce), Plan Type (Capex), Aggregation (Capex)
    UDA's bound to "Account" dimension: HSP_NOLINK
    "Period" dimension properties and information:
    Period, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Type, Start Period, End Period, Aggregation (PL), Aggregation (BS), Aggregation (Plan3), Aggregation (Wrkforce), Aggregation (Capex)
    No UDA's defined on "Period"
    "Year" dimension properties and information:
    Year, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation
    No UDA's defined on "Year"
    "Scenario" dimension properties and information:
    Scenario, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Start Year, Start Period, End Year, End Period, Exchange Table, Include BegBal, Process Management Enabled, Aggregation (PL), Aggregation (BS), Aggregation (Plan3), Aggregation (Wrkforce), Aggregation (Capex)
    UDA's bound to "Scenario" dimension: ACTUAL
    "Version" dimension properties and information:
    Version, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Version Type, Process Management Enabled, Aggregation (PL), Aggregation (BS), Aggregation (Plan3), Aggregation (Wrkforce), Aggregation (Capex)
    No UDA's defined on "Version"
    "Currency" dimension properties and information:
    Currency, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Symbol, Scale, Triangulation Currency, Reporting Currency, Thousands Separator, Decimal Separator, Negative Style, Negative Color
    No UDA's defined on "Currency"
    "Entity" dimension properties and information:
    Entity, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Base Currency, Plan Type (PL), Aggregation (PL), Plan Type (BS), Aggregation (BS), Plan Type (Plan3), Aggregation (Plan3), Plan Type (Wrkforce), Aggregation (Wrkforce), Plan Type (Capex), Aggregation (Capex), NumericAttrib
    No UDA's defined on "Entity"
    "NumericAttrib" attribute dimension (on base dimension "Entity"). NO attributes defined on the "NumericAttrib" dimension.
    NumericAttrib, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Operation
    "Employee" dimension properties and information:
    Employee, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Aggregation (Wrkforce)
    No UDA's defined on "Employee"
    "Line Item" dimension properties and information:
    Line Item, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Aggregation (Capex)
    No UDA's defined on "Line Item"
    "Asset Class" dimension properties and information:
    Asset Class, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Aggregation (Capex)
    No UDA's defined on "Asset Class"
    Exchange Rates properties:
    Table, Description, To Currency, From Currency, Operation, Method, Historical, Beg Balance, Year, Period, Average, Ending
    UDA properties:
    Dimension, UDA, Operation
    Smartlist properties:
    SmartList Name, Operation, Label, Display Order, Missing Label, Use Form Missing Label, Entry ID, Entry Name, Entry Label
    No Planning Unit Hierarchies are defined in this application.
    Translation input file fields:
    Value, Driver Member, Point-of-View, Data Load Cube Name
    [Thu Oct 27 18:16:18 JST 2011]Successfully located and opened input file "C:\TEMP\PLNentityバージョンのエクスポート.csv".
    [Thu Oct 27 18:16:18 JST 2011]Input file being read with UTF-8 encoding.
    [Thu Oct 27 18:16:18 JST 2011]Detected a UTF-8 BOM marker in input file "C:\TEMP\PLNentityバージョンのエクスポート.csv".
    [Thu Oct 27 18:16:18 JST 2011]Header record fields: Entity, Parent, Alias: Default, Alias: FromDepartment, Alias: ToDepartment, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Base Currency, Plan Type (PL), Aggregation (PL), Plan Type (BS), Aggregation (BS), Plan Type (Plan3), Aggregation (Plan3), Plan Type (Wrkforce), Aggregation (Wrkforce), Plan Type (Capex), Aggregation (Capex)
    [Thu Oct 27 18:16:18 JST 2011]Located and using "Entity" dimension for loading data in "予算応用" application.
    [Thu Oct 27 18:16:18 JST 2011]Load dimension "Entity" has been unlocked successfully.
    [Thu Oct 27 18:16:18 JST 2011]A cube refresh operation will not be performed.
    [Thu Oct 27 18:16:18 JST 2011]Create security filters operation will not be performed.
    [Thu Oct 27 18:16:18 JST 2011]Examine the Essbase log files for status if Essbase data was loaded.
    [Thu Oct 27 18:16:18 JST 2011]Planning Outline load process finished (with no data load as specified (/N)). 9 data records were read, 9 data records were processed, 9 were accepted, 0 were rejected.

    Thank you for your reply.
    With your help, I can verify it easier rather than creating dataform to verify it.
    I have resolved the question now, the root cause is I had used the wrong parameter, shouldn't add '/N' in the command. for /N is a dry run to check whether there are error in CSV file, it won't perform metadata load.
    If no error occured, run the command without /N, then the metadata load will be performed.
    I refer to this artical,
    http://john-goodwin.blogspot.com/2008/08/time-to-look-in-bin.html
    Best regards,
    Samantha
    Edited by: Samantha on 2011-10-31 下午4:39

  • Not able to invoke business rules from BPM

    Hi,
    I have a simple business rule (Used Bank class in Alias and created a simple rule set) and able to invoke successfully from webdynpro application.
    But the problem comes when I try to run the same webdynpro application (as a part of BPM process) from UWL, it always throws ClassNotFoundException for Bank Class.
    The thing is that I'm able to run webdynpro application properly (and is doesnt  throw error) as standalone but when I run the same application from UWL (I have binded UI to BPM process), it throws class not found error.
    Thanks for your time and help.
    Best Regards,
    Shiva

    Hi Shiva,
    sorry to bother but how did you integrate the rule in the BPM? I'm trying to use a rule as automated activity but I'm unable to create the Webservice from the rule...
    kind regards,
    Matthias

  • ANSI to traditional (+) join syntax

    Hi All,
    Can anyone pl help me to understand how the diff tables in this tables are joined ( even 1 join would help) as I am not able to differentiate where the first join ended and whether the result is attched to the previous one or what all :(
    I am little confused about how to convert this query in ANSI to the traditional (+) sysntax as I am not able to understannd which table is joined to which table and where exactly the previous join ends.
    select distinct a.instrument_id       "INSTRUMENT ID",
                    a.name                "DESCRIPTION",
                    a.DEBT_PRIORITY_CLASS "DEBT PRIORITY CLASS",
                    c.alias               "ISIN",
                    b.alias               "MDSCURVE"
      from (select distinct i.instrument_id,
                            i.name,
                            case
                              when (mn2.display_name != 'DEBT PRIORITY CLASS' and
                                   mn2.display_name is not null) then
                               mn2.display_name
                              else
                               mn1.display_name
                            end "DEBT_PRIORITY_CLASS"
              from instrument i, inst_debt id
              left join marsnode mn1 on (id.debt_priority_class_id = mn1.node_id and
                                        mn1.close_date is null and
                                        mn1.type_id = 58412926883279)
              left join marsnodelink mnl1 on (mn1.node_id = mnl1.node_id and
                                             mnl1.close_date is null and
                                             mnl1.begin_cob_date <=
                                             TO_DATE('27-Oct-2010',
                                                      'DD-Mon-YYYY') and
                                             mnl1.end_cob_date >
                                             TO_DATE('27-Oct-2010',
                                                      'DD-Mon-YYYY'))
              left join marsnode mn2 on (mnl1.parent_id = mn2.node_id and
                                        mn2.close_date is null and
                                        mn2.type_id = 58412926883279)
             where i.instrument_id = id.instrument_id
               and i.end_cob_date > TO_DATE('27-Oct-2010', 'DD-Mon-YYYY')
               and i.close_action_id is null
               and i.product_sub_type_id = 3
               and i.begin_cob_date <= TO_DATE('27-Oct-2010', 'DD-Mon-YYYY')
               and i.instrument_vn = id.instrument_vn) a
      left outer join (select i.instrument_id, ia.alias as alias
                         from instrument i, inst_alias ia, domain d
                        where i.instrument_id = ia.instrument_id
                          and ia.domain_id = d.domain_id
                          and d.name = 'MDSCURVE'
                          and i.close_action_id is null
                          and i.product_sub_type_id = 3
                          and i.begin_cob_date <=
                              TO_DATE('27-Oct-2010', 'DD-Mon-YYYY')
                          and i.end_cob_date >
                              TO_DATE('27-Oct-2010', 'DD-Mon-YYYY')) b on (a.instrument_id =
                                                                          b.instrument_id)
      left outer join (select i.instrument_id, ia.alias as alias
                         from instrument i, inst_alias ia, domain d
                        where i.instrument_id = ia.instrument_id
                          and ia.domain_id = d.domain_id
                          and d.name = 'ISIN'
                          and i.close_action_id is null
                          and i.product_sub_type_id = 3
                          and i.begin_cob_date <=
                              TO_DATE('27-Oct-2010', 'DD-Mon-YYYY')
                          and i.end_cob_date >
                              TO_DATE('27-Oct-2010', 'DD-Mon-YYYY')) c on (a.instrument_id =  c.instrument_id)Specialy the problem with the first left outer join (from instrument i, inst_debt id) , there are many outer joins and i am not able to understand this thing.
    Please help me to understand this thing.
    Rgds,
    Aashish

    maybe the comments in this will help...
    SELECT   DISTINCT a.instrument_id "INSTRUMENT ID",
                      a.name "DESCRIPTION",
                      a.DEBT_PRIORITY_CLASS "DEBT PRIORITY CLASS",
                      c.alias "ISIN",
                      b.alias "MDSCURVE"
      FROM         (SELECT   DISTINCT
                             i.instrument_id,
                             i.name,
                             CASE
                                WHEN (mn2.display_name != 'DEBT PRIORITY CLASS'
                                      AND mn2.display_name IS NOT NULL)
                                THEN
                                   mn2.display_name
                                ELSE
                                   mn1.display_name
                             END
                                "DEBT_PRIORITY_CLASS"
                      FROM   instrument i,
                                      inst_debt id
                                   LEFT JOIN
                                      marsnode mn1 -- LEFT JOIN from inst_debt to marsnode
                                   ON (id.debt_priority_class_id = mn1.node_id
                                       AND mn1.close_date IS NULL
                                       AND mn1.type_id = 58412926883279)
                                LEFT JOIN  -- LEFT JOIN from marsnode to marsnodelink
                                   marsnodelink mnl1
                                ON (mn1.node_id = mnl1.node_id
                                    AND mnl1.close_date IS NULL
                                    AND mnl1.begin_cob_date <=
                                          TO_DATE ('27-Oct-2010', 'DD-Mon-YYYY')
                                    AND mnl1.end_cob_date >
                                          TO_DATE ('27-Oct-2010', 'DD-Mon-YYYY'))
                             LEFT JOIN
                                marsnode mn2 -- LEFT JOIN from marsnodelink to marsnode
                             ON (    mnl1.parent_id = mn2.node_id
                                 AND mn2.close_date IS NULL
                                 AND mn2.type_id = 58412926883279)
                     WHERE   i.instrument_id = id.instrument_id
                             AND i.end_cob_date >
                                   TO_DATE ('27-Oct-2010', 'DD-Mon-YYYY')
                             AND i.close_action_id IS NULL
                             AND i.product_sub_type_id = 3
                             AND i.begin_cob_date <=
                                   TO_DATE ('27-Oct-2010', 'DD-Mon-YYYY')
                             AND i.instrument_vn = id.instrument_vn) a -- End of in-line view 'a'
                LEFT OUTER JOIN -- LEFT OUTER JOIN from in-line view 'a' to inline view 'b'
                   (SELECT   i.instrument_id, ia.alias AS alias
                      FROM   instrument i, inst_alias ia, domain d
                     WHERE       i.instrument_id = ia.instrument_id
                             AND ia.domain_id = d.domain_id
                             AND d.name = 'MDSCURVE'
                             AND i.close_action_id IS NULL
                             AND i.product_sub_type_id = 3
                             AND i.begin_cob_date <=
                                   TO_DATE ('27-Oct-2010', 'DD-Mon-YYYY')
                             AND i.end_cob_date >
                                   TO_DATE ('27-Oct-2010', 'DD-Mon-YYYY')) b -- End of inline view 'b'
                ON (a.instrument_id = b.instrument_id)
             LEFT OUTER JOIN --LEFT OUTER JOIN from inline view 'a' to inline view 'c'
                (SELECT   i.instrument_id, ia.alias AS alias
                   FROM   instrument i, inst_alias ia, domain d
                  WHERE       i.instrument_id = ia.instrument_id
                          AND ia.domain_id = d.domain_id
                          AND d.name = 'ISIN'
                          AND i.close_action_id IS NULL
                          AND i.product_sub_type_id = 3
                          AND i.begin_cob_date <=
                                TO_DATE ('27-Oct-2010', 'DD-Mon-YYYY')
                          AND i.end_cob_date >
                                TO_DATE ('27-Oct-2010', 'DD-Mon-YYYY')) c --End of inline view 'c'
             ON (a.instrument_id = c.instrument_id)?
    Cheers
    Ben

  • Other language features

    For these language features I should probably start a JSR, however, I want the opinion of the public for it.
    1) Language construct "alias"
    Many classes with different names do things which are nearly 100% the same. For example the Point and Dimension classes within the AWT framework. They collect the same data, only the name is different and the method names are different.
    It should be possible to make a simple base implementation of this and derive aliasses from this. This could look like:
    public class SomeClass { ... }which in another file could be aliased like:
    public class AnotherClass alias SomeClass;From the point of view of the point and dimension classes, the method names are also different, this could be solved by the following:
    public class SomeClass {
        public void someMethod() {}
    }which could be aliased like:
    public class AnotherClass alias SomeClass {
        anotherMethod alias someMethod // Keeping overloads correct
    }Note that an alias should be upcasted automatically but should manually be downcasted. With the addition of generics, it should give more room to decent notation.
    2) Language construct "range"
    Enumerations are very handy when dealing with logical named ranges such as dates and flags. However, if the range is numeric it is not possible to use a normal enum. There for my suggestion is the addition of the keyword range (a symboloc variant seems possible to me).
    A n example of constructing a range could be:
    public int range(20,30) somerange;Just as in the "alias" construct ranges should be upcasted automatically but should manually be downcasted.
    These two constructs are used in languages like C++, ADA and others, so it is not something which isn't used.

    This is going to be a large post, so hang tight!
    As the first reply talks about interfaces I give you partially credit, but that is not the reason why I suggested the "alias" key word.
    Suppose we have a highly simplified version of the Point and Dimension classes which these days look the following:
    // Point class
    public class Point {
        private int x = 0;
        private int y = 0;
        public void setLeft(int left) { x = left; }
        public void setTop(int top) { y = top; }
        public int getLeft() { return x; }
        public int getTop() { return y; }
    // Dimension class
    public class Dimension {
        private int x = 0;
        private int y = 0;
        public void setRight(int right) { x = right; }
        public void setBottom(int bottom) { y = bottom; }
        public int getRight() { return x; }
        public int getBottom() { return y; }
    }As you will notice, the classes core code is exactly the same. However, the methods in Both classes will fill memory. This could be eliminated when using the "alias" keyword. The following code represents my idea behind this.
    // Class representing the calculation logic of both Point as Dimension
    // It seems feasible to have a construct that the class should always have to be
    // used with an alias type, therefor, I typed "abstract alias".
    abstract alias class XY {
        private int x = 0;
        private int y = 0;
        public void setX(int x) { this.x = x; }
        public void setY(int y) { this.y = y; }
        public int getX() { return x; }
        public int getY() { return y; }
    // Point class, alias for  XY
    public class Point alias XY {
        setLeft alias setX;
        setTop alias setY;
        getLeft alias getX;
        getTop alias getY;
    // Dimension class
    public class Dimension alias XY {
        setRight alias setX;
        setBottom alias setY;
        getRight alias getX;
        getBottom alias getY;
    }I hope this will clear things up a little bit. These are only changes to the name of the method and the class, not to the implementation of it. They should become double references to the same methods.
    The second feature I suggested, the range feature would indeed be an infrigement to the compatibility to older classes which may use the range as a regular name. Here I will give a try again.
    int (20...30) limited;In this case a new primitive is created called limited, which is almost exactly the same as the int promitive, but can only store 20 through 30 to it. The following code demonstrates the idea behind it.
    int (20...30) limited;
    // use limited
    public void mainMethod() {
        limited foo = 25; // Compiles OK
        foo = 35; // Fails to compile
        int bar = foo; // Compiles OK
        foo = bar; // Fails to compile
        foo = (foo)bar; // Compiles ok, would throw a runtime exception when bar < 20 or > 30
    }I hope this demonstrates the usage.
    The suggestion about the "with" keyword is not really clear to me. Is it used to use bean-like methods as properties? If it is so, then you should know that this is already made possible using meta-attributes. If it is used to get rid of the notation of the variable, I would doubt if it improves readability, but hey, that is my opinion.
    Greetings,
    Sjoerd

  • Problem with basic tutorial!

    I am following this very basic tutorial:
    http://xstream.codehaus.org/tutorial.html
    But when I parse this xml:
    <person>
    <firstname>Joe</firstname>
    <lastname>Walnes</lastname>
    <phone>
    <code>123</code>
    <number>1234-456</number>
    </phone>
    <fax>
    <code>123</code>
    <number>9999-999</number>
    </fax>
    </person>
    to the Person object I get the error:
    [Fatal Error] :1:1: Content is not allowed in prolog.
    Exception in thread "main" com.thoughtworks.xstream.io.StreamException: : Content is not allowed in prolog.
    This is the code:
    public class Person {
    private String firstname;
    private String lastname;
    private PhoneNumber phone;
    private PhoneNumber fax;
    public class PhoneNumber {
    private int code;
    private String number;
    public void runXStream(){
    String pathToXml = "testP.xml";
    XStream xstream = new XStream(new DomDriver());
    xstream.alias("person", Person.class);
    xstream.alias("phonenumber", PhoneNumber.class);
    Person p = (Person)xstream.fromXML(pathToXml);
    What am I missing?

    xstream.alias("person", Person.class);
    xstream.alias("phonenumber", PhoneNumber.class);I'm not familiar with the API you're using, but from looking at the above, I'm guessing this means:
    "Any tag named 'person' should be de-serialized into a Person object"
    Ok, fine.
    And
    "Any tag named "phonenumber" should be de-serialized into a PhoneNumber object"
    Well, I see no "phonenumber" tag in your xml. I see "phone" though.
    And what about "fax"?

  • Sequences in toplink-Urgent!

    Hi,
    I have a Database table which has a column whose value is to be automatically generated from a sequence called 'SEQ_PERSON_ID'.I gave the sequence name,table and id in the workbench but i am getting an error
    internal Exception: java.sql.SQLException: ORA-00942: table or view does not exi
    st
    Error Code: 942
    Call:UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 50 WHERE SEQ_NAME = 'SEQ_PERSON
    _ID'
    Please suggest as this is very urgent.

    Hi i have included both code and project descriptor.
    Please suggest.
    CODE
    public class test
         ServerSession aSession = null;
         public void login() {
    // Get the session from session.xml
    aSession = (ServerSession)SessionManager.getManager().getSession("TestSession");
    System.out.println(aSession);
    * This method is used to disconnect from the database
    public void logout() {
    aSession.logout();
    * Main method
    public static void main(String[] args) {
              test t = new test();
              t.login();
              UnitOfWork uow = t.getUnitofWork();
              Person p = new Person();
              Person clonetest = (Person)uow.registerObject(p);
              clonetest.setPersonid(31979);
              clonetest.setFirstname("vasubabu");
              clonetest.setLastname("bathina");
              clonetest.setGender("M");
              clonetest.setLastupdatedby("ABC");
              clonetest.setLastupdatedwhen(new java.util.Date());
              uow.commit();
         public UnitOfWork getUnitofWork() {
              return aSession.acquireUnitOfWork() ;
    Project xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <toplink:object-persistence xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>Test</opm:name>
    <opm:class-mapping-descriptors>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>Person</opm:class>
    <opm:alias>Person</opm:alias>
    <opm:primary-key>
    <opm:field table="PERSON" name="PERSON_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events/>
    <opm:querying/>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>firstname</opm:attribute-name>
    <opm:get-method>getFirstname</opm:get-method>
    <opm:set-method>setFirstname</opm:set-method>
    <opm:field table="PERSON" name="FIRST_NAME" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>gender</opm:attribute-name>
    <opm:get-method>getGender</opm:get-method>
    <opm:set-method>setGender</opm:set-method>
    <opm:field table="PERSON" name="GENDER" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>lastname</opm:attribute-name>
    <opm:get-method>getLastname</opm:get-method>
    <opm:set-method>setLastname</opm:set-method>
    <opm:field table="PERSON" name="LAST_NAME" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>lastupdatedby</opm:attribute-name>
    <opm:get-method>getLastupdatedby</opm:get-method>
    <opm:set-method>setLastupdatedby</opm:set-method>
    <opm:field table="PERSON" name="LAST_UPDATED_BY" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>lastupdatedwhen</opm:attribute-name>
    <opm:get-method>getLastupdatedwhen</opm:get-method>
    <opm:set-method>setLastupdatedwhen</opm:set-method>
    <opm:field table="PERSON" name="LAST_UPDATED_WHEN" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>personid</opm:attribute-name>
    <opm:get-method>getPersonid</opm:get-method>
    <opm:set-method>setPersonid</opm:set-method>
    <opm:field table="PERSON" name="PERSON_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:sequencing>
    <toplink:sequence-name>seq_person_id</toplink:sequence-name>
    <toplink:sequence-field table="PERSON" name="PERSON_ID" xsi:type="opm:column"/>
    </toplink:sequencing>
    <toplink:instantiation/>
    <toplink:copying/>
    <toplink:tables>
    <toplink:table name="PERSON"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    <toplink:login xsi:type="database-login">
    <toplink:platform-class>oracle.toplink.internal.databaseaccess.OraclePlatform</toplink:platform-class>
    <toplink:user-name>citytime</toplink:user-name>
    <toplink:password>9469F498BD56203FD481D5B2C4201C78</toplink:password>
    <toplink:driver-class>oracle.jdbc.driver.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@derby:1524:ctfdeva1</toplink:connection-url>
    <toplink:native-sequencing>true</toplink:native-sequencing>
    </toplink:login>
    </toplink:object-persistence>

Maybe you are looking for