XMLType, TopLink 1013dp3r2 = which JDBC driver supports XMLType?

I'm using the oracle thin driver 10.1.0.4 and getting this exception when reading an XMLType column that is mapped to a string:
[exec] Exception Description: The object [oracle.sql.OPAQUE@f63c6a], of class [class oracle.sql.OPAQUE], could not be converted to [class java.lang.String].
[exec] Internal Exception: java.lang.ClassCastException
[exec] at oracle.toplink.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:59)
[exec] at oracle.toplink.xdb.DirectToXMLTypeMapping.getAttributeValue(DirectToXMLTypeMapping.java:122)
Reading the forum, it seems like only certain drivers support XMLType but doesn't mention which ones.
Which JDBC drivers will get rid of this error?
Thanks,
Steve

I'm not using TopLink at all.
Right now i'm just letting the oc4j load ojdbc14dms.jar through the shared-lib "oracle.jdbc". Although now i'm gettting ClassNotFounds with XMLType because it's not in the same classloader as oracle.sql.OPAQUE. XMLType is loaded though the application classpath.
I've added some more details on this post.
Deploying XML-DB(xdb.jar) with OAS 10.3

Similar Messages

  • Which JDBC driver do I want?

    I have the oracle database on a oracle linux guest VM on a Windows 7 host.
    I want to run queries on the windows 7 host that execute in the linux oracle guest OS running the oracle database.
    I would like to run [http://squirrel-sql.sourceforge.net/|http://squirrel-sql.sourceforge.net/] and execute SQL queries and write java programs that use the jdbc drivers to execute queries on windows 7.
    Sooo.... I go to this page:
    [http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html|http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html]
    And I'm overwhelmed with choices! Can someone help me identify which JDBC driver I want?
    Oracle Database 11g Release 2 (11.2.0.3) JDBC Drivers
    SimpleFAN
    simplefan.jar (20,345 bytes), simplefan policy, javadoc
    JDBC Thin for All Platforms
         JavaDoc (6,456,081 bytes)
         README
         ojdbc5.jar (2,095,932 bytes) - Classes for use with JDK 1.5. It contains the JDBC driver classes, except classes for NLS support in Oracle Object and Collection types.
         ojdbc5_g.jar (3,426,203 bytes) - Same as ojdbc5.jar, except that classes were compiled with "javac -g" and contain tracing code.
         ojdbc6.jar (2,714,189 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.
         ojdbc6_g.jar (4,463,274 bytes) - Same as ojdbc6.jar except compiled with "javac -g" and contains tracing code.
         ojdbc5dms.jar (2,617,374 bytes) - Same as ojdbc5.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
         ojdbc5dms_g.jar (3,447,502 bytes) - Same as ojdbc5_g.jar, except that it contains instrumentation to support DMS.
         ojdbc6dms.jar (3,327,932 bytes) - Same as ojdbc6.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
         ojdbc6dms_g.jar (4,486,082 bytes) - Same as ojdbc6_g.jar except that it contains instrumentation to support DMS.
         orai18n.jar (1,656,248 bytes) - NLS classes for use with JDK 1.5, and 1.6. It contains classes for NLS support in Oracle Object and Collection types. This jar file replaces the old nls_charset jar/zip files.
         demo.zip (606,505 bytes) - contains sample JDBC programs.
         xdb6.jar (262,740 bytes) - To use the standard JDBC4.0 java.sql.SQLXML interface with JDBC 11.2.0.3, you need to use xdb6.jar (instead of xdb.jar) from the 11.2.0.3 distribution..
    Note: For platform specific JDBC-OCI libraries See Instant Client
    Thanks!
    Siegfried

    I restored the original source and compiled it on my linux VM and recieved a similar stack trace.
    Here is the result of the first command:
    [oracle@localhost conn]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-SEP-2012 20:57:19
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Start Date 28-SEP-2012 19:24:47
    Uptime 0 days 1 hr. 32 min. 32 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora
    Listener Log File /home/oracle/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=80))(PROTOCOL_STACK=(PRESENTATION=HTTP)(SESSION=RAW)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=21))(PROTOCOL_STACK=(PRESENTATION=FTP)(SESSION=RAW)))
    Services Summary...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 2 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost conn]$
    Here is the second
    [oracle@localhost conn]$ lsnrctl service
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-SEP-2012 20:58:42
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
    Services Summary...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 2 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:34 refused:0 state:ready
    LOCAL SERVER
    "N000" established:0 refused:0 current:0 max:20000 state:ready
    CMON <machine: localhost.localdomain, pid: 2750>
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=22398))
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: localhost.localdomain, pid: 2700>
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=31281))
    The command completed successfully
    [oracle@localhost conn]$
    Thanks!

  • Does JDBC driver support encryption?

    Does the JDBC driver support Oracle encryption?
    Is there a particular version of the jdbc zip file that we need?
    We're running on a Sequent, which does yet have the latest version of oracle- we're running Oracle 8.0.5.
    Is it 40 bit or 128 bit encryption?

    I have this sample code:
    String Query = "ALTER USER ? IDENTIFIED BY ? QUOTA 0 ON SYSTEM QUOTA 0 ON TEMP";
    PreparedStatement pstmt = conn.prepareStatement(Query);
    pstmt.setString(1,"\"TESTVIPIN\"");
    pstmt.setString(2,"\"abc123\"");
    pstmt.executeUpdate();
    Executing this, i get the same error. But if i try UPDATE statement, it is working fine. Is this problem with ORACLE JDBC driver (for ALTER USER...) or problem of code?
    Thanks,
    Vipin Koul

  • Which flash Drives support OS X Mavericks

    which flash drives support OS X Mavericks

    Virtually any flash drive, thumb drive, or whatever you want to call them will work with Mavericks if they have a USB or even Firewire interface. As far as I know, all of them will come formatted FAT or ExFAT and Mavericks can read and write to FAT or ExFAT volumes. Personally unless there is a necessity for compatibility with Windows boxes I generally reformat mine to Mac OS Extended (journaled) for full feature compatibility with the Mac, but that is just me.

  • Does Oracle JDBC driver support cancel()?

    In JDBC API, class Statement has a cancel method, and its support depends on the implementation of the JDBC dirver.
    Does any Oracle JDBC driver support this feature? Thanks.

    Does any Oracle JDBC driver support this feature? Thanks.
    It is supported (but not by the server-side Thin driver); the return value will be "ORA-17015 Statement was cancelled"
    cheers,
    Mary

  • Which jdbc driver should be used for sqlserver 2000 and where to put it.

    hi all,
    My odi is 11g. I met the error infor "Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]" when i tried to connect to a sqlserver2000 database.
    The questions are:
    1. which jdbc driver should be used for sqlserver 2000?
    2. which folder to put it in?
    3. how to set the physical topological "Microsoft Sql Server" to use this jdbc driver?
    failed tries:
    i downloaded the driver "SQL Server 2000 Driver for JDBC Service Pack 2" and put it in the following folders:
    1. .../oracledi/drivers, and set this path to CLASSPATH.
    2. .../oracledi/userlib didn't exist, i created it and put the driver in.
    3. .../oracledi/agent/dirvers, in which a readme file exists and told me to put drivers in this folder.
    All these works were not useful. when I start odi.sh and try to connect to sqlserver2000 database, the same error infor came up.
    my environment is:
    os: Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    java: Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
    ODI: 11g, installed in /users/oracle/odi/
    please help me,thanks a lot.
    jun
    帖子经 Jun编辑过

    Hi,
    You should check which JVM version is required by that version of the driver, I think the 2.x versions require a 1.6 JVM
    What error are you getting? If it is the "com.sunopsis.sql.c: No suitable driver", it indicates it can't find the jar file (sqljdbc.jar) for the driver you specify.
    Drivers folder in ODI 11g is under
    C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers.
    if you are using the standolone version
    On windwos :
    C:\Documents and Settings\<userName>\Application Data\odi\oracledi\userlib
    on linux
    $HOME/.odi/oracledi/userlib
    Have a read of :- http://download.oracle.com/docs/cd/E14571_01/core.1111/e16453/install.htm#CHDBIFAJ
    Thanks,
    Sutirtha

  • How do I known Which JDBC Driver Type in ConnectionPool?

    Usually, we have to specify the JDBC driver type 1, 2, 3, 4 in our programs as
    "COM.ibm.db2.jdbc.app.DB2Driver" or "COM.ibm.db2.jdbc.net.DB2Driver"
    However, when we use connection pool, we just use the Data Source class file instead e.g. "COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource" or "COM.ibm.db2.jdbc.DB2XADataSource". No program need to specify the driver.
    Why is it like that? How do I know which driver type is using in the connection pool?

    Yes, I have the same problem in a BEA environment. Which is the driver for two phase commit?
    XADatasource or ConnectionPoolDataSource?
    Do I have to provide the implementation for the ConnectionPoolDataSource?

  • Which optical drives support HiFi mp3

    OK just got this mega pc up and running...
    Neat stuff really, anyway, I've put an LG cdrw drive in it
    and all works but the abilty to play mp3s in the hifi mode(computer off)
    does any one know which cdrw drives work?
    I've read somewhere (can't find it now) that msi's drives work but was hoping
    someone here would know of other drives that will play mp3s.
    Frank

    :biggthumbsup:OK I just updated the firmware from MSI and now
    the mp3's play just fine...
    Live and learn

  • Oracle 10.1.0.5 and JDK 1.5. Which JDBC Driver?

    The driver download site does not have a driver listed for JDK1.5 and Oracle 10.2.05.
    Are the two compatible? Can I use the driver posted for JDK1.4 when I am actually running JDK 1.5?
    Thank you for your help!

    The driver download site does not have a driver listed for JDK1.5 and Oracle 10.2.05.
    Are the two compatible? Can I use the driver posted for JDK1.4 when I am actually running JDK 1.5?
    Thank you for your help!

  • Does Microsoft SQL Server 2k JDBC Driver SP3 support "trusted connections"?

    I get the following error when attempting to connect to a SQL Server instance via JDBC :-
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user '<username>'. Reason: Not associated with a trusted SQL Server connection.
    Does Microsoft SQL Server 2000 JDBC SP3 Driver support "trusted connections"?

    No, the MSDE instance I'm trying to connect to from my J2 application is configured as "Integrated Windows Authentication" ONLY (i.e not "mixed mode" and deliberately so) hence my search for a JDBC driver that supports o/s-based authentication.
    I appear to have found one now however at it appears that DataDirect's JDBC driver supports NTLM and Kerberos authenicaiton on Windows (although I haven't got it working yet).
    Thanks for your reply tho'

  • Selection of jdbc driver for oracle 8i

    Which jdbc driver should be used for connecting with oracle 8i?

    8i is not supported with the 11g driver. (Node ID:401934.1)
    But not supported does not mean not working .
    Since your database is out of support anyway you may not be looking for a supported solution, right?
    So I'd give the 11g JDBC driver a try...
    Nevertheless you should consider upgrading the database you run.
    bye
    TPD

  • DatabaseMetaData.getTypeInfo ()=NULL when use JDBC Driver 9.2.0.5

    Why DatabaseMetaData.getTypeInfo () is NULL when use JDBC Driver 9.2.0.5 to connect Oracle 9.0.1.1.1 database?
    In the following links
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_02
    the segment "Which JDBC drivers support which versions of Oracle Database?" tells us that JDBC Driver 9.2.0.5 can support Oracle 9.0.1.1.1 database.
    thanks!

    ERROR --- java.sql.SQLException: ORA-01722: &#26080;&#25928;&#25968;&#23383;

  • Where to find the useful jdbc driver

    Dear Pro.:
    now i am trying to convert my ODBC/C/Oracle project into JDBC/java/Oracle one. i used Oracle 8i database version 8.1.7., but i encounter some questions about this process:
    1. Does the Java SDK version has anything to do with the jdbc driver? i know java2 sdk's newest version is 1.4, and the jdbc is 3.0. what is the best solution for matching jdbc driver with sdk?
    2. which jdbc driver is best for Oracle, and where i can get it? i know i can get from DataDirect(15 day try out version) or Oracle. my project evnironment is simple, i run the Oracle 8.1.7 on my personal computer, that is all.
    3. should i learn SQLJ or just jdbc?
    thank you for your consulting ...

    Dear Pro.:
    now i am trying to convert my ODBC/C/Oracle project into JDBC/java/Oracle one. i used Oracle 8i database version 8.1.7., but i encounter some questions about this process:
    1. Does the Java SDK version has anything to do with the jdbc driver? i know java2 sdk's newest version is 1.4, and the jdbc is 3.0. what is the best solution for matching jdbc driver with sdk? there isn't per say an exact match between JDBC drivers spec and JDK versions
    2. which jdbc driver is best for Oracle, and where i can get it? i know i can get from DataDirect(15 day try out version) or Oracle. my project evnironment is simple, i run the Oracle 8.1.7 on my personal computer, that is all. check 8.1.7 drivers, here http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html
    3. should i learn SQLJ or just jdbc?
    thank you for your consulting ... SQLJ provides the simplicity of embeding SQL statements in Java similat to embeding SQL statements in C (a.k.a. Pro*C). In Oracle9i Database release 2, SQLJ is functionally on par wiht JDBC ( dynamic SQL, support for advanced JDBC features) - bottom line use SQLJ is you are looking for simplicity, productivity, stronger type checking.
    Kuassi

  • Which JDBC did i use

    how can i know which JDBC version did i use?
    my java is 1.4.2_06
    these was my connection parameters
    CLASSNAME=com.mysql.jdbc.Driver
    CONNECTIONSTRING=jdbc:mysql://127.0.0.1,:3306/mydb?user=root&password=adminMessage was edited by:
    xema

    The documentation of your JDBC driver most likely mentions which version of JDBC it supports.
    You can also find this out programmatically:
    Connection c = DriverManager.getConnection(...);
    DatabaseMetaData md = c.getMetaData();
    System.out.printf("The JDBC driver supports JDBC version %d.%d%n",
        md.getJDBCMajorVersion(), md.getJDBCMinorVersion());

  • Can oracle 8.1.6SDK JDBC driver talk to Oracle8.0.5 db?

    Hi,
    Can Oracle 8.1.6SDK JDBC drivers (both thin and OCI) talk to
    Oracle database 8.0.5? My web server and database server sit on
    same machine. Can I have oracle 8.1.6 JDBC driver installed in
    same oracle home directory as oracle8.0.5?
    thanks and regards
    null

    Giorgio Malvestiti (guest) wrote:
    : Lai (guest) wrote:
    : : Hi,
    : : Can Oracle 8.1.6SDK JDBC drivers (both thin and OCI) talk to
    : : Oracle database 8.0.5? My web server and database server
    sit
    : on
    : : same machine. Can I have oracle 8.1.6 JDBC driver installed
    : in
    : : same oracle home directory as oracle8.0.5?
    : : thanks and regards
    : From the FAQ page :
    : Which JDBC drivers support which versions of Oracle database?
    : JDBC 8.0.4 drivers can talk to RDBMS 8.0.4 and 7.3.4.
    : JDBC 8.0.5 drivers can talk to RDBMS 8.0.5, 804 and 7.3.4.
    : JDBC 8.0.6 drivers can talk to RDBMS 8.0.6, 8.0.5, 8.0.4 and
    : 7.3.4.
    : JDBC 8.1.5 drivers can talk to RDBMS 8.1.5, 8.0.6, 8.0.5,
    8.0.4
    : and 7.3.4.
    : JDBC 8.1.6 drivers can talk to RDBMS 8.1.6, 8.1.5, 8.0.6,
    8.0.5,
    : 8.0.4 and 7.3.4.
    : regards
    : giorgio
    Bonjourno,
    What is the URL of this FAQ ? I could not find it.
    Does the above assertions also apply to the JDK 1.2 (thin)
    driver of Oracle 8.1.6 ?
    Otherwise, there is no way to use JDK 1.2 with Oracle 7.3.4.
    Thank you,
    Jean-Pierre
    null

Maybe you are looking for

  • Enable/Disable Rows In table Control

    I m getting material number for particular material doc.  if i get N rows in output i want to disable all other rows of table control. Moderator message: please search for previous solutions to similar problems before asking. Edited by: Thomas Zloch

  • Stepper, VISA

    Hey guys, it's me again   so I have been trying to control my stepper motor, via it's driver, via VISA on LabVIEW because the driver has a UART interface.  Anyways, I have been trying to control the motor for a couple of hours now and nothing seems t

  • Why won't some of my apps open?

    My apps won't open.. When I try they just close.. But it's just apps from the app store. My safari and short cuts work.. Why is this happening?

  • RSS Feed only with original post?

    Hi, There is a way to get feed rss with only the originator of a thread? means I'd like to have only the "entry-point" not all response. For example I have rss with - original subject - Re: original subject - Re: original subject - original subject 2

  • Complex scenario....Can anyone Help...

    There is Report havin year,product,revenue as coloumn 2000,s,300 2001,a,100 2002,b,200 prompt is created on year and in drop down Value wen u click on year 2001 from drop down we get only 2001's data , but requirement is wen u click on 2001 you shoul