AIA User Extension Functions (AIA 11g)

Hey together,
I add the aia.jar in JDeveloper over Tools-->Preferences-->SOA and restart JDev (AIA Installation Guide 11g - Page 37) . After restart I get the following error in Messages-Log of JDev:
Error: Invalid XSL User Extension Function Config file file:\C:\Oracle\Middleware111120\jdeveloper\lib\aia.jar!\META-INF\ext-soa-xpath-functions-config.xml
Element not completed: 'function' line 11 column 14
Have anybody a solution or can I ignore the error?
Kind regards
Marcel

Hello Gerhard,
I'm pretty sure, that is no a pre-GA version. We test it on different machines and use aia.jar from AIA11g Server and we use AIA Service Constructor Update from Oracle Update Server. Here are an extract from XML-File:
<?xml version="1.0" encoding="UTF-8"?>
<soa-xpath-functions xmlns="http://xmlns.oracle.com/soa/config/xpath"
xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions">
<function name="aia:getSystemProperty">
<className>oracle.apps.aia.core.xpath.AIAFunctions</className>
<return type="string"/>
<params>
<param name="propertyName" type="string"/>
<param name="needAnException" type="boolean"/>
</params>
</function>
<function name="aia:getServiceProperty">
<className>oracle.apps.aia.core.xpath.AIAFunctions</className>
<return type="string"/>
<params>
<param name="serviceName" type="string"/>
<param name="propertyName" type="string"/>
<param name="needAnException" type="boolean"/>
</params>
</function>
Regards,
Marcel

Similar Messages

  • User Defined Extension functions XML file

    Hi,
    Can we define exception In custom XSLT function XML file.
    Like i have following Custom XSLT function XML-
    <?xml version="1.0" encoding="UTF-8"?>
    <extension-functions>
    <functions xmlns:uppercase="http://www.oracle.com/XSL/Transform/java/oracle.Uppercase">
    <function name="uppercase:GetName" as="string">
    <param name="fname" as="string"/>
    <param name="lname" as="string"/>
    </function>
    </functions>
    </extension-functions>
    So in case i need to throw an exception in my java function GetName so how can i define that in XML?
    Please give some suggestion?
    Thanks.

    Hi,
    Thanks for your reply. When I created extensions.xml (as advised by you) and tried specifying it as User Defined Extension Functions Config file, I get the following error:
    Invalid User Extension Functions Config File
    Invalid value 'object' for attribute:'as' line 5 column 52
    i.e. the following line:
    <function name="extensions:getMSPDate" as="object">
    Any pointers on what will be the correct value for attribute 'as' for element 'function'?
    Also, what is the default namespace being used in the extensions.xml?
    Is there a link for more documentation on the format for extensions.xml?

  • Soa 11g and jdeveloper 11g user defined extension function

    I have developed a set of extension functions,
    in design time for the previous version, I can put the deployment file (jar file) that contains the extension functions in the %JDEV_HOME%\jdev\lib\ext directory and jdeveloper recognizes the set of extension functions if previously i have defined an xml descriptor with every one of the functions i need to include in the panel.
    Now, with the jdeveloper 11g i have tried the same, and jdev recognizes the functions, but when I am going to test one transformation that includes the extension function, the parser is not founding the jar file; the error (in spanish) is:
    XML-22045: (Error) Error de funcion de extension: No se ha encontrado la clase '
    Falta la clase: aac._shared.extensions.xsl.XmlW3cDomFunctions
    Clase Dependiente: oracle.xml.xpath.XSLExtFunctions
    Cargador: main:11.0
    Origen del Codigo: /C:/.extracted/jdevstudio1111/lib/xmlparserv2.jar
    Configuraci≤n: system property PCLMain.createExtensionManagerLoader()
    Esta carga se ha iniciado en main:11.0 mediante el mΘtodo loadClass().
    La clase que falta no esta disponible desde ningun origen de codigo o cargador del sistema.
    my dude is:
    + at design time, where can I put the jars with extension functions to make one transformation function used in a mediator component can works fine?
    + at runtime, where can I put those libraries? (in the previous version, we can put this libraries in the %APP_SERVER%\j2ee\home\applib, or create one shared library and reference it in the oracle.bpel.common shared library declaration of the server.xml configuration file).

    Hi,
    please post this question to the JDeveloper 11 forum. Please translate the messages into English as well
    JDeveloper and OC4J 11g Technology Preview
    Frank

  • XSLT Mapping - user defined Extension function

    Hi to all,
    can somebody helps me, please?
    I need an own function, that can be used by the XSL Mapper. First I have only tried the sample given in Path <BPELPM>\integration\orabpel\samples\demos\XSLMapper\ExtensionFunctions
    There is a java file with the defined functions and a xml file with the definition of this function for the mapper and last but not least a jar-file with the java class.
    I have copied the jar to <JDEV_HOME>\jdev\lib\ext directory and in JDeveloper I have added SampleExtensionFunctions.xml to Tools->Preferences->XSL Map -> "User Defined Extension Functions Config File" field. After a restart of JDeveloper I find 2 new functions in the "User Defined Extension Functions" component palette page when a XSL Map is open. That's fine.
    But if I test the mapping I get an error: "Failed to transform source XML.
    java.lang.NoSuchMethodException: For extension function, could not find method org.apache.xpath.objects.XNodeSet.replaceChar([ExpressionCotext,]#STRING, #STRING)."
    What is wrong?
    Thanks in advance of your answer
    best regard,
    uno

    Oracle XML support Extension function.
    For example:
    If we would like to import FAQDBUri.class with user-defined java functions, like TranslateDBUri(), we can write XSL file like this:
    <xsl:template match="/" xmlns:dburig="http://www.oracle.com/XSL/Transform/java/FAQDBuri">
    <xsl:variable name="urladd" select="dburig:TranslateDBUri($url)"/>

  • Please help for User defined extension functions

    the tutorial given for extension functions doesn't work as well as our new functions
    even though i follow all the given steps and see the functions in my user defined extension functions tab in xslt map.
    all the target nodes that use the extension function disappear in the resulted target xml.
    please help.

    have you compiled your java file and uploaded the jar file(containg the .class file and the Manifest.MF file) in the <OC4J_HOME>\j2ee\home\applib directory and then restarted the server??

  • Component Palette --- "User Defined Extension Functions" not visible

    I added a User-Defined XPath Extension Function in JDeveloper 11.1.1.3.0 --> Tools > Preferences > SOA As given here http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10224/bp_appx_functs.htm#BEIHEBIJ
    But I am not able see "User Defined Extension Functions" section itself in the component palette. Do I need to enable anything for see the section.
    Can somebody help.
    Thanks

    Hi,
    I am trying to create user defined extension function in JDeveloper 10.1.3.4 to be used with the Oracle ESB.I have followed the documentation provided by the Oracle to resolve this issue without any success can you please help me in providing me the details how did you resolved this issue.
    Anticipating your earliest reply
    regards
    Narasimha

  • User defined extension functions

    Hi,
    I have a requirement to create a user defined extension function.
    I followed the demo in the BPEL tutorials,and created the java function and then the extensions.xml.
    I have registered the .xml file,and have copied the .jar to jdev/extensions directory.
    Once i restart the Jdeveloper i am getting the following error.
    Severe(0,0): file:/D:/Software/Jdeveloper/jdevstudio10133/jdev/extensions/LogP1ExtensionFunctions.jar does not contain an extension manifest.
    Can anybody help me on this
    Thanks in advance
    Regards
    Ashwini

    Hi,
    I am trying to create user defined extension function in JDeveloper 10.1.3.4 to be used with the Oracle ESB.I have followed the documentation provided by the Oracle to resolve this issue without any success can you please help me in providing me the details how did you resolved this issue.
    Anticipating your earliest reply
    regards
    Narasimha

  • Help! Can I have user defined extension function?

    Under SQL Sever XML, I can write a xsl script like this:
    <msxsl:script language="JScript" implements-prefix="myfunc">
    function getvalue(nodelist,name,istag){
    var subNode=nodelist.nextNode();
    if(subNode == null) return('?');
    if(istag == '') name = '@' + name;
    var value=subNode.getElementsByTagName(name);
    return((value == null)?'':value);
    </msxsl:script>
    and I can call this function in the xsl, obviously, msxsl supported by microsoft. I know that Oracle XML support Extension function, but you can tell here that I want a user defined function while not a predefined function. Can I have such feature with Oracle XML, and How? Thanks.

    Oracle XML support Extension function.
    For example:
    If we would like to import FAQDBUri.class with user-defined java functions, like TranslateDBUri(), we can write XSL file like this:
    <xsl:template match="/" xmlns:dburig="http://www.oracle.com/XSL/Transform/java/FAQDBuri">
    <xsl:variable name="urladd" select="dburig:TranslateDBUri($url)"/>

  • Getting error in function aia:getSystemType

    Hi All,
    We are using Oracle Telecom PIPs and in one of its flow, the function aia:getSystemType is not returning any values though we have configured the systems in AIA Console. We are getting some error in the SOA_Server1.out logs. the errors are like:-
    SEVERE: FunctionResolver.resolveFunction cannot adapt {http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions}getSystemType to XPathFunction
    SEVERE: FunctionResolver.resolveFunction cannot adapt {http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions}getSystemType to XPathFunction
    SEVERE: FunctionResolver.resolveFunction cannot adapt {http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions}getSystemType to XPathFunction
    SEVERE: FunctionResolver.resolveFunction cannot adapt {http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions}getSystemType to XPathFunction
    SEVERE: FunctionResolver.resolveFunction cannot adapt {http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions}getServiceProperty to XPathFunction
    SEVERE: FunctionResolver.resolveFunction cannot adapt {http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions}getSystemType to XPathFunction
    SEVERE: FunctionResolver.resolveFunction cannot adapt {http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions}getSystemType to XPathFunction
    SEVERE: FunctionResolver.resolveFunction cannot adapt {http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions}getServiceProperty to XPathFunction
    SEVERE: FunctionResolver.resolveFunction cannot adapt {http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions}getSystemType to XPathFunction
    SEVERE: FunctionResolver.resolveFunction cannot adapt {http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions}getSystemType to XPathFunction
    Could you please suggest why this error is occuring..  and what might resolve this..
    regards
    Rakesh

    Hi Shreeram,
    You must be missing some input parameters when you are running the FM manually.
    Execute the program and check the input parameter values passed to this FM in Debug mode and then in the similar way you can pass the values when running in SE37.
    Regards,
    Durgesh.

  • Getting error while using user-defined function in transform activity

    Hi
    I designed one user-defined function to add 2 nos following the
    link:http://docs.oracle.com/cd/E16764_01/integration.1111/e10224/bp_xslt_mpr.htm .
    Under this i followed the portion creating user-defined function.
    After deploying,i'm getting an error stating:"<summary>
    An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload).
    </summary>
    <detail>
    XPath expression failed to execute.
    An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload).
    The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/PO/HelloWorld_rev1.0/xsl/Transformation_1.xsl<Line 6, Column 104>: XML-22045: (Error) Extension function error: Class not found '
         Missing class: addition.add
    can anybody help me in this regard     
    Thanks
    Avinash

    Did you copy the jar file of your java classes to MIDDLEWARE_Home/user_projects/domains/soa_domain/lib?
    http://georgie-soablog.blogspot.com/2010/06/soasuite-11g-implement-user-defined.html
    hope this helps

  • Issue in Configuring ACT as functionality obiee 11g

    Dear Expert,
    I had done the below steps in creating ACT as functionality in 11g. I am using MS SQL Server 20005 and had created table called OBIEE_PROXY.
    1. Created system variable called "PROXY"
    2. Created Session initialisation variable (PROXY and PROXY LEVEL) and associated the connection pool
    3. Created customs templates
    4. Configured the instance.xml
    5. Done the setting in the Manage privileges
    6. Restarted the BI services
    I had taken repository rpd to offline and done the above changes .Modified RPD is uploaded through EM and restarted the services. When I login and see the ACT as there is no users appearing in the screen .
    Please advise if I missed any step. Also please advise that should i need to create a user’s in the web logic console which i am trying to pass from MS SQL Server.
    Edited by: 964262 on 11/10/2012 14:38

    Hi ,
    Below is the error i am getting in the nqserver log .
    [2012-10-12T14:25:37.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ea] [tid: 15dc] [nQSError: 16002] Cannot obtain number of columns for the query result. [[
    _[nQSError: 16001] ODBC error state: 37000 code: 102 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near '‘'.._
    _[nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.._
    _[nQSError: 13011] Query for Initialization Block 'PROXY_BLOCK' has failed._
    _]]_[2012-10-12T14:25:37.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ea] [tid: 15dc] [nQSError: 13021] Failed to get the value of PROXY session variable.
    [*2012-10-12T14:25:37.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ea] [tid: 15dc] [nQSError: 13021] Failed to get the value of PROXY session variable.*
    *[2012-10-12T14:25:43.000+00:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ef] [tid: 15dc] [nQSError: 13011] Query for Initialization Block 'ExternalAuthenticationProvider' has failed.*
    *[2012-10-12T14:25:43.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ef] [tid: 15dc] [53012] User authentication failure: user3.*
    *[2012-10-12T14:25:43.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ef] [tid: 15dc] [53012] User authentication failure: user3.*
    Please advise .
    thanks in advance

  • User Defined Function is not recognizing java class in IR.

    Hi All,
    i have written one normal java class, and i imported that java class into IR using imported Archive as a .jar file,
    it will add just two values .
    now in message mapping i created one user defined function in that
    iam trying to call this java class. while testing it is showing error as cannot resolve symbol java class name
    so experts please help me in this or it would be appreciate if any one will provide
    step by step process of one java class and one USD just to add two numbers.
    thanks in advance,
    jasmine .

    Hi,
    The steps are as follows:
    1) Create a java file with .java extension.
    2)Compile it to create a .class file.
    3) Create a zip file for this .class file using any compressed archive program(ex-winrar)
    4) Upload this zip file as an imported archive ,save and activate.
    When you go to this archive,below , you can see your .class file with the older path,for below ex:
    ObjRecord.class     jxl/biff/drawing/
    you have to give following entry in imports section:
    jxl.biff.drawing.ObjRecord;
    Please try this and let us know if this works.
    Thanks.
    Regards,
    Shweta

  • User Defined Function Error - Can't find function

    Hi All,
    Version: 11.1.1.4
    I created a user defined function and added it to one of my BPEL Processes. I can see the function in JDeveloper and can compile the project without issue. We placed the jar file out on the SOA Server following the oracle user defined function examples. After placing the file out on weblogic I was able to successfully deploy the project.
    Oracle Deployment Steps:
    To deploy user-defined functions to runtime:
    1. Copy the user-defined function JAR files to BEA_Home/user_projects/domains/domain_name/lib or a subdirectory of lib.  Where domain_name is the name of the Oracle WebLogic Server domain (for example, soainfra).
    2. Restart the Oracle WebLogic Server.However, when I try to run the composite application I get the below error. I am not really sure why it can't find the Function? The jar is out on the server and the jar was added to the project?
    Error:
    Non Recoverable System Fault :
    <bpelFault><faultType>0</faultType><subLanguageExecutionFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is pnl:GetManager(string(bpws:getVariableData('inputVariable','payload','/client:process/client:input'))). The XPath expression failed to execute; the reason was: Function 'GetManager' not found.. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. </summary></part><part name="code"><code>XPathExecutionError</code></part></subLanguageExecutionFault></bpelFault>Any suggestions would be greatly appreciated!
    Thanks,
    S
    Edited by: Scarpacci on Apr 1, 2011 6:06 AM

    try putting the jar location explicitly in weblogic server's classpath i.e. add BEA_Home/user_projects/domains/domain_name/lib to wls classpath and restart server.

  • Using User Defined Function is SQL

    Hi
    I did the following test to see how expensive it is to use user defined functions in SQL queries, and found that it is really expensive.
    Calling SQRT in SQL costs less than calling a dummy function that just returns
    the parameter value; this has to do with context switchings, but how can we have
    a decent performance compared to Oracle provided functions?
    Any comments are welcome, specially regarding the performance of UDF in sql
    and for solutions.
    create or replace function f(i in number) return number is
    begin
      return i;
    end;
    declare
      l_start   number;
      l_elapsed number;
      n number;
    begin
      select to_char(sysdate, 'sssssss')
        into l_start
        from dual;
      for i in 1 .. 20 loop
        select max(rownum)
          into n
          from t_tdz12_a0090;
      end loop;
      select to_char(sysdate, 'sssssss') - l_start
        into l_elapsed
        from dual;
      dbms_output.put_line('first: '||l_elapsed);
      select to_char(sysdate, 'sssssss')
        into l_start
        from dual;
      for i in 1 .. 20 loop
        select max(sqrt(rownum))
          into n
          from t_tdz12_a0090;
      end loop;
      select to_char(sysdate, 'sssssss') - l_start
        into l_elapsed
        from dual;
      dbms_output.put_line('second: '||l_elapsed);
      select to_char(sysdate, 'sssssss')
        into l_start
        from dual;
      for i in 1 .. 20 loop
        select max(f(rownum))
          into n
          from t_tdz12_a0090;
      end loop;
      select to_char(sysdate, 'sssssss') - l_start
        into l_elapsed
        from dual;
      dbms_output.put_line('third: '||l_elapsed);
    end;
    Results:
       first: 303
       second: 1051
       third: 1515
    Kind regards
    Taoufik

    I find that inline SQL is bad for performance but
    good to simplify SQL. I keep thinking that it should
    be possible somehow to use a function to improve
    performance but have never seen that happen.inline SQL is only bad for performance if the database design (table structure, indexes etc.) is poor or the way the SQL is written is poor.
    Context switching between SQL and PL/SQL for a User defined function is definitely a way to slow down performance.
    Obviously built-in Oracle functions are going to be quicker than User-defined functions because they are written into the SQL and PL/SQL engines and are optimized for the internals of those engines.
    There are a few things you can do to improve function
    performance, shaving microseconds off execution time.
    Consider using the NOCOPY hints for your parameters
    to use pointers instead of copying values. NOCOPY
    is a hint rather than a directive so it may or may
    not work. Optimize any SQL in the called function.
    Don't do anything in loops that does not have to be
    done inside a loop.Well, yes, but it's even better to keep all processing in SQL where possible and only resort to PL/SQL when absolutely necessary.
    The on-line documentation has suggested that using a
    DETERMINISTIC function can improve performance but I
    have not been able to demonstrate this and there are
    notes in Metalink suggesting that this does not
    happen. My experience is that DETERMINISTIC
    functions always get executed. There's supposed to
    be a feature in 11g that acually caches function
    return values.Deterministic functions will work well if used in conjunction with a function based index. That can improve access times when querying data on the function results.
    You can use DBMS_PROFILER to get run-time statistics
    for each line of your function as it is executed to
    help tune it.Or code it as SQL. ;)

  • How to install PMD extension for JDEV 11g TP4 ?

    Hi,
    I tried to install PMD extension to JDEV 11g TP4 without success.
    Check for updates doesn't bring this extension.
    Tools --> Preferences --> extension brings following message:
    The ide.extensions or ide.noextensions system properties are set and override user extension preferences. To configure extensions, unset these properties and restart.
    Release notes of JDev 11g TP4 says:
    In this release, users are unable to manage extensions from the Tools > Preferences, Extensions page. The user will instead see the following message:
    The ide.extensions or ide.noextensions system properties are set and override user extension preferences. To configure extensions, unset these properties and restart.
    Is there a other way to add this extension?
    regards
    Peter

    Hello John,
    But for TP1 there was an extension available.
    http://www.oracle.com/technology/products/jdev/101/update/exchange.xml#net.sourceforge.pmd.jdeveloper
    Does anyone know if PMD JDeveloper extension will be available in production release?
    regards
    Peter

Maybe you are looking for

  • Please help, mixed reports, malware ? virus ? neither ? I am truly stuck

    I am having a problem with my relatively new 6month old imac. Please I am hoping to find some really smart (& hopefully patient)  mac users for help. I  appreciate all the time mac uers help members with there questions. Yuy guys really are an invalu

  • Publis HTML content into OBIEE

    Hi all, in 10 g we put some html files under <oracle_home>\bise1\bi\oc4j_bi\j2ee\home\applications\analytics\analytics\res and accessed them on the portal with http://<server_name>:9704/analytics/res/BI/<file_name>.htm How can we do the same on OBIEE

  • HT4241 Hdmi flickering issues.

    My HDMI adaptor is constantly flickering! Please help! My hdmi adaptor used to work fine, I have tried different adaptors, different displays different hdmi cables with no luck, my brothers macbook still works fine! please help thanks. I have searche

  • Using facelets in existing JSF 1.2/JSP project?

    Our current project consists of a lost of JSPs, some of which serve as place holders for other jsps which have been designed as subviews to be dropped into the holding jsps as required. In a lot of cases several JSPs differ in only one of the subview

  • ??  installing small network/mobile user network --mini as server- wireless

    Hello, Could someone point me to information regarding setting up a small wireless configuration, where each user node (probably mac laptops) can support multiple mobile users. I would like to use a headless mini as a file server ... again connected