BUG : CLOB or XML.

Hi! I was playing with XML and CLOB and I think I found a bug with clobs. I would like a DEV to try this.
=========================================================================================================
First, you create the following function :
=========================================================================================================
function clob_bug return clob
as
sdo mdsys.sdo_geometry := mdsys.sdo_geometry(123, 123, null, mdsys.sdo_elem_info_array(1, 2, 3), null);
xml sys.xmltype;
text clob;
str varchar2(32000);
begin
xml := xmltype.createXML(sdo);
text := xml.getClobVal();
-- This doesnt work.
return text;
-- But this will work. (But the XML text cannot exceed 32000 chars, or so);
-- str := text;
-- return str;
end;
=========================================================================================================
Then try the following VB.NET code.
=========================================================================================================
'Fill in the datasource.
Dim connection As New Oracle.DataAccess.Client.OracleConnection("User Id=SCOTT;Password=TIGER")
Try
connection.Open()
Dim cmd As Oracle.DataAccess.Client.OracleCommand = connection.CreateCommand()
cmd.CommandText = "SELECT CLOB_BUG() FROM DUAL"
Dim o As Object = cmd.ExecuteScalar()
Catch e As Oracle.DataAccess.Client.OracleException
Console.WriteLine(e.Message)
End Try
=========================================================================================================
Then you should get the following error :
"ORA-00000: normal, successful completion"
With an internal error code of -3000 (dont know what it means, but you guys should!).
Mathieu Gauthier
JCMB Technology Inc.

I found a much easier way to reproduce the bug. forget about the PL/SQL function.
Dim connection As New Oracle.DataAccess.Client.OracleConnection("User Id=SCOTT;Password=TIGER;")
Try
connection.Open()
Dim cmd As Oracle.DataAccess.Client.OracleCommand = connection.CreateCommand()
cmd.CommandText = "select SYS_XMLGEN(2).getclobval() from dual"
Dim o As Object = cmd.ExecuteScalar()
Catch e As Oracle.DataAccess.Client.OracleException
Console.WriteLine(e.Message)
End Try

Similar Messages

  • Bug in oracle.xml.jaxp.JXTransformer??

    I get a NullPointerException using a stylesheet which referes to an invalid (non-existant) encoding.
    I tried this with xdk 9.20.40 and 9.20.50, both fail.
    I start the transformation using
    transformer.transform( <xml-streamsource>, <result-stream> ).
    <<<
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output encoding="ISO-8859-xx" method="text"/>
    </xsl:stylesheet>
    >>>
    I can see that exception handling is done by calling JXTransformer.reportXSLException.
    For some reason the implementation extracts a "xmlerror" from the thrown exception.
    <<<
    XMLError xmlerror = xslexception.getXMLError();
    >>>
    Next line of code failes with a NullPointerException, because xmlerror is null and therefore xmlerror.getLocator() must fail!!
    <<<
    DOMLocator domlocator = new DOMLocator(xmlerror.getLocator());
    >>>
    Any suggestions if this is a bug or what´s wrong here??

    What happening here is the following:
    When you run through the browser, the http request invokes the XSQL Servlet, the XSQL page template is found (typically in the cache if it's the 2nd or subsequent time you're asking for the page), and then the result is returned. Everything fine.
    When you run through the XSQLRequest class, you are providing a URL to the "raw" XSQL page of "http://foo/bar.xsql". The XSQL Page processor fetches what it's expecting to be the "raw" template XSQL page by retrieving the resource at the given URL. However, since the URL ends with *.xsql, the request for the *.xsql file does NOT return the raw XSQL page template that the XSQLRequest class is expecting, but instead the server processes the template on the server side and returns the result of processing the bar.xsql page to the XSQLRequest class. Since apparently your XSLT stylesheet if producing HTML, what the XSQLRequest class sees for the "raw" XSQL page template is actually the resulting HTML produced by the web server and since this is not wellformed XML, it gives this error.
    The solution, either provide the URL to the bar.xsql page as a file URL, or change the extension on the template page to any extension other than *.xsql so that the template won't get processed by the web server before its delivered.

  • Bug in Oracle XML Parser?

    I have run the same .xsql page using the same .xsl style sheet via URL/Browser and programmatically as referenced in Steve's book. The problem is, the .xsql runs fine via the browser; however, if I call that same file programmatically I get this:
    *** Oracle XSQL Programmatic Page Processor 1.0.4.1 (Production)
    XSQL-005: XSQL page is not well-formed.
    XML parse error at line 5, char 10
    End tag does not match start tag 'META'. ***
    Now I've validated the .xsl using 3 different XML editors including JDeveloper. All return the file as well-formed. By the way, there are no META tags in the style sheet or the xsql page! Bug?
    Regards,
    Craig
    null

    What happening here is the following:
    When you run through the browser, the http request invokes the XSQL Servlet, the XSQL page template is found (typically in the cache if it's the 2nd or subsequent time you're asking for the page), and then the result is returned. Everything fine.
    When you run through the XSQLRequest class, you are providing a URL to the "raw" XSQL page of "http://foo/bar.xsql". The XSQL Page processor fetches what it's expecting to be the "raw" template XSQL page by retrieving the resource at the given URL. However, since the URL ends with *.xsql, the request for the *.xsql file does NOT return the raw XSQL page template that the XSQLRequest class is expecting, but instead the server processes the template on the server side and returns the result of processing the bar.xsql page to the XSQLRequest class. Since apparently your XSLT stylesheet if producing HTML, what the XSQLRequest class sees for the "raw" XSQL page template is actually the resulting HTML produced by the web server and since this is not wellformed XML, it gives this error.
    The solution, either provide the URL to the bar.xsql page as a file URL, or change the extension on the template page to any extension other than *.xsql so that the template won't get processed by the web server before its delivered.

  • BUG in DB XML? (when dealing with modules, user-defined functions)

    Hi,
    this post can be related to Different results for the semantically the same queries but here examples are even simpler.
    I have the module with one user-defined function:
    module namespace tnt = "http://tntbase.mathweb.org/ns";
    declare function tnt:filter-path($docs as document-node()*, $path as xs:string) as document-node()*{
      $docs[dbxml:metadata('tnt:path') = $path]
    };Then I have a query:
    import module namespace tnt = 'http://tntbase.mathweb.org/ns'  at 'file:/path/to/module/user-func.xq';
    (: this variable is IMPORTANT in the query:)
    declare variable $len := 3;
    (: here goes the same function as in the module, but with different name :)
    declare function tnt:filter-path2($docs as document-node()*, $path as xs:string) as document-node()*{
      $docs[dbxml:metadata('tnt:path') = $path]
    (:the query itself :)
    tnt:filter-path(collection("xml_content.dbxml"), substring("a:/doc.xml", $len)) If I execute the query I get *0* results, if I use function tnt:filter-path2 (instead of module's tnt:filter-path) then I get the expected *1* result.
    Also I experimented a bit with a query and got the following observations (independent from each other):
    1) If I substitute $len by value *3* or *3.0*, then I get right results in both cases, i.e. if the query itself looks:
    tnt:filter-path(collection("xml_content.dbxml"), substring("a:/doc.xml", 3)) 2) If I change the module's function so that it uses value comparison instead of general comparison, then I get the right results in both cases as well:
    module namespace tnt = "http://tntbase.mathweb.org/ns";
    declare function tnt:filter-path($docs as document-node()*, $path as xs:string) as document-node()*{
      $docs[dbxml:metadata('tnt:path') eq $path]
    };Please, help me out! I'm pretty sure it's a problem of DB XML and I'm struggling with it for a long time in this or that shape.
    Thanks a lot in advance,
    Vyacheslav

    I upgraded from 2.5.13 to 2.5.16 and the bug disappeared. The reason why I didn't do it before was that I hadn't seen any relevant for me fixes in the release notes of 2.5.16 comparing to 2.4.13 (Actually I already have had two patches for two relevant issues in the 2.5.13 version)
    Sorry for the false alarm.
    Vyacheslav

  • Bug in org.xml.sax???

    Hi,
    we're doing this big project for school and it seems as if there is a bug in the sax-pargers (org.xml.sax).
    I was writing tests and i wanted to fail a test so, i made shure there was a parse error in a certain xml-file. when i ran the test, the parse-error was detected, (i also got a [fatal error] - message at System.err). I then would like to delete the file immediately so the system would be in its initial state, but this didn't work.
    I have to create a Runtime object, force garbage collection (.gc()), and then put the delete-operation in a while-loop until it succeeds.
    Could it be, that when the parser encounters a fatal error, that it forgets to close the streams it opened to the file???
    I've checked all my code and I don't have any streams opened to the file...

    org.xml.sax.XMLReader has two parse functions:
    1. void parse(InputSource input) //Parse an XML document.
    2. void parse(String systemId) //Parse an XML document from a system identifier (URI).
    Because you say you don't have any streams opened to the file, I guess you're using the second.
    If you use the first, you have to pass an InputSource, which can be constructed several ways.
    Try constructing it from a FileInputStream. Then you can close that stream yourself:import java.io.InputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import org.xml.sax.InputSource;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.helpers.XMLReaderFactory;
    InputStream inputStream = new FileInputStream(new File("my_file.xml"));
    try {
        XMLReader xr = XMLReaderFactory.createXMLReader();
        xr.setContentHandler(xmlHandler);
        xr.setErrorHandler(xmlHandler);
        xr.parse(new InputSource(inputStream));
    } finally {
        inputStream.close();    // <-- WE'RE CLOSING IT HERE
    }

  • Clob or XML

    Hello,
    I need to store product specifications and definitions to display on the internet. These definitions are very long and detailed. Moreover, they include imagery. I need to develop queries on these products, too.
    Should I store all the descriptions as CLOB type or use standard XML file for them? When I display the page, I can get the key information from ORACLE tables, and the descriptions from XML files. Will this work fast? Or CLOB will be fast enough to display long text on the internet?
    Thanks,
    Gabriel

    The definitions are not just couples of words or
    sentences. They are at least half a page long
    detailed descriptions, and there are at least 10
    different variables like this. If I don't use CLOB,
    how else can I store them?
    Thanks,The approach is to model the information contained in the description, rather than just poke it into the database as big aptly named clob of text.

  • Xpath for clob containing xml

    SQL> desc testload
    Name Type Nullable Default Comments
    TEST_XML CLOB Y
    VERSION
    11.2.0.1.0
    SQL> SELECT
    2 xmlcast(
    3 xmlquery('/osd/customerNumber' passing XMLTYPE(test_xml) as "d" returning content)
    4 as NUMBER
    5 )
    6 from Testload
    7 ;
    SELECT
    xmlcast(
    xmlquery('/osd/customerNumber' passing XMLTYPE(test_xml) as "d" returning content)
    as NUMBER
    from Testload
    ORA-19228: XPST0008 - undeclared identifier: prefix '.' local-name ''

    the xml is below.
    i am using a blob because i am having issues loading this into a xmltype the error i get is string litteral too long.
    <osd><customer operation=UPD><commonDetails><customerNumber>42961</customerNumber><masterIndicator>Y</masterIndicator>
    <cifID>100080022</cifID><cifPreviousCustomerNumber/><customerShortName>United Nations Childrens Fd</customerShortName><murexUniqueShortName/>
    <cifCustomerLongName>United Nations Childrens Fund</cifCustomerLongName><cifFormerlyKnownAs/><cifCustomerStatus>A</cifCustomerStatus>
    <cifClosedReason><cifClosedReasonCode/><cifClosedReasonDescription/></cifClosedReason><clientAlias/><wholesaleRetailIndicator>W</wholesaleRetailIndicator>
    <customerType>E</customerType><language><languageCode>E</languageCode><languageDescription>ENGLISH</languageDescription></language>
    <openedDate>2006-05-13</openedDate><effectiveDate>2006-05-13</effectiveDate><dateClosed/><scmbStatus>A</scmbStatus><internalIndicator>N</internalIndicator>
    <nonResidentIndicator>N</nonResidentIndicator><groupCode/><countryOfResidence><countryOfResidenceCode>US</countryOfResidenceCode>
    <countryOfResidenceName>UNITED STATES</countryOfResidenceName></countryOfResidence><countryOfOperation><countryOfOperationCode>US</countryOfOperationCode>
    <countryOfOperationName>UNITED STATES</countryOfOperationName></countryOfOperation><tradingSector/><vatNumber/><taxNumber/><icmUserIndicator>N</icmUserIndicator>
    <importerIndicator>N</importerIndicator><exporterIndicator>N</exporterIndicator><addresses><registeredAddress><line1>UNICEF House</line1>
    <line2>3 United Nations Plaza</line2><line3/><line4/><postalCode>10017</postalCode><countryCodeOfRegistration>US</countryCodeOfRegistration>
    <countryNameOfRegistration>UNITED STATES</countryNameOfRegistration><region>New York</region><city>New York</city></registeredAddress>
    <residentialAddress><line1>3 United Nations Plaza</line1><line2>UNICEF House</line2><line3/><line4/><postalCode/><yearsAtAddress/></residentialAddress>
    <postalAddress><line1/><line2/><line3/><line4/><postalCode/></postalAddress></addresses><form50><form50Code/><form50Description/></form50>
    <mainMarketSegmentType><mainMarketSegmentTypeCode/><mainMarketSegmentTypeDescription/></mainMarketSegmentType><marketSubSegmentType><marketSubSegmentTypeCode/>
    <marketSubSegmentTypeDescription/></marketSubSegmentType><creditRatingAgency/><creditRating><creditRatingCode/><creditRatingDescription/></creditRating>
    <nonSBSADetails><nonSBSACustomerIndicator>N</nonSBSACustomerIndicator><nonSBSABankCode/><nonSBSABranchNumber/><nonSBSABranchName/><nonSBSAAccountNumber/>
    </nonSBSADetails><accountingStaticData><sapDetails><sapCounterpartyEntityCode/><resBankCode/><resBankDescription/><sapPartnerProfitCentre/>
    <sapPartnerProfitCentreName/><sihSectorAccountGroup>O</sihSectorAccountGroup><sarbSapSectorCode/><industrialCode>00842</industrialCode>
    <industrialDescription>PROVISION OF SERVICES TO THE COMMUNITY</industrialDescription><boeIndustryCode>1401</boeIndustryCode><boeIndustryName>Personal & Community Services</boeIndustryName></sapDetails>
    <globusDetails><globusFinancialInstitutionType/><r105AuthorisedIndicator>N</r105AuthorisedIndicator><marginCustomerIndicator/>
    <tfaCustomerIndicator>N</tfaCustomerIndicator><tafCounterpartyIndicator/><jfbMidasNumber/><fsaClassIndicator/><globusMnemonic>UNEF</globusMnemonic>
    <pepIndicator>N</pepIndicator><fxNettIndicator>N</fxNettIndicator><hongkongCustomerIndicator>N</hongkongCustomerIndicator>
    <taipeiCustomerIndicator>N</taipeiCustomerIndicator><brazilCustomerIndicator>N</brazilCustomerIndicator><sihGroupCode>01</sihGroupCode>
    <sihGroupDesc>THIRD PARTY</sihGroupDesc><taiwanTaxExemptIndicator>N</taiwanTaxExemptIndicator><taiwanLocalIndustry>US</taiwanLocalIndustry><roleCode/>
    <roleDesc/><spectrumLocation>USA</spectrumLocation><r105Date/><departmentCode>17</departmentCode><departmentDesc>TREASURY/BUSINESS DEVELOPMENT</departmentDesc>
    <custodyCounterpartyMarker>N</custodyCounterpartyMarker><globusLongName/><globusAddressLine1>THREE UNITED NATIONS PLAZA</globusAddressLine1>
    <globusAddressLine2>NEW YORK NY 10017</globusAddressLine2><globusAddressLine2b/><globusAddressLine3>USA</globusAddressLine3><globusAddressLine3b/>
    <departmentEntityCode>SBL</departmentEntityCode><departmentEntityDescription>Standard Bank Plc</departmentEntityDescription>
    <taiwanLocalIndustryDescription>UNITED STATES</taiwanLocalIndustryDescription><safeCustody>N</safeCustody><tafEligible>N</tafEligible></globusDetails>
    </accountingStaticData><externalFeedMapping><externalFeedMappingCode>WWW</externalFeedMappingCode><externalFeedMappingDescription>Web Site</externalFeedMappingDescription><externalFeedMappingClientReference>CRIDOC</externalFeedMappingClientReference>
    </externalFeedMapping><externalFeedMapping><externalFeedMappingCode>WWW</externalFeedMappingCode><externalFeedMappingDescription>Web Site</externalFeedMappingDescription><externalFeedMappingClientReference>UNESCO.ORG</externalFeedMappingClientReference></externalFeedMapping><externalFeedMapping>
    <externalFeedMappingCode>WWW</externalFeedMappingCode><externalFeedMappingDescription>Web Site</externalFeedMappingDescription><externalFeedMappingClientReference>UNICEF.ORG</externalFeedMappingClientReference></externalFeedMapping><globalEntityCode>SBSA</globalEntityCode><icmaMember>N</icmaMember>
    <fsaReportable>Y</fsaReportable><icmaCode/><sibCode/></commonDetails><enterpriseDetails><registeredName>United Nations Childrens Fund</registeredName>
    <masterCustomerNumber/><cifTopParentID>100080022</cifTopParentID><cifLegalEntityParentID/><cifHierarchyLevel>TP</cifHierarchyLevel><cifTopParentOnlyIndicator>N</cifTopParentOnlyIndicator><cifAdditionalInfo/><standardBankEntityIndicator>N</standardBankEntityIndicator><cifBICCode/><cifFormattedRegisteredName/>
    <cifTradingName>UNICEF</cifTradingName><bankIndicator>N</bankIndicator><enterpriseType><enterpriseTypeCode>099</enterpriseTypeCode><enterpriseTypeDescription>ENTERPRISE TYPE UNKNOWN</enterpriseTypeDescription></enterpriseType><registrationNumber/><cifRegistrationState/><registrationDate>1946-12-11</registrationDate>
    <authorisedDealer><authorisedDealerCode/><authorisedDealerDescription/></authorisedDealer><primarySIC><primarySICCode/><primarySICDescription/></primarySIC><secondarySIC><secondarySICCode/><secondarySICDescription/></secondarySIC><tertiarySIC><tertiarySICCode/><tertiarySICDescription/></tertiarySIC><taxYearEnd/>
    <mainBanker/><secondaryBanker/><npsParticipantIndicator>N</npsParticipantIndicator><primarySwiftAddress/><isdaDetails><isdaIndicator>N</isdaIndicator><isdaEffectiveDate/><isdaLastUpdated/></isdaDetails><clsDetails><clsMemberIndicator>N</clsMemberIndicator><clsType><clsTypeCode/><clsTypeDescription/></clsType>
    </clsDetails><directors/><mandates/><shareholders/><topParentName>United Nations Childrens Fd</topParentName><FundAdministrator/><FundAdminDescription/><LegalFormType>Fund</LegalFormType></enterpriseDetails><communicationDetails><communicationDetailsForInstrument><instrument>10</instrument>
    <instrumentDescription>FX INTERBANK</instrumentDescription><communicationType>ADDR</communicationType><communicationTypeDescription>POSTAL ADDRESS</communicationTypeDescription><kycLocationCode/><countryDialingCode/><areaDialingCode/><communicationNumber>ADDR</communicationNumber><primaryIndicator>N</primaryIndicator>
    <contactName/><confirmationIndicator>N</confirmationIndicator><communicationSequence>1</communicationSequence><primaryForTypeIndicator>Y</primaryForTypeIndicator><entityCode>SBL</entityCode><processingOrgOsdId/><addressLine1>UNICEF UNITED NATIONS CHILDREN FUND</addressLine1>||
    <addressLine2>THREE UNITED NATIONS PLAZA</addressLine2><addressLine3/><addressLine4/><postalCode/><countrySwiftCode>US</countrySwiftCode><cityCode>NEW YORK</cityCode><adminAreaCode>NEW YORK</adminAreaCode><countryDescription>UNITED STATES</countryDescription><suppressConfirmation>N</suppressConfirmation>
    <holdConfirmation/></communicationDetailsForInstrument><communicationDetailsForInstrument><instrument>11</instrument><instrumentDescription>FX DERIVATIVES</instrumentDescription><communicationType>FAX</communicationType><communicationTypeDescription>FACSIMILE</communicationTypeDescription><kycLocationCode/>
    <countryDialingCode>001</countryDialingCode><areaDialingCode>21</areaDialingCode><communicationNumber>23267425</communicationNumber><primaryIndicator>N</primaryIndicator><contactName/><confirmationIndicator>N</confirmationIndicator><communicationSequence>1</communicationSequence>
    <primaryForTypeIndicator>Y</primaryForTypeIndicator><entityCode>SBL</entityCode><processingOrgOsdId/><addressLine1/><addressLine2/><addressLine3/><addressLine4/><postalCode/><countrySwiftCode/><cityCode/><adminAreaCode/><countryDescription/><suppressConfirmation>N</suppressConfirmation><holdConfirmation/>
    </communicationDetailsForInstrument><communicationDetailsForInstrument><instrument>50</instrument><instrumentDescription>SBL ALL</instrumentDescription><communicationType>FAX</communicationType><communicationTypeDescription>FACSIMILE</communicationTypeDescription><kycLocationCode/>
    <countryDialingCode>001</countryDialingCode><areaDialingCode>212</areaDialingCode><communicationNumber>3267425</communicationNumber><primaryIndicator>N</primaryIndicator><contactName>NA</contactName><confirmationIndicator>Y</confirmationIndicator><communicationSequence>1</communicationSequence>
    <primaryForTypeIndicator>Y</primaryForTypeIndicator><entityCode>SBL</entityCode><processingOrgOsdId/><addressLine1/><addressLine2/><addressLine3/><addressLine4/><postalCode/><countrySwiftCode/><cityCode/><adminAreaCode/><countryDescription/><suppressConfirmation>N</suppressConfirmation><holdConfirmation/>
    </communicationDetailsForInstrument><communicationDetailsForInstrument><instrument>10</instrument><instrumentDescription>FX INTERBANK</instrumentDescription><communicationType>REUTR</communicationType><communicationTypeDescription>REUTERS</communicationTypeDescription><kycLocationCode/>
    <countryDialingCode>0</countryDialingCode><areaDialingCode>0</areaDialingCode><communicationNumber>UNEF</communicationNumber><primaryIndicator>N</primaryIndicator><contactName/><confirmationIndicator>N</confirmationIndicator><communicationSequence>1</communicationSequence><primaryForTypeIndicator>Y</primaryForTypeIndicator>
    <entityCode>SBL</entityCode><processingOrgOsdId/><addressLine1/><addressLine2/><addressLine3/><addressLine4/><postalCode/><countrySwiftCode/><cityCode/><adminAreaCode/><countryDescription/><suppressConfirmation>N</suppressConfirmation><holdConfirmation/></communicationDetailsForInstrument></communicationDetails>
    <ssiDetails><normal><ssiForInstrument><instrument>10</instrument><instrumentDescription>FX INTERBANK</instrumentDescription><currencyCode>BDT</currencyCode><primaryIndicator>Y</primaryIndicator><bankAccountNumber>42961</bankAccountNumber><effectiveDate>2007-07-14</effectiveDate><lastUpdated>2007-07-14</lastUpdated>
    <loadSSIFor>C</loadSSIFor><status>A</status><correspondentDetails><option>A</option><bankAccountNumber>0850032</bankAccountNumber><customerNo>53023</customerNo><swiftAddress>SCBLBDDX</swiftAddress><shortName>Standard Chartered Bk Dhaka Br</shortName><message>N</message></correspondentDetails><intermediaryDetails>
    <intermediarySSISeq>1</intermediarySSISeq></intermediaryDetails><beneficiaryDetails><ibanIndicator>N</ibanIndicator><thirdPartyIndicator>N</thirdPartyIndicator></beneficiaryDetails><customerDetails><option>D</option><narrative2>United Nations Children Fund</narrative2><narrative3>3 United Nations Plaza</narrative3>
    <ibanIndicator>N</ibanIndicator><thirdPartyIndicator>N</thirdPartyIndicator></customerDetails><roleCode>CLIENT</roleCode><effectiveDateType>V</effectiveDateType><method>S</method><uniqueSysGenNum>26961</uniqueSysGenNum><entityCode>SBL</entityCode><globusBankNumberIndicator>N</globusBankNumberIndicator>
    <securityFlag>CASH</securityFlag><custody>N</custody><triParty>N</triParty><additionalCurrencyDetails/></ssiForInstrument><ssiForInstrument><instrument>10</instrument><instrumentDescription>FX INTERBANK</instrumentDescription><currencyCode>CHF</currencyCode><primaryIndicator>Y</primaryIndicator><bankAccountNumber>42961</bankAccountNumber>
    <effectiveDate>2008-03-27</effectiveDate><lastUpdated>2008-03-27</lastUpdated><loadSSIFor>C</loadSSIFor><status>A</status><correspondentDetails><option>A</option><bankAccountNumber>0141448</bankAccountNumber><customerNo>39537</customerNo><swiftAddress>UBSWCHZH80A</swiftAddress><shortName>UBS Ag Zurich Br</shortName><message>N</message></correspondentDetails>
    <intermediaryDetails><intermediarySSISeq>1</intermediarySSISeq></intermediaryDetails><beneficiaryDetails><ibanIndicator>N</ibanIndicator><thirdPartyIndicator>N</thirdPartyIndicator></beneficiaryDetails><customerDetails><option>D</option><narrative1>240C02607340</narrative1><narrative2>UNITED NATIONS CHILDRENS FUND</narrative2><ibanIndicator>N</ibanIndicator>
    </subscription></systemSubscriptionDetails>
    </customer></osd>

  • Bugs in Oracle XML Parser

    I'm getting an error message from Oracle Parser 9.2.0.6.0 on my XML Schema.
    I have multiple Schemas with no namepspace that I am including in a file with a target namespace that is also the default namespace. I am receiving an error that I have an invalid reference. In this situation I shouldn't need a prefix and my Schema should be valid.
    I am able to resolve the error by removing the namespace from my file that holds the includes.
    Is this a known bug? I know it was an issue in 9.2.0.4.
    Thank you in advance for any information.
    Kind regards,
    Jessica

    Thank you for the fast response, but I'm not sure I expalined my situtation well.
    I am using the later:
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >
    The problem is that Oracle is giving me an error on a type that is defined in an included file. The included file has no namespace, but the file in which it is included does have a namespace. The file with the target namespace is also the default. Hence, no need for a prefix on my predefined type. That being said, the Oracle parser is throwing an error, which I believe to a bug.
    Additional feedback is appreciated.
    Thank you,
    Jessica

  • Minor bug in dp-xml processing...

    Each time user selects a channel
    <Reference value="MyChannel" merge="replace" lock="false" propagate="true" advanced="false"/>"
    will be added to <Selected> in his dp.xml
    (even if <Reference value="MyChannel" merge="remove" lock="false" propagate="true" advanced="false"/>"
    already exists!)
    Now, each time user deselects a channel -
    only merge="remove" will be set for this element,
    but the entry will not be deleted!
    Which means in three months of intensive use
    your portal will get really slow...
    Cheers,
    Alex :-)

    Andy,
    1) Stangely enough, the Escape XML.vi doesn't escape "</"!
    2) Escape XML.vi takes a string, so you have to convert the picture to string. But when you convert the picture to string, the bug isn't there anymore.
    So to work around the problem, you can just convert the picture to string (use flatten to string, casting is (without any reason) disabled...).
    Someone who wants to flatten pictures to XML should be experienced enough to figure this out, so I wouldn't put the bug on the priority list. Also, fixing it could cause backwards compatibility problems.
    Regards,
    Wiebe.
    Attachments:
    Bug Flatten Picture To XML.vi ‏39 KB

  • Is it a Bug in Java XML JAXP?!

    i have a sample XML file
    ==========================
    <?xml version='1.0' encoding='utf-8'?>
    <aaa>
         <bbb>
              <ccc>
                   Hi All
              </ccc>
         </bbb>
    </aaa>
    <?execute.somecde?>
    When transofrming the DOMSource to XML StreamResult by using:
    1- DOMSource source = new DOMSource(document);
    every thing goes OK and the output is tha same as the XML file.
    2- DOMSource source = new DOMSource(node);//ccc node for example
    the result is Same a the XML file, i think i should see this:
    <?xml version='1.0' encoding='utf-8'?>
    <ccc>
         Hi All
    </ccc>
    the Question is "am i right? or not?, shall i see the previous XML or not"
    Here is the sample code i use if you want, it works fine with no error under
    J2SE version 1.4.0 released on 17/02/2002, which contais latest XML parsers.
    i made this code from "The JavaTM Web Services Tutorial"
    page: <WSDP_HOME>/docs/tutorial/doc/JAXPXSLT3.html#64649
    Topic: "Writing Out a Subtree of the DOM"
    ===============================================
    import ...//all imports come here
    public class DOM_1 {
    public static void main (String args[]) {
    DOM_1 handler = new DOM_1();
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    try {
    DocumentBuilder builder = factory.newDocumentBuilder();
    org.w3c.dom.Document document = builder.parse(new File("D:\\XML.xml"));
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer();
    org.w3c.dom.NodeList list = document.getElementsByTagName("ccc");
    org.w3c.dom.Node node = list.item(0);
    DOMSource source = new DOMSource(document);
    //DOMSource source = new DOMSource(node);
    StreamResult result = new StreamResult(System.out);
    //StreamResult result = new StreamResult(new FileOutputStream(new
    File("D:\\XML_1.xml")));
    transformer.transform(source, result);
    } catch (Exception x) {
    x.printStackTrace();
    thanks alot.

    I hope you test the code to see if this problem exists on your java platform or it is in my side only.

  • Bugs for Oracle XML parser

    What I first used was Oracle's xml parser
    (xmlparser2). I tried to read an xml file, change some nodes values, then write the file (using
    Transformer.transform) , all comment nodes <!--
    blha blha --> were changed to <?#comment
    ?>.
    I tried to work around this: try to remove all the comment nodes from the file it read and write to a new file. It did remove the nodes when using JDk1.3.1 on windows. It didn't remove when use JDK1.3.1 on Solaris.

    Would you provide detailed information or a sample code to me at [email protected]?

  • Bug:cant create xml source from Oracle BPEL console

    hi
    follow this
    1) create a xsd A, in this create 2 elements in requestmessage input and xyz.
    2) create xsd B, in this make a complex type abc in this put an element on string type.
    3) set the type of xyz to abc. and import the target namespace of B.
    deploy it and on SOA BPEL console and click on xml source radio button.
    if its working at your place pls let me know.
    dont just see reply something.;)
    YYY
    Message was edited by:
    user573911

    you may want to check out commands like xmlforest and xmlelement
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions221.htm
    copied from documentation
    Purpose
    XMLForest converts each of its argument parameters to XML, and then returns an XML fragment that is the concatenation of these converted arguments.
    •If value_expr is a scalar expression, then you can omit the AS clause, and Oracle Database uses the column name as the element name.
    •If value_expr is an object type or collection, then the AS clause is mandatory, and Oracle uses the specified c_alias as the enclosing tag. The c_alias can be up to 4000 characters.
    •If value_expr is null, then no element is created for that value_expr.
    Examples
    The following example creates an Emp element for a subset of employees, with nested employee_id, last_name, and salary elements as the contents of Emp:
    SELECT XMLELEMENT("Emp",
    XMLFOREST(e.employee_id, e.last_name, e.salary))
    "Emp Element"
    FROM employees e WHERE employee_id = 204;
    Emp Element
    <Emp>
    <EMPLOYEE_ID>204</EMPLOYEE_ID>
    <LAST_NAME>Baer</LAST_NAME>
    <SALARY>10000</SALARY>
    </Emp>

  • 10g Preview Bug: Auto Indent XML

    When auto-indenting an xml document with multi-line comments, each time you ask for the auto-indent, the trailing lines of the comment are indented further. The following example shows a document that is unintented, and then the same document after selecting auto-indent once, and then after auto-indenting the auto-indented document. The comments will keep moving to the right if I keep selecting auto-indent.
    Original:
    <tag>
    <subtag>
    <!--
    A multi-line comment.
    -->
    </subtag>
    </tag>
    Indented once:
    <tag>
      <subtag>
        <!--
        A multi-line comment.
        -->
      </subtag>
    </tag>
    Indented twice:
    <tag>
      <subtag>
        <!--
            A multi-line comment.
            -->
      </subtag>
    </tag>

    Hi Markus,
    Though this is not a UIX issue, request for Auto indent feature from application navigator for multiple xml (uix, uit, xss, and xml) files has been made. Your post has been passed to the IDE team which looks after these issues.
    Thanks,
    Vijay V
    Team UIX.

  • SDK-UI - Bugs in the XML LoadBatch Actions

    LinkTo does not work This is documented in SAP Note: 1442042. Current status is a Won't fix from SAP Support

    Hello everyone,
    I found a possible cause of my problem.
    I change -Xmx128m to -Xmx64m. And I get less OOMEs (OutOfMemoryError). My computer is configured for the development of a ECM Connector - I mean this is not a server machine with many users.
    When the JVM lack of memory, it tries to take 64m instead of 128m from the Operating System (Windows XP - Quad Core - 4Go of RAM).
    If think that it often fails to find a block of 128m in one step, and it is easier for the JVM to get 64m twice.
    May be the GC has a different behavior with  64m?
    My current configuration file of workbench.ini is:
    #Product Runtime Configuration File
    -vmargs
    -Xms64m
    -Xmx1024m
    -XX:MaxHeapFreeRatio=75
    -XX:MinHeapFreeRatio=40
    -XX:+UseConcMarkSweepGC
    -XX:+UseLargePages
    -XX:LargePageSizeInBytes=500m
    I get less OOME now. My problem is partially solved.
    http://java.sun.com/performance/reference/whitepapers/tuning.html
    Thank you

  • Error updating a CLOB XML fragment

    Hi,
    I have an xml schema that contains an element of type xs:anyType that has been mapped to Oracle as CLOB.
    Now I have the needs to update this value but I was not able to do it.
    The code that does the update is the following:
    public void updateXML(String sqlCmd, String XMLString) throws Exception
    DataSource ds = null;
    Connection conn = null;
    OraclePreparedStatement stmt = null;
    oracle.sql.CLOB tempCLOB = null;
    Writer tempCLOBWriter= null;
    try
    //Get Data Source
    ds = (DataSource) new InitialContext().lookup(xmlDS);
    // Get Connection
    conn = ds.getConnection();
    // Prepare statement with requested insert, update or delete statement
    stmt = (OraclePreparedStatement) ((OracleConnection) conn).prepareStatement(sqlCmd);
    // Build CLOB containing XML if required
    if (XMLString != null)
    tempCLOB = oracle.sql.CLOB.createTemporary
    ( ((WLConnection)conn).getVendorConnection(),
    true,
    CLOB.DURATION_SESSION);
    try {
    tempCLOB.open(CLOB.MODE_READWRITE);
    tempCLOBWriter = tempCLOB.getCharacterOutputStream();
    tempCLOBWriter.write(XMLString);
    tempCLOBWriter.flush();
    } finally {
    if (tempCLOBWriter != null)
    tempCLOBWriter.close();
    //Set parameter on Prepared Statement
    stmt.setCLOB(1,tempCLOB);
    // Execute command
    stmt.executeUpdate();
    // Clean up CLOB data if required
    if (XMLString != null)
    tempCLOB.freeTemporary();
    // Return connection to the pool
    conn.close();
    catch ( Exception e)
    if (conn != null)
    conn.close();
    throw e;
    IF the sqlCmd param contains:
    update XML_OPERAZIONE_LOG t
    set value(t) = updateXML(value(t),
    '/operazione.log/Operazione',XMLTYPE(?))
    where existsNode(value(t),
    '/operazione.log/Journal [NumeroElettronico="99900000"]') = 1
    I get the error ORA-17410 "No More Data to read from socket"
    If the sqlCmd contains:
    insert into XML_OPERAZIONE_LOG values( XMLType(?))
    I have no problems.
    Any Idea ?
    Oracle 9.2.0.2.0, latest classes12.zip BEW Web Logic 8.1

    Upgrade to 9.2.0.5.0 since 9.2.0.2.0 is not supported for XMLType. Also try OCI rather than thin dirver.

Maybe you are looking for