Custom function giving the compile error

Hi all

I created a custom function to get the current timestamp. The following java code:

package com.oracle.determinations.examples;

import com.oracle.determinations.engine.CustomFunction;

import com.oracle.determinations.engine.EntityInstance;

Import Java.util;

java.text import. *;

SerializableAttribute public class extends CustomFunction {CurrentTimeStamp

public Object evaluate (EntityInstance entityInstance, Object [] items) {}

Date dNow = new Date ();

SimpleDateFormat ft =

new SimpleDateFormat ("YYYY/MM/DD HH: mm:");

/ * System.out.println (ft.format (dNow)); * /

Return ft.format (dNow);

}

}

My Extension.xml is as below:

<? XML version = "1.0" encoding = "utf-8"? >

< extension >

< functions >

< name of the function = back "CurrentTimeStamp" type = "text" >

< name arg = "input name" type = "text" / >

< Manager platform = 'java' class="com.oracle.determinations.examples.CurrentTimeStamp"/ >

< / feature >

< / functions >

< / extension >

The extension.xml is placed under the following path:

Development/Extension/CurrentTimeStamp/extension.xml

The JAR file is located under the following path:

Development/Extension/CurrentTimeStamp/lib/CurrentTimeStamp.jar (the jar file includes the com.oracle.determination.example folder structure)

When I am using CurrentTimeStamp() in the basis of rules, is throw say compilation error:

"Error after the CurrentTimeStamp text (' fount text: ' ')'. Expected variable value or constant OPA - E00111

Can you please help me where I am doing wrong and therefore not identify the function?

Thank you

KK

Version of the class 51 is Java 7, this suggests that you have compiled your classes in the Java JDK 7, but try to load them into an earlier version of Java (I guess Java 6 since this is the first version of Java that runs under Apache Tomcat 7).

You can specify the JDK compiler to create classes that target Java 6, which should then work - see "javac - Java programming language compiler.

Tags: Oracle Applications

Similar Questions

  • I have a new Apple and made a Migration of Applications. data etc old Apple Apple again. Creative cloud gives error re damaged and to download and install again, however, after doing this installation starts but keeps giving the same error re C

    I have a new Apple and made a Migration of Applications. data etc old Apple Apple again. Creative cloud gives error re damaged and to download and install again, however, after doing this installation starts but keeps giving the same error re file creative cloud. How to solve?

    Uninstall, use the CS cleaning tool, and then reinstall.

    Adobe Creative Suite Cleaner Tool allows to solve the problems of installation for CS3 thru CS6 and creative cloud

    http://www.Adobe.com/support/contact/cscleanertool.html

  • Flash CC on W7. Important the fl.controls like 'import fl.controls.Button;  I get the compile error 1172. Solution?

    Flash CC on W7. Important the fl.controls like 'import fl.controls.Button;  I get the compile error 1172. Solution?

    Can you indicate the corresponding code and the full error message?  Before the race going in your publication of Flash settings and select the option to enable debugging - it can help by adding information in the error message.

  • where to see the compile error

    Hello
    on 10 gR2, I created a trigger and received after WARNING:
    Warning: Trigger created with compilation errors.
    Where can I see the compile error?

    Thank you.

    Dear Sir

    Question displays the error message; SQL command more. You will get the error message.

    Kind regards
    Srikanth

  • Cannot function ship the following error of expression

    While creating analysis off essbase cube, I get the below error:

    "Function cannot ship the following expression.

    I am referring (defined intersections inside to retrieve data) to an existing report, created in hyperion planning, in the essbase cube.

    I have converted the measures dimension to flat measures in RPD online - > physical layer. Thus, all measures entered into "Plan 1 #1".
    The same steps I followed previously, while generating reports from a differnet essbase cube, but I did not deal with this problem.

    Please let me know if I'm missing something in this process.

    OBIEE version: 11.1.1.5.0
    Essbase version: 11.1.2

    FYI: I'm dragging a measure column and 13 dimension columns. In my previous mission had 10 dimensions.

    OK... can you increase the setting of 'MAX_COLUMNS_IN_GROUP_BY' and check with > 10 dims?

    RPD open-> Dpube click physical Essbase of database-> DBFeatures-> Set the "MAX_COLUMNS_IN_GROUP_BY" setting to 256.

    Save the changes to the repository and restart.

    Kind regards
    DpKa

  • Function within the package error

    Hi friends,

    I have a package called xxhw_ams_utils with a function inside get_salary

    When I tried to run this function in the package as below average way, im getting error as
    ORA-00904: "XXHW_AMS_UTILS." "" GET_SALARY ": invalid identifier
    select apps.xxhw_ams_utils.get_salary(1072) from dual
    where there are 1072 is the assignment IM id to the objective test.

    This is the actually the get_salary function located in the package xxhw_ams_utils of coding
    FUNCTION get_salary
    (p_asg_id IN NUMBER)
        RETURN VARCHAR2 IS
        
    l_gross VARCHAR2(20);
    l_basic VARCHAR2(20);
    
    BEGIN
    
    select eev.screen_entry_value
    into l_basic
           from   pay_element_entry_values_f eev,
                  per_pay_bases              ppb,
                  pay_element_entries_f       pe
           where  ppb.pay_basis_id  +0 = 61
           and    pe.assignment_id     = 1072
           and    eev.input_value_id   = ppb.input_value_id
           and    eev.element_entry_id = pe.element_entry_id
           and    sysdate between
                            eev.effective_start_date and eev.effective_end_date
           and    sysdate between
                            pe.effective_start_date and pe.effective_end_date;
    EXCEPTION
    WHEN OTHERS THEN RAISE;
    END; 
    Suppose that if I performed as the way to way below, I get the correct result
    select eev.screen_entry_value
    --into l_basic
           from   pay_element_entry_values_f eev,
                  per_pay_bases              ppb,
                  pay_element_entries_f       pe
           where  ppb.pay_basis_id  +0 = 61
           and    pe.assignment_id     = 1072------------------------------------>assignment id (that im passing)
           and    eev.input_value_id   = ppb.input_value_id
           and    eev.element_entry_id = pe.element_entry_id
           and    sysdate between
                            eev.effective_start_date and eev.effective_end_date
           and    sysdate between
                            pe.effective_start_date and pe.effective_end_date;
    Suppose if I run as the means below it is back as invalid character error.
    select apps.xxhw_ams_utils.get_salary(1072) from dual
    Why might the problem friends.

    Brgds,
    Mini

    Your function must RETURN a VARCHAR2

  • UIScrollBar.scrollTarget = TLFTextField Gets the compiler error in Flash CS5

    Hello

    I would like to add a scroll bar to a TLFTextField, I know that this should be possible because in documentation official scrollTarget is DisplayObject.

    When I try to Flash CS5 gets compiler error telling me that scrollTarget accepts standard TextField.

    Code:

    var txt:TLFTextField = new TLFTextField();

    var scrollBar:UIScrollBar = new UIScrollBar();

    scrollBar.scrollTarget = txt; error

    Thank you very much

    F.

    I'm sorry but when I do what you suggest, I'm in this line of code... more if I notice that the compilation line goes well.

    I know it's really weird for me too.

    In any case, I'll check... Thank you very much for your support.

    EDIT: SOLVED

    the flash file was done using Flash CS4 and the UIScrollBar referenced from the library was probably a UiScrollBar CS4 because if I replace it with a new window / components / UIScrollBar all works fine!

  • Update of MS by giving the 0x8024402C error code when upgrading to the new MS update schema

    I use a completely updated version of XP Professional.  I run an independent firewall

    Update MS used to work until he told me I had to go to the new version.

    Currently I get the 0x8024402C error code.

    I used the program of fixit MS for update problems. Whenever he claimed to correct the error. But it did not work.

    I followed the correction suggested to clear the exceptions lan then use the cmd line to stop and restart the update service. did not work.

    Fix used who said lan value automatic dectet, and received the 0x80072EFD error. Put lan affecting original return and went back to the original error code.  Any other ideas?

    Hi robertTrinitie TCh.,.

    Thanks for posting in the Microsoft Community.

    I understand that you cannot install the update of windows, and you receive the 0x8024402C error message

    I suggest you to see link and check.

    0x8024402C error code when you try to install updates on Microsoft Update or Windows Update Web sites

    http://support.Microsoft.com/kb/900936

    See also:

    Try to reset the Windows Update components

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 how to back up and restore the registry in Windows

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    See also:

    You may receive an error message when you search for available updates on the Windows Update Web site or on the Microsoft Update Web site

    http://support.Microsoft.com/kb/883821

  • Custom tag of the standard errors - complex M6rne

    I am at a loss here again...

    But is a little more complex, because it's a custom tag - pulling some xml parsing...

    And I get the error: work in CF5, however...

    ----------------------------------

    Here is the code calls the custom tag...

    < cfoutput > #term #-final just before 7 < / cfoutput > < br >

    [the code before it is properly spit the 'term' in the below custom 7xml]

    "< cf_7xmlparser = mt" #URLEncodedFormat (term) "#" ip = "#REMOTE_ADDR #" mode = 'array' > < / cf_7xmlparser >

    <! - table output test - >
    < cfset x = 1 >
    < cfloop condition = "x LTE arraylen (dataArry)" >
    < table border = 0 cellspacing = 0 cellpadding = 5 >
    < cfoutput >
    < b >
    < td valign = top class = verd9 >
    < b > < a href = "#dataArry [x] ["URL"] #" > #dataArry [x] ["name"] # < /a > < / b > ""
    < br / > < span class = verd7 > #dataArry [x] ['description'] # </span >
    < table > < /tr >
    < / cfoutput >
    < /table >
    < cfset x = incrementvalue (x) >
    < / cfloop >

    ----------------------------------

    It's the 7xml - code "cf_7xmlparser" - that worked great in CF5 - not in CF8 however...

    < cfsetting enablecfoutputonly = "yes" >

    <!-Make sure he treats only once-->

    < thisTag.executionMode cfif EQ 'Start' >

    <!-by default is array mode, mode can also be display->
    < cfset mode = "array" >

    < isdefined ("attributes.mt") cfif >
    < cfset mt = attributes.mt >
    < cfif len (trim (mt)) EQ 0 >
    < cfoutput >
    < br > < br >
    The value of the < b > < /b > mt attribute has the value null, please check the custom tag call.
    < / cfoutput >
    < cfexit >
    < / cfif >
    < cfelse >
    < cfoutput >
    < br > < br >
    The < b > < /b > mt attribute is an attribute required for this tag.
    < / cfoutput >
    < cfexit >
    < / cfif >

    < isdefined ("attributes.ip") cfif >
    < cfset attributes.ip = ip >
    < cfif len (trim (ip)) EQ 0 >
    < cfoutput >
    < br > < br >
    The value of the < /b > < b > intellectual property attribute has the value null, please check the custom tag call.
    < / cfoutput >
    < cfexit >
    < / cfif >
    < cfelse >
    < cfoutput >
    < br > < br >
    The < /b > < b > intellectual property attribute is an attribute required for this tag.
    < / cfoutput >
    < cfexit >
    < / cfif >

    <! - generation stream url - >
    < cfset feedURL = "http://meta.7search.com/feed/xml.aspx?affiliate=63381 & token = F6 D963B03891934F789ABA8E0F3D66E4 & pn = 1 & r = 20 & filter = & st = typein & rid = medexplorer.com & what=" & mt & "& ip_address =" & ip > "

    <! - retrieve data xml - >
    < cfhttp method = url "" #feedURL # "="get"> < / cfhttp >"

    < cfset feedData = cfhttp.filecontent >

    < cfset findOne = ' < site ">"
    < cfset findTwo = ' < / site ' > >

    < cfset posTest findnocase (findOne, feedData) = >
    < cfset passcnt = 1 >
    < cfset recLen = 0 >

    <!--create table on the calling page-->
    < cfif mode EQ 'array' >
    < cfset caller.dataArry = arraynew (1) >
    < / cfif >

    < cfloop condition = "pretest NEQ 0" >

    <!--create new structure for each pass-->
    < cfif mode EQ 'array' >
    < cfset dataStruct = structnew() >
    < / cfif >

    < cfset findOne = ' < site ">"
    < cfset findTwo = ' < / site ' > >

    <! - starting point of get - >
    < cfif passcnt NEQ 1 >
    < cfset posTest findnocase (findOne, feedData, posTestx) = >
    < / cfif >

    < cfif posTest EQ 0 >
    < cfbreak >
    < / cfif >

    <! - get the data of the registration - >
    "< cf_parsetext vContent =" ' #feedData # ' posOne = ' #int (pretest + 7) # "findOne =" #findOne # "findTwo =" #findTwo #">

    < cfset recordData = HD >
    < cfset posTestx = posTwo + 7 >

    <! - analyze each element-->

    <!--get url-->
    < cfset findOne = "<>url" >
    < cfset findTwo = ' < / url > ">".
    < cfset p1 = findnocase (findOne, recordData) >
    "< cf_parsetext vContent =" ' #recordData # ' posOne = ' #int ((p1 + len (findOne))-1) # "findOne =" #findOne # "findTwo =" #findTwo #">

    < cfset url = replacenocase (replacenocase (HD, "<!")) [CDATA ["," ")," ']] (">", "") >
    < cfif mode EQ 'array' >
    < cfset rc = structinsert (dataStruct, "url", url) >
    < / cfif >

    <!--get name-->
    < cfset findOne = '< name >' >
    < cfset findTwo = ' < / name "> >
    < cfset p1 = findnocase (findOne, recordData) >
    "< cf_parsetext vContent =" ' #recordData # ' posOne = ' #int ((p1 + len (findOne))-1) # "findOne =" #findOne # "findTwo =" #findTwo #">

    < cfset = replacenocase name (replacenocase (HD, "<!")) [CDATA ["," ")," ']] (">", "") >
    < cfif mode EQ 'array' >
    < cfset rc = structinsert (dataStruct, 'name', name) >
    < / cfif >

    <! – get description - >
    < cfset findOne = '< description >' >
    < cfset findTwo = ' < / description > ">".
    < cfset p1 = findnocase (findOne, recordData) >
    "< cf_parsetext vContent =" ' #recordData # ' posOne = ' #int ((p1 + len (findOne))-1) # "findOne =" #findOne # "findTwo =" #findTwo #">

    < cfset description = replacenocase (replacenocase (HD, "<!")) [CDATA ["," ")," ']] (">", "") >
    < cfif mode EQ 'array' >
    < cfset rc = structinsert (dataStruct, "description", description) >
    < / cfif >

    <! - record data on the structure of table and table of the calling page - >
    < cfif mode EQ 'array' >
    < caller.dataArry [cfset passcnt] = dataStruct >
    < / cfif >

    < cfset passcnt = incrementvalue (passcnt) >
    < / cfloop >

    < / cfif >

    < cfsetting enablecfoutputonly = "no" >

    ----------------------------------

    Here is the error code...

    I'm lost...

    ----------------------------------

    Line 108 below was the error line in bold...

    Complex object types cannot be converted to simple values.

    Expression asked a variable or a result of the intermediate expression as a simple value, however, the result can not be converted to a simple value. Simple values are strings, numbers, Boolean values, and date/time values. Queries, tables, and COM objects are examples of complex values.

    The most likely cause of the error, is that you try to use a complex value as a single. For example, you could try to use a query variable in a cfif tag.

    The error occurred in C:\ColdFusion8\CustomTags\cfwcustom.cfm: line 108
    Called from D:\medexplorer\cfinclude\_navigate.cfm: line 41
    Called from D:\medexplorer\navigate.cfm: line 14
    106 :      <tr>
    107 :      <td valign=top class=verd9>
    108 :      <b><a href="#dataArry[x]["URL"]#">#dataArry[x]["name"]#</a></b>
    109 :      <br><span class=verd7>#dataArry[x]["description"]#</span>
    110 :      </td></tr>
    

    In CF5, URL was not reservered Word.

    From CF6 and, it is now a reserved word for the URL of the application domain, IE the GET the request headers.

    If this isn't the problem.  Empty the variable at the origin of the problem

    And see what the structure looks like.

  • If reporting on the compilation error

    Try to set CUST_REF to the ACTIVITY of 'TITANIC' If = 'Karate', 'Karaté Junior', 'Judo' or "Judo Junior"



    IF (: GROUP_CUSTOMER.) ACTIVITY = "Karaté")
    OR
    (: GROUP_CUSTOMER.) ACTIVITY = "Junior Karaté")
    OR
    (: GROUP_CUSTOMER.) ACTIVITY = "Judo")
    OR
    (: GROUP_CUSTOMER.) ACTIVITY = "Judo Junior")

    THEN

    VALUE: GROUP_CUSTOMER. CUST_REF = "TITANIC."

    END IF;


    Help, please!

    Why not just use the IN operator? For example:

    IF ( :GROUP_CUSTOMER.ACTIVITY IN ('Karate','Junior Karate','Judo','Junior Judo',) ) THEN
       :GROUP_CUSTOMER.CUST_REF := 'TITANIC';
    END IF;
    

    You too, the code example uses a comparison operator (=) instead of an assignment operator (: =) in your IF statement.

    /* Your code sample */
    IF (:GROUP_CUSTOMER.ACTIVITY = 'Karate')
    OR
    (:GROUP_CUSTOMER.ACTIVITY = 'Junior Karate')
    OR
    (:GROUP_CUSTOMER.ACTIVITY = 'Judo')
    OR
    (:GROUP_CUSTOMER.ACTIVITY = 'Junior Judo')
    
    THEN
        /* The SET command is not appropriate here... */
        SET :GROUP_CUSTOMER.CUST_REF = 'TITANIC';
        /* This Assignment should be... */
        :GROUP_CUSTOMER.CUST_REF := 'TITANIC';
    END IF;
    

    I hope this helps.
    Craig...

  • Customized using AID the deployment of ABC with XPATH error

    Hi all

    I use a function custom xpath as described below in the ABC BPEL provider.

    < copy >
    < expression = "sql:queryToWhereClause (ora:getNodes('xxx','xxxx','xxxxxxxx'))" / >
    < variable = 'element VariableName' = 'main' / >
    < / copy >

    When I deploy this ABC of jdeveloper, everything works fine.

    When I try to deploy the composite of CBA using the HELP, it throws this error,

    [scac] error: in QueryPersonEbizProvABCSImplProcess.bpel (733): could not resolve function xpath "queryToWhereClause", because the function "sql:queryToWhereClause" is not registered.

    I dropped the class in $SOA_HOME/soa/modules/oracle.soa.ext_11.1.1/classes, and it always seems that the HELP is not able to locate the class. I'm fall classes in the right location, or is this something else that is missing? Pointers are appreciated.

    Thank you
    Anish.

    Anish,
    This comes as a result of compilation of SOA tools do not include $SOA_HOME/soa/modules/oracle.soa.ext_11.1.1 in the class path, such as $SOA_HOME/bin/ant-sca-compile.xml which is used in turn by AID for the development of composite materials.

    You can work around this by adding classes/libraries custom $SOA_HOME/bin/ant-sca-compile.xml in the classpath. Add the following entry in the section "":

    With this Ant-sca - compiles .xml and so also HELP will be aware of your function custom xpath and the compile error should disappear.

    Gerhard

  • When the Manager of the custom function in a configuration of link file gets error?

    The question she get error when the Manager of the custom function in a config file in the plan to include the link.
    When she went to join the custom function Manager in the debugger, everything is OK.

    <? XML version = "1.0" encoding = "utf-8"? >
    < configuration >
    < custom function platform = "DotNet".
    library-path="G:\RB1\Include\CustomFunctions.dll".
    Class="Viking.CustomFunctions.CustomFunctions"/ >
    < / configuration >

    THS, category and path is correct.
    So is there any problem for < custom function platform = "DotNet"?

    OPA version 10.2

    OPA error message translated from the Germany into English: Exception has been thrown by the target of a call

    In general, you should not give the full path of the custom function, it should be rather in relation to the project include file.

    for example:

    and then make sure that the CustomFunctions.dll file is copied into the project folder until the project is built.

    In addition, if you use 10.2 for a new project, the mechanism that you use is now replaced. An extension of the custom function is the new thing, and it will look much nicer when it is used in the rules. Refer to the section 'Write a Custom function Extension' in aid of developer for more information.

  • compilation error

    Hello when I try to compile my code it gives me the compile error!

    I've seen this page

    http://digital.NI.com/public.nsf/allkb/311C18E2D635FA338625714700664816

    and I tried a lot to adapt to my code! reduced use of the lut of 107 to 101%, but he actually uses Interpolation spline 4times separately to move 4 motors! that it overlooked,

    I also enclose my code!

    Please take a look at reduced fpga4 and rt4reduced! N give me suggestions how can I reduce space, and if this compilation error is indeed bcz of space! This is the maximum can reduce the code! all Motors must move simaltaneously so I can't think about using a spline function unique move one, then the other engine!

    Please find the code and the report of the attachmenet1

    Sara


  • FileReference compilation error

    I'm trying to get a simple example to work.  I can make it work if I publish in FlashPlayer10, but not FP 9

    import flash.events. *;
    import flash.net.FileReference;
    import flash.net.FileReferenceList;
    import flash.net.FileFilter;
    import flash.net.URLRequest;

    var yourName:String;
    var myfile:FileReference = new FileReference();

    myButton.addEventListener (MouseEvent.CLICK, pressButton);

    function pressButton(e:MouseEvent)
    {
    trace ("buried name is:" + inputName.text);
    MyFile.Save (InputName.Text, "Exam_backup.txt");
    }

    The said reference material

    Language version:ActionScript 3.0
    Versions of the Runtime:AIR 1.0, Flash Player 9

    Does that mean AIR 1.0 and Flash Player 9 or what is the problem?

    the compile error is...

    1061: call to a possibly undefined method save through a reference with flash .net: FileReference of static type.

    and when I search the save() method, using the word files to say:

    Language version: ActionScript 3.0
    Versions of the Runtime: Flash Player 10, AIR 1.5
  • Compiler error. Report to Technical Support OR: err c = 0xF1 ufppushop

    Compiler error. Report to Technical Support OR: err c = 0xF1 ufppushop

    When recording / runing a vi that performs calculations in a node formula containing several if and a switch statement. (LV6.1, WinNT)

    I solved the problem: the compile error occurred because a single formula node entry was an enum.
    When you insert a cast to digital, the problem has been resolved.

Maybe you are looking for

  • Restriction code

    Hello I recently bought a new iPhone 6s and cannot reset my password of restriction (I only today learned that there was a restriction password and don't remember ever putting a). In any case, I tried to restore my phone to factory settings according

  • Using HP drivers seems not to recognize my photosmart 5524 and my mac turns 10.8.2 which is

    I'm Mac 10.8.2. Just replaced my printer with HP Photsmart 5524. The drive does not work as it does not recognize my system. When I try to get online HP drivers, it does not recognize the photosmart 5524 and offers no upodated software to download. C

  • too many startup programs

    Too many programs that start automatically when I log in I have to change this

  • AnyConnect user using the user certificate authentication and LDAP authentication

    Hello I'm trying to implement the Anyconnect VPN for my office. Now, I want the user to authenticate the user certificate based (which is install user local system are we) CN value and LDAP authentication. A help how to achieve this requirement. We i

  • 4400 wlc 4.2.176 to 4.2.205 software upgrade

    Hello I have 4400 wlc and image backup running as 4.0.206.0 and 4.2.176. Because of certain reservations in the current 4.2.176, we expect to update with 4.2.205. WLC > / * Style definitions * / table. MsoNormalTable {mso-style-name : « Table Normal