ItemDetails WD Java - External Validation

Hi,
Has anyone used WD JAVA External Validation with Taxonomy table?
Everything is ok with plain tables, but when I assign WdCompsUserExits to ItemDetails Component connected with taxonomy table, I have an error: "Illegal field [Parent] found in XSD document. ."
As I understand, WD component is trying to convert data record to xml which has to be passed into UserExit class but cannot process field [Parent].
So, is it possible to use "External Validation" with taxonomy tables?

Timur Semenchuk wrote:
> We are trying to reproduce the issue creating a new components based on custom validation, but we are still without any success.
> Have you reproduced the issue with a new DC?
Do you mean that this issue has only appered in one DC, while with newaly created everything is ok?
I hasn't checked this with other DCs... We have some serious system landscape changes going on, so there is no chance to test anything right now.

Similar Messages

  • Java external procedure parameters

    Hi, I'm calling a Java External Procedure like this:
    CREATE FUNCTION HAS_GROUP (STRGROUP IN VARCHAR2)
    RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'PKGPORTAL.GROUPS.HAS_GROUP
    (java.lang.String) return java.lang.String';
    The thing is that I need also to send it the CLIENT_IDENTIFIER, but I saw in every example that the parameters that the PLSQL function recieves are the same that you send to Java. Am I able to send an extra parameter to Java?. I need it to recieve the CLIENT_IDENTIFIER. Thank you.

    I am using CREATE OR REPLACE JAVA CLASS,i missed that step in my first mail.
    Is it possible that jdk version in oracle 9i is giving me poblem . Becoz for my java class i am using j2sdk1.4.2
    I tried to deploy my class using Jdeveloper and i get this following error :
    "ORA-29521: referenced name javax/crypto/NoSuchPaddingException could not be found"
    I am importing javax.crypto in my class.
    How i can update oracle java file to latest version?

  • Java Mapping (Validation)

    Hi Guys
    Validations using Java for those not having PI7.1
    I followed this blog for validation of XML.
    I have coded the JAVA Program in NWDS as per the blog, all fine but am not sure about the schema step.
    What i did was:
    1) Exported the .xsd of the Message type.
    2) Then Schema.xml file creation i am not sure of it
    Do any one know how to do that , and what is the purpouse of the Schema method in the Java Mapping.
    Is this blog does a input initerface format check and write in to a log.
    But cannot we do this with the help of Alert by triggering mails ??
    Can we achieve element level vaslidation (to all element of the XML) using this method.
    Kindly share u r views
    Srini

    Hi Santosh,
    Thx for u r reply.
    I understood what u r saying .
    One more question :
    See u r Doc is validating particular element , date and time using api.All good, what if i need to validate entire XML Elements , should i repeat the same for entire element.
    i was so curious with his blog because , it was generic and moreover i thought i can validate entire XML , by not sticking to particular element.
    What is IA ?? U Memtioned ??
    Could above requirment can be achieverd r else i should get each element and validate , no other go
    based upon on the outbound interface
    regards
    srini

  • Java DTD validation

    I am trying to validate an XML using a DTD which is already created, In the code below i would like to validate the XML. I have looked at a number of websites etc but i cannot work out how to put in the validation can someone please help. I am pulling my hair out.
    public class validation {
    BufferedReader in;
    StreamResult out;
    Document xmldoc;
    Element root;
    String xmlString;
    public static void main (String args[]) {
    new validation().doit();
    public void doit () {
    try{
         StringBuffer sBuffer = new StringBuffer();
         String str;
    in = new BufferedReader(new FileReader("clinicSchedule.xml"));
    out = new StreamResult("data.xml");
    while ((str = in.readLine()) != null) {
              System.out.println(str);
    sBuffer.append(str);
         in.close();
    initXML(sBuffer.toString());
    transformXML();
    catch (Exception e) { e.printStackTrace(); }
    public void initXML(String sFinalXML) throws ParserConfigurationException{
    // JAXP + DOM
    try
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = factory.newDocumentBuilder();
              factory.setIgnoringComments(true); // We want to ignore comments
              factory.setNamespaceAware(true);
              factory.setValidating(true);
              // Now use the factory to create a DOM parser
              DocumentBuilder parser = factory.newDocumentBuilder();
              System.out.println(sFinalXML);
              xmldoc = parser.parse(new InputSource(new StringReader(sFinalXML)));
         }catch ( SAXParseException spe ) {
              System.err.println( "Parse error: " +
              spe.getMessage() );
              System.exit( 1 );
         catch (Exception ex) {
              ex.printStackTrace();
         public void transformXML()
              try{
                   //Define source and destination Streams
                   DOMSource domSource = new DOMSource(xmldoc);
                   StreamResult myDestination=new StreamResult("output.html");
                   StringWriter stringWriter=new StringWriter();
                   //StreamResult myDestination=new StreamResult(stringWriter);
                   //Define XSL source stream
                   StreamSource myXSLSource=new StreamSource("emailStyle.xsl");
                   //Create Transformer from Factory
                   TransformerFactory myFactory =TransformerFactory.newInstance();
                   //Transfooooooorm!!!
                   Transformer myTransformer = myFactory.newTransformer(myXSLSource);
                   myTransformer.transform(domSource, myDestination);
                   //xmlString=stringWriter.toString();
              }catch(Exception e){
                   e.printStackTrace();
    }

    There's a number of posts on this topic, so I'm not going to repeat it here. Please, check the following entries in this forum:
    http://forum.java.sun.com/thread.jsp?forum=34&thread=158734
    http://forum.java.sun.com/thread.jsp?forum=34&thread=159320
    http://forum.java.sun.com/thread.jsp?forum=34&thread=172123
    http://forum.java.sun.com/thread.jsp?forum=34&thread=153776
    Good luck and - please - go easy on your hair.

  • Java compiler validation

    I've developed a java compiler in java that will be used in a tool to teach java programming. I'd like to test the compiler with an independent set of programs.
    Anyone know of a free/inexpensive compiler validation suite of programs?
    Many thanks.
    Lindsey Ford

    Hey Keith,
    You may want to post this question on the jboss community forum. No idea what's going on here...
    Bob

  • DB procedure validation versus JAVA method validation

    Hi ,
    We have an application that is developed with Oracle Forms as well as Java (ADF )
    Now since ADF is the newer application, it was told to reduce the development time but provide efficient code. Now with Forms each field validation called a procedure and returned an error.
    For example if Name is validated, They have a procedure VALIDATE_NAME proc. Why they have separated this is cause based on different customers and different products, the name validation differs. So the in parameters are Field val, Product, customertype... etc. Like this, there are 20 VALIDATE_FIELD procedures for respective fields.
    Now to reduce duplication, I can call each procedure on each field. but that would means 20 DB additional calls for each procedure. If I write this logic in java it means I increase development time and probably increase probability of error.
    Which is the best practice for VALIDATION.

    Hi,
    you already mentioned the pros and cons of the approaches. I don't think that it is good practice to directly call the PLSQL validation from Java as it means you wont be able to change it easily in the future. I would look for an abstraction layer that initially (for the time being) accesses the database for validation (maybe caching some validation policies upon application instance start) and later then can be changed to use pure Java validation rules. One thing coming to my mind would be something like a rules engine that reads the validation conditions from the database and that is accessed from Java. If your manager says you should reduce development time then my impression is that the choice is not yours and you will have to use the database (though it feels wrong).
    Frank

  • How can i Make sys's java classes valid?

    I use Oracle 8.1.8.
    All the java classes in sys are invalid.
    How can I make it valid?
    thanks!

    Dear Chris,
    Sorry to disturb you.
    As I didn't browse Metalink yet, How could I browse METALINK With below Category?
    Thanks in advance,
    Orahar.

  • Connecting to iFS from a WF Java External function

    People,
    I have an external Java function activity. From within it, I want to make a connection to iFS using the iFS Java API. But I am getting the following error:
    java.lang.UnsatisfiedLinkError: getRefHashCode
    The iFS Java code is:
    LibraryService service = new LibraryService();
    CleartextCredential cred = new CleartextCredential(
    vUsername, vPassword);
    ConnectOptions options = new ConnectOptions();
    options.setLocale(Locale.getDefault());
    options.setServiceName(vServiceName);
    options.setServicePassword(vServicePassword);
    LibrarySession oSession = service.connect(cred, options);
    I wonder that I have to put something more into the classpath of the Oracle Workflow Java Function Activity Agent, but I don't know what. Here is what I am calling:
    C:\oracle\ora81\wf\admin>jre -classpath ";C:\oracle\ora81\wf\JRE11\lib\rt.jar;c:\oracle\ora81\wf\java;c:\oracle\ora81\wf\java\oracle\apps\fnd\wf\jar\wfjava.jar;c:\oracle\ora81\wf\xml\java\lib\xmlparserv2.jar;c:\oracle\ora81\wf\java\oracle\a
    pps\fnd\wf\jar\wfapi.jar;c:\oracle\ora81\jdbc\lib\classes111.zip;c:\oracle\ora81\wf\java\oracle\apps\fnd\wf\jar\fndbalishare.jar;c:\oracle\ora81\wf\java\oracle\apps\fnd\wf\jar\fndewt.jar;c:\oracle\ora81\wf\oracle\java\apps\fnd\wf\jar\fndswing.jar;C:\oracle\ora81\ifs1.1\lib\adk.jar;C:\oracle\ora81\ifs1.1\lib\email.jar;C:\oracle\ora81\ifs1.1\lib\release.jar;C:\oracle\ora81\ifs1.1\lib\repos.jar;C:\oracle\ora81\ifs1.1\lib\utils.jar;C:\oracle\ora81\ifs1.1\custom_classes;C:\oracle\
    ora81\ifs1.1\settings;C:\oracle\ora81\lib;C:\oracle\ora81\sqlj\lib\runtime.zip;C:\oracle\ora81\sqlj\lib\runtime11.zip;" -nojit oracle.apps.fnd.wf.WFFALsnr user/password@db
    I'm using Oracle 8.1.7.0, Workflow 2.6.0 and iFS 1.1.9 on W2K.
    Thanks for any help,
    Daniel Viero

    See
    http://technet.oracle.com:89/ubb/Forum36/HTML/000173.html

  • Java External Interface

    How can Java be used to communicate (interface) with external perperihals (just like C++)?
    eg. sending signals thru com ports.

    There are APIs on the java site for serial communication (COM1, COM2 ... ) and for USB communication. Check them out.

  • Java character validation

    Hi there,
    I know this question may seem very elementary, but I was wondering. Would anyone know the opposite of:
    Character.isDigit(myVariable.charAt(0))I tried using this below but it didn't do anything:
    !Character.isDigit(myVariable.charAt(0))Is there something that I am doing wrong?
    Thanks

    Hi,
    It seems that I have discovered what the issue was. I was actually using the above code in a conditional in collaboration with a string length check such as the one below:
    (myVariable.length() != 1) && (!Character.isDigit(MyVariable.charAt(0)))It was however not validating for a single letter that was typed. What I should have done as I later discovered was
    (myVariable.length() != 1) || (!Character.isDigit(MyVariable.charAt(0)))So that it validates either condition and does not exhibit weird behaviour. However, I wonder if someone could please explain why in the previous syntax it was not validating for a single letter typed.

  • Java external procedure .....

    Hi, i am calling my java function from oracle but i am getting this error :
    'ora-29541 : class Eadmin.com/XX/MyClass could not be resolver'
    where com.XX is package name for MyClass.
    My java class code:
    package com.XX;
    public class MyClass {
    public MyClass(){}
    public static String EString(String strText, String strKey) {
    /**CODE**/
    return **SOME STRING**;
    I did following steps to load JAVA function:
    1) create or replace directory bfile_dir as 'e:\oracle9i\bin\com\XX'; /*my class files are in folder 'com\XX' */
    2)create or replace function plsEString(varchar2,varchar2)
    return varchar2 as language JAVA NAME 'com.XX.MyClass.EString(java.lang.String,java.lang.String) return java.lang.String';
    3) declare
    str varchar2(200);
    begin
    str:=plsEString('maviner','hi');
    dbms_output.put_line('str: ' || str);
    end;
    ERRORS
    ERROR at line 1:
    ORA-29541: class EADMIN.com/XX/MyClass could not be resolved
    ORA-06512: at "EADMIN.PLSESTRING", line 0
    ORA-06512: at line 4
    Where i am doing wrong?
    thanx

    I am using CREATE OR REPLACE JAVA CLASS,i missed that step in my first mail.
    Is it possible that jdk version in oracle 9i is giving me poblem . Becoz for my java class i am using j2sdk1.4.2
    I tried to deploy my class using Jdeveloper and i get this following error :
    "ORA-29521: referenced name javax/crypto/NoSuchPaddingException could not be found"
    I am importing javax.crypto in my class.
    How i can update oracle java file to latest version?

  • Java input validation with regular expression

    I am trying to make sure the user can only enter numbers 0 - 100, can any of you Java geniuses give me a hint. My regex matches the inputs I want, but when I enter a '9' I encounter an error when I cast the string to a double. Actually the input value is never assigned to the perc variable, but only when the input is a single digit. Here' s the piece of code that's giving me this headache:
    while(!in.hasNext("[0-9]")){
         try {
              perc = in.next("[0-9]{1,2}|100");
              break;
         } catch (InputMismatchException e) {
              System.out.println("Bad Input - Try Again");
              perc = in.next();
    dblPerc = Double.parseDouble(perc);And here's the error:
    Exception in thread "main" java.lang.NumberFormatException: empty String
            at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994)
            at java.lang.Double.parseDouble(Double.java:510)
            at applicant_database.View.showInput(View.java:46)
            at applicant_database.View.main(View.java:101)

    Add debugging code to your program to see what you're getting.

  • Help with java form validation script needed

    Please, check my source text. I'm trying to get some simple
    alerts to prevent my form from submitting if vital fields are
    incomplete but the fom submits no matter what. My eyes are blurry
    from trying to figure this out!
    http://www.creativerealtynetwork.com/listing.html
    Thank you!

    here is the code for the OK btn
    on (press)
    ErrorMessage = "";
    name = Edit1;
    if (name == "")
    ErrorMessage = "Enter your Name";
    } // end if
    phone = Edit2;
    if (phone == "")
    ErrorMessage = "Enter your phone";
    } // end if
    email = Edit3;
    if (email == "")
    ErrorMessage = "Enter your email";
    } // end if
    if (email.indexOf("@", 0) < 0)
    ErrorMessage = "Enter valid email";
    } // end if
    if (email.indexOf(".", 0) < 0)
    ErrorMessage = "Enter valid email";
    } // end if
    contact = Edit4;
    if (contact == "")
    ErrorMessage = "Enter your message";
    } // end if
    message = "mailto:[email protected]?subject=Thank you for
    contacting
    us&body=Form contents%0A";
    message = message + "name: " + name + "%0A";
    message = message + "phone: " + phone + "%0A";
    message = message + "email: " + email + "%0A";
    message = message + "contact: " + contact;
    if (ErrorMessage != "")
    getURL(message, "_self");
    } // end if
    I get a error message only for the email if not filled
    correctly,
    thank you
    "ldlouis" <[email protected]> wrote in message
    news:gp9qit$4ad$[email protected]..
    > Hi all
    >
    > I news using flash 8 I'm trying to build a form
    validation and I cant get
    > it to work.
    >
    > here is a copy of the fla file
    >
    >
    http://www3.sympatico.ca/ralix/test1.fla
    >
    > Thank you

  • XDK for Java: dateTime validation error

    Hi,
    I am using Oracle XDK for Java. I created an XML Schema where I have an element of type xs:dateTime. Proper value for this field is for example: '2002-10-16T12:24:15+02:00'. But when I validate this value I get: class java.lang.NumberFormatException: For input string: "02:00".
    This is probably a bug in XDK, but is there any workaround for this?
    Thanks in advance
    Jacek Chmielewski

    Jinyu,
    I guess the next release will need to be waited for as I have
    not been able to get you to respond to my questions.
    In the meantime, I'll have to use Sun's JAXB as I know it will
    generate the classes I want.
    jim
    PS: I am still available to work through this with you, but I
    need to move forward.

  • Problem with XSD validation in Java 5

    Hi everyone,
    my application creates in memory schema using JDOM. In Java 6 validation runs fine, but in Java 5 (which is the target platform currently) it fails.
    I tried a second test with just parsing an existing XSD document (not created using JDOM) and that works.
    The textual representation of both (file and JDOM generated) are identical. If I replace the XSD file with the JDOM output, the "file test" runs fine, too.
    Here's the test code:
        protected void assertXsdValid(Source xsdSource, InputSource xmlInputSource) throws SAXException, ParserConfigurationException, IOException {
            isValid = true;
            SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
            sf.setErrorHandler(myErrorHandler);
            Schema schema = sf.newSchema(xsdSource); // <<--------- THIS LINE FAILS IN JAVA 5
            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
            dbf.setNamespaceAware(true);
            dbf.setSchema(schema);
            DocumentBuilder db = dbf.newDocumentBuilder();
            db.setErrorHandler(myErrorHandler);
            db.parse(xmlInputSource);
            assertTrue(isValid);
        }This is the XSD:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://some.org/metamodel" elementFormDefault="qualified">
      <xs:element name="system">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="name" type="xs:string" />
            <xs:element name="vendor" type="xs:string" />
            <xs:element name="version" type="xs:decimal" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>This is the error message I get:
    ERROR: org.xml.sax.SAXParseException: s4s-att-invalid-value: Invalid attribute value for 'type' in element 'element'. Recorded reason: UndeclaredPrefix: Cannot resolve 'xs:string' as a QName: the prefix 'xs' is not declared.
    This is how I call the test code in the JDOM test:
            assertXsdValid(new JDOMSource(xsdDoc), new JDOMSource(xmlDoc).getInputSource());If I change the code to parsing not the JDOMSource, but a StreamSource reading the textual representation of the XSD, it works fine!
            assertXsdValid(new StreamSource(new ByteArrayInputStream(new XMLOutputter().outputString(xsdDoc).getBytes())), new JDOMSource(xmlDoc).getInputSource());But this is not what I want (I expect suboptimal performance with large XSD documents). So, if it works with Java 6, then why doesn't it work with Java 5?
    How can I use the Java 6 JAXP in Java 5?
    Thank you.

    A new user name?
    I can think of ways round your problem but can you first provide a reference that indicates that byte 0x80 is the MS936 encoding for the Euro?
    P.S. This is a forum and the vast majority of participants, including me, have no direct relationship with Oracle so getting definitive answers from Oracle via this forum is unlikely. If you think you have found a bug in 1.5 and/or 1.6, and I am not convinced you have, you need to report it via the bug database. If it is a bug then the response time for a fix is likely to be months rather than days.
    P.P.S No I can't explain why it works in 1.7!

Maybe you are looking for

  • How to find CR Request Number inside a package

    Hi Folks, how to find the CR Request Number list present inside one package. Reg, Hariharan

  • Print Dialog in Reader 10.0.1

    It seems that in "upgrading" to 10.0.1, Adobe has created its own print dialog which supersedes the driver print dialog. The driver print dialog appeared when choosing Print from Adobe Reader in previous versions, and appears when choosing Print in o

  • IBooks doesn't play video

    After I imported a .m4v-Video in the iBooks Author where the movie played I exported the iBook as a proof to the iPAd where this video didn't play. What may be the problem?

  • Ipod not compatible with os 10.3.9

    I purchased a new ipod nano and it is unable to run on my system. I currently have a g4 desktop running 10.3.9 with itunes 7.4. I am looking to replace my nano 1st generation since the battery life does not last very long. Right now I can't purchase

  • Please check for this account skype he is scammer

     now he use skype call to me my mobile phone i'm  IT Recruiter  it's have more impact my occupation please delete and block this account i must delete my account . i must use skype for business but now i can not .  now second time  he send mail and u