XSQL exception displaying funky chars:Cannot map Unicode to Oracle characte

Hi.
I'm using XSQL Servlet to serve XML from a 9.2 database. The varchar columns I'm trying to display have non-ASCII characters in them (Spanish enye, curly quotes, etc.). The database's character encoding is WE8ISO8859P1, which handles these characters fine. Running a simple "select * from..." query, I get this error:
oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character
which seems odd considering it ought to be mapping an Oracle character to a Unicode character, not the other way around. Additionally, what's the problem? Unicode supports a large superset of WE8ISO8859P1.
Any idea how I can get XSQL Servlet to play nice with these funky characters?
Thanks,
Andrew

Update: still stuck...

Similar Messages

  • XSU Problem:Error-- Cannot map Unicode to Oracle character

    Hi, I am using XSU to get the resultset from database(oracle 9.2.0.6.0) as XML.When I query data from some columns and get the XMLString, they give me error -"Cannot map Unicode to Oracle character". The database charset is "US7ASCII" .
    One column is storing Chinese with ''US7ASCII".When xmlString Result contianer
    the column,there is "oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character".But If xmlString Result don't container that column,it run very good.
    The program container these libs: ojdbc14.jar,xmlparserv2.jar,xdb.jar,nls_charset12.jar,xsu12.jar.
    The program code:
    public class OracleXmlParse {
    public static void main(String[] args) {
    try{
    DriverManagerDataSource dataSource = new DriverManagerDataSource("oracle.jdbc.driver.OracleDriver",
                        "jdbc:oracle:thin:@168.1.1.136:1521:imis","ims","ims");
    String selectSQL = "select AREA_CODE,AREA_NAME,REGION_CODE,AREA_NAME_CN from CDM_AREA";
    OracleXMLQuery query = new OracleXMLQuery(conn,selectSQL);
    query.setEncoding("UTF-8");
    String str = query.getXMLString();
    System.out.println(str);
    conn.close();
    }catch(SQLException e){
                   e.printStackTrace();
    Exception:
    Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character.
         at oracle.xml.sql.core.OracleXMLConvert.getXML(OracleXMLConvert.java:1015)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:267)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:221)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:198)
         at procedure.OracleXmlParse.main(OracleXmlParse.java:34)
    The column that store chinese is AREA_NAME_CN .When "selectSQL " is equal to "select AREA_CODE,AREA_NAME,REGION_CODE from CDM_AREA",the program is ok.
    Please help.
    Message was edited by:
    user542404
    Message was edited by:
    user542404

    So, What is the solution ? Is there something I can do in my code ? My program gives the exception and stops. I am not even interested to fetch the data, which are giving this error.

  • JDeveloper Error ! oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode

    Hi All,
    I have 2 identical table structures with different data in Oracle.
    I am using following xsql and XSLT sheet to produce xml files with these tables. ( have to run twice xsql file by changing the Table names )
    When I run the xsql file with Table1, it works fine, produced the xml file on the browser.
    But when I run the xsql file with Table2, it gives following error message:
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'http://192.10.1.14:8988/Workspace_ONIX-ONIX2-context-root/untitled1.xsql'. Line 1, Position 1
    oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character.
    ^
    These two are my xsql and xslt files:
    - - - - xsql file - - - -
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <?xml-stylesheet type="text/xsl" href="TT14.xsl"?>
    <xsql:query connection="Connection1" id-attribute="" tag-case="lower"
    rowset-element="LIST" row-element="DEPA"
    xmlns:xsql="urn:oracle-xsql">
    SELECT * from TT26
    </xsql:query>
    TT14.xsl file
    <xsl:stylesheet version="1.0" encoding="UTF-8" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method ="xml" indent= "yes" encoding="UTF-8"/>
    <!--DOCTYPE ONIXmessage SYSTEM "http://www.editeur.org/onix/2.1/reference/onix-international.dtd"-->
    <xsl:template match ="list">
    <BBMessage>
    <<xsl:for-each select="depa">
    <Product>
    <RecordReference>
    <xsl:value-of select="wai"/>
    </RecordReference>
    <NotificationType>
    <xsl:value-of select="wantype"/>
    </NotificationType>
    </Product>
    </xsl:for-each>
    </BBMessage>
    </xsl:template>
    </xsl:stylesheet>
    All comments are highly welcomed...
    Thanks

    Hi Deepak
    Thanks for the post, but I am afraid that's not the issue with the error.
    I changed both encoding to "UTF-8" still i get the problem.
    I tried even without the XSLT sheet, still I have the problem..
    - - - - xsql file ---
    &lt;?xml version = '1.0' ?&gt;
    &lt;!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    &lt;?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?&gt;
    --&gt;
    &lt;page xmlns:xsql="urn:oracle-xsql" connection="Connection1"&gt;
    &lt;xsql:query max-rows="-1" null-indicator="no" tag-case="lower"&gt;
    select * from Table2
    &lt;/xsql:query&gt;
    &lt;/page&gt;
    - - - - Result ----
    &lt;?xml version="1.0" ?&gt;
    - &lt;!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    &lt;?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?&gt;
    --&gt;
    - &lt;page&gt;
    &lt;error&gt;oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character.&lt;/error&gt;
    &lt;/page&gt;
    Any Comment ???
    Thanks

  • BAM Server stopped working - Cannot connect to the Oracle BAM services

    Hi,
    On logging into the OracleBAM page, I get Error 500 - Internal Server Error.
    Caused by: java.lang.reflect.InvocationTargetException
    Caused by: oracle.bam.common.remoting.ServiceUnavailableException: BAM-00223: Service "interface oracle.bam.adc.common.core.IDataStore" is unavailable.
    Caused by: oracle.bam.adc.api.exceptions.ServerUnavailableException: BAM-01261: Cannot connect to the Oracle BAM services.
    In the server startup log I find the following error before the server state changed to RUNNING
    BAM-01324: Unable to establish BAM administrator account.
    java.lang.Exception: BAM administrator account OracleSystemUser does not have administrator privileges.
    How do I fix this? Help Please!
    Also, is there a way to bring my BAM installation back to its vanilla state? Maybe run the Repository Creation Utility once more? Are there any files on the server that has to be cleaned?
    Thanks
    Alosh

    Hello SOA gurus,
    We're getting the same error as well. Our's a Linux environment and we've configured 2 managed servers (soa_server and bam_server)
    Log file for the bam_server throws up this error message periodically. Looks like the other server doesn't. Does this message pertain to only BAM server ? (I'm new to SOA suite).
    Also, is this a show stopper ? I've seen the managed server going down at times and wasn't sure if it was due to this error. Don't know if this error can be ignored or need to fix.
    Can someone help on how to fix this really soon please ?
    Thanks
    Muthu

  • Exception:[java.lang.IllegalArgumentException: Cannot cast 02 to boolean]

    Hi Friends,
    I am facing a issue in mapping. My scenario is IDOC to JDBC.
    I have done mapping in the give below way.
    If segment1 and segment2 both exists and attyp(field of segment1) is equal to '00' or '01' then segment1 replicate into table.
    I am facing a error while testing the mapping is:
    RuntimeException in Message-Mapping transformation: Exception:[java.lang.IllegalArgumentException: Cannot cast 02 to boolean] in class com.sap.aii.mappingtool.flib3.Bool method or[02, 01, com.sap.aii.mappingtool.tf3.rt.Context@459926e5]
    Kindly suggest me on this.
    Regards,
    Narendra Goyal

    My Mapping in such a way:
                              01      attyp
                                \          \               segment1
                                or   -  equals           \
                                 /          \                then
                               02         and   -    if              ->       Table
    segment1 - exists   \      /                 else
                                  and                      /
    segmen2 - exists   /             some more condition

  • Reg:(uncaught Exception :width/offset argument cannot be negative or exceed the text length)

    hi all,
        I just completed my application and import the COD File in Blackberry simulator 8300 . In my mobile after login click on button it throws error and exit the application.
    It throws "uncaught Exception:width/offset argument cannot be negative or exceed the text length"
    Kindly give suggestion

    Hello,
    You should ask in the
    Lightswitch forum.
    If this WAS in the Lightswitch forum, I suppose you should ask in Microsoft's ASP.Net forums:
    http://forums.asp.net/
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog:http://unlockpowershell.wordpress.com
    My Book:Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • In unicode program, the "-" character cannot appear in names, as it ......

    Hello,
    Very Good Evevning!
    When I am actiavting my program I am receiving the following error message.
    In unicode program, the "-" character cannot appear in names, as it does here in the name "CHAR-".
    What is this error message and what does it mean...?
    Any suggetsions would be appreciated...
    Regards,
    Kittu

    Hello,
    When we activate, it does not throw any error message...The above Unicode error message will not stop us from activating our program.
    It seems that this is due to inconsistency between the servers...If any one has any explonation regarding the Above Unicode error then please let me know.
    Regards,
    Kittu

  • Xsql exception

    I got this xsql exception and I can't figure out why?
    "Oracle XSQL Programmatic Page Processor 1.0.4.0 (Production) XSQL-007: Cannot acquire a database connection to process page. Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))."

    This means your <connection> information in your XSQLConfig.xml file is not configured properly for your database. Things that could be wrong are:
    [list][*]the database machine name[*]the database SID[*]the database port number[list]

  • Karin cannot map suppliers anymore in MDM in Sourcing Business Warehouse.

    Hi
          Karin cannot map suppliers anymore in MDM in Sourcing Business Warehouse.Can u help me on this?
    Thanks,
        Priya.

    Hello,
    This should have been asked in the
    Windows Presentation Foundation (WPF) forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog:http://unlockpowershell.wordpress.com
    My Book:Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Windows Server R2 stop working. Cannot map network drive with my Win 7 client.

    Hi to everyone.
    I had a problem for quite some time time and even i tried to solved it till now unfortunately seems unreachable.
    I have a 2008 R2 server which is used as SQL 2005 server. My application program shared from the server. My win 7 client  use a map network drive to access my share folder from my windows server. Suddenly my clients lost my connection. Since then i
    cannot connect to the folder and i got the message
    Windows cannot access \\Server\Storage
    Check the spelling of the name. Otherwise there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.
    Details: Error code: 0x80070035 The network path was not found.
    I check out my share permissions, all seems ok. I also check out firewall, services, TCP/IP, share folders, really almost everything but still nothing.
    Does anyone have any idea how to resolve the problem.

    Yes what seems to happened is due to virus infections.
    This problem started 2 weeks a go. First i had network connection error with my client. Them my application had respond errors. Finally i lost my network drive.
    I realize that the problem was due to virus. My old antivirus program doesn't s scan any threats so i uninstalled it, and i installed Panta antivirus and i clean up my server and my clients from virus. I am sure that both are clean from virus. My antivirus
    program runs every day with no traces of infections.
    Since then i cannot see my share folders on my server side and i cannot map network drive.
    One thing that i want to avoid is re-installation of windows server 2008 R2.
    Can anyone help about this
    Thanks

  • In Unicode Programs , the "-" CHARACTER CANNOT APPEAR IN NAME

    HI,
       I am checking the routines for the transfer rules(0SRM_GLSPEND_INVOICE) in the ODS Object (0GLS_INV).
    WARNING :In Unicode programs, the "-" character cannot appear in names, as it does here in the name
    " L-LOCAL_ID"
    this is only before unicode conversion .
    thanks & regards
    subba reddy.

    HI,
       I am checking the routines for the transfer rules(0SRM_GLSPEND_INVOICE) in the ODS Object (0GLS_INV).
    WARNING :In Unicode programs, the "-" character cannot appear in names, as it does here in the name
    " L-LOCAL_ID"
    this is only before unicode conversion .
    thanks & regards
    subba reddy.

  • I have a black dialog box on my display that I cannot get rid of. It displays text of whatever I am in, apps, docs, etc, and I have been unable to get rid of it.

    I have a black dialog box on my display that I cannot get rid of. I was cleaning my keyboard and must have hit some combination of keys that caused it. It shows text announcing everything I open on the display or am looking at. Can anyone help me turn this off? Thanks.

    Hi there francone,
    It sounds like you may have the Picture-in-Picture Zoom option enabled. Take a look at the article below for more information as well as how to disable it.
    OS X Mountain Lion: Zoom content on the screen
    http://support.apple.com/kb/PH11488
    -Griff W.

  • I am trying to delete duplicate content in my iTunes library. I have stopped the download and I can see them on VIEW Displaying Duplicates, but cannot delete them with the Delete button. Can anyone assist?

    I am trying to delete duplicate content in my iTunes library. I have stopped the download and I can see them on VIEW>Displaying Duplicates, but cannot delete them with the Delete button. Can anyone assist?

    If you've paused the download (they are partially greyed out on the duplicates screen ?) then you will need to delete them from download window, you can't (as far as I know) delete partially downloaded items from that screen. When you have items downloading, or downloads that are paused, you should have a downward pointing arrow at the top right of the iTunes screen
    If you click that arrow you should get a popup window with the items that are downloading/paused - and you should be able to select and delete them (or resume their download) from there.

  • Exception Message: The form cannot connect to the data source. Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

    When opening a form in SharePoint 12013 that was created from Infopath 2013, I get the following error.
    You do not have permissions to access a database that contains data required for this form to function correctly.
    An entry has been added to the Windows event log of the server.
    Log ID:5566
    When I go to the log files on the SharePoint server. I see the following error.
    Exception Message: The form cannot connect to the data source. Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
    I am guessing this has something to do with the UDCX connection and the database.
    Can anyone help me get this fixed?

    Hi Jim,
    Please check the following kb article when it occurs 5566errro with the UDCX conection file, try the method of using the Secure Store Service to store alternate credentials for the data connection method, or the method of stating the credentials
    in the UDC file explicitly.
    Also check if it could help with setting sql server as "SQL Server and Windows Authentication mode".
    http://support.microsoft.com/kb/981684
    Thanks
    Daniel Yang
    TechNet Community Support

  • Tech Stack Validation Fails with "Cannot map library libi.so" Error

    Hi All,
    We are in the process of upgrading one of our 11.5.8 instances to 11.5.10.2. In this process we initially upgraded the database from 8.1.7.4 to 9.2.0.7 and applied all the pre-req patches required for applying the 11.5.10.2 maintenance pack as stated in the TUMS report. This also included upgrading Developer 6i patchset from patchset 18 to patchset 27. After we applied all the pre-req patches, we again ran the TUMS utility on DB and Apps. The DB report ran fine but the apps report is erroring out with the following error message:
    453952:/u02/app/product_uat11i/8.0.6/bin/f60gen: /sbin/loader: Fatal Error: Cannot map library libig.so
    Error in detail:
    FUNCTION: TXK::Techstack::txkPrintErrorMsg [ Level 1 ]
    ERRORMSG: /u02/app/product_uat11i/8.0.6/bin/f60gen not found
    STACK TRACE
    TXK::Error::printMsg('TXK::Error','/u02/app/product_uat11i/8.0.6/bin/f60gen not found') called at /u02/app/uat11iappl/au/11.5.0/perl/TXK/Techstack.pm line 3556
    TXK::Techstack::txkPrintErrorMsg('TXK::Techstack=HASH(0x140a109e0)') called at /u02/app/uat11iappl/au/11.5.0/perl/TXK/Techstack.pm line 6215
    TXK::Techstack::_getFormsVersion('TXK::Techstack=HASH(0x140a109e0)','HASH(0x141b32c50)') called at /u02/app/uat11iappl/au/11.5.0/perl/TXK/Techstack.pm line 6149
    TXK::Techstack::txkGetFormsVersion('TXK::Techstack=HASH(0x140a109e0)','undef') called at /u02/app/uat11iappl/au/11.5.0/perl/TXK/Techstack.pm line 6518
    TXK::Techstack::txkIsFormsPS15('TXK::Techstack=HASH(0x140a109e0)') called at /u02/app/uat11iappl/au/11.5.0/perl/TXK/Validate.pm line 1001
    eval {...} called at /u02/app/uat11iappl/au/11.5.0/perl/TXK/Validate.pm line 999
    TXK::Validate::ProcessActions('TXK::Validate=HASH(0x14075d080)','HASH(0x14075ddd0)') called at /u02/app/uat11iappl/fnd/11.5.0/patch/115/bin/txkVal11510MP.pl line 206
    require /u02/app/uat11iappl/fnd/11.5.0/patch/115/bin/txkVal11510MP.pl called at /u02/app/uat11iappl/au/11.5.0/perl/TXK/RunScript.pm line 105
    TXK::RunScript::require('TXK::RunScript','/u02/app/uat11iappl/fnd/11.5.0/patch/115/bin/txkVal11510MP.pl') called at /u02/app/uat11iappl/au/11.5.0/perl/TXK/Script.pm line 177
    eval {...} called at /u02/app/uat11iappl/au/11.5.0/perl/TXK/Script.pm line 177
    TXK::Script::run('TXK::Script=HASH(0x140012b70)','/u02/app/uat11icomn/temp','/u02/app/uat11iappl/fnd/11.5.0/patch/115/bin/txkVal11510MP.pl') called at /u02/app/uat11iappl/fnd/11.5.0/patch/115/bin/TXKScript.pl line 106
    TXK:Validate:ProcessActions: Conditional method - txkIsFormsPS15 completed successfully.
    The report got generated though and is showing the status as "FAIL" for the Developer 6i version.
    We have checked the LD_LIBRARY_PATH setting and it looks good.
    Please advise.
    Thank You.

    Hi,
    This also included upgrading Developer 6i patchset from patchset 18 to patchset 27Do you mean to Developer Patchset 19?
    453952:/u02/app/product_uat11i/8.0.6/bin/f60gen: /sbin/loader: Fatal Error: Cannot map library libig.soDid you relink all executable files as mentioned in the Upgrade Developer document?
    Regards,
    Hussein

Maybe you are looking for

  • The Application Takes long time to Start

    Hello All, We ar eon Unix->64 Bit-> Essbase 11.1.1.3. Problem Description : The application is taking long to start up. around 5 to 6 minutes. This is very first time it is happening. There were no specific changes done to the application in the rece

  • I can't add a contact on my iphone - any suggestions?

    I can't add a contact as there is no + sign on my screen and I have all software updates. Has anyone else had this problem?

  • Need help using WITH clause

    I have an update statement that is using the same suquery twice. I am not usre if WITh clause be used in update statements? Is there a way the below statement can be modified to use WITH clause? UPDATE EMP_TRACKING_LIST L SET ACTIVE_FLAG = DECODE((SE

  • Bluetooth support for Windows Vista

    Since pairing my Curve 8900 with my Windows Vista laptop I have two "Bluetooth Peripheral Devices" in Device Manager that report the status "This device is not configured correctly. (Code 1)There is no driver selected for the device information set o

  • Long Text 0000000015120044ZOH ID ZOH language EN not found

    Hi Good day, i am trying to Create, Save and Read the long Text. for that i have done the following. 1. SE75 Created the Object and Object ID  Ex : Now when i implement the logic in the Program, at the end when i execute , 1. it does the CALL FUNCTIO