How to detect the root cause of  XML encoding problem ?

Hi,
I need to identify the exactly root cause of error when parssing a XML ( ISO-8859-1 encoding) problem.
How can I do this using JAVA ?
regards
ICP

Hi dekassegui,
Thanks for your response
The error is an error from Oracle HTTP adapter servlet. The message error is : "oracle.xml.parser.v2.XMLParseException"
My intention is to verify the data before thats receieved by the adapter and the servlet.
I did my own servlet extending the orgirinal servlet to show and log the entire received content. The content looks "OK".
Now I would like to check a possible special character or symbol unsupported by enconding.
The Input data is aware of my control. But if the error could be detected, message senders will correct this.
My major problem is to ensure what is the root cause of the error.
regards,
ICP

Similar Messages

  • How to set the root path of XML document when calling Inserting procedure

    Hi,
    I was create a procedure to insert XML Document in to DBMS Tables, but i am not able to set the Start root element in calling procedure.
    My calling procedure is
    exec insXmldoc('pmc_sample.xml', 'pmc')
    When i am calling this procedure i got this error
    11:23:54 Error: ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException: Start of root element expected.
    ORA-06512: at "SYS.DBMS_XMLSAVE", line 65
    ORA-06512: at "SCOTT.INSPROC", line 8
    ORA-06512: at line 2
    I am checking my XML file using XML Validator. My XML file was parsed with out errors.
    Please give the solution,and tell me where i did wrong in my calling procedure.
    suppose i have this XML file in local E drive ,how to set the path for that XML file in my calling procedure.

    Hi, I am doing the code likthis,please give the solution.
    SQL> create or replace procedure insProc(xmlDoc IN CLOB, tableName IN VARCHAR2) is
    2 insCtx DBMS_XMLSave.ctxType;
    3 l_ctx dbms_xmlsave.ctxtype;
    4 rows number;
    5 begin
    6 insCtx := DBMS_XMLSave.newContext(tableName); -- get the context handle
    7 rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc); -- this inserts the document
    8 DBMS_XMLSave.closeContext(insCtx); -- this closes the handle
    9 end;
    10 /
    Procedure created.
    SQL> begin
    2 insProc('/usr/tmp/ROWSET.xml', 'emp');
    3 end;
    4 /
    begin
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException:
    Start of root element expected.
    ORA-06512: at "SYS.DBMS_XMLSAVE", line 65
    ORA-06512: at "SCOTT.INSPROC", line 7
    ORA-06512: at line 2
    Kishore B

  • Massive temp files - How to track the root cause?

    Hi,
    On our system we have about 9-10 subject areas, each being developed by different groups. We began noticing that our temp files found in /u10/app/FNEDW3/apfnedw3/OBIEE/BIDATA/tmp are around 5gb, and filling up very quickly. At one point the entire disk became full because of this and caused some of our reports and dashboards to become corrupted.
    Our guess so far is that it's either some kind of incorrect join or a bug in OBIEE that's causing this, so is there any way to track what could be causing it? Our SAs tried rebuilding and restoring the server to correct the problem but it appeared again.
    We are on OBIEE 10.1.3.3.3, DB 10g, and
    RHEL 4:
    Linux 2.6.9-55.0.2.6.2.ELhugemem #1 SMP Thu Jul 5 14:19:45 PDT 2007 i686 i686 i386 GNU/Linux
    Enterprise Linux Enterprise Linux AS release 4 (October Update 5)
    Thanks,
    Kevin

    I checked Manage iBot Sessions, nothing there.
    Checked the timestamp on the largest temp file currently in the directory (5.4gb), and looked through NQSQuery.log and NQServer.log. Unfortunately the NQSQuery.log doesn't go back that far (1 day ago), I will have to check with the SA to see where the old log files go.
    In the NQServer.log file I found the following that occurred near the time the tmp file was last modified:
    2008-07-22 11:32:40
    [nQSError: 13011] Query for Initialization Block 'Find Manager TIER3' has failed.
    [nQSError: 13012] NULL values are not allowed in row-wise initialization blocks.
    2008-07-22 11:32:40
    [nQSError: 13011] Query for Initialization Block 'Find Manager HQ' has failed.
    [nQSError: 13012] NULL values are not allowed in row-wise initialization blocks.
    2008-07-22 11:32:40
    [nQSError: 13011] Query for Initialization Block 'description' has failed.
    [nQSError: 23006] The session variable, NQ_SESSION.MGR, has no value definition.
    2008-07-22 11:32:40
    [nQSError: 13011] Query for Initialization Block 'GET_MGR_DET' has failed.
    [nQSError: 23006] The session variable, NQ_SESSION.MGHQ, has no value definition.
    Any suggestions?
    Thanks

  • To cancel logs in SM35 and find the root cause

    Hi,
    The role "PM****" is creating lot of sessions with the same session name and each session has hundreds of logs everyday in SM35. The logs is all about scheduling maintenance plans. There are hundreds of maintenance plans scheduling logs everyday. Can anyone help me how to find the root cause for this problem and stop the logs being generated in SM35?

    Hi,
    When you schedule RISTRA20 (transaction IP30) there are options for 'log control', check these and decide what level of logging you require.
    -Paul

  • How do I find the root cause of a NetConnection closed event?

    Hi,
    I am maintaining a large project developed in Flex/Actionscript.
    The application is using tunneling (RTMPT), and we often get Netconnection "closed" events.
    There is no problem with the physical network.
    I think the event may be caused by either a TCP/HTTP/RTMP event, or may be caused by
    some function in the client calling close() on the connection.
    How can I find the root cause of the "closed" event being thrown?
    Thanks,
    David

    Thanks for the information.  It is helpful but it seems there must be a specification of
    what the client side is expecting, independent of any server implementation. 
    When I say client side, I mean the Adobe communication libraries.
    Where is the specification or source code for how the client libraries treat HTTP tunneled requests and responses?
    One question in particular:  How does the client side library treat a
       Connection: Keep-Alive
    versuse
       Connection:close
    HTTP header setting?

  • How to replace the root tag in ABAP Mapping

    how to replace the root tag with the certain string in ABAP Mapping
    just like
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
         <name>Lawrence</name>
    </root>
    into
    <?xml version="1.0" encoding="UTF-8"?>
    <myRootElement>
         <name>Lawrence</name>
    </myRootElement>
    i don't want to implement it in message mapping
    please give me the sample code
    thanks in advance

    Use below code
    odocument = ixmlfactory->create_document( ).
    msgtype = odocument->create_simple_element(
    name = 'myRootElement'
    parent = odocument ).
    Thanks
    Praveen

  • How to detect the end of a loaded swf file

    Hello Guys
    This is my first time on this forum, come here with a great
    hope
    I have loaded a picture file (jpeg) and a video file (swf)
    into the main flash file using xml
    on frame 3, I load the picture and on frame 7, I load the
    video, there is a stop action on frame 6
    Now when the flash is executed the picture is displayed ( it
    says "Click here to view the video")
    when the user click the picture , the video is loaded and
    starts to play ---- so far everything is working fine
    now what I want to do is, once the video finishes playing (
    not stoped) I want to display the picture again
    can you tell me how to detect the end of an external loaded
    swf files,
    Please help me
    Thanking You
    Shriram

  • How to append the timestamp in log4j.xml

    Hi,
    Has anybody know how to configure the timestamp in log4j.xml??
    It would be great, if you could update the right parameter name in my log4.xml which appears below to display timestamp in my log file Master.log!
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration
      xmlns:log4j="http://jakarta.apache.org/log4j/">
      <!-- Order of child elements is appender*, logger*, root?. -->
      <!-- Appenders control how logging is output. -->
      <appender name="CM" class="org.apache.log4j.FileAppender">
         <param name="File" value="Master.log"/>
         <param name="Threshold" value="DEBUG"/>
         <param name="Append" value="true"/>
         <param name="MaxFileSize" value="1MB"/>
         <param name="MaxBackupIndex" value="1"/>
        <layout class="org.apache.log4j.PatternLayout">
          <!-- {fully-qualified-class-name}:{method-name}:{line-number}
                - {message}{newline} -->
          <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
        </layout>     
      </appender>
      <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
        <param name="Threshold" value="INFO"/>
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
        </layout>
      </appender>
      <!-- Logger hierarchy example:
           root - com - com.ociweb - com.ociweb.demo - com.ociweb.demo.LogJDemo
      -->
      <!-- Setting additivity to false prevents ancestor categories
           for being used in addition to this one. -->
      <logger name="com.tf" additivity="true">
        <priority value="DEBUG"/>
        <appender-ref ref="CM"/>
      </logger>
      <!-- Levels from lowest to highest are
           trace, debug, info, warn, error, fatal & off. -->
      <!-- The root category is used for all loggers
           unless a more specific logger matches. -->
      <root>
        <appender-ref ref="stdout"/>
      </root>
    </log4j:configuration>

    Hello Sir,
    I have configured Log4j.xml for my project and it is able to generate the log file properly with the timestamp,but it is showing the the following error messaged at weblogic console!
    log4j:ERROR Parsing error on line 3 and column 8
    log4j:ERROR Element type "log4j" must be declared.
    log4j:ERROR Parsing error on line 15 and column 13
    log4j:ERROR The content of element type "appender" must match "(errorHandler?,param*,layout?,filter*,appender-ref*)".
    log4j:ERROR Parsing error on line 16 and column 57
    log4j:ERROR Attribute "priority" must be declared for element type "category".
    log4j:ERROR Parsing error on line 19 and column 25
    log4j:ERROR Attribute "priority" must be declared for element type "root".log4j:ERROR Parsing error on line 39 and column 12
    log4j:ERROR The content of element type "logger" must match "(level?,appender-ref*)".
    log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
    log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
    Here is my Log4j.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration
    xmlns:log4j="http://jakarta.apache.org/log4j/">
    <!-- Order of child elements is appender*, logger*, root?. -->
    <!-- Appenders control how logging is output. -->
    <appender name="CM" class="org.apache.log4j.DailyRollingFileAppender">
         <param name="File" value="Customer_Master.log"/>
         <param name="Threshold" value="DEBUG"/>
         <param name="Append" value="false"/>
         <param name="DatePattern" value="'.'yyyy-MM-dd"/>
         <param name="MaxFileSize" value="1MB"/>
         <param name="MaxBackupIndex" value="1"/>
    <layout class="org.apache.log4j.PatternLayout">
    <!-- {fully-qualified-class-name}:{method-name}:{line-number}
    - {message}{newline} -->
    <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
    </layout>
    </appender>
    <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
    <param name="Threshold" value="INFO"/>
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
    </layout>
    </appender>
    <!-- Logger hierarchy example:
    root - com - com.ociweb - com.ociweb.demo - com.ociweb.demo.LogJDemo
    -->
    <!-- Setting additivity to false prevents ancestor categories
    for being used in addition to this one. -->
    <logger name="com.tf" additivity="true">
    <priority value="DEBUG"/>
    <appender-ref ref="CM"/>
    </logger>
    <!-- Levels from lowest to highest are
    trace, debug, info, warn, error, fatal & off. -->
    <!-- The root category is used for all loggers
    unless a more specific logger matches. -->
    <root>
    <appender-ref ref="stdout"/>
    </root>
    </log4j:configuration>
    It would be great,if you could correct the above xml file and avoid getting the error message from Weblogic console.
    Thanks in advance,
    kumar

  • How to do E2E root cause analysis?

    Gurus:
    Could you provide some "how-to" guides here about how to do E2E root cause analysis?
    I have NO problem with E2E set up. My problem is after setting up, how to use it to do E2E root cause analysis?
    Thanks!

    >
    Ashley Ho wrote:
    > Could you provide some "how-to" guides here about how to do E2E root cause analysis?
    Have you already visitited the Diagnostics Page and SolMan Ramp-Up Knowledge Transfer in SAP Support Portal?
    [www.service.sap.com/diagnostics]
    [www.service.sap.com/rkt-solman]
    There is also a very interesting training available:
    E2E100 Root Cause Analysis    (I don't know the exact name)
    Best regards,
    Ruediger

  • Oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters

    Dear Guru's,
    I am not able to solve the above issue for last couple of days.
    I am newbie to the webservice
    My Issue...
    I am using Jdeveloper 11.1.2.4.0 Release 2
    1. Using Jdev I built one small Web Service with two methods.
            While testing the Webservice...
                   I passed User Id as Parameter and it successfully return the values (user id, user name and description) from fnd_user table
    2. I created another application to consume the web service i created.
                   1. I added the webservice SOAP and added the method.
                   2. Created a jsf page and drag and drop the parameter and return values to the jsf page.
    3. While executing the created jsf page I received the error message as below
    "oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters are {0=Attribute, 1=UserName, 2=UserName}"
    Even I know that this issue is repeated one in our forum, I was not able to solve this issue.
    Can anybody help to solve this issue.
    Thanks and Regards,
    Durai S E

    Dear Guru's,
    I am not able to solve the above issue for last couple of days.
    I am newbie to the webservice
    My Issue...
    I am using Jdeveloper 11.1.2.4.0 Release 2
    1. Using Jdev I built one small Web Service with two methods.
            While testing the Webservice...
                   I passed User Id as Parameter and it successfully return the values (user id, user name and description) from fnd_user table
    2. I created another application to consume the web service i created.
                   1. I added the webservice SOAP and added the method.
                   2. Created a jsf page and drag and drop the parameter and return values to the jsf page.
    3. While executing the created jsf page I received the error message as below
    "oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters are {0=Attribute, 1=UserName, 2=UserName}"
    Even I know that this issue is repeated one in our forum, I was not able to solve this issue.
    Can anybody help to solve this issue.
    Thanks and Regards,
    Durai S E

  • How to place the images in Indesign xml file by Javascript?

    How to place the images in Indesign xml file by Javascript?
    We got the Indesign xml file, how to give the image placement link by Indesign javascript? Please help me its urgent.

    Hi,
    You can pass the image url as a href attribute=> file:///Users/me/Documents/my_pic.jpg directly within your xml. It just needs that you pass a local, static and valid url.
    If you want to add image later once the xml is flowed and so target specific nodes and inject images, it's a bit more complex. If the node is not part of the layout, you may try to reach the XMLElement objet and such an attribute, then layout the element.
    var x = some XMLElement
    x.xmlAttributes.add("href","file:///Users/m/Documents/my_pic.jpg" );
    If already placed, then you have to get the associated pageItem, then place your file into it.
    pagItm.place ( File ( "/Users/m/Documents/my_pic.jpg" ) );
    Hope that helps,
    Loic
    http://www.loicaigon.com

  • How to get the root view of a UIView?

    How to get the root view of a UIView?

    Hi, loop through the superview property until it's nil. I suggest implenting it as a category:
    @implementation UIView (whatever)
    - (UIView *)rootView;
    @end
    - (UIView *)rootView
    UIView *rootView = self;
    while (rootView.superview) rootView = rootView.superview;
    return rootView;
    Warning: typed from memory, so not guaranteed to be errorfree.

  • How to detect the Acrobat Browser Plug-in version installed on a users system for non-IE browsers?

    How to detect the *Acrobat Browser Plug-in version* installed on a users system, on Firefox, Safari, Opera, etc?
    Or one script for detecting Plug-in version for major browsers. Need full example code.

    Wrote an article on this with code samples (Javascript + HTML) - basically there are differences between IE and other browsers. Chrome natively comes with the Chrome PDF Viewer so I've incorporated that in my detection script.
    The script detects the browser type, and the installed acrobat version...
    Have a look here:
    Detect the Adobe Reader Plugin

  • How to detect the path of Temp directory

    I am writing a class library which allows users to manipulate a database in the web server java applications/applets. In my logic the Application/Applet communicate with a CGI script/Servlet in the server and that do all the database handling. My objective is to make the Client independant from the Database Drivers, and to some restrictions and possible security threats that can arrice when accessing the database directly.
    99% of the work is done and now I am doing the fine tuning.
    My Problem:
    When the user downloading a blob object from the server database. each time the program read the blob it will get a new copy from the server. This is not good if the blob is large (few 100 megs) . So I am going to implement a cache system. but the problem is If I am caching in the memory it will not support large objects (Memory is a limited factor). So the preferance is use the Temperary files but I do not know how to detect the path to temperary folder.
    And my 2nd questions is are the applets allowed to write and read in temperary folder.

    The Java default temporary file path can be determined with
    System.getProperty("java.io.tmpdir")This is typically the same value as the os environment variable

  • How to write the oracle data as XML format. (.XML file)

    create or replace procedure pro(p_number )
    is
    cursor c1 is select *from emp where empno=p_number;
    v_file utl_file.file_type;
    begin
    v_file := utl_file.fopen('dirc','filename.txt','w');
    for i in c1 loop
    utl_file.put_line(v_file,i.ename || i.empno ||i.job);
    end loop;
    closef(v_file);
    end;
    Now my client want instead of .txt file he need .xml files
    File should contains xml tags. can any one help regarding this.. with one example.
    How to write the oracle data as XML format. (.XML file)

    hi,
    hope this example will do something....
    SQL> select employee_id, first_name, last_name, phone_number
    2 from employees where rownum < 6
    EMPLOYEE_ID FIRST_NAME LAST_NAME PHONE_NUMBER
    100 Steven King 515.123.4567
    101 Neena Kochhar 515.123.4568
    102 Lex De Haan 515.123.4569
    103 Alexander Hunold 590.423.4567
    104 Bruce Ernst 590.423.4568
    SQL> select dbms_xmlgen.getxml('select employee_id, first_name,
    2 last_name, phone_number from employees where rownum < 6') xml
    3 from dual;
    *<?xml version="1.0"?>*
    *<ROWSET>*
    *<ROW>*
    *<EMPLOYEE_ID>100</EMPLOYEE_ID>*
    *<FIRST_NAME>Steven</FIRST_NAME>*
    *<LAST_NAME>King</LAST_NAME>*
    *<PHONE_NUMBER>515.123.4567</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>101</EMPLOYEE_ID>*
    *<FIRST_NAME>Neena</FIRST_NAME>*
    *<LAST_NAME>Kochhar</LAST_NAME>*
    *<PHONE_NUMBER>515.123.4568</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>102</EMPLOYEE_ID>*
    *<FIRST_NAME>Lex</FIRST_NAME>*
    *<LAST_NAME>De Haan</LAST_NAME>*
    *<PHONE_NUMBER>515.123.4569</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>103</EMPLOYEE_ID>*
    *<FIRST_NAME>Alexander</FIRST_NAME>*
    *<LAST_NAME>Hunold</LAST_NAME>*
    *<PHONE_NUMBER>590.423.4567</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>104</EMPLOYEE_ID>*
    *<FIRST_NAME>Bruce</FIRST_NAME>*
    *<LAST_NAME>Ernst</LAST_NAME>*
    *<PHONE_NUMBER>590.423.4568</PHONE_NUMBER>*
    *</ROW>*
    *</ROWSET>*
    ask if you want more assistance.
    thanks.

Maybe you are looking for

  • Premiere Pro CC (2014) Crashes if I try and locate footage/scrub/create a blank sequence, please help

    Hello, this is my first time asking for help on here, I've been going round the forums and web in general for hours and can't seem to find a solution to this. I really hope someone can help me sort this. Every time I try and open a project in Pr CC 2

  • Movie playback on Apple TV wirelessly from my Mac Question??

    Hi guys This is probably a really basic question but the apple site doesnt seem to specifically answer this question...or maybe I need stronger glasses However, plain and simply can Apple TV play movies that I have stored on an external hard drive th

  • Statement "CALL TRANSACTION" is not allowed in this form.

    Hi I have a form in which i want to call a transaction:   CALL TRANSACTION 'VL32N'  USING bdc_tab                                                    MODE    'E'                                                    UPDATE  'S'                           

  • Lost Music with upgrade 9.2 - Found iTunes Database File???

    When I upgraded to 9.2 itunes, I lost all the music I had downloaded from CD's. I found the itunes database file dated October 2007 in the Previous iTunes Library Folder. How do I get that music back on the itunes library dated August 2010 which was

  • Post-Crash Login Dilemma

    Hi there - Here are my machine specs: MacBook Pro 17" 2.6 2GB RAM running 10.4.11 Here's my dilemma: I crashed working in Logic Pro 8 but was able to do a clean shutdown. Upon restarting my machine, this is what I encountered: Machine boots to login