Reading Advance Queuing with XMLType payload and JDBC Driver character encoding

Hi
I've got a problem retrieving the message from the queue with XMLType payload in Java.
It was working fine in 10g database but after the switch to 11g it returns corrupted string instead of real XML message. Database NLS_LANG setting is AL32UTF8
It is said that JDBC driver should deal with that automatically but it obviously don't in this case. When I dequeue the message using database functionality (DBMS_AQ package) it looks fine but not when using JDBC driver so Ithink it is character encoding issue or so. The message itself is enqueued by the database and supposed to be retrieved by dedicated EJB.
Driver file used: ojdbc6.jar
Additional libraries: aqapi.jar, xdb.jar
All file taken from 11g database installation.
What shoul dI do to get the xml message correctly?

Do you mean NLS_LANG is AL32UTF8 or the database character set is AL32UTF8? What is the database character set (SELECT value FROM nls_database_parameters WHERE parameter='NLS_CHARACTERSET')?
Thanks,
Sergiusz

Similar Messages

  • Integration Oracle Advance Queue with OSB

    We are doing integration for Oracle Advance Queue with OSB.
    I created an AQ adapter in Jdev and generate the WSDL and XSD.
    I imported both WSDL and XSD in OSB Project.
    When i am configuring the business service and selecting the WSDl i am not able to select Binding and ports, is it due to any issue in WSDL?
    Please help.
    Thanks,
    Mihir Panda

    Hi again,
    I made some adjustments to your wsdl. I added the binding part and its reference to the appropriate port.
    Now I reckon, you should be able to do your thing:
    <wsdl:definitions
    name="enq"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/aq/Applicatio90/Project4/enq"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/aq/Applicatio90/Project4/enq"
    xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns:obj1="http://xmlns.oracle.com/xdb/APPS"
    xmlns:ph="http://xmlns.oracle.com/pcbpel/adapter/aq/headers/payloadheaders/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <plt:partnerLinkType name="Enqueue_plt" >
    <plt:role name="Enqueue_role" >
    <plt:portType name="tns:Enqueue_ptt" />
    </plt:role>
    </plt:partnerLinkType>
    <wsdl:types>
    <!-- Define AQ Headers = Payload Headers -->
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/aq/headers/payloadheaders/"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:obj1="http://xmlns.oracle.com/xdb/APPS" >
    <import namespace="http://xmlns.oracle.com/xdb/APPS" schemaLocation="xsd/APPS_WF_EVENT_T.xsd"/>
    <complexType name="enqHeaderCType" >
    <sequence>
    <!-- payload header -->
    <element name="PayloadHeader" type="xs:string" />
    </sequence>
    </complexType>
    <element name="enqHeader" type="ph:enqHeaderCType" />
    </schema>
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns="http://www.w3.org/2001/XMLSchema" >
    <element name="opaqueElement" type="base64Binary" />
    </schema>
    </wsdl:types>
    <wsdl:message name="Enqueue_msg">
    <wsdl:part name="opaque" element="opaque:opaqueElement"/>
    </wsdl:message>
    <wsdl:message name="Header_msg">
    <wsdl:part name="Header" element="ph:enqHeader"/>
    </wsdl:message>
    <wsdl:portType name="Enqueue_ptt">
    <wsdl:operation name="Enqueue">
    <wsdl:input message="tns:Enqueue_msg"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="Enqueue_Binding" type="tns:Enqueue_ptt">
         <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <wsdl:operation name="Enqueue">
                   <soap:operation soapAction="put_your_own_URI_here"/>
                   <wsdl:input>
                        <soap:body use="literal"/>
                   </wsdl:input>
              </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="EnqueueService">
         <wsdl:port name="Enqueue_ptt" binding="tns:Enqueue_Binding">
              <soap:address location="No Target Adress"/>
         </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Good luck.
    Regards,
    Ronald

  • MacPro with both Leopard and Tiger drives. Want to switch iTunes How

    I am running a MacPro with both Leopard and Tiger drives. I finally want to switch everything to Leopard and its drive. I have iTunes on the leopard drive but have never used it. How can I transfer my iTunes music, iPhone Apps etc. from the Tiger iTunes to the Leopard with the least amount of fuss?

    Hello hassiman,
    For additional information regarding moving the entire library from the 10.4 partition to the 10.5 partition, see this article:
    http://support.apple.com/kb/HT1449
    If your iTunes Library is substantial, you may want to consider backing it up to an external location as well:
    http://support.apple.com/kb/HT1751
    Hope this helps,
    Charles H.

  • How many connections supports a web interface with each camera and how many Adobe Encoder clients does AMS support? AMS Standart

    How many connections supports a web interface with each camera and how many Adobe Encoder clients does AMS support? AMS Standart. We need connect by  Adobe Encoder many people. what is differences between Adobe Media Server 5 Professional, Adobe Media Server 5 Standard and Adobe Media Server 5 Extended?

    For the detailed list of differences across editions refer this link
    http://www.adobe.com/in/products/adobe-media-server-family/buying-guide-comparison.html

  • Export/import table with XMLTYPE data_type and fine_grained policy

    Hi friends!
    I'm trying to export a table with XMLTYPE and faine-grained policy.
    Source: HP-UX - Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    Target: Linux 2.6.18-238.el5 - Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    I do it thru exp/imp old utilities as mention in metalink ID 1318012.1.
    One of the things that surprised me after exp/imp is that the number of objects increased:
    Objects at Source:
    exp \"/ as sysdba\" owner=xml log=xml file=xml.dmp
    Type
    Number of Objects
    TYPE
    431
    TRIGGER
    6
    TABLE
    17
    PROCEDURE
    2
    LOB
    120
    INDEX
    17
    FUNCTION
    1
    On Target:
    imp \"/ as sysdba\" file=xml.dmp fromuser=xml touser=xml log=xml.log
    Type
    Number of Objects
    TYPE
    431
    TABLE
    32
    PROCEDURE
    2
    LOB
    429
    INDEX
    478
    FUNCTION
    1
    Why is this happening? Is it normal?
    Other problem that I found is triggers are not imported, why!?!?
    Thank you very much for your help!
    José

    Hi!
    The new squema was created empty. If I run the following query:
    select '10g', TABLE_NAME,COUNT(*)
    from  DBA_LOBS@DSN_HP
    where OWNER='XML'
    group by TABLE_NAME
    union
    select '11g', table_name,count(*)
    from  DBA_LOBS
    where OWNER='XML'
    group by TABLE_NAME
    order by 2,1
    As a result:
    Version
    Table_name
    Total
    10g
    ACTION_TABLE
    1
    11g
    ACTION_TABLE
    1
    10g
    Document1767_TAB
    14
    11g
    Document1767_TAB
    13
    10g
    Document1852_TAB
    14
    11g
    Document1852_TAB
    13
    10g
    Document1941_TAB
    16
    11g
    Document1941_TAB
    15
    10g
    Document2016_TAB
    14
    11g
    Document2016_TAB
    13
    10g
    Document2087_TAB
    13
    11g
    Document2087_TAB
    12
    10g
    IBT_XML_RECIBIDOS
    1
    11g
    IBT_XML_RECIBIDOS
    1
    10g
    LINEITEM_TABLE
    2
    11g
    LINEITEM_TABLE
    2
    10g
    PURCHASEORDER
    7
    11g
    PURCHASEORDER
    7
    10g
    PurchaseOrder1145_TAB
    9
    11g
    PurchaseOrder1145_TAB
    7
    10g
    RICARDO
    13
    10g
    RICARDO2
    1
    11g
    RICARDO2
    1
    10g
    RITNTFER
    1
    11g
    RITNTFER
    1
    10g
    RITNTFRE_08
    13
    11g
    SYS_NT3+LEU6vbfGLgQ18DLgrURw==
    69
    11g
    SYS_NT3+LEU6vffGLgQ18DLgrURw==
    76
    11g
    SYS_NT3+LEU6vjfGLgQ18DLgrURw==
    63
    11g
    SYS_NT3+LEU6vpfGLgQ18DLgrURw==
    1
    11g
    SYS_NT3+LEU6vqfGLgQ18DLgrURw==
    2
    11g
    SYS_NT3+LEU6vTfGLgQ18DLgrURw==
    65
    11g
    SYS_NT3+LEU6vXfGLgQ18DLgrURw==
    66
    10g
    TESTCLOB
    1
    11g
    TESTCLOB
    1
    There are many new tables created...I suppose because the differences between versions...
    Any ideas?
    Thanks a lot!
    José

  • Help to read a table with data source and convert time stamp

    Hi Gurus,
      I have a req and need to write a ABAP prog. As soon as i excute ABAP program it should ask me enter a data source name, then my ABAP prog has excute teh code, in ABAP code i have to read a table with this data source as key, sort time stamp from table and should display the data source and time stamp as output.
    As follows:
    Enter Data Source Name: 
    Then user enters : 2lis_11_vahdr
    Then out put should be "Data source  :"  10-15-2008.
    The time stamp format in table is 20,050,126,031,520 (YYYYMMDDhhmmss). I have to display as 05-26-2005. Any help would be apprciated.
    Thanks,
    Ram

    Hi Jayanthi Babu Peruri,
    I tried to extract YEAR, MONTH, DAY separately and using
    EDIT MASK written it.
    Definitely there will be some STANDARD CONVERSION ROUTINE will be there. But no idea about it.
    DATA : V_TS      TYPE TIMESTAMP,
           V_TS_T    TYPE CHAR16,
           V_YYYY    TYPE CHAR04,
           V_MM      TYPE CHAR02,
           V_DD      TYPE CHAR02.
    START-OF-SELECTION.
      GET TIME STAMP FIELD V_TS.
      V_TS_T = V_TS.
      CONDENSE V_TS_T.
      V_YYYY = V_TS_T.
      V_MM   = V_TS_T+4(2).
      V_DD   = V_TS_T+6(2).
      V_TS_T(2) = V_MM.
      V_TS_T+2(2) = V_DD.
      V_TS_T+4(4) = V_YYYY.
      SKIP 10.
      WRITE : /10 V_TS," USING EDIT MASK '____-__-________'.
              /10 V_YYYY,
              /10 V_MM,
              /10 V_DD,
              /10 V_TS_T USING EDIT MASK '__-__-__________'.
    If you want DATE alone, just declare the length of V_TS_T as 10.
    Regards,
    R.Nagarajan.
    We can -

  • Reader X integration with Windows Explorer and protected mode

    Hello all.
    I'm having some problems with Adobe Reader X under Windows 7 and it seems that I need to disable protected mode. I disabled it by unchecking the related option in edit-preferences, also I created the registry key for the local user (bProtectedMode = 0).
    After doing that, the protected mode seems to be disables when I open pdf documents with Reader X, but it's still enabled when previewing documents thumbnails in windows explorer. The issue is that when I open a folder containing pdf files and left click or right click them, two AcroRd32.exe processes spawn and it seems to me that it's a protected mode behaviour (broker process + sandboxed renderer process).
    I'd like to know if it's possible to fully disable protected mode so that it remains disabled even when I'm navigating directories with Windows Explorer and documents are previewed. My current Adobe Reader version is 10.1.3.
    Thank you very much.

    Hi Fernando,
    Here's a statement that hopefully helps or at least solves your mystery:
    While Protected Mode can be disabled for PDFs viewed with the product, Adobe continues to protect you when 3rd party software invokes a Reader process; that is, Protected Mode sandboxing cannot be disabled for shell extensions. For example, when you use Windows Explorer to preview a PDF in the Preview Pane, it starts a Reader process to display the preview. In such cases, Task Manager shows that two AcroRd32.exe processes spawn and that the operation is occurring with Protected Mode enabled.
    Ben

  • Need help with MS SQL server JDBC driver

    Anyone has experience getting ACS working with SQL2005? We keep getting ‘com.adobe.adept.persist.DatabaseException: java.sql.SQLException: No suitable driver’
    We’re using sqljdbc.jar and sqljdbc4.jar that downloaded from Microsoft website. We added this to every library folder under tomcat, JRE and SDK but it did not help. Any suggestion will be helpful.
    Thanks-

    Hi,
    We have ACS with SQL Server 2005 Std correctly working.
    We have this settings:
    ############ SQL Server Connection ############
    com.adobe.adept.persist.sql.driverClass=com.microsoft.sqlserver.jdbc.SQLServerDriver
    com.adobe.adept.persist.sql.connection=jdbc:sqlserver://ip-addressSQL:PortSQL;databaseName =Adept
    com.adobe.adept.persist.sql.dialect=microsoft
    com.adobe.adept.persist.sql.user=userSQL
    com.adobe.adept.persist.sql.password=passSQL
    Wi use Microsoft SQL Server JDBC Driver 3.0 downloaded from Microsoft website (http://www.microsoft.com/download/en/details.aspx?id=21599)
    Good luck,

  • Problem with Sun Java Creator JDBC driver .....

    Hi:
    I am new to Java Studio Creator. I am using Oracle Enterprise Edition 8.0.5.0 database to get data from. Through Servers Navigator->Data Sources, I define a new datasource using default JSC JDBC driver for Oracle. However, when I try to test the connection I get the following error.
    [sunm][Oracle JDBC Driver] Internal Error: Net8 Protocol Error
    Can someone tell me what is going on here? By the way I also have Netbeans 4.0 IDE which works fine with the same database.
    -Victor bagga

    I was using the following database URL.
    jdbc:sun:oracle://autoserv.cqtel.com:1521;SID=autosvdb
    The SID is valid because I can use other JDBC drivers such as Oracle's thin driver which uses the Database URL
    jdbc:oracle:thin:@autoserv.cqtel.com:1521:autosvdb
    and it works. However, I can not use the Oracle thin JDBC driver with Sun Java Creator as it seems to be incompatible. Using this driver I can successfully define a datasource and veiw all the data and make all kind of queries through the Server Navigator window but when I try to drop a database table on to a Data Table in my project, nothing happens. If I try to Edit the query on the rowset, the GUI window does not show any Column names and display names.
    By the way, I also have an Oracle 9.x database which works just fine with Java Ctreator Studio. I really like Java Creator as I find it very productive but not being able to make it work with Oracle 8.0.5.0 takes the fun out of it.

  • Handheld and jdbc driver

    hello,
    i have to develop an application in java for handeld devices .i want to connect my handheld database through jdbc driver with the database on the desktop. .
    so is there any jdbc driver of any database available which can solve this problem.
    or is there any other way to do this?
    hoping a quich reply. thanking u
    its
    abhishek chopra
    ispan technologies

    Hi,
    Better way to connect to a database is using an intermediate JSP or servlet which receives request from client, executes SQL command on database and sends the result to the client. The reason why it is better to use this method is that any change to database will not need change in client code.

  • Pda and jdbc driver

    hello,
    i have asked this question before also .
    my question is can i use jdbc driver in handhelds(PDA) so that i can connect my database which is residing on desktop through my java program.
    i got answer that there is no jdbc driver that can be put on handhelds but now i have came to know that i can use hsqldb jdbc driver and postgresql jdbc driver in handhelds to access desktop database.
    so i am very much confused that whether i can use jdbc driver in handhelds on not?
    kindly help me
    thanking u in advance
    its
    abhishek chopra

    hi,
    thanks for reply. ya i visited that site .but its not free as u have said.
    but i inquired about hsqldb jdbc driver in their forum and mailing lists and they have said that hsqldb drivers can be used on handheld devices to access desktop database.
    same thing for postgresql jdbc driver. they all r telling that drivers came in the form of jar file and we can deploye it on handheld (pda) with the java application
    so sir how can i get confirmed about it.
    about ur another option to use intermediate servelets to access database is also good. but problem will be that when we have to access that via http call and for it we require internet connection to access to servlet which is on our lan network(if am not wrong) . i have doubt that is internet connection is required to communicate to servlet if we connect to our pda in network.
    please suggest me.
    thanking u
    its
    abhishek

  • Oracle 9.2.0.6 , JDK 5 and JDBC driver

    Hi Friends,
    At my work place they have Oracle 9.2.0.6 and now they want to user JDK 5. I find that JDBC driver only supports JDK 1.4. Can some one suggest what I need to do so that later I should not face unknown issues
    Thx
    V

    Oracle database 10.2 drivers ojdbc14.jar may also be used with JDK 5.0.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_03

  • Error class not found with Class.forName("oracle.jdbc.driver.OracleDriver")

    sorry Got the solution...!!!!
    Hi
    I am trying to connect to oracle database on the server, oracle client installed on working m/c, I have placed classes111.zip (from oracle 8) in jdk1.1.8demojrelibext folder and I have set the classpath to the ext folder. The code
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    catch(Exception e)
    when I run this code , error as
    [[ java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver ]]
    Please reply what are settings I should to to load this oracle driver,
    Thanks
    Mayank
    Message was edited by:
    user560333

    I currently have this same problem. How did you solve yours see my post Cant find suitable driver.

  • Upgrade of my PB with new hd and optical drive

    Hi all
    I have just upgraded my HD and optical drive on my powerbook to give it a bit more space and facilities.
    This is what I have done.
    1/
    HD (80GB)>>becomes HD (250GB)
    I used the WD2500BEVE to which I clone in an enclosure. Then I swap them.
    This procedure worked well, and the PB booted straight away. Although I go a little folder with an apple as a first screen for a second or 2.
    2/
    I replaced the combo drive with the Panasonic UJ-85J
    It seems to work straight out of the box, and I can burn from finder. I am still in the testing process, but so far I have been able to burn cd-R (max 24), and dvd-R(max x4 instead of 8). That is with finder.
    This is what the System Profiler gives me.
    Model: MATSHITADVD-RAM UJ-85JS
    Revision: FWR7
    Serial Number:
    Detachable Drive: No
    Protocol: ATAPI
    Unit Number: 1
    Socket Type: Internal
    Previously with my old drive, it read> Unit Number: 0
    Also the serial number is blank for the optical drive.
    The company I bought it from, checked it and told me that it was set-up as master (I guess this is from the firmware) as there isn't any jumper. We did check the System Profiler before together, and both drives (HD and optical drive) were reading Unit Number: 0
    He didn't know much about Macs so he didn't really know what Unit Number was, but guessed that 0 meant master and 1 slave?
    But here are my questions:
    Another thing that has changed, is when I play a DVD movie, the image quality is rather poor, kind of pixilated, and when I enter the full screen mode, I now have a vertical black border (about 1.5 inch) on either side of the image. I have tried with VLC and it does the same.
    Does any body knows what is happening?
    Also is it possible to test the PB with its covers open ( i.e.with KB plate) without killing the PB?
    Many thanks

    Dam I don't believe it.
    I have now played quite a lots of dvds for testing.
    They all display in a different manner. Some play full screen with a good quality, some have a few mm to a cm of black line on the right and left side (the image not expending to the full screen capabilities, some have over 1 inch of these same black lines. The video showing the black lines usually shows poor quality images, contrary to the one going full screen that are as good as before. That might be due to the excess of information in a restricted area but I really don't know.
    VLC shows exactly the same behaviors.
    On DVD player I discovered the zoom-in facility (I can't remember this before), which helps getting rid off the line, but doesn't improve the quality of the image.
    All my DVDs have been purchased in reputable shops, and to my memories, all these movies were playing in full screen mode before with a good quality.
    As I said earlier, I have also played these with an external drive, but this didn't change a thing.
    There is an other thing that I remember when I first tested the new HD in the enclosure. I did a fresh install of tiger first to see if the enclosure will cope with booting. I discover in the fresh install OSX that I had files in the trash, that were not even on my internal HD. I remember reading about HD with malicious viruses installed straight out of the factory. Could that be it?
    Although I have read also about people experiencing similar phenomenon in iTune, when one day all worked fine and the next day, they ended up with the black lines that seem to be very similar to mine.
    Please help, as I have tried all settings, and the players definitively do not behave has they used to unless it is a video without the lines.
    I am now running ClamXav to check if anything is coming up. Thats going to take a while.
    As Apple changed something?
    Thanks

  • Lenovo Flex 14 issues with touch screen and hard drive

    Dear Lenovo,
    I've just bought this laptop about 3 months ago. First the touch screen giving issue, so went to the service center and they repaired by saying there are problem with the motherboard. Then after a week, problem with windows booting and the touch screen issue still hasn't resolved. When i turn on my laptop it prompts cannot detect hard drive. I've been going to the service center multiple number of times but only worsening my problem.
    I am so frustrated now and don't know what to do. Can Lenovo replace my laptop ?
    Does anyone here have similar issue and have a solution because i just loose hope with the service center ?
    Please kindly reply me as soon as possible.
    Thank you.

    thana88,
    Sorry to hear that you have had multiple service events, and yet problems persist.
    Please send me a private message with your contact information - name, phone number and the type / serial number of your flex 14.  If you have any of the service case numbers, please include these as well..
    We can work to escalate this
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

Maybe you are looking for

  • Consuming Webservice in ABAP - ComplexType table is empty

    Hello, I've the following problem: I consume a webservice, which has two parameters as response-result. The first parameter is a simple type. The second parameter is a table type described as follows in the WSDL: - <element name="getVarListResponse">

  • Help please WD 2TB My Book not working in Seatay HDD dock (plugged in 19v laptop in WD drive!)

    Hi All, I accidently plugged in my laptop power to my WD 2TB drive and then it stopped working.  A friend suggested that I take off the casing and then buy a HDD docking station.  I bought one from Ebay and it works okay as i can see the power light

  • Adding Timestamp to Report when it was Last Run.

    This is a general Reporting requirement we need to include in some of our Reports. Is there any way we can display "Timestamp" anywhere in report indicating when it ran sucessfully priviously. If it is not possible please let me know how can I add cu

  • Black screen when opening camera

    Hi, This issue started after 1 week. When opening the camera the screen is Black. Seems like it tried to focus and all settings are available, but no picture. Turning it to the front camera works fine and here i get a wonderful picture of myself I ha

  • Missing linked photos

    Hi! I just completed a DVD and did a preview on the slideshow I added and everything was fine. Now when I play it in the DVD player the photo section doesn't work. In the computer you can start the slideshow, but the first and other slides have the b