Encoding error using Oracle SAX Parser, please help

Hi, All,
I have problem while I am trying to parse an XML file using Oracle SAX Parser.
The following is from the trace file:
java.io.UTFDataFormatException: Invalid UTF8 encoding.
java.io.UTFDataFormatException: Invalid UTF8 encoding.
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at java.io.UTFDataFormatException.<init>(Compiled Code)
at oracle.xml.parser.v2.XMLUTF8Reader.checkUTF8Byte(Compiled Code)
at oracle.xml.parser.v2.XMLUTF8Reader.readUTF8Char(Compiled Code)
at oracle.xml.parser.v2.XMLUTF8Reader.fillBuffer(Compiled Code)
at oracle.xml.parser.v2.XMLByteReader.saveBuffer(Compiled Code)
at oracle.xml.parser.v2.XMLReader.fillBuffer(Compiled Code)
at oracle.xml.parser.v2.XMLReader.tryRead(Compiled Code)
at oracle.xml.parser.v2.XMLReader.scanXMLDecl(Compiled Code)
at oracle.xml.parser.v2.XMLReader.pushXMLReader(Compiled Code)
at oracle.xml.parser.v2.XMLReader.pushXMLReader(Compiled Code)
at oracle.xml.parser.v2.XMLParser.parse(Compiled Code)
at data_loader.main(Compiled Code)
The XML file is a pure ascii text file, with encoding set to UTF-8.
I can parse the file correctly on NT, but I got problem when I ran the code on a SUN solaris 2.6 machine.
The parser version is 9.0.2.
Thanks in advance.
Peter

You are right, I modified the codes and got it to work on Oracle
But when I did your suggestion:
<cftransaction>
  <cfstoredproc ...>
  <cfquery>
    SELECT ...
  </cfquery>
</cftransaction>
I got the same error as before which is:
Error Executing Database Query.
[Macromedia][Oracle JDBC Driver]Unhandled sql type
But this time it points to the CF callling the str proc using cfprocparam
Here is how I call the str. proc:
     <CFTRANSACTION>   
          <cfstoredproc procedure="MyReport" datasource="#Trim(application.dsn)#" returncode="True">  
              <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" variable="ins_name" value="#Trim(session.instname)#">
              <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" variable="aca_year" value="#Trim(ayr)#"> <------- POINT TO THIS LINE
          </cfstoredproc>
     </CFTRANSACTION>

Similar Messages

  • Error using JDBC and DB2 - Please help

    Hi, I need some help solving this problem. I ran the same program at my university and it worked. At home I am using TomCat4 and j2sdk1.4.1. I want to connect to the IBM DB2 Universal database personal edition v7. The program compiles, but when I run it, it says it can't find
    com.ibm.db2.jdbc.app.DB2Driver. The class path was automatically updated when I installed DB2. What could the problem be? Please help because I really need to use this. Thank you.
    Marianne.
    This is my program:
    import java.io.*;
    import java.sql.*;
    class testDB {
    public static void main(String argv[]) {
    try {
    // load driver and connect to database
    Class.forName("com.ibm.db2.jdbc.app.DB2Driver");
    String url = "jdbc:db2:test";
              String userid = "the database name"; // blanked out
              String password = "my password";
    Connection con = DriverManager.getConnection(url, userid, password);
    // an SQL retrieval getting all rows in table
    Statement stmt = con.createStatement();
    String SQLStatement = "SELECT issueID, stock FROM test.issue ORDER BY issueID";
    String theIssueId;
    int theStock;
    ResultSet rs = stmt.executeQuery(SQLStatement);
         // loop to step through each row of result set
         while (rs.next()) {
    theIssueId= rs.getString("issueID");
    theStock = rs.getInt("stock");
    System.out.println(theIssueId + " : " + theStock);
    // tidy up
    rs.close();
    stmt.close();
    con.close();
    } catch( Exception e ) {
    e.printStackTrace();
    }

    Try add path C:\Program Files\SQLLIB\java\db2java.zip to classpath.

  • Error Using java command. Please help!

    Ok, I'm having problems running my java programs. I use the javac command, and it compiles it right, and makes the class file. But if I type
    java anything
    It won't work. It comes up with the error message:
    Exception in thread "main" java.lang.NoClassDefFoundError: BigDebt
    With BigDebt as the class file. That error message comes up if I type:
    java anything
    java blah.class
    I have version 1.3.
    It would be GREATLY appreciated if someone could help.

    It appears you are using the right command, "java BigDebt" if your class is called BigDebt and the compiler produced a file named BigDebt.class. (This assumes that your source code doesn't start with a "package xxx;" line.) Your problem is likely a Classpath problem. Make sure you have CD'd to the directory where BigDebt is located. Then try:
    java -classpath . BigDebt

  • HT204291 Error Message: "airplay tv is in use by someone else" Please help?

    I.m trying to use Airplay Mirroring to stream content from my iPad 2 to my HDTV.
    Already using Airplay TV successfully to stream content from my iTunes library using the Remote control but now I want to add my iOS devices but I'm getting the following conflict / error message when I try to turn mirroring on on my iPad 2:
    Error Message: "airplay tv is in use by someone else"
    Please help?

    Set a password by using the "Airport Utility", then it will work again.

  • After a licensing failure message, I tried to reinstall CS3 design standard but the error "Component Install Failed" occurred and I still am unable to use Photoshop or InDesign  Please Help!

    after a licensing failure message, I tried to reinstall CS3 design standard but the error "Component Install Failed" occurred and I still am unable to use Photoshop or InDesign  Please Help!

    J3liu1 I would recommend reviewing the installation log files for the specific error message which you are facing.  You can find details on how to locate an interpret your installation log files at Troubleshoot installation with install logs | CS3, CS4.  You are welcome to post any specific errors you discover to this discussion.

  • Hello apple.help me network iphone 4 use ios7.12 error network.acoount icloud apple please help support errors no service network.thank you

    hello apple.help me network iphone 4 use ios7.12 error network.acoount icloud.apple please help support errors no service network.thank you
    <Personal Information Edited by Host>

    tran ngoc nhan,
    Viết bằng tiếng mẹ đẻ của bạn?
    Tôi đoán Việt Nam?
    Chúng tôi có thể dịch!
    Nói cho tất cả vấn đề của bạn!
    Cung cấp cho nhiều chi tiết!
    Nếu không Việt Nam, dịch này ở đây!
    https://translate.google.com/
    Write in your native language?
    I guess Vietnamese?
    We can translate!
    Tell all your problem!
    Give much detail!
    If not Vietnamese, translate this here!
    https://translate.google.com/
    CCC

  • XML validation using Oracle XML parser v2

    Not sure if this is the right forum for this question as I didn't found any.
    I had a tough time trying to build an XMLSchema (Oracle XML Parser V2) object from the input schema having include/import. Actually I am working on a Java program to validate the input xml with input schema using Oracle XML parser v2 api.
    The issue is that the code doesn't work for schema that has some "include" in it. The code is working fine for the schema without any import/include. Here is the lines of code -
    XSDBuilder builder = new XSDBuilder();
    schema = builder.build(new InputSource(xsdReader));
    I am writing this in JDeveloper. The error is -
    oracle.xml.parser.schema.XSDException: Can not build schema 'http://www.fpml.org/2005/FpML-4-2' located at 'xsd\FpML42\xml\fpml-fx-4-2.xsd'
    I also tried creating the EntityResolver to specify the path of included schema. But that doesn't solves the problem.
    I am not sure whether parser is able to locate the included schema or not.The main schema and included schema are all in same folder. The included schema is perfectly fine and has no errors.
    Please help if you have encountered this issue and resolved it. I will really appreciate any pointers or clue to solve this issue.
    Thanks.

    Thanks for the reply. But it does not seem to be working. Am I missing something
    I put <TrxDate xsi:nil="true"/> but still getting error.
    Here's my xsd:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xsd:element name="TrxDate" type="xsd:date" nillable="true" />
    XML:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ServiceRequest>
    <TrxDate nil="true"/>
    </ServiceRequest>

  • Validating xml file against a specific schema using jaxp sax parser

    Hi,
    I would like to validate a soap xml given below
    <?xml version="1.0" encoding="UTF-8"?>
    <Envelope>
         <Body>
              <name>pavan</name>
              <number>123</number>
         </Body>
    </Envelope>
    to validate against the schema of soap from url "http://www.w3.org/2003/05/soap-envelope". I dont want to have this namespace in the xml. How can I validate against the specified schema using jaxp sax parser?
    Please help.
    Thanks,
    T.Pavan kumar

    Any one, please help.

  • Using the SAX Parser

    As I reported in this thread: Carriage Returns in XSLT output I am trying to produce a text output file with each line terminating in cr-lf (using the output from ViewObject.writeXML() passed through the XSLProcessor.processXSL() method to apply a XSLT stylesheet transformation to it), but the cr characters in the stylesheet are being converted to nl characters, so I am ending up with two nl characters at the end of each line.
    I found a 2002 query (here: http://www.xslt.com/html/xsl-list/2002-04/msg00193.html) by someone with the same problem, and a reply by Steve Muench explaining it and stating that the Oracle SAX parser does not have the same problem.
    So my question now is - does the SAX parser still retain cr characters (or is it too now converting them to nl) and if it does, how do I make XSLProcessor.processXSL() use it rather than the default XML parser? Can I do it from within my code, or does it need to be set in some sort of environment variable? We are on version 9.0.5.2 of JDeveloper(10g)

    Repost

  • Problem for using oracle xml parser v2 for 8.1.7

    My first posting was messed up. This is re-posting the same question.
    Problem for using oracle xml parser v2 for 8.1.7
    I have a sylesheet with
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">.
    It works fine if I refer this xsl file in xml file as follows:
    <?xml-stylesheet type="text/xsl" href="http://...../GN.xsl"?>.
    When I use this xsl in pl/sql package, I got
    ORA-20100: Error occurred while processing: XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
    After I changed name space definition to
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> in xsl file, I got
    ORA-20100: Error occurred while processing: XSL-1019: Expected ']' instead of '$'.
    I am using xml parser v2 for 8.1.7
    Can anyone explain why it happens? What is the solution?
    Yi

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Element's dont have text content, they [b]contain text node children.
    So instead of trying to setNodeValue() on the element, construct a Text node and use the appendChild method on the element to append the text node as a child of the element.<HR></BLOCKQUOTE>
    Steve,
    We are also creating an XML DOM from java and are having trouble getting the tags created as we want. When we use XMLText it creates the tag as <tagName/>value rather than <tagName>value</tagName>. We want separate open and close tags. Any ideas?
    Lori

  • When i update my iphone it say error 1015 what is this please help me

    when i update my iphone it say error 1015 what is this please help me

    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.
    http://support.apple.com/kb/TS3694#error1015.

  • Ichat can't connect to my AIM account, gives me the error "Cannot log in to AIM. General error. Try again." Please help!

    ichat can't connect to my AIM account, gives me the error "Cannot log in to AIM. General error. Try again." Please help!

    HI,
    Your specs say OS X 10.6.8 which would be iChat 5.x.x in Snow Leopard.
    This version by default tries to login in to the AIM server called login.oscar.aol.com on port 5190 using the TCP protocol.
    An internet connection is made up of 65535 of these so called ports (more like TV stations)
    Most routers have ports up to port 1024 which means some of the iChat Login Ports are above this.
    Two ways to Solve this.
    1) Change the Login port iChat uses
    2) Change the way the router opens ports.
    For 1) go to iChat Menu > Preferences > Accounts
    Highlight/select the AIM account.
    In the Info Tab deselect the "Enable this Account" to make sure you are Logged out.
    In the Server Settings change the Port to 443
    You can decide not to use SSL as well if you wish  (the server name automatically loses the leading "s")
    For 2) log in to the routers set up pages and make sure it is doing UPnP
    This allows the computers  to tell the router which ports to open. It also allows multiple devices to use the same ports.
    For iChat this allows it to Screen Share as this happens on an unlisted random port.
    Opps  forgot a couple of things.
    If you are using an APple ID registed at Apple ending in @mac.com @me.com or @iCloud.com then the passowrd at Apple has to be 16 characters or less to work with the AIM servers.
    Additionally the iCloud issued @me.com and @iCloud.com one require you to use iChat 6 in Lion or Messages in Mountian Lion due to changes Apple made to the security of letting AIM "read" the passwords.
    9:38 PM      Sunday; June 9, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)

  • Trying to use XML SAX parser with JDK2 ...

    Hi,
    I'm pretty new to Java.
    I'm trying to write and use java sample using XML SAX parser. I try with XP and XML4J.
    Each time I compile it give me a error message like
    "SAX01.java:23: unreported exception java.lang.Exception; must be caught or declared to be
    thrown
    (new SAX01()).countBooks();
    ^
    Note: SAX01.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error"
    For what I found, it seems that "deprecated" mean usage of old classes or methods. What should I do ?
    Wait for the XML parser to be rewrite ? ....
    Thank's
    Constant

    "SAX01.java:23: unreported exception
    java.lang.Exception; must be caught or declared to be
    thrown
    (new SAX01()).countBooks();
    ^Do this
    public static void main(String[] args) throws Exception {
    or do this
         try
                       first part of expression?(new SAX0()).countBooks();
         catch(Exception ex)     
              System.out.println("problem "+ ex);
    Note: SAX01.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error"deprecation is just a warning if there are no errors elsewhere in your program it should compile fine, but if you want to find out how to change it do this:
    javac YourClassName.java -deprecation
    then look in the docs for an alternative.

  • DynamicLink error is AE CS5! please help!

    This is the error I keep getting! please help me out! thanks

    Same problem and error message here! AARGHHhhh.
    Have tried:
    -removed ALL codecs from my system (using VLC player, Divx.. )
    -uninstalled CS4 (and then ran Adobe CS4 Clean Script)
    -started AE CS5 holding down SHIFT+CTRL+ALT, deleted all settings
    -started 'Adobe QT32 Server.exe' manually, then started AE CS5
    Nothing.. still crashes at startup! Please someone help!
    My system: Windows 7, 64-bit, Dell T5400, 2xXeon E5440, 16GB RAM

  • I am unable to set up my iphone 5 after reset since am getting a error stating 'unable to reach server' . i tried restoring the same from my computer  but  i get a error stating server unavailable' .  please help me as my phone is stuck at the set up page

    i am unable to set up my iphone 5 after reset since am getting a error stating 'unable to reach server' . i tried restoring the same from my computer  but  i get a error stating server unavailable' .  please help me as my phone is stuck at the set up page. so i have already tried recovery mode as well.

    Contact Apple support for warranty service.

Maybe you are looking for

  • From Palm Desktop to iPod Touch

    I have many years of contacts and calendar entries in my Palm Desktop (& Palm PDA). I want to migrate these contacts and calendar into my new iPod Touch, using it as my PDA going forward.

  • Customer clearing issue

    HI Guru's We are using transaction F.13 for automatic clearing of customer accounts. We would like to know if it is possible to exclude certain document types from the transaction. is there another transaction which can be used for customer clearing

  • Not allow variance in LIV credit memo

    Hi, In LIV for Credit Memo, there is no warning nor error message shown for unit price variances (price different from that in PO).  how can i set to not allow variance? thanks

  • One fourth?

    Only the iMac seems to get knocked out by interference, the iBook, xBox, & dark-side pc all maintain good signal strength, all the time, for weeks on end. If I move the iMac, and/or move the AEBS, and/or change the channel, I get the signal back full

  • HFM Client 11.1.1.3 is supported with Windows 7 64 bit OS??

    Hi, Currently we are using HFM 11.1.1.3 version. Our company is upgrading all the Systems to Windows 7 machines. And would like to check whether it is supported with Windows 7 are not. Ex. HFM Client, Hyperion Reporting Studio, Smartview etc. Do I ne