Date Validation Urgent Please under deadline

I currently have this 2 methods to be used by a jsp for
this is in my bean
public void setendDate(String aendDate){
endDate=aendDate;
public String getEndDate(){
return endDate;
what is the easiest way to carry out a SimpleDateFormat dd/mm/yyyy;
and set a variable to show that there is an error in the date format entered

Then, this may of some help.
import java.text.*;
public class TestFormat{
    public static void main(String[] args){
    SimpleDateFormat form=(SimpleDateFormat)DateFormat.getDateInstance();// ClassCastException be checked
    form.applyPattern("dd/MM/yyyy");//capital letter "MM" be used
    System.out.println(((SimpleDateFormat)form).toPattern());
    ParsePosition position= new ParsePosition(0);
    position.setErrorIndex(-1);//initialize
    Date date=null;
      date=form.parse("4/12-2002", position);//pattern violated
      if(date!=null)  System.out.println(date.toString());
      System.out.println(position.getErrorIndex());
      position.setErrorIndex(-1);//initialize
      date=form.parse("4/12/2002",position);// with pattern
      if(date!=null)  System.out.println(date.toString());
      System.out.println(position.getErrorIndex());  //-1 expected (no error)
}

Similar Messages

  • Need help in date Validation Urgent

    Hi ,
    We need help in Date Validation.
    we have 2 Date fields on the form Start Date, End Date
    The requirement is: End Date (May not be greater than 30 years from the start date).
    I have written following script on End Date Exit event. But the problem is its calculating 30 years from the Current Date not from the Start Date
    var tDate = util.scand("mm/dd/yyyy", new Date());
    var M = tDate.getMonth();
    var D = tDate.getDate();
    var Y = tDate.getFullYear();
    var SRes = util.printd("yyyy-mm-dd", new Date((Y+30), M,D) );
    //app.alert(SRes)if (SRes <= this.rawValue){
    app.alert("May not be greater than 30 years from the start date")
    xfa.host.setFocus(
    this);}
    can someone please help me
    Regards,
    Jay

    Hi,
    You'll need to get javascript date from LCD field, and calculate & compare with the future date in javascript date.
    try following script;
    var sDate = StartDate.rawValue;
    var wkStartDate = util.scand("yyyy-mm-dd", sDate);
    var nYear = wkStartDate.getFullYear();
    var nMonth = wkStartDate.getMonth();
    var nDay = wkStartDate.getDate();
    var wkFutureDate = new Date(nYear  + 30 , nMonth, nDay);
    sDate = EndDate.rawValue;
    var wkEndDate = util.scand("yyyy-mm-dd", sDate);
    if (wkEndDate.getTime() > wkFutureDate.getTime()){
      xfa.host.messageBox("May not be greater than 30 years from the start date");
      xfa.host.setFocus(this);

  • Transport Enhanced Data source - Urgent - Please help

    Hi,
    I have enhanced a standard data source by adding few columns and implementing BADI, how can i transport this enhanced data source/ extractor to another server. currently when i see in SE10 i could see only the append structure name, when i released the transport the enhanced extract structure is not there instead the standard structure only i there, could you please tell how can i transport.
    Thanks
    Akila.R

    Hi,
    First try to see the enhanced fields are available or not in original system by double clicking on the above datasource, if fields are available try to uncheck Filed option.
    Once enhacement is done for the particular business content extractor, the enhanced fileds should show at the end of the extract structure using Append option.
    if it is not showing means, fileds are not enhanced for that extract structure..
    for that go to SE11-> give your exctract structure->in top most click on Append structure-> then give you enhanced structure name->activate..
    Regards
    SK

  • Date format, urgent, Please help

    I'm having problem with date format. In the sql I need get data that greater than
    '05-01-2005' but cannot get it work.the = is Ok but not > or >=.
    Could someone please tell why and how to do it?
    Many thanks
    this one is work.
    select distinct to_char(LAST_MODIFIED_DATE, 'DD/MM/YYYY') start_date
    from ccst_acctsys_account
    where to_char(LAST_MODIFIED_DATE,'DD-MM-YYYY') = '05-01-2005';
    this one is not work
    select distinct to_char(LAST_MODIFIED_DATE, 'DD/MM/YYYY') start_date
    from ccst_acctsys_account
    where to_char(LAST_MODIFIED_DATE,'DD-MM-YYYY') > '05-01-2005'

    since you convert the date to character format you won't be able to use the > or <
    you might want to use the trunc() function and convert the '05-01-2005' in date datatype:
      select distinct to_char(LAST_MODIFIED_DATE, 'DD/MM/YYYY') start_date
        from ccst_acctsys_account
       where trunc(LAST_MODIFIED_DATE) >= to_date('05-01-2005','dd-mon-yyyy');Message was edited by:
    Warren Tolentino
    Jonh has the same solution. You might want to try including the TRUNC() function.

  • Date function: urgent : please help

    This is the problem statement.:
    Problem: Given two dates (during the years 1901 and 2999, inclusive), find
    the number of days between the two dates.
    Input: Two dates consisting of month, day, year. For example, the inputs
    '6, 2, 1983' and '6, 22, 1983' represent the date range June 2, 1983 to
    June 22, 1983.
    Output: The number of days between the given dates, excluding the starting
    date and the ending date. For example, there are 19 days between June 2,
    1983 and June 22, 1983; namely, June 3, 4, ..., 21.
    Test Input (3 sets):
    Input Line #1: 6, 2, 1983, 6, 22, 1983
    Output #1: 19
    Input Line #2: 7, 4, 1984, 12, 25, 1984
    Output #2: 173
    Input Line #3: 1, 3, 1989, 3, 8, 1983
    Output #3: 1979
    ==========
    I have a GregorianCalender function that works. But I want to use a basic java function that can solve the above problem.
    regards
    ~m

    Here is the code that uses the Gregorian Funtion. Does anybody know of anything basic that replaces what gregorian does in this case.
    import java.util.*;
    import java.io.*;
    import java.math.*;
    import java.text.*;
    import java.lang.*;
    public class Days {
         static int year1,month1,day1;
         static int year2,month2,day2;
         public static void main(String[] args) throws Exception{
              parse(args);
              GregorianCalendar gc1 = new GregorianCalendar(year1, day1, month1);
              GregorianCalendar gc2 = new GregorianCalendar(year2, day2, month2);
              DateFormat df1 = DateFormat.getDateInstance();
              DateFormat df2 = DateFormat.getDateInstance();
              try {
                   Days ds = new Days();
                   ds.getDays(gc1, gc2);
                   System.out.println("Output #: " + (ds.getDays(gc1, gc2) - 1));
              } catch (java.lang.IllegalArgumentException e) {
                   System.out.println("Unable to parse");
         // validate input values,
              // if input parameters are not correct and not in a proper format
              // then throw an exception
         private static void parse(String[] args) throws Exception{
              boolean flag = true;
              if(args == null) output();
              if(args != null && args.length != 2) output();
              validate(args);
              return;
         private static void output() throws Exception{
                   throw new Exception("Input arguments are not correct. You should pass "+
                                            "two input dates with a space such as 1901,1,1 2999,1,1");
         private static void validate(String[] args) throws Exception{
              String arg1 = args[0];
              String arg2 = args[1];
              System.out.println(arg1);
              System.out.println(arg2);
              java.util.StringTokenizer tokenizer = new StringTokenizer(arg1,",");
              if(tokenizer.countTokens() < 3) output();
              String year1AsString = tokenizer.nextToken(",");
              String month1AsString = tokenizer.nextToken(",");
              String day1AsString = tokenizer.nextToken(",");
              year1 = getInt(year1AsString,4);
              month1 = getInt(month1AsString,2);
              day1 = getInt(day1AsString,2);
              java.util.StringTokenizer tokenizer2 = new StringTokenizer(arg2,",");
              if(tokenizer2.countTokens() < 3) output();
              String year2AsString = tokenizer2.nextToken(",");
              String month2AsString = tokenizer2.nextToken(",");
              String day2AsString = tokenizer2.nextToken(",");
              year2 = getInt(year2AsString,4);
              month2 = getInt(month2AsString,2);
              day2 = getInt(day2AsString,2);
         private static int getInt(String string, int maxLimit) throws Exception{
              if(string.length() > maxLimit) output();
              int temp = 0;
              try{
                   temp = Integer.parseInt(string);
              }catch(NumberFormatException e){
                   output();
              return temp;
         public int getDays(GregorianCalendar g1, GregorianCalendar g2) {
              int elapsed = 0;
              GregorianCalendar gc1, gc2;
              if (g2.after(g1)) {
                   gc2 = (GregorianCalendar) g2.clone();
                   gc1 = (GregorianCalendar) g1.clone();
              } else {
                   gc2 = (GregorianCalendar) g1.clone();
                   gc1 = (GregorianCalendar) g2.clone();
              gc1.clear(Calendar.MILLISECOND);
              gc1.clear(Calendar.SECOND);
              gc1.clear(Calendar.MINUTE);
              gc1.clear(Calendar.HOUR_OF_DAY);
              gc2.clear(Calendar.MILLISECOND);
              gc2.clear(Calendar.SECOND);
              gc2.clear(Calendar.MINUTE);
              gc2.clear(Calendar.HOUR_OF_DAY);
              while (gc1.before(gc2)) {
                   gc1.add(Calendar.DATE, 1);
                   elapsed++;
              return elapsed;
    ~m

  • Urgent please: lost all datas while sync my new iPhone. how can i retrieve my old datas? through icloud?

    urgent please: I have a new iphone 4S and while sync with itunes, it was not done using the data of my old iphone but with a new virgin iphone. how can I retrieve and sync with my old datas? through icloud? or have I lost everything? please help

    to be more precise
    I have saved all my datas of my old iphone on itunes and icloud. I got a new phone 4s that I connected to itunes in order to load it and sync with my old datas. but I don't konw how but when itunes sync my new iphone i did not take my old datas. at the end of the sync process, I got an iphone totally virgin, but none of my previous apps, neither contact neither calendar neither anything. what happened? did itunes erased all my previous datas?? i hope not but if it's the case, can I recuperate my old datas through icloud? please help because as a lot of us, all my life is in this iphone.. (contacts, photos of my 18months girl, etc etc)
    thank you very much

  • Encrypting and Decrypting Data(Its Very Urgent, Please Help.)

    Hi,
    Can anyone tell me some idea in the below mentioned details.
    Iam creating a Function for Encrypting and Decrypting Data Values using
    DBMS_OBFUSCATION_TOOLKIT with UTL_RAW.CAST_TO_RAW by using
    Key Value as normal.
    But the problem, is it possible to have the key value more than 8.
    Its showing me error when i give the key value less than 8 or more than 8.
    Can u tell me why it happens, is that the limit of the key value or is any other way to do that.
    Its Very Urgent, Please Help.
    Thanks,
    Murali.V

    Is this what you're looking for?
    Usage Notes
    If the input data or key given to the DES3DECRYPT procedure is empty, then the procedure raises the error ORA-28231 "Invalid input to Obfuscation toolkit."
    If the input data given to the DES3DECRYPT procedure is not a multiple of 8 bytes, the procedure raises the error ORA-28232 "Invalid input size for Obfuscation toolkit." ORA-28233 is NOT applicable for the DES3DECRYPT function.
    If the key length is missing or is less than 8 bytes, then the procedure raises the error ORA-28234 "Key length too short." Note that if larger keys are used, extra bytes are ignored. So a 9-byte key will not generate an exception.
    C.

  • Date format Problem in OAF R12 Urgent Please help!!!

    We have acustom application in OAF which was developed in 11i. Now we migrated the same to R12.
    In this there are two date fileds getting dispayed on the page and the query for the same is
    SELECT TO_CHAR (SYSDATE, 'dd-mm-yyyy') AS CURRENT_DATE, UPPER (TO_CHAR (SYSDATE - 10, 'mon-yy')) AS g_period, UPPER (TO_CHAR (SYSDATE + 5, 'mon-yy')) AS gnext_period, TO_CHAR (sysdate,'dd-mon-yyyy') as today_date, TO_CHAR (sysdate - 1,'dd-mon-yyyy') as yesterday_date FROM DUAL
    In 11i version the output is dispaying correctly but in R12 the current date is dispayed as
    Start Date 04-Nov-5242
    End Date 04-Nov-5241
    As per logic it should be
    Start Date 09-Feb-2012
    End Date 10-Feb-2012
    Please help..Urgent issue.

    Here are the answers to your problems :
    1. Once u restart , the oracle services and the database is not mounting automatically.That is because, when you install the Oracle Oracle8i Standard Edition Release (8.1.7), the two key services namely
    OracleOraHome81TNSListner and
    OracleService<your SID name>
    are configured as manual start ( check the NT --> start>setting>control panel>services. )
    For the database to start automatically the next time you start your machine, these two services will have to be put into "Automatic Start" mode.
    < for this double click on the respective service, select the "Automatic" radio button and click on ok>.
    Now when you restart the machine, your database will be automatically mounted.
    2. this as explained above is a corollory to the above problem. you can start or stop your database on NT using the "Services" window....
    hope this helps.
    bye.
    Hi All,
    I have installed Oracle Oracle8i Standard Edition Release (8.1.7) from technet site.
    I have installed it on windows NT 4.0 .
    Installation is fine.
    I can access or get into SQL prompt .
    I have created a database also.
    1st problem
    My problem is once I restart the Machine and try to access SQL plus .it gives me an error
    ORA-01034: Oracle not available
    ORA-27101: shared memory realm does not exist.
    2nd problem
    I dont know how to start and stop the database , as there is nothing to do that in the start menu of Oracle .
    How do i do this .
    This is very urgent please help.
    regards,
    Preeti

  • Urgent please: Master-Deatils OAF Page for enter and Update data

    Hi all,
    i need your help to build master-details oaf page for Enter / Update data
    for example: We have Locations , Department , Employees tables
    all these tables on one oaf page (OAAdvancedTable)
    when user enter New Location and go to Enter it's Departments and for each department, he can Enter they employees.
    and Regarding to Update date:
    - when user select Location , Department table fetch all departments and user can update
    waiting your support for urgent please
    Regards
    Hany

    i do these Steps :
    1- Create LocationEO,DepartmentEO and EmployeesEO
    2- Create Association between LocationEO and DepartmentEO with one-to-Many relation (LocToDeptAO)
    3- Create Association between DepartmentEO and EmployeesEO with one-to-Many relation (DeptToEmpAO)
    4- Create View Object (LocationVO)
    5- Create DepartmentVO (and add LocationEO due to LocToDeptAO)
    6- Create EmployeesVO (and add DepartmentEO due to DeptToEmpAO)
    7- Creare View Link between LocationVO and DepartmentVO (Based On LocToDeptAO) --> LocToDeptVL
    8- Creare View Link between DepartmentVO and EmployeesVO (Based On DeptToEmpAO)---> DeptToEmpVL
    9- Add LocaionVO to Application Module, then add DepartmentVO Via (LocToDeptVL)
    10-Add EmployeesVO to Application Module Via (DeptToEmpVL)
    and Then Run Test AM, all data fetch sucessfully, and i can insert data with proper relations
    NOw, i want to implement this Business Logic in single oaf Page using 3 OAAdvancedTable (Master - Details -Details )
    Regards

  • Urgent--Problem in Date validations in Javascript.

    Hi ,
    I am facing problem in date validation in javascript.The requirement is my PO delivery date should be greater than my Sysdate.For that I wrote Javascript programme as below-
    function sysValidate(item){
                        var itemValue=item;
    // alert(itemValue);
    /* if((itemValue == '')||(itemValue == null))
    return false;
                        var today = new Date();
                        var sysDay = today.getDate();
                        var sysMonth = today.getMonth()+1;
                        var sysYear = today.getFullYear();
                        var fieldArray = itemValue.split("/");
                        var itemDay = parseInt(fieldArray[0]);
                        var itemMonth = parseInt(fieldArray[1]);
                        var itemYear = parseInt(fieldArray[2]);
    if(itemYear > sysYear)
    return false;
                        else{
                             if(itemYear < sysYear)
                                  return true;
                             else{
                                  if(itemMonth > sysMonth)
                                       return false;
                                  else{
                                       if(itemMonth < sysMonth)
                                            return true;
                                       else{
    if(itemDay >=sysDay)
    return false;
                                            else
    return true;
    Now inspit of my PO delivery date greater than sysdate ,while saving record I am getting Alert as Save denied as delivery date prior to sysdate
    The code for alert is as follows-
    if(sysValidate(exdate))
    alert("Save denied as delivery date prior to sysdate");
    bool=false;
    return bool;
    Plz,help.As this problem is occuring on Production Server due to this my suppliers can't save record.
    Vaish...

    hi Vaish,
    here is the code i have modified
    <script>
    function sysValidate(item){
    var itemValue=item;
    var fieldArray = itemValue.split("/");
    var today = new Date();
    var sysdate=new Date(today.getFullYear(),today.getMonth(),today.getDate(),0,0,0);
    var inputdate=new Date(parseInt(fieldArray[2]),parseInt(fieldArray[0])-1,parseInt(fieldArray[1]),0,0,0);
    alert("sysdate "+sysdate);
    alert("inputdate "+inputdate);
    days=Math.round((sysdate.getTime()-inputdate.getTime())/1000/60.0/60.0/24.0);
    if(days<=0)
         return true;
    else
         return false;
    </script>
    call the validate method form here :
    <script>
    if(sysValidate("07/24/2005"))
    alert("Save denied as delivery date prior to sysdate");
    else{
    alert("Saved successfully")
    }

  • Hi what is validation/subscription please urgent

    hi what is validation/subscription please urgen

    Hi SAI / ALL
    Could you send the document for validation / substitution on my below mail ID's?
    [email protected]
    [email protected]
    Regards

  • Hi All,Please send me abap-hr material .Its urgent please.

    Hi All,Please send me abap-hr material .Its urgent please.

    These are the FAQ's that might helps you
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapgenie.com/faq/hr.htm
    http://www.sapgenie.com/sapfunc/index.htm
    http://www.sap-img.com/abap/sample-hr-reports-allocate-petrol-allowance.htm
    http://www.sap-img.com/hr021.htm
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sap-img.com/human/finding-the-list-of-hr-module-tables.htm
    additional info......
    Download the ABAP e-book for HR in the below link under the section 'Free ABAP eBook Download'
    http://www.sap-img.com
    Also have a look at the following links-
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://planetsap.com/index.htm
    http://www.atomhr.com/library_full.htm
    http://www.sap-basis-abap.com/saphr.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/60/d8d8c7576311d189270000e8322f96/frameset.htm
    http://www.sapfriends.com/sapstuff.html
    http://www.atomhr.com/know_preview/Reading_Payroll_Results_with_ABAP.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Payroll
    http://www.sap-press.com/product.cfm?account=&product=H967
    http://www.sapdevelopment.co.uk/hr/payres_abap.htm
    http://www.sapdevelopment.co.uk/hr/payres_tcode.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
    http://www.atomhr.com/training/Technical_Topics_in_HR.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    you can see some Standard Program examples in this one..
    http://www.sapdevelopment.co.uk/programs/programshr.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification

  • List data validation failed when creating a new list item but does not fail when editing an existing item

    Dear SharePoint Experts,
    Please help.
    Why does my simple formula work in Excel but not-work in SharePoint?
    Why does this formula...
    =IF([Request Type]="Review",(IF(ISBLANK([Request Date]),FALSE,TRUE)),TRUE)
    ...work in Excel but fail when I try to use it in SharePoint?
    The intent of this formula is the following...
    If the field "Request Type" has the value "Review" and the field "Request Data" is blank then show FALSE, otherwise show TRUE.
    SharePoint saves the formula, but when a list item is saved where the formula is implemented, (under List Settings, List Validation), SharePoint does not, say anything other than that the formula failed.
    Note that the "list data validation failed" error only happens when I am creating a new item-- the formula above works just fine when one is trying to Save on the edit form. 
    Can you help?
    Thanks.
    -- Mark Kamoski

    Dear Jason,
    I appreciate your efforts.
    However, it seems to me that this statement of yours is not correct...
    "If it meet the validation formula, then you can new or edit the item, otherwise, it will throw the 'list data validation failed' error, it is by design".
    I believe this is NOT the answer for the following reasons.
    When I create a new item and click Save, the validation error is "list data validation failed".
    When I edit an existing item and click Save, the validation error is "my custom error message" and this is, I believe, the way it needs to work each time.
    I think, at the core, the error my formula does not handle some condition of null or blank or other default value.
    I tried a forumla that casts the date back to a string, and then checked the string for a default value, but that did not work.
    I tried looking up the Correlation ID in the ULS when "list data validation failed" occurs, but that gave no useful information because, even though logging was set to Verbose, the stack trace in the error log was truncated and did not given any
    good details.
    However, it seems to me that SharePoint 2013 is not well-suited for complex validation rules, because...
    SharePoint 2013 list-level validation (NOT column-level validation) allows only 1 input for all the multi-field validation formulas in a given list-- so, if I had more than 1 multi-field validation rule to implement on a given list, it would need to be packed
    into that single-line-of-code forumla style, like Excel does. That is not practice to write, debug, or maintain.
    SharePoint 2013 list-level validation only allows 1 block of text for all such multi-field validation rules. So that will not work because I would have something like "Validation failed for one or more of the following reasons-- withdrawal cannot exceed
    available balance, date-of-birth cannot be after date-of-death,... etc". That will not work for me.
    The real and awesome solution would simply be enhancing SP 2013 so that column-level validation forumlas are able to reference other columns.
    But, for now, my workaround solution is to use JavaScript and jQuery, hook the onclick handler on the Save button, and that works good. The only problem, is that the jQuery validation rules run before any of the column-level rules created  with OOTB
    SP 2013. So, in some cases, there is an extra click for the enduser.
    Thanks,
    Mark Kamoski
    -- Mark Kamoski

  • Data validation for Date Field in Web Dynpro ABAP

    Hi ,
    In my WDA i want to perform data validation for date filed. (i.e. While creating a new record i have to check the Start Date should be always lesser than End Date.)
    If u ll enter the wrong date it should validate the Date and throw an error message.
    Please Reply soon its urgent.
    Thanks,
    Deepika

    Hi,
    First read the two attributes start date and end date.
    Then write the following condition.
    IF item_start_date > item_end_date.
    Error message.
    Endif.
    For pop up error message you need to use Create_window method of the Interface if_wd_window.
    Thanks.

  • Request Data Validator is not working

    Hi Guys,
    I am trying to invoke a plugin while submitting a request through CATALOG in OIM 11gR2. The user case i am trying to achieve is - (1) User/Admin login to OIM and go to CATALOG option (2) Select an Application instance, fill the values in the form and checkout (3) While submitting this validator should invoke which will validate the request data and throw exception if any.
    For this i was thinking to utilize the plugin for oracle.iam.request.plugins.RequestDataValidator "This is used for custom validation of request data after submission"
    My plugin.xml looks like
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins>
    <plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">
    <plugin pluginclass="com.test.oim.TestRequestValidator" version="1.0" name="TestReqValidator">
    </plugin>
    </plugins>
    </oimplugins>
    And i am using simple code as below
    package com.test.oim;
    import oracle.iam.request.exception.InvalidRequestDataException;
    import oracle.iam.request.plugins.RequestDataValidator;
    import oracle.iam.request.vo.RequestData;
    +public class TestRequestValidator implements RequestDataValidator {+
    +public TestRequestValidator() {+
    super();
    +}+
    +public void validate (RequestData reqDta) throws InvalidRequestDataException{+
    System.out.println("************************************************");
    System.out.println("***Justification***" reqDta.getJustification());+
    throw new InvalidRequestDataException(new Exception("Invalid User"));
    +}+
    +}+
    My plugin directory contains the plugin.xml file and the jar file (with above class) under lib directory. I placed the zip file under OIM_HOME/Plugin directory and even restarted the servers.
    However this code is not invoking and i can successfully create the request (i tried from user and admin both). Please advise if anyone has any idea. Thanks

    Hi Duncan,
    I have mapped the DataSet validator element in my plugin.xml file
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<oimplugins>+
    +<plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">+
    +<plugin pluginclass="com.test.oim.OIMREQValidate" version="1.2" name="OIMREQValidate">+
    +<metadata name="Data Validator">+
    +<value>AssignRolesDataSet|ModifyUserDataset</value>+
    +</metadata>+
    +</plugin>+
    +</plugins>+
    +</oimplugins>+
    Still my request data validator is not getting invoked. I can successfully create the request. (Per this validator every request should fail and logs should getting logged). My validate method code is below
    +public void validate (RequestData reqDta) throws InvalidRequestDataException{+
    RequestLogger.LOGGER.logp(Level.WARNING, "OIMREQValidate", "validate", "CALLING THE CUSTOM PLUGIN");
    System.out.println("***Justification***" reqDta.getJustification());+
    throw new InvalidRequestDataException(new Exception("Invalid User"));
    +}+

Maybe you are looking for

  • "The iTunes Library file cannot be found or created..."

    I'm getting this error upon opening iTunes: When I try to open iTunes with the option key, it asks me to find a library. I can navigate to my library and see the file, but it is grayed out and can't be selected. Prior to this i had been getting an er

  • Lightbox Gallery not working properly

    I put a lightbox gallery on my site for pictures and everything I'm getting on my test site is blank boxes with a red "x". One of the pictures showed up for some reason, but I didn't get the background color #1a2158 in the gallery background like I s

  • Recover Database Failed..

    Hi, I am trying to recover my Oracle 9i v9.2.0.4 database running on Solaris 9 (sparc). Database is in archived log mode and RMAN is also used to perform incremental and full backups. My database died with an internal error and so far I can restore i

  • Database shutdown/startup

    Dear all, 10.2.0.3 on Solaris 10. When shutting down the database, shutdown hangs after database mounted as you can see below SQL> startup ORACLE instance started. Total System Global Area 1073741824 bytes Fixed Size                  2133800 bytes Va

  • Filtering sub-categories on Interscan for CSC SSM

    Does anyone no how to identify what URL's are classified as a part of each sub-category? Is there a published list somewhere that I can tell which sites are part of certain categories? Thanks, Larry