Xml 2 Fmb conversion in Oracle 9i

I have converted several forms into XML with command "iff2xml90.bat *.fmb"
All files *.fmb have been converted into _fmb.xml
Then I have converted xml files into FMB with command "ifxml2f90.bat *.xml"
All files _fmb.xml have been converted into _fmb.fmb instead of *.fmb
If I use ifxml2f90.bat command with only file it's OK, but if I use it with several ones
it doesn't work.
Why ? What workaround exists ?

Wilcards are not supported for the conversion command line - you can specifiy multiple files one after the other but not wildcards. IF you want to use wildcards then write your own Batch file or shell script that does that.

Similar Messages

  • XSU error oracle.xml.sql.OracleXMLSQLException: Conversion to String failed

    Appication Server: 10g, Database: Oracle 9i and Oracle 10g
    I have a table 'sw_icd2' in the database that has one column of XMLType.
    The code below, attempts to query this table as 'select * from sw_icd2' and display the result. I was able to execute this query in sqlplus.
    But when I run a program using XSU in JDeveloper:
    OracleXMLQuery qry = new OracleXMLQuery(conn, "select * from sw_icd2");
    XMLDocument domDoc = (XMLDocument)qry.getXMLDOM();
    domDoc.print(System.out);
    StringWriter s = new StringWriter(10000);
    domDoc.print(new PrintWriter(s));
    System.out.println(s.toString());
    qry.close();
    I get the following Error:
    "oracle.xml.sql.OracleXMLSQLException: Conversion to String failed"
    Any ideas on how I can resolve this issue? Your help would be appreciated.
    Thanks!

    Okay, it looks like the problem has something to do with the TIMESTAMP data type in tables.
    oracle.xml.sql.query.OracleXMLQuery can't seem to handle tables with the TIMESTAMP data type.
    this code ran fine on my machine :
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    import java.lang.*;
    import java.sql.*;
    public class testXMLSQL {
         public static void main(String[] args) {
    try {
    // Create the connection
    System.out.println("before getConnection ");
    Connection conn = getConnection("scott","tiger");
    System.out.println("after getConnection ");
    // Create the query class
    OracleXMLQuery qry = new OracleXMLQuery(conn, "SELECT * FROM EMP");
    System.out.println("after OracleXMLQuery object created ");
    // Get the XML string
    String str = qry.getXMLString();
    // Print the XML output
    System.out.println("The XML output is:\n"+str);
    // Always close the query to get rid of any resources..
    qry.close();
    } catch(SQLException e) {
    System.out.println(e.toString());
    // Get the connection given the user name and password.!
    private static Connection getConnection(String username,
    String password)
    throws SQLException
    // register the JDBC driver..
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    // Create the connection using the OCI8 driver
    Connection conn =
    DriverManager.getConnection(
    "jdbc:oracle:thin:@<server_name>:1521:<sid>",
    username,password);
    return conn;
    Then I created another table :
    create table emp_test as select * from emp;
    added a timestamp to it :
    alter table emp_test add (time timestamp(6));
    and filled it with timestamp information :
    update emp_test set time = timestamp'2005-09-22 09:26:50.124';
    ran the same code but changed the SQL to :
    "SELECT * FROM EMP_TEST"
    and got the error message :
    The XML output is:
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Conversion to String failed</ERROR>
    looks like bug in OracleXMLQuery object??

  • XML to Forms conversion gives error for menus

    We are trying the ORACLE <---> XML conversion Utility.
    We want to convert a MMB to XML and store it in our repository. When we want to modify it we get the XML from the repository, convert it back to a MMB and edit it. This saves space in the repository DB.
    Problem when we convert or MMB --> XML using like this frmf2xml.bat OVERWRITE=YES TRANS_MENU.mmb
    the XML file is created.
    Now when we try to convert the XML back to a MMB using this code frmxml2f OVERWRITE=YES PRINTTREE=YES USERID=userid/pwd@db TRANS_MENU_mmb.xml we get this error:
    Oracle Forms 10.1.2 XML to Forms Tool
    Copyright(c) 2001, 2005, Oracle. All rights reserved.
    file:/F:/Channa/XML_Forms_Conversion/I/TRANS_MENU_mmb.xml<Line 164, Column 73>: XML-24523: (Error) Invalid value ' INTERNATIONAL_OUT_GOING_CALL_D_MENU ' for attribute: 'Name'
    file:/F:/Channa/XML_Forms_Conversion/I/TRANS_MENU_mmb.xml<Line 773, Column 73>: XML-24523: (Error) Invalid value 'BILLING_PROCESS_MASTER_FILE_UP_MENU' for attribute: 'Name'
    file:/F:/Channa/XML_Forms_Conversion/I/TRANS_MENU_mmb.xml<Line 823, Column 69>: XML-24523: (Error) Invalid value 'BANK_PAYMENT_AUDIT_REPORTS_MENU' for attribute: 'Name'
    file:/F:/Channa/XML_Forms_Conversion/I/TRANS_MENU_mmb.xml<Line 864, Column 73>: XML-24523: (Error) Invalid value 'INFO_CONNECT_ACCOUNTING_INTERF_MENU' for attribute: 'Name'
    file:/F:/Channa/XML_Forms_Conversion/I/TRANS_MENU_mmb.xml<Line 887, Column 73>: XML-24523: (Error) Invalid value 'DEALER_SOLD_SUBSCRIPTION_TRANS_MENU' for attribute: 'Name'
    file:/F:/Channa/XML_Forms_Conversion/I/TRANS_MENU_mmb.xml<Line 917, Column 73>: XML-24523: (Error) Invalid value 'CHANNA_LEVEL_42444444444444444_MENU' for attribute: 'Name'
    Invalid XML - file TRANS_MENU_mmb.xml does not validate against Forms XML Schema:
    Invalid value 'INTERNATIONAL_OUT_GOING_CALL_D_MENU' for attribute: 'Name'
    I found the problem. For submenus the XML adds a _MENU to the end of the name attribute and when the name of the menu is over 26 chars 26+5 = 31 becomes more than 30 characters.  So when the XML is converted to the MMB we get an error because forms objects cannot have names of lengths > 30.
    I think this could be a bug. We cannot modify the menu just for this since it is not practical.
    Is this a known bug? Any workaround?
    Edited by: Channa on Mar 5, 2010 2:11 AM
    Edited by: Channa on Mar 5, 2010 2:12 AM
    Edited by: Channa on Mar 5, 2010 2:13 AM
    Edited by: Channa on Mar 5, 2010 2:13 AM
    Edited by: Channa on Mar 18, 2010 9:22 PM
    Edited by: Channa on Mar 18, 2010 9:25 PM

    Hi Amol,
    You XML structure contains deep levels. As far as i understand about the StrictXML2PlainBean module, this is not capable of handling deep structures.
    This module is just an alternative to use FCC type functionality for other receiver adapters.
    Please take a look at these links:
    https://help.sap.com/saphelp_nwpi711/helpdata/EN/44/748d595dab6fb5e10000000a155369/content.htm
    StrictXml2PlainBean - to have an XML - EDI conversion?
    In case you want to achieve nested level content conversion, you may try this:
    /people/karthiknarayan.kesavan2/blog/2007/08/22/file-content-conversion-for-multi-hierarchical-structure
    I hope this helps.
    Regards, Gaurav.

  • J2SE adapter PI 7.1 issue with XML to flat conversion and namespace length

    Dear reader,
    We are facing an issue with J2SE Adapter PI7.1 for a number of flows.
    The flow requirements:
    [1] Namespace length for interfaces is up to 100 characters
    [2] The XML message must be converted to Flat on the adapter channel
    Our PI system is at patch level 7 and we implement J2SE adapter on patch level 7 as well.
    We found that the J2SE adapter on patch level 7 does not support long namespaces [1] (as it should since this is an PI 7.1 j2SE adapter) but no issues where found with the XML to flat conversion [2].
    Experimenting with J2SE adapter on patch level 6 we found the long namespaces [1] are supported however an issue is found with the XML to flat conversion [2] as stated in SAP note 1335527.
    An SAP Customer Message is raised on this issue however your input is highly appricated!
    With Kind Regards,
    Harald Kastelijn
    Edited by: Harald Kastelijn on Mar 6, 2010 9:17 AM
    Edited by: Harald Kastelijn on Mar 6, 2010 9:19 AM

    We found that the J2SE adapter on patch level 7 does not support long namespaces [1] (as it should since this is an PI 7.1
    j2SE adapter) but no issues where found with the XML to flat conversion [2]
    I think the restriction of namespace length still remains in design time (IR).....the same however has been extended in configuration and runtime...this SAP note has some information: https://service.sap.com/sap/support/notes/870809

  • XML-2-TXT conversion

    All,
    We have a small, annoying problem with xml-2-text conversion.  During the conversion, the "&amp;: in the XML file is not translated to "&" (ampersand).
    We encounter this issue with the xml-2-txt convertor of the file adapter of the standalone J2SE adapter.
    Anyone having a simple workaround for this small but annoying issue?
    Kind regards, Guy Crets

    I have not used the J2Se adapter, however I wrote a java mapping program that converts XML2TXT, it is highly experimental. You may use it as the last mapping in the mapping program "chain". The XSLT is at the end.
    I have tested this with
    XML -> fileadapter -> SAP XI javamapping -> http adapter -> MS IIS.
    Good luck /Otto
    Created on 2005-dec-05
    To change the template for this generated file go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    @author 01ottfro Otto Frost Capgemini
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import java.util.HashMap;
    import com.sap.aii.mapping.api. AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    //import java.io.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    //import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    //import java.io.File;
    import java.io.IOException;
    import java.io.ByteArrayInputStream;
    //import java.io.ByteArrayOutputStream;
    import java.io.StringReader;
    //import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.UnsupportedEncodingException;
    import org.w3c.dom.Document;
    //import org.w3c.dom.DOMException;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    //import javax.xml.parsers.*;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.NamedNodeMap;
    public class XML2TEXT implements StreamTransformation {
      private Map           param = null;
      private AbstractTrace  trace = null;
      private StringBuffer sbTrace = new StringBuffer();
      public void setParameter (Map param) {
        this.param = param;
        //if (param == zero) {
        if ((param == null)) {
               this.param = new HashMap();
      public void execute(InputStream in, OutputStream out) {
        try {
          //javax.xml.parsers.DocumentBuilderFactory = "";
           trace = (AbstractTrace)param.get(
             StreamTransformationConstants.MAPPING_TRACE);
           trace.addInfo("Start");
           trace.addInfo(System.getProperty("javax.xml.parsers.DocumentBuilderFactory "));
           InputStreamReader isr = new InputStreamReader(in,"UTF-8");
           in.reset();
           StringBuffer sb2 = new StringBuffer();
           char c;
           int i = isr.read();
           while (i != -1) {
                c = (char) i;
              sb2.append(c);
              i = isr.read();
           String ss = new String(sb2);
           trace.addInfo(ss);
           in.reset();
           String receiverName = (String)param.get(
             StreamTransformationConstants.RECEIVER_NAME);
           //static Document document;
           Document document;
           StringBuffer sb = new StringBuffer();
           StringBuffer sbTrace = new StringBuffer();
           sb.append("");
           sb.append("<?xml version=\"1.0\"?>");
           sb.append("<DOC>");
    //          sb.append("<greeter>An XSLT Programmer</greeter>");
    //          sb.append("<greeting>Hello, World!</greeting>");
           sb.append("<TEXT>x_content_x</TEXT>");
           sb.append("</DOC>");
           //String s = sb.ToString();
           StringReader sr = new StringReader(sb.toString());
           DocumentBuilderFactory dbf = new DocumentBuilderFactory();
           dbf.setCoalescing(true);
           dbf.setExpandEntityReferences(true);
           dbf.setIgnoringComments(true);
           dbf.setIgnoringElementContentWhitespace(false);
           dbf.setNamespaceAware(true);
           dbf.setValidating(true);
           DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
           factory.setCoalescing(true);
           factory.setExpandEntityReferences(true);
           factory.setIgnoringComments(true);
           factory.setIgnoringElementContentWhitespace(false);
           factory.setNamespaceAware(true);
           factory.setValidating(false);
           try {
              DocumentBuilder builder = factory.newDocumentBuilder();
             builder.setErrorHandler(
               new org.xml.sax.ErrorHandler() {  // ignore fatal errors (an  exception is guaranteed)
                 public void fatalError(SAXParseException exception)
                 throws SAXException {
                 // treat validation errors as fatal
                 public void error(SAXParseException e)
                 throws SAXParseException {
                   throw e;
                 // dump warnings too
                 public void warning(SAXParseException err)
                 throws SAXParseException {
                   System.out.println("** Warning"
                      + ", line " + err.getLineNumber()
                      + ", uri " + err.getSystemId());
                        trace.addInfo("** Warning"
                        + ", line " + err.getLineNumber()
                        + ", uri " + err.getSystemId());  
                   System.out.println("   " + err.getMessage());
                     trace.addInfo("   " + err.getMessage());
              //document = builder.parse( new File(args[0]) );
              ByteArrayInputStream bais = new
              ByteArrayInputStream(sb.toString().getBytes("UTF-8"));
                //System.out.println (bais.toString());
              //document = builder.parse(bais);
              document = builder.parse(in);
              Element documentRootElement = document.getDocumentElement();
              trace.addInfo("root" + documentRootElement.getNodeValue());
              trace.addInfo("root" + Short.toString(documentRootElement.getNodeType()));
              trace.addInfo("root" + documentRootElement.getNodeName());
    //          Element textElement = (Element) documentRootElement.getFirstChild();
              NodeList nodeList = documentRootElement.getElementsByTagName("TEXT");
            StringBuffer sbText = new StringBuffer();
              for(i = 0; i<nodeList.getLength() ;i++) {
                   Element textElement = (Element) nodeList.item(i);
                   Node text = textElement.getFirstChild();
                   sbText.append(text.getNodeValue());
              nodeList = documentRootElement.getElementsByTagName("CHARSETNAME");
              StringBuffer sbCharset = new StringBuffer();
              for(i = 0; i<nodeList.getLength() ;i++) {
                   Element textElement = (Element) nodeList.item(i);
                   Node text = textElement.getFirstChild();
                   sbCharset.append(text.getNodeValue());
    //          System.out.println(textElement.getNodeValue());
    //          System.out.println(textElement.getNodeType());
    //          System.out.println(textElement.getNodeName());
              trace.addInfo("te" + textElement.getNodeValue());
              short nodeType = textElement.getNodeType();
              trace.addInfo("te" + Short.toString(nodeType));
              trace.addInfo("te" + textElement.getNodeName());
              Node textNode = textElement.getFirstChild();
              Node mt_textdocument = document.getFirstChild();
              Node text = mt_textdocument.getFirstChild();
              Node hashtext = text.getFirstChild();
              textNode = hashtext;
              String s = new String();
              if (textNode != null) {          
                   trace.addInfo(textNode.getNodeValue());
                   trace.addInfo(Short.toString(textNode.getNodeType()));
                   trace.addInfo(textNode.getNodeName());
                  s = new String(textNode.getNodeValue());
              else {
                   s = "ERROR";
                   trace.addInfo(s);
    //          traverse1(document);
    //          trace.addInfo(sbTrace.toString());
    //          OutputStream baos = new ByteArrayOutputStream();
            String s = sbText.toString();
            String charset = sbCharset.toString();
              byte[] bytes = s.getBytes(charset);
    //          baos.write(bytes,0,bytes.length);
            out.write(bytes,0,bytes.length);
           } catch (SAXException sxe) {
               // Error generated during parsing
               Exception  x = sxe;
               if (sxe.getException() != null)
                    x = sxe.getException();
               x.printStackTrace();
           } catch (ParserConfigurationException pce) {
               // Parser with specified options can't be built
               pce.printStackTrace();
           } catch (IOException ioe) {
               // I/O error
               ioe.printStackTrace();
         catch (UnsupportedEncodingException uee) {
              trace.addInfo("UnsupportedEncodingException");
        catch (IOException ioe) {
          // I/O error
          //  ioe.printStackTrace();
           trace.addInfo("IOException");
        finally {
              trace.addInfo("finally");
      public void traverse1(Node node) {
           do {
               System.out.println("Node: name=" + node.getNodeName() +
               ", value=" + node.getNodeValue() + ", type=" +
               node.getNodeType());
               sbTrace.append("Node: name=" + node.getNodeName() +
              ", value=" + node.getNodeValue() + ", type=" +
              node.getNodeType() + "\n");
              trace.addInfo("Node: name=" + node.getNodeName() +
              ", value=" + node.getNodeValue() + ", type=" +
              node.getNodeType() + "\n");
               if (node.getFirstChild() != null) {
                System.out.println("Processing children:");
                sbTrace.append("Processing children:"+"\n");
                trace.addInfo("Processing children:"+"\n");
                traverse1(node.getFirstChild());
           }  while ((node = node.getNextSibling()) != null);
         public void traverse2(Node node) {
              //Get the children of this Node
                NodeList children = node.getChildNodes();
                //go through all the children of the node
                for (int i=0; i<children.getLength(); i++) {
                    //get the next child
                    Node child = children.item(i);
                    //get the type of the child
                    short childType = child.getNodeType();
                    if (childType == Node.ELEMENT_NODE) {
                   //if the child is an Element then print the start and end
                   //tags and recurse the content       
                   String nodeName = child.getNodeName();
                   System.out.print("<" + nodeName + ">");
                   sbTrace.append("<" + nodeName + ">");
                   trace.addInfo("<" + nodeName + ">");
                   traverse2(child);
                   System.out.print("</" + nodeName + ">");
                   sbTrace.append("</" + nodeName + ">");
                   trace.addInfo("</" + nodeName + ">");
                } else if (childType == Node.TEXT_NODE) {
                   //if the child is a Text node just print the text content
                   String data = child.getNodeValue();
                   System.out.print(data);
                   sbTrace.append(data);
                   trace.addInfo(data);
         public void traverse3(Node node, int indent) {
              for (int i = 0; i < indent; i++) {
                System.out.print("   ");
                sbTrace.append("   ");
                trace.addInfo("   ");
              int type = node.getNodeType();
              switch (type) {
              case Node.ATTRIBUTE_NODE:
                System.out.println("ATTRIBUTE_NODE");
                sbTrace.append("ATTRIBUTE_NODE"+"\n");
                trace.addInfo("ATTRIBUTE_NODE"+"\n");
                break;
              case Node.CDATA_SECTION_NODE:
                System.out.println("CDATA_SECTION_NODE");
                sbTrace.append("CDATA_SECTION_NODE"+"\n");
                trace.addInfo("CDATA_SECTION_NODE"+"\n");
                break;
              case Node.COMMENT_NODE:
                System.out.println("COMMENT_NODE");
                sbTrace.append("COMMENT_NODE"+"\n");
                trace.addInfo("COMMENT_NODE"+"\n");
                break;
              case Node.DOCUMENT_FRAGMENT_NODE:
                System.out.println("DOCUMENT_FRAGMENT_NODE");
                sbTrace.append("DOCUMENT_FRAGMENT_NODE"+"\n");
                trace.addInfo("DOCUMENT_FRAGMENT_NODE"+"\n");
                break;
              case Node.DOCUMENT_NODE:
                System.out.println("DOCUMENT_NODE");
                sbTrace.append("DOCUMENT_NODE"+"\n");
                trace.addInfo("DOCUMENT_NODE"+"\n");
                break;
              case Node.DOCUMENT_TYPE_NODE:
                System.out.println("DOCUMENT_TYPE_NODE");
                sbTrace.append("DOCUMENT_TYPE_NODE"+"\n");
                trace.addInfo("DOCUMENT_TYPE_NODE"+"\n");
                break;
              case Node.ELEMENT_NODE:
                System.out.println("ELEMENT_NODE");
                sbTrace.append("ELEMENT_NODE"+"\n");
                trace.addInfo("ELEMENT_NODE"+"\n");
                NamedNodeMap atts = node.getAttributes();
                for (int i = 0; i < atts.getLength(); i++) {
                   Node att = atts.item(i);
                   traverse3(att, indent + 1);
                break;
              case Node.ENTITY_NODE:
                System.out.println("ENTITY_NODE");
                sbTrace.append("ENTITY_NODE"+"\n");
                trace.addInfo("ENTITY_NODE"+"\n");
                break;
              case Node.ENTITY_REFERENCE_NODE:
                System.out.println("ENTITY_REFERENCE_NODE");
                sbTrace.append("ENTITY_REFERENCE_NODE"+"\n");
                trace.addInfo("ENTITY_REFERENCE_NODE"+"\n");
                break;
              case Node.NOTATION_NODE:
                System.out.println("NOTATION_NODE");
                sbTrace.append("NOTATION_NODE"+"\n");
                trace.addInfo("NOTATION_NODE"+"\n");
                break;
              case Node.PROCESSING_INSTRUCTION_NODE:
                System.out.println("PROCESSING_INSTRUCTION_NODE");
                sbTrace.append("PROCESSING_INSTRUCTION_NODE"+"\n");
                trace.addInfo("PROCESSING_INSTRUCTION_NODE"+"\n");
                break;
              case Node.TEXT_NODE:
                System.out.println("TEXT");
                sbTrace.append("TEXT"+"\n");
                trace.addInfo("TEXT"+"\n");
                break;
              default:
                System.out.println("???");
                sbTrace.append("???"+"\n");
                trace.addInfo("???"+"\n");
                break;
              for (Node c = node.getFirstChild(); c != null; c =
              c.getNextSibling()) {
                traverse3(c, indent + 1);
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:trema-com:trema:trema" targetNamespace="urn:trema-com:trema:trema">
         <xsd:element name="MT_TEXTDOCUMENT" type="DT_TEXTDOCUMENT" />
         <xsd:complexType name="DT_TEXTDOCUMENT">
              <xsd:annotation>
                   <xsd:appinfo source="http://sap.com/xi/TextID">
                   70d8cec1675c11da822400132107c3b7
                   </xsd:appinfo>
              </xsd:annotation>
              <xsd:sequence>
                   <xsd:element name="TEXT" type="xsd:string">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             cc2dc340659311dab38eeb8f0ace6159
                             </xsd:appinfo>
                        </xsd:annotation>
                   </xsd:element>
                   <xsd:element name="CHARSETNAME" type="xsd:string">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             bf0f424065c211da893ceb8f0ace6159
                             </xsd:appinfo>
                        </xsd:annotation>
                   </xsd:element>
              </xsd:sequence>
         </xsd:complexType>
    </xsd:schema>
    example xml
    <?xml version="1.0" encoding="utf-8"?>
    <MT_TEXTDOCUMENT><TEXT>your text</TEXT><CHARSETNAME>UTF-8</CHARSETNAME></MT_TEXTDOCUMENT>

  • XML PL/SQL parser on Oracle 8.1.6

    I am trying to loadjava xmlparserv2.jar and plsql.jar . Receiving the following errors .
    What is the issue ?
    $ loadjava -user drug/drug -r -v plsql.jar
    initialization complete
    loading : oracle/xml/parser/plsql/XMLDOMImplCover
    creating : oracle/xml/parser/plsql/XMLDOMImplCover
    Error while retrieving errors for oracle/xml/parser/plsql/XMLDOMImplCover
    ORA-00904: invalid column name
    loading : oracle/xml/parser/plsql/XMLDocumentCover
    creating : oracle/xml/parser/plsql/XMLDocumentCover
    Error while retrieving errors for oracle/xml/parser/plsql/XMLDocumentCover
    ORA-00904: invalid column name
    loading : oracle/xml/parser/plsql/XSLStylesheetCover
    creating : oracle/xml/parser/plsql/XSLStylesheetCover
    Error while retrieving errors for oracle/xml/parser/plsql/XSLStylesheetCover
    ORA-00904: invalid column name
    loading : oracle/xml/parser/plsql/XMLNodeListCover
    creating : oracle/xml/parser/plsql/XMLNodeListCover
    Error while retrieving errors for oracle/xml/parser/plsql/XMLNodeListCover
    ORA-00904: invalid column name
    loading : oracle/xml/parser/plsql/XMLEntityCover
    creating : oracle/xml/parser/plsql/XMLEntityCover
    Error while retrieving errors for oracle/xml/parser/plsql/XMLEntityCover
    ORA-00904: invalid column name
    loading : oracle/xml/parser/plsql/XMLNodeCover
    creating : oracle/xml/parser/plsql/XMLNodeCover
    Error while retrieving errors for oracle/xml/parser/plsql/XMLNodeCover
    ORA-00904: invalid column name
    I appreciate any help to resolve these issues
    Sree
    null

    These errors were due to not running initjvm etc. I have resolved all the jvm sqlj related problems now .
    I am still seeing resolver errors . Opened a new thread for those errors.
    Please respond on those
    Thanks
    null

  • XML to table mapping in oracle database

    Hi,
    I am having 2 modules in my application:
    First module takes the XML file, parse it, fetches data, creates a table in database and stores the data into that table.
    Second module does vice versa. it takes a table, retrives data and write out an XML file.
    In first module I use DOM parser. But I want to use Oracle XSU for the second module. But it seems that I can not use oracle XSU and DOM togather.
    when I include xmlparserv2.jar in class path I can not run my first module.
    Is it possible that I can use dom for first module and XSU for second module?
    It gives me error like ..
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLText
    at oracle.xml.parser.v2.NonValidatingParser.<init>(NonValidatingParser.java:139)
    at oracle.xml.parser.v2.XMLParser.<init>(XMLParser.java:122)
    at oracle.xml.parser.v2.DOMParser.<init>(DOMParser.java:82)
    at oracle.xml.jaxp.JXDocumentBuilder.<init>(JXDocumentBuilder.java:71)
    at oracle.xml.jaxp.JXDocumentBuilderFactory.newDocumentBuilder(JXDocumentBuilderFactory.java:72)
    BUT if I remove xmlparserv2.jar from classpath then it works fine...
    I would really appreciate if anyone can throw light ...
    Thanks in advance
    rp

    Hi,
    I had somewhat a similar problem.
    Did you use oracle.xdb.XMLType.getDOM()?
    getDOM() needs xmlparserv2.jar, which only provides a DOM implementation that is DOM 1.0 and Core 2.0 compliant.
    In my case, when I used DOM 3.0 methods in org.w3c.dom, I ran into the "method not found" type of error.
    My solution was to use the DocumentBuilder that comes with the JDK to create the DOM instance in the code.
    P.

  • Insert XML content  from BLS to oracle table

    Hi,
    Is there any way to send XML content from BLS to Oracle table. I tried with FixedQueryWithOuput. It works, but it has limitation, it cannot take more than 4000 character , even though the param is configured as clob in oracle database side?

    Sajjad
    This is not issue from xMII-side itself, instead this is an Oracle issue itself. This has some limitation in manipulating data in Database.
    Managing CLOBs and BLOBs in JDBC is not very simple when compared to managing small amount of data. The way the CLOB and the BLOB objects are created and managed is different than a VARCHAR(String) column. In fact, Oracle extension classes are provided to support these types objects in JDBC like oracle.sql.CLOB, oracle.sql.BLOB etc.
    The new enhancements in Oracle JDBC 10g promises to simplify the insertion and retrieval techniques for the CLOBs using the standard APIs. This document enumerates how easily the CLOB data can be handled in JDBC, by harnessing the new features of the Oracle JDBC 10g driver
    Anyway, to more get info on Oracle problems u may read  <a href="http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/clob10g/handlingclobsinoraclejdbc10g.html">this</a>
    Regards
    Som

  • What are the most challenging conversions in Oracle apps...

    Can any one tell me what are the most challenging conversions in oracle apps.
    Thanks
    Sambit

    d1acf245-8019-40c9-a1df-fdc9374b36b2 wrote:
    Can any one tell me what are the most challenging conversions in oracle apps.
    Thanks
    Sambit
    https://forums.oracle.com/message/10705767
    Thanks,
    Hussein

  • URGENT:currency conversion from oracle financials 10.7 to 11i

    Hey all, Any one has the idea about the currency conversion from oracle financials 10.7 to 11i?? how to handle it?? do we need seperate code for currency conversion or is there any software that we can use??

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Shenba ([email protected]):
    Hey all, anyone has idea how the currency conversion is handled during upgrade of
    for oracle financials 10.7 to 11i. Is there any software available or do we need to do coding for currency conversion.
    Thanks<HR></BLOCKQUOTE>
    null

  • NoSuchFieldError: conversion with Oracle 10g?

    I'm getting the following after re-running some code that worked with 9i, but doesn't with 10g. It's on a simple XMLType.createXML(Connection, Document) call. I'm using the new ojdbc14.jar that came with the Oracle10g bundle. Any ideas?
    java.lang.NoSuchFieldError: conversion
         at oracle.xdb.XMLType.<init>(XMLType.java:617)
         at oracle.xdb.XMLType.createXML(XMLType.java:706)
         at oracle.xdb.XMLType.createXML(XMLType.java:1112)
         at com.aa.rpt.apps.bsa.automation.util.BSASQLController.updatePNR(BSASQLController.java:142)
         at com.aa.rpt.apps.bsa.automation.PNRDataPopulator.run(PNRDataPopulator.java:78)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
         at java.lang.Thread.run(Unknown Source)

    yes. but using the new xdb.jar and xmlparserv2.jar that came with the 10g bundle seems to have solved my problem.

  • Conversion of oracle forms 4.5 into oracle forms 9i

    Hi Gurus!
    Its becoming a bit more difficult for me to find the solutoin of the following problem!
    Scenario is that i have a form developed in oracle forms 4.5, after conversion in oracle forms 9i, i am getting fixed as,
    I have two text items say item1 and item2, item2's "Synchronize with item" property is set to "item1" and there is also a
    WHEN-VALIDATE-ITEM trigger on item2, and as u know in 9i forms WHEN-VALIDATE-ITEM trigger on child item in this case item2 is
    ignored, now if i move that trigger to item1(in this case the master item) then trigger is fired but then the business
    logic/flow change as originally i didnt require any WHEN-VALIDATE-ITEM trigger on master item i.e item1
    So wot should i do to resolve this problem/situation?
    Plz let me know if i have conveyed successfully!
    Thanx in advance!

    Hi my company specialises in doing exactly this.
    Please look at our web site www.transenigma.co.uk to see out conversion tools. We can take you from Forms v2 right htrough to Forms 6i web forms, and anywhere in between.
    If we can help you, please send us an email.
    Tony

  • Create XML in a Package under Oracle 9 WITHOUT Java

    I need to produce a piece XML (VARCHAR2)... in Oracle 9, but we don't have Java installed [and won't].
    I'm looking for suggestions on the best way to build the XML string. The XML is very complex, and not going be built from a single query. It is actually several result sets concatenated together.
    Basically, I already have the data retrieved... What's the "smartest" suggestion on assembly?
    Any ideas would be appreciated.
    Thanks,
    Jason

    > Actually, I'm a PL/SQL, Java, C# Developer. Our DBAs are always nervous about
    security. And the "extra" grants and rights necessary to use JAVA make them very
    nervous.
    What extra grants?
    There are no special system elevated privs required to run a Java VM inside an Oracle Server Process servicing a client, wanting to parse XML.
    > So in the interest of speed and time, I can't go there
    Speed and time are not a mere function of initial development, but also of the usability of that result, and the maintenance and support of it.
    I do not think it acceptable to cut corners during initial development for the sake of speed and time. Especially not when it comes to re-inventing the XML parsing wheel inside Oracle.
    Bluntly put, I find that a bit idiotic.
    In your shoes I would sit down with the DBAs and determine their actual concerns - as I'm pretty sure that it is based on ignorance and will not stand any real scrutiny. Worse case, I will insist via management that they do install the Java VM and file any security issues they have as an SR with Oracle Support for resolution.
    One does not buy a car for transport and then insist that it must stand in the driveway at home, not ever moving, in case it may be involved in an accident on the road.
    FWIW, I have worn the DBA cap for many years and I have no problems with Java being used in Oracle. And yes, there are security issues to be aware of and yes, these can be managed and controlled without these ever becoming a security concern. IMO.

  • XML conversion in oracle 8.1.7

    All,
    I am using oracle8i. I have emp/dept table. i need to convert XML file from emp/dept table. I have two depts.
    Each dept has two employees.
    Here is the script i am using...
    create table dept(deptno number,
    dname varchar2(20),
    loc varchar2(20));
    alter table dept add primary key(deptno);
    create table emp(empno number,
    ename varchar2(20),
    deptno number);
    alter table emp add primary key(empno);
    alter table emp add constraint fk_dept foreign key(deptno) references dept;
    insert into dept values(10,'Account','Houston');
    insert into dept values(20,'Finance','Austin');
    insert into emp values(101,'Krish',10);
    insert into emp values(102,'Sam', 10);
    insert into emp values(103,'Scott',20);
    insert into emp values(104,'Brent',20);
    commit;
    CREATE OR REPLACE PROCEDURE print_xml(result IN OUT NOCOPY CLOB) is
    xmlstr varchar2(32767);
    line varchar2(2000);
    begin
    xmlstr := dbms_lob.SUBSTR(result,32767);
    loop
    exit when xmlstr is null;
    line := substr(xmlstr,1,instr(xmlstr,chr(10))-1);
    dbms_output.put_line('| '||line);
    xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
    end loop;
    end;
    CREATE OR REPLACE PROCEDURE generateXML AS
    context dbms_xmlquery.ctxType;
    document CLOB;
    cursor c1 is select * from dept;
    BEGIN
    delete xmldoc;
    commit;
    for i in c1 loop
    context := dbms_xmlquery.newContext('select deptno,dname,cursor(select empno,ename from emp where emp.deptno=dept.deptno) emp from dept where deptno = :deptno');
    dbms_xmlquery.setbindvalue(context,'deptno',i.deptno);
    dbms_xmlquery.useNullAttributeIndicator( context,FALSE);
    dbms_xmlquery.setRowsetTag(context,'DEPTDETAILS');
    dbms_xmlquery.setrowtag(context,'DEPT');
    dbms_xmlquery.setrowidattrname(context,NULL);
    document := dbms_xmlquery.getXML( context );
    DBMS_XMLQuery.closeContext(context);
    print_xml(document);
    commit;
    end loop;
    END;
    Here is the output for my script.
    <?xml version = '1.0'?>
    <DEPTDETAILS>
    <DEPT>
    <DEPTNO>10</DEPTNO>
    <DNAME>Account</DNAME>
    <EMP>
    <EMP_ROW num="1">
    <EMPNO>101</EMPNO>
    <ENAME>Krish</ENAME>
    </EMP_ROW>
    <EMP_ROW num="2">
    <EMPNO>102</EMPNO>
    <ENAME>Sam</ENAME>
    </EMP_ROW>
    </EMP>
    </DEPT>
    </DEPTDETAILS>
    <?xml version = '1.0'?>
    <DEPTDETAILS>
    <DEPT>
    <DEPTNO>20</DEPTNO>
    <DNAME>Finance</DNAME>
    <EMP>
    <EMP_ROW num="1">
    <EMPNO>103</EMPNO>
    <ENAME>Scott</ENAME>
    </EMP_ROW>
    <EMP_ROW num="2">
    <EMPNO>104</EMPNO>
    <ENAME>Brent</ENAME>
    </EMP_ROW>
    </EMP>
    </DEPT>
    </DEPTDETAILS>
    But the output should be as below for my requirement.
    <?xml version = '1.0'? encoding='UTF-8"?>
    <DEPTDETAILS xmlnm:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <DEPT>
    <DEPTNO>10</DEPTNO>
    <DNAME>Account</DNAME>
    <EMP>
    <EMPNO>101</EMPNO>
    <ENAME>Krish</ENAME>
    </EMP>
    <EMP>
    <EMPNO>102</EMPNO>
    <ENAME>Sam</ENAME>
    </EMP>
    </DEPT>
    <DEPT>
    <DEPTNO>20</DEPTNO>
    <DNAME>Finance</DNAME>
    <EMP>
    <EMPNO>103</EMPNO>
    <ENAME>Scott</ENAME>
    </EMP>
    <EMPNO>104</EMPNO>
    <ENAME>Brent</ENAME>
    </EMP>
    </DEPT>
    </DEPTDETAILS>
    It would be great, if any one can tell me how to
    get the above output....
    Thanks

    Hello,
    I found the solution for the above two questions...
    Here is the script to solve the problem.
    set autoprint on
    set long 100000
    set linesize 100000
    set longchunksize 100000
    var g_clob clob
    declare
    l_ctx dbms_xmlquery.ctxType;
    l_clob clob;
    v_ename varchar2(20) :='Reed';
    v_dept_name varchar2(20) := 'Departments';
    begin
    l_ctx := dbms_xmlquery.newContext('select no,ename,:deptname "department_name" from test where ename=:ename');
    DBMS_XMLQuery.setBindValue(l_ctx, 'deptname', v_dept_name);
    DBMS_XMLQuery.setBindValue(l_ctx, 'ename', v_ename);
    dbms_lob.createtemporary(:g_clob,true,dbms_lob.session);
    :g_clob := dbms_xmlquery.getXml(l_ctx);
    end;
    Now i want to concatinate the field No & Ename in the same query. For this,
    i wrote a function and i called the function in the query. It solves my problem.
    But, Is it possible to solve this problem with out writing the seperate function ?.
    CREATE OR REPLACE FUNCTION STF_NAME(P_NO VARCHAR2, P_ENAME VARCHAR2)
    RETURN CHAR IS
    v_name VARCHAR2(50);
    BEGIN
    RETURN P_NO||' , '||P_ENAME;
    END;
    set autoprint on
    set long 100000
    set linesize 100000
    set longchunksize 100000
    var g_clob clob
    declare
    l_ctx dbms_xmlquery.ctxType;
    l_clob clob;
    v_ename varchar2(20) :='Reed';
    v_dept_name varchar2(20) := 'Departments';
    begin
    l_ctx := dbms_xmlquery.newContext('select no,ename,:deptname "department_name",
    stf_name(no,ename) "NO_NAME" from test where ename=:ename');
    DBMS_XMLQuery.setBindValue(l_ctx, 'deptname', v_dept_name);
    DBMS_XMLQuery.setBindValue(l_ctx, 'ename', v_ename);
    dbms_lob.createtemporary(:g_clob,true,dbms_lob.session);
    :g_clob := dbms_xmlquery.getXml(l_ctx);
    end;

  • Conversion of Oracle Reports to BI Publishser.

    Hi,
    When trying to convert the oracle report to BI publisher using the conversion utility Iam encountering the below error.
    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/apps/x
    do/rdfparser/BIPBatchConversion (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    The below steps I followed
    1) copied all necessary .jar files to the D:\jdev\project folder
    2) Set the classpath
    3) set the path and class path with correct java home C:\Program Files\Java\jre1.6.0\lib
    ran the below command to convert the .xml file created using the report converter tool.
    D:\Jdev\project>java.exe -classpath aolj.jar;xdocore.jar;collections.jar;j5472959_xdo.zip;versioninfo.jar;xmlparserv2-904.jar oracle.apps.xdo.rdfparser.BIPBatchConversion -source d:\Desg\output -target d:\Desg\output -debug
    Any Suggestion is highly appreciated.
    Thanks.

    You have to change the system parameters :
    DESTFORMAT = Delimited
    DESNAME = c:\file.xls
    DESTYPE = FILE

Maybe you are looking for

  • Scanner error 22 with HP Laserjet M1210 MFP

    Hello - I have an HP Laserjet M1210 MFP (fax, printer and scanner all in one) that has been working until yesterday.  Now I am getting an error message "Scanner Error 22".  I have tried to unpulg and replug the machine after a few minutues multiple t

  • CRM url transaction launcher

    Hi Experts, I'm using CRM web UI.I defined URL and configured in the transaction launcher.Now I'm able to see the newly created transaction launcher in web UI.When I'm clicking on this, new window is opening as a popup window(without having menu bar-

  • Syntax Error In Javascript Popup Window

    I'm wondering if anybody can help me out here with a curious bit of code. I'm using GoLive 9 to generate Javascript popup windows. They seem to work fine, but when I check the syntax I get these errors: Line 22 Unexpected PCDATA Line 24 The Correspon

  • How to assign Dynaminc Approver in GP

    Hi,   Iam developing one application in GP .In first collable object form the user has to fill the department and other details..   Depending up on the department chosen it should go to the concern department manager for approval.. For e.g IT dept th

  • How we can loop the screen table.

    Hi All, We are used loop the screen table but it is a structure how we are able to do this what sap doing behind this can any body please tell me. Thanks, Saleem.