Can't get matching xdb6.jar, xmlparserv2.jar and ojdbc6.jar

No matter what I try, they are always somewhat different and I'm getting exceptions with JDBC on either setSQLXML or on .getString() once I retrieved the SQLXML object and want to get the content back or I'm downright getting "oracle.xdb.XMLType cannot be cast to java.sql.SQLXML"
How is it possible that Oracle who owns Java and OracleDB can't make a working Java driver? I just want to be able to work with XML, I didn't know this was asking much. I have OracleXE installed.

Welcome to the forum!
Whenever you post you need to provide ALL of the product and version information applicable to the question or issue you are asking about
>
No matter what I try, they are always somewhat different and I'm getting exceptions with JDBC on either setSQLXML or on .getString() once I retrieved the SQLXML object and want to get the content back or I'm downright getting "oracle.xdb.XMLType cannot be cast to java.sql.SQLXML"
>
Before you submit a question or issue use the 'Preview' tab so you can see it as it will display. Then read your entire submission and ask yourself:
>
Could I answer a question like that based ONLY on the information that was provided?
>
For this thread the answer would be NO!
All you have done is complain. That is basically the equivalent of a five year old saying 'Mommy, my tummy hurts'.
>
No matter what I try
>
What did you try? You haven't posted ANY information about what you are even doing, what jars, tools or code you are doing it with or HOW you are doing it.
>
I'm getting exceptions with JDBC on either setSQLXML or on .getString() once I retrieved the SQLXML object
>
What exceptions? You haven't posted ANY exceptions or any of the code that caused those exceptions.
Retrieved WHAT SQLXML object? Retrieved from where? What is the full name and version of the database you are using? For Oracle that would be the 4 digit version as returned by 'SELECT * FROM V$VERSION'. Oracle DB doesn't have any SQLXML objects; it has XMLTYPE columns. Is that what you are trying to access?
>
Can't get matching xdb6.jar, xmlparserv2.jar and ojdbc6.jar
>
Where did you get them from? How did you get them? How do you know that they don't match? What is the full name and version of the jars that you are using?
Have you used this functionality before? Do you know how to use it? If you have never used it and have no expertise with it we need to know that so we can tell you how to get up to speed so you can use it successfully.
Since you haven't provided ANY of the information needed to provide any specific suggestions all we can do is assume that you are using the last, current version of Java and all jars files and have never used the functionality. In that case you need to start at the beginning.
Review the relevant sections of the JDBC Developer's Guide
http://docs.oracle.com/cd/E18283_01/java.112/e16548/jdbcvers.htm#BABGHBCC
>
SQLXML Type
One of the most important updates in JDBC 4.0 standard is the support for the XML data type, defined by the SQL 2003 standard. Now JDBC offers a mapping interface to support the SQL/XML database data type, that is, java.sql.SQLXML. This new JDBC interface defines Java native bindings for XML, thus making handling of any database XML data easier and more efficient.
The oracle.jdbc.getObjectReturnsXMLType Property
In Oracle Database 10g and earlier versions of Oracle Database 11g, Oracle JDBC drivers supported the Oracle SQL XML type (XMLType) through an Oracle proprietary extension. XML values were represented by instances of the oracle.xdb.XMLType class and the SQL XMLType values were read and set through the JDBC standard getObject, setObject, and updateObject methods.
The JDBC standard requires the getObject method to return an instance of java.sql.SQLXML type when called on a SQL XML type column. But, the earlier versions of Oracle JDBC drivers return an instance of oracle.xdb.XMLType. This does not conform to the JDBC standard.
The current release of Oracle JDBC drivers conform to the JDBC standard with the introduction of a new connection property, oracle.jdbc.getObjectReturnsXMLType. If you set this property to false, then the getObject method returns an instance of java.sql.SQLXML type. You can achieve this by using the following command line option while compiling your program with javac:
-Doracle.jdbc.getObjectReturnsXMLType="false"
If you depend on the existing Oracle proprietary support for SQL XMLType using oracle.xdb.XMLType, then you can change the value of this property back to true by using the following command line option:
-Doracle.jdbc.getObjectReturnsXMLType="true"
The value of the oracle.jdbc.getObjectReturnsXMLType property is a String representing a boolean value of either true or false. If the value of this property is true, then the getObject method returns oracle.xdb.XMLType instances, when called for a SQL XMLType column. This is the deafault value of the oracle.jdbc.getObjectReturnsXMLType property. If the value of this property is false, then the getObject method returns java.sql.SQLXML instances. This is the standard JDBC-compliant mode.
Note:
The oracle.jdbc.getObjectReturnsXMLType property affects only the result of the getObject method. All other methods conform to the JDBC 4.0 standard regardless of the value of the property.
>
The exception that you are getting
>
oracle.xdb.XMLType cannot be cast to java.sql.SQLXML
>
is telling that the XMLType is NOT an SQLXML type so you can't use it as one. That doc section above should tell explain that those are two DIFFERENT types. You use one or the other depending on which version of the functionality you want to use. You can use the older 'non-JDBC' standard or the new 'JDBC' standard. But you can't mix the two.
Review that entire chapter of the doc and see if that helps.
If not then you need to provide ALL relevant information if you need more help:
1. Java version
2. DB name and version
3. JAR file names and versions
4. Java code that demonstrates the problem
5. EXACT copies of any and all exceptions and errors that occur
6. A description, in English, of what you are trying to do and how you are trying to do it.
When you post use \ on the line before and on the line after any code to preserve formattting. See the FAQ for other formatting guidelines. Use the 'Preview' tab to see what your post will look like before you submit it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • [svn:fx-trunk] 7796: get the correct locales of batik and xerces jars into the build

    Revision: 7796
    Author:   [email protected]
    Date:     2009-06-12 13:01:48 -0700 (Fri, 12 Jun 2009)
    Log Message:
    get the correct locales of batik and xerces jars into the build
    bug: https://bugs.adobe.com/jira/browse/SDK-21565
    qa: i18n team (make sure they're all there)
    checkintests: pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21565
    Modified Paths:
        flex/sdk/trunk/build.xml

    Originally posted by: rosec.messagingdirect.com
    I'll look into it; I'm a bit under the gun here and can't easily upend
    my development environment at this time, but hopefully I can look into
    it early next week. Thanks for the pointer.
    Daniel Megert wrote:
    > Chris Rose wrote:
    >> I don't know if this has been asked before (and you'd be amazed at how
    >> hard it is to find specific information when your search query is
    >> "eclipse 100% cpu usage opening class files in a jar"!) but, well,
    >> that's what I'm getting:
    >>
    >> When I open a class file in the editor that is contained in a jar file
    >> anywhere on a Java project's classpath, one of my processor pegs at
    >> 100% usage for anywhere from 15-120 seconds and eclipse becomes
    >> non-responsive for that period of time, not even redrawing the UI.
    >>
    >> This occurs for jars as large as the jboss client jar and the weblogic
    >> 80Mb uber-jar and for jars as small as a 241kb library jar.
    >>
    >> Is there anything I can do to track down WHY this is happening? I end
    >> up having to trace into third party code a lot while debugging
    >> container behaviour and this plays merry havoc with the timeouts for
    >> remote calls, so I'm quite motivated to suss out why it's happening.
    >>
    >> Eclipse details are attached.
    > There was a bug regarding big JARs on the build path. Can you try
    > whether this still happens using 3.4 M7. If so, please file a bug report
    > with steps to reproduce. Also, please create some stack dumps while
    > waiting and attach them to the bug report.
    >
    > Dani
    Chris Rose
    Developer Planet Consulting Group
    (780) 577-8433
    [email protected]

  • How to use both ojdbc14.jar and ojdbc6.jar in same weblogic domain(weblogic12C)

    Hi all,
    I 'm having issue of using both ojdbc14.jar and ojdbc6.jar in same weblogic application and same weblogic domain in weblogic 12C environment.
    how can i do that?
    i'm currently having application developed using jdk 1.6 and ojdbc6.jar, application developed using jdk 1.4 and ojdbc14.jar.both are currently installed at same domain.
    i want to use the both ojdbc14.jar and ojdbc6.jar in same domain.
    what i previously did was renaming /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar to /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar.bak and put ojdbc14.jar in the same path when i wanna use ojdbc14.jar.
    i haven't use both in same environment before, but to go live i wanna match about requirement.pls help.
    i know the way use this by having two domains, but in the same domain i could not find a solution yet.
    Please help

    Hey
    I have the similar requirement.. Did you managed to get an option of doing it? If yes, please provide some insights
    Thanks in Advance

  • How can I get missing contacts, notes, calendar dates and reminders that are just on my old iphone onto the iCloud for transfer to my new iPhone upgrade?

    Dear wise & wondeful people:
    How can I get missing contacts, notes, calendar dates and reminders that are just on my old iphone onto the iCloud for transfer to my new iPhone upgrade? Half of my contacts, notes, ect. were on my iCloud so have happily moved to my new iPhone but the rest are completely resistant. For example, on my iCloud I have 14 missing contacts starting with the letter A alone, however they are happily viewable on my old iPhone 4S and won't budge over into the iCloud.
    There are also 3 notes missing yet still acessible on my onld iPhone 4S, the list goes on.
    Your help would be most appreciated. Thank you so much.
    BCHR

    Hi BCHR,
    If you are having issues transfering your content from your old iPhone onto iCloud so it can be transfered to your new iPhone, you may find the following articles helpful:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    http://support.apple.com/kb/HT2109
    iCloud: Troubleshooting iCloud Contacts
    http://support.apple.com/kb/TS3998
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/TS3999
    iCloud: Notes overview
    http://support.apple.com/kb/PH12081
    Regards,
    - Brenden

  • How can I get my MacBook to stay on and not sleep when lid is closed?

    How can I get my MacBook to stay on and not sleep when lid is closed?

    try this: http://www.macupdate.com/app/mac/37991/nosleep

  • I have an old iPod Classic with 80 GB (I think) of space. I saved all my songs in an external hard drive, but the iTunes library resided in an old computer (no longer working). Can I get the libray from my iPod and use it in my new computer (Windows)?

    I have an old iPod Classic with 80 GB (I think) of space. I saved all my songs in an external hard drive, but the iTunes library resided in an old computer (no longer working). Can I get the library from my iPod and use it in my new computer (Windows)?

    You might want to check your process for moving your iTunes music against this: http://support.apple.com/kb/HT4527.

  • Can I get rid of the underlined hyperlink and just have roll-over links?

    In iWeb 2009, can I get rid of the underlined hyperlink and just have roll-over links?

    You have to put them on the server where you are publishing your site to. Where are you hosting your site? If it's a MobileMe account then you have two options:
    1 - put the photos in a folder, name it "Pics" and put that folder in your iDisk/Pictures folder. Then use the following URL: http://homepage.mac.com/YourMMe_Account_Name/.Pictures/Pic/FileName (don't forget the period before Pictures).
    2 - put the "Pics" folder with image files in your iDisk/Web/Sites folder and use the following URL: http://web.me.com/YourMMe_Account_Name/FileName.
    If you're hosting on a 3rd party server it would depend on if you're using a domain name or not. I'm not familiar with 3rd party servers so Wyodor, Ethmoid or someone that is will need to point the way.

  • I always have trouble with my mailbox. It is always asking for my passwords but everything has been verified. How can I get it to stop doing it and start working????

    I always have trouble with my mailbox. It is always asking for my passwords but everything has been verified. How can I get it to stop doing it and start working????

    There is only one thing that happens -- the Server does not respond.
    Your mac concludes that you must have entered the wrong password. That may happen once, but then other issues become more likely, and it keeps asking for a new password.
    Sometimes the Server is down for maintenance. Sometimes something is configured wrong. Some services do this on purpose to get you to use WebMail (pick up your Mail with your Browser) so they can show you some ads.

  • I have all my CDs on my iPod, my old laptop crashed. How can I get my music to the cloud and/or my iPad

    I have all my CDs on my iPod, my old laptop crashed. How can I get my music to the cloud and/or my iPad

    Hi
    Thanks for the reply, not the answer I was hoping for, one last thing if I can get the music onto a computer can I then add it to the iTunes library.
    Really don't want to have to reload it all again

  • I just upgraded my iMac to OS 10.8.5 from 10.6.8 and now I can not get the calendars on my Mac and my iPhone 4s (running iOS 8.3) to sync

    I just upgraded my iMac to OS 10.8.5 from 10.6.8 and now I can not get the calendars on my Mac and my iPhone 4s (running iOS 8.3) to sync.  I already tried replacing the calendars on the phone with those on my computer but nothing happened.

    Set up iCloud
    Set up iCloud (2)

  • My iPhone 4 just went black all of the sudden.  I can't get it to turn back on and the battery wasn't dead.  Anyone know what causes this and how to get it back on?

    My iPhone 4 just went black all of the sudden.  I can't get it to turn back on and the battery wasn't dead.  Anyone know what causes this and how to get it back on?

    This has happend to my ipod once...
    did u keep it somewhere so tightly pressed??
    that might be a reason. Don't worry it will turn on after some time, try connecting it to your computer or charger and see if it helps!!...

  • HT5500 how can i get "via iOS" in my postings and comments from my iPhone?

    how can i get "via iOS" in my postings and comments on facebook from my iPhone?

    I have the same issue.  NO "via ios" ONLY "via mobile"
    iPhone 4 - IOS 6.0.1
    iPad 3rd Generation IOS 6.0.1
    FB App installed both devices from Settings//Facebook/Install App using IOS FB Integration with my username/password.
    Troubleshooting Done to this point -
    Uninstalled FB on iPhone and reinstalled again using the FB in Settings/Facebook/Install App. Entered my username/password in Settings/Facebook.
    Turned Wi-Fi off and posted using Cellular connection  (says via mobile).
    Turned Cellular off and posted connected to Wi-Fi  (says via mobile)
    Set iPad 3 back to factory default.
    Reinstalled everything fresh (did not use iCloud backup).
    Installed FB app from Settings/Facebook/Install App. and entered username/password in Settings/Facebook.
    Turned Wi-Fi off and posted using 4G cellular connection.  (says via mobile)
    Turned 4G Cellular off and posted via Wi-Fi  (says via mobile)
    ALL of my posts from both devices show as being "via mobile". This is extremely frustrating since everyone else in the world seems to post status/comments/pictures/etc from their iPhones and iPads and get the "via IOS" except me.
    At first I thought maybe it was an iPhone 4 issue, but the iPad 3 is the newest version of iPad and even it says "posted via mobile" instead of "ios". 

  • Can،t get contact my iPhone to computer and there is no service

    can،t get contact my iPhone to computer and there is no service

    Not knowing what steps were included in "all the troubleshooting possible with Apple people," I'll suggest you give the phone a chance to reprovision your cellular account.
    First turn off Wi-Fi. Then power off your phone. Hold the Sleep/Wake button until you see the power off slider. Then slide to power off. Turn the phone back on. After the phone starts watch to see if No Serive is displayed. Hopefully after 15-30 seconds that will change to the name of your cellular service provider and finally indicate LTE or 4G as well as include some dots indicating signal strength. You can then turn Wi-Fi back on.

  • How can I get Safari to remember my ID and password for a site?

    How can I get Safari to remember my ID and password for a site?
    Specifically, I would like it to remember my 14 digit library account on:  http://polaris.plano.gov/Polaris/logon.aspx
    Firefox on my old PC was able to do this no problem.  I have recently switched over to Apple.  Thanks for your help!
    FYI, I am on a new Mac Mini with OS X 10.8.3 and Safari 6.0.4.

    Some websites request the web browser to NOT autofill the username, password.  It is possible the library site is doing that. Your previous firefox on the PC may have been sufficiently old to not be able to handle such a request.  There are password managers you can get to over-ride such things (search Safari extensions).
    charlie

  • How can I get a sim card for Japan and will it work with my locked Iphone 6

    How can I get a sim card for Japan and will it work with my locked Iphone 6

    You cannot use a SIM card on a carrier locaked phone, other than a sim from the carrier the phone is locked to. You must first get the carrier it is locked to, to unlock your phone. Apple does not unlock phones.

Maybe you are looking for