"java.sql.SQLException: The url cannot be null"

Hi,
I started to use the torque in my last project but when I try to insert new data to the db(i am using MySQL) I get the following error "java.sql.SQLException: The url cannot be null".
Is that error familiar to anybody ?
Regards
RCY

Hi,
Sorry for the lack of info.
1) This is my Torque.properties :
#  T O R Q U E  P R O P E R T I E S
#Torque has the ability to use multiple databases. This property
#specifies which database is to be used as the default
torque.database.default=rcy
# Torque has the ability to deal with multiple database systems.
# This property specifies the database adapter to use.
torque.database.rcy.adapter=mysql
#torque.database.jd.rcy=mysql
# The factory class that will be used to provide database connections.
torque.dsfactory.rcy.factory=org.apache.torque.dsfactory.SharedPoolDataSourceFactory
#torque.dsfactory.rcy.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
# The JDBC database driver to use when connecting to your database.
torque.dsfactory.rcy.connection.driver org.gjt.mm.mysql.Driver
# The URL that will be used to access your database. Torque's generated
# object model will perform all database operations using this URL.
# This value should reflect the database name specified in your database schema file
#torque.dsfactory.rcy.connection.url jdbc\:mysql\://localhost\:3306/rcy
torque.dsfactory.rcy.connection.url jdbc\:mysql\://127.0.0.1\:3306/rcy
#torque.dsfactory.rcy.connection.user user
#torque.dsfactory.rcy.connection.password password
torque.dsfactory.rcy.connection.user chen
torque.dsfactory.rcy.connection.password 1qazI created the db with torque and then copied the file(Torque.properties ) to my project.
2) This is my build.properties file :
# T O R Q U E  C O N F I G U R A T I O N  F I L E
# This file contains the most commonly used properties. For a
# a complete list of build properties, please refer to:
#   http://jakarta.apache.org/turbine/torque/properties-reference.xml
#  P R O J E C T
# This is the name of your Torque project. Your non-Java generated
# files will be named using the project name selected below. If your
# project=killerapp then you will have a generated:
#   killerapp-schema.sql
# The custom is then to also rename your project XML schema from
# project-schema.xml to killerapp-schema.xml. This is required
# for a few targets such as datasql, datadump, and datadtd.
torque.project = rcy
#  T A R G E T  D A T A B A S E
# This is the target database, only considered when generating
# the SQL for your Torque project. Your possible choices are:
#   axion, cloudscape, db2, db2400, hypersonic, interbase, mssql,
#   mysql, oracle, postgresql, sapdb, sybase
torque.database = mysql
#  O B J E C T  M O D E L  I N F O R M A T I O N
# These settings will allow you to customize the way your
# Peer-based object model is created.
# addGetByNameMethod
#   If true, Torque adds methods to get database fields by name/position.
# addIntakeRetrievable
#   If true, the data objects will implement Intake's Retrievable
#   interface
# addSaveMethod
#   If true, Torque adds tracking code to determine how to save objects.
# addTimeStamp
#   If true, Torque true puts time stamps in generated om files.
# basePrefix
#   A string to pre-pend to the file names of base data and peer objects.
# complexObjectModel
#   If true, Torque generates data objects with collection support and
#   methods to easily retreive foreign key relationships.
# targetPackage
#   Sets the Java package the om files will generated to, e.g.
#   "com.company.project.om".
# useClasspath
#   If true, Torque will not look in the <code>templatePath</code> directory,
#   for templates, but instead load them from the classpath, allowing you to
#   use Torque without extracted it from the jar.
# useManagers
#   If true, Torque will generate Manager classes that use JCS for caching.
#   Still considered experimental.
torque.targetPackage = com.base
torque.addGetByNameMethod = true
torque.addIntakeRetrievable = false
torque.addSaveMethod = true
torque.addTimeStamp = true
torque.basePrefix = Base
torque.complexObjectModel = true
torque.useClasspath = false
torque.useManagers = false
#  D A T A B A S E  S E T T I N G S
# JDBC connection settings. This is used by the JDBCToXML task that
# will create an XML database schema from JDBC metadata. These
# settings are also used by the SQL Ant task to initialize your
# Torque system with the generated SQL.
# sameJavaName
#   If true, the JDBC task will set the javaName attribute for the tables
#   and columns to be the same as SQL name.
torque.database.createUrl = jdbc:mysql://127.0.0.1/mysql
torque.database.buildUrl = jdbc:mysql://127.0.0.1/rcy
torque.database.url = jdbc:mysql://127.0.0.1/rcy
torque.database.driver = org.gjt.mm.mysql.Driver
torque.database.user = chen
torque.database.password = 1qaz
torque.database.host = 127.0.0.1
torque.sameJavaName = falseI hope that will help you to help me :)
Thank's

Similar Messages

  • Java.sql.SQLException: The url cannot be null" faultCode="Server.Processing

    Hi Everyone i am getting the following exception while envoking a java method from the flex using blazeds. Any help would be highly appreciated.
    Fault faultString="com.Employee.Employeedetails.connection.DAOException : java.sql.SQLException: The url cannot be null" faultCode="Server.Processing" faultDetail="null"]

    Hi Everyone i am getting the following exception while envoking a java method from the flex using blazeds. Any help would be highly appreciated.
    Fault faultString="com.Employee.Employeedetails.connection.DAOException : java.sql.SQLException: The url cannot be null" faultCode="Server.Processing" faultDetail="null"]

  • Java.sql.SQLException: ORA-01400: cannot insert NULL into ("SYSTEM"."DESCRIPTION"."TYPE")

    insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('','','',41)
    java.sql.SQLException: ORA-01400: cannot insert NULL into ("SYSTEM"."DESCRIPTION"."TYPE")
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)
    at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112)
    at oracle.jdbc.driver.T4CStatement.execute_for_rows(T4CStatement.java:474)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1125)
    at com.event.struts.InsertDetails.doPost(InsertDetails.java:78)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Unknown Source
    and i my
    Action class is
    public class InsertDetails extends HttpServlet{
    protected void doPost(HttpServletRequest req, HttpServletResponse resp)
    throws ServletException, IOException {
    // TODO Auto-generated method stub
    Connection conn = null;
    try{
    List list = (List) req.getSession().getAttribute("listbean");
    InputBean ib = (InputBean) list.get(0);
    InputBean ib1 = (InputBean) list.get(1);
    InputBean ib2 = (InputBean) list.get(2);
    InputBean ib3 = (InputBean) list.get(3);
    InputBean ib4 = (InputBean) list.get(4);
    InputBean ib5 = (InputBean) list.get(5);
    InputBean ib6 = (InputBean) list.get(6);
    InputBean ib7 = (InputBean) list.get(7);
    conn = ConnectionUtils.getConnection();
    Statement stmt = conn.createStatement();
    String sql1 = "select seq.nextval from DUAL";
    ResultSet rs1 = stmt.executeQuery(sql1);
    rs1.next();
    int event_id = rs1.getInt(1);
    //Advanced and general info
    String sql2 = "insert into EVENT_INFO (EVENT_ID,EVENT_NAME,SHORT_NAME,EVENT_START_DATE,EVENT_END_DATE,EVENT_START_TIME,EVENT_END_TIME,event_LOCATION,ADDRESS1,ADDRESS2,CITY,STATE,ZIP_CODE,COUNTRY,event_COMMENT,EVENT_OVERVIEW,EXTRA1,EXTRA2,MEMBERSHIP_OPTION,EXTRA3,EXTRA4,EXTRA5,KID,TEEN,ADULT,SENIOR,SENILE,EVENT_TYPE1,EVENT_TYPE2,DETAILED_DESCRIPTION,IS_DETAILED_DESCRIPTION_HTML,ADDITIONAL_URL,BYPASS_INFORMATION_PAGE,CANCELLATION_POLICY,ADDTIONAL_INFO) values("+event_id+",'"+ib.getName()+"','"+ib.getShortname()+"','"+ib.getStartdate()+
    "','"+ib.getEnddate()+"','"+ib.getStarttime()+"','"+ib.getEndtime()+"','"+ib.getLocation()+"','"+ib.getAddress1()+"','"+ib.getAddress2()+"','"+
    ib.getCity()+"','"+ib.getState()+"','"+ib.getZip()+"','"+ib.getCountry()+"','"+ib.getComment()+"','"+ib.getTextarea()+"','"+ib.getExtra1()+"','"+
    ib.getExtra2()+"','"+ib.getExtra3()+"','"+ib.getExtra4()+"','"+ib.getExtra5()+"','"+ib.getExtra6()+"','"+ib.getExtra7()+"','"+ib.getExtra8()+"','"+
    ib.getExtra9()+"','"+ib.getExtra10()+"','"+ib.getExtra11()+"','"+ib.getExtra12()+"','"+ib.getExtra13()+"','"+ib1.getTextarea()+"','"+ib1.getExtra1()+"','"+
    ib1.getName()+"','"+ib1.getExtra2()+"','"+ib2.getCancellation_policy()+"','"+ib2.getTextarea()+"')";
    stmt.executeQuery(sql2);
    //Description
    List list1 = (List) ib2.getList();
    DescriptionBean db = (DescriptionBean) list1.get(0);
    DescriptionBean db1 = (DescriptionBean) list1.get(1);
    DescriptionBean db2 = (DescriptionBean) list1.get(2);
    DescriptionBean db3 = (DescriptionBean) list1.get(3);
    DescriptionBean db4 = (DescriptionBean) list1.get(4);
    DescriptionBean db5 = (DescriptionBean) list1.get(5);
    DescriptionBean db6 = (DescriptionBean) list1.get(6);
    if(db.getDescription()!=" "){
    String s1 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db.getDescription()+"','"+db.getTextarea()+"','"+db.getHtmlbutton()+"',"+event_id+")";
    stmt.executeQuery(s1);
    if(db1.getDescription()!=" "){
    String s2 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db1.getDescription()+"','"+db1.getTextarea()+"','"+db1.getHtmlbutton()+"',"+event_id+")";
    stmt.executeQuery(s2);
    if(db2.getDescription()!=" "){
    String s3 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db2.getDescription()+"','"+db2.getTextarea()+"','"+db2.getHtmlbutton()+"',"+event_id+")";
    System.out.println(s3);
    stmt.executeQuery(s3);
    if(db3.getDescription()!=" "){
    String s4 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db3.getDescription()+"','"+db3.getTextarea()+"','"+db3.getHtmlbutton()+"',"+event_id+")";
    stmt.executeQuery(s4);
    if(db4.getDescription()!=" "){
    String s5 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db4.getDescription()+"','"+db4.getTextarea()+"','"+db4.getHtmlbutton()+"',"+event_id+")";
    stmt.executeQuery(s5);
    if(db5.getDescription()!=" "){
    String s6 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db5.getDescription()+"','"+db5.getTextarea()+"','"+db5.getHtmlbutton()+"',"+event_id+")";
    stmt.executeQuery(s6);
    if(db6.getDescription()!=" "){
    String s7 = "insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('"+db6.getDescription()+"','"+db6.getTextarea()+"','"+db6.getHtmlbutton()+"',"+event_id+")";
    stmt.executeQuery(s7);
    //Activity
    String sql3 = "insert into ACTIVITY (ACTIVITY_NAME,ACTIVITY_START_DATE,ACTIVITY_END_DATE,ACTIVITY_START_TIME,ACTIVITY_END_TIME,TYPE,CAPACITY,EVENT_ID) values('"+ib3.getName()+"','"+ib3.getStartdate()+"','"+
    ib3.getEnddate()+"','"+ib3.getStarttime()+"','"+ib.getEndtime()+"','"+ib3.getExtra1()+"',"+event_id+")";
    stmt.executeQuery(sql3);
    i put condition for null .But if i dont fill the fields,even then the executeQuery is executing without checking the condition.
    wht is the problem
    what i want to change in my code.

    1. Use code tags when you post code.
    2. Use prepared statements.
    3. If you have a field that requires a non-null entry then you must provide a non-null value. And for Oracle that means non-empty as well.

  • Java.sql.SQLException:ORA-01407: cannot update ("WAVESET", "TASK", "XML")

    Hi,
    We are currently facing the above mentioned error while trying to install Sun IdM 7.1 in WebSphere 6.0. The same ear works fine in all my other environments (all are WebSphere 5). This is what we did
    1. Took a copy of the ear thats works.
    2. Extract.
    3. Modified the serverrepository.xml by using the lh command. Use the newly generated xml file in the extracted folder (WEB-INF), Pack it to a new EAR
    4. Configure the datasource that will be used to communicate with the Index repository.
    5. Deploy.
    Deployment completes successfully. However, when we try to run a task, or import file using IdM admin console, we get this error 'java.sql.SQLException:ORA-01407: cannot update ("WAVESET", "TASK", "XML") to NULL'. we even checked the user permissions on this db schema. they all look good.
    We also checked if we are using the right iiop port number in lh command.
    We arent sure what could be the issue. I am not able to simulate this issue in other environment, as they all turn out to be successful.
    any pointers?
    thanks.

    I still think it's a jdbc error.what is your DB platform?
    is you ServerRepository.xml configured with a jndi data source (and that's why you use iiop)? If so then try to create a new connection through a direct DB URL like:
    lh setRepo -tDBTYPE -uURL -Uusername -Ppassword -n -oServerRepository.xml
    and then try to re-run your update command. if it fails again then please post the complete error message.. hope this helps

  • Java.sql.SQLException: ORA-01157: cannot identify/lock data file 7 - see DB

    I am deploying my application components on Oracle RAC database, when i install my app component i will run a script which creates a user and tablespace on bot rac-nodes(node1 and node2)
    as database is clustered, the user are created on 2 nodes and tablespace is stored in a shared location for two rac nodes
    i am able to successfully run my script on rac-node1 and and installed my component and when i started installing the app component on node2 getting error
    java.sql.SQLException: ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
    ORA-01110: data file 7: '/db/db/db/ora10g/10.2.0/admin/dbadmin_01.dbf'
    ORA-06512: at "ADMIN.XL_SP_DBCHECK", line 48
    ORA-06512: at line 1
    "dbadmin_01.dbf is the custom tablespace which created by me"
    i a mgetting error while installing the app component on rac-node2

    You should not create database files outside of the ASM.
    I'm not sure you can move the datafile, I would export the data from the tablespace (if there is data you need there), delete the tablespace and recreate it in the ASM, then import the data back.
    If you want to move the datafile, you can try using RMAN (from node1).
    First connect to the database with sqlplus and execute:
    alter tablespace <tbs_name> offline;Then start RMAN: rman target /
    BACKUP AS COPY DATAFILE '<file>' FORMAT '+<ASM_DG>';Then in sqlplus, execute:
    alter tablespace <tbs_name> online;I'm not sure it will work, and I hope I got the commands right because I can't check it right now.
    Good luck
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • Java.sql.SQLException: ORA-01157: cannot identify/lock data file : PLz Help

    My datafiles are in ASM file system, however the only one file ACIPEN_DATA is the one, which is not in ASM file system, and this the file which is in concern.
    We are getting the following exception in the lxkratgas1.lex1.lexmark.com when connecting to ACIPEN_DATA.
    This exception is coming up sometimes and the sometimes the file is getting processed successfully
    Caused by: java.sql.SQLException: ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
    ORA-01110: data file 9: '/oracle/SE/product/10.2.0/db_1/dbs/ACIPEN_DATA'
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1169)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
    at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:278)
    at atg.adapter.gsa.SQLStatement.executeUpdate(SQLStatement.java:725)
    at atg.adapter.gsa.Table.insert(Table.java:1378)
    at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:6272)
    ... 61 more
    ====================================================================
    We have checked the datafile, it is absolutely online.
    Can some expert jump in and resolve this issue Please.

    01157, 00000, "cannot identify/lock data file %s - see DBWR trace file"
    // *Cause:  The background process was either unable to find one of the data
    //         files or failed to lock it because the file was already in use.
    //         The database will prohibit access to this file but other files will
    //         be unaffected. However the first instance to open the database will
    //         need to access all online data files. Accompanying error from the
    //         operating system describes why the file could not be identified.
    // *Action: Have operating system make file available to database. Then either
    //         open the database or do ALTER SYSTEM CHECK DATAFILES.is this a RAC database?

  • Java.sql.SQLException: Internal error: Cannot obtain XAConnection

    Hi,
    I am getting this error .
    I have a multi data source which serves two Data source and is using load balancing
    I get the below error:
    Cannot obtain XAConnection weblogic.common.ResourceException: No good connections available.
    The complete error trace is below:
    GWMDBBean [onMessage(Message)] 09_MAY 16:24:13:165->EXCEPTION
    java.sql.SQLException: Internal error: Cannot obtain XAConnection weblogic.common.ResourceException: No good connections available.
         at weblogic.jdbc.common.internal.MultiPool.findPool(MultiPool.java:187)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:87)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:61)
         at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:1514)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1301)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:426)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:383)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:346)
         at com.iflex.fcubs.gwutil.db.GWDBUtil.getConnection(GWDBUtil.java:119)
         at com.iflex.fcubs.gwservices.db.GWMsgProcessor.getConnection(GWMsgProcessor.java:95)
         at com.iflex.fcubs.gwservices.db.inbound.GWMsgSchemaProc.processMsg(GWMsgSchemaProc.java:165)
         at com.iflex.fcubs.gw.mdb.GWMDBBean.processMessage(GWMDBBean.java:1051)
         at com.iflex.fcubs.gw.mdb.GWMDBBean.onMessage(GWMDBBean.java:371)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.processOneMessage(NewJMSMessagePoller.java:245)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.run(NewJMSMessagePoller.java:121)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.timerExpired(NewJMSMessagePoller.java:204)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
         at com.iflex.fcubs.gw.mdb.GWMDBBean.processMessage(GWMDBBean.java:1060)
         at com.iflex.fcubs.gw.mdb.GWMDBBean.onMessage(GWMDBBean.java:371)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.processOneMessage(NewJMSMessagePoller.java:245)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.run(NewJMSMessagePoller.java:121)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.timerExpired(NewJMSMessagePoller.java:204)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    The Data Sources Configuration are as below:
    <initial-capacity>15</initial-capacity>
    <max-capacity>15</max-capacity>

    This indicates that none of your datasources have been able to successfully connect to the database.
    Please check the connectivity to your database from the datasources.
    Also, you can login into the console and check if the connections are good, by doing test connection on the datasource.
    http://docs.oracle.com/cd/E21764_01/apirefs.1111/e13952/taskhelp/jdbc/jdbc_datasources/TestDataSources.html
    The error you get when you do test connection will help you to understand any connectivity issues.
    Arun

  • Java.sql.SQLException: ORA-24813: cannot send or receive an unsupported LOB

    Hello everyone:
    Our JSP application with a whole bunch of classes talks to an Oracle database using JDBC. The Oracle DB was 9i, but we upgraded to 10g. When this happened, we get the following error during processing a call that brings out a clob out of the DB.
    java.sql.SQLException: ORA-24813: cannot send or receive an unsupported LOB
    I googled the error message to find out that it is caused by the difference in versions of the Oracle.
    Thus, here is an interesting point. When the app had 10g on his side and the database being 9i, everything worked fine. But, now that they are both of 10g, it does not work.
    Does anyone have any idea what's causing this error?
    Thank you in advance for your help.
    Sincerely,
    Yosep

    Just to add in some more background to this problem...
    The app machine has Oracle 10g under c://oracle/product/10.2. Since this is only copy of Oracle, this lead me to believe that 10g is what the app is using to connect to the DB through its JDBC classes.
    Another interesting point is that the app is JSP/java solution via Tomcat. So, perhaps Tomcat provides its own JDBC kind of libraries?
    Any help or comments would be greatly appreciated.
    Yosep

  • Java.sql.SQLException:The trans ... no longer active - status: 'Unknown'

    Oracle DBA team received a stack trace from our developers about an error generated by a JAVA appilcation using a WebLogic 8.1 application server and a Oracle 9.2.0.8 (RAC) database server with a Linux 2.4 OS. No database errors were logged into the database alert or listener logs, and no trace files were generated by database server on the same day. Developers are still looking for a cause.
    Here is the info provided to us by the developers:
    Nested StackTrace:
    java.sql.SQLException:The transaction is no longer active - status: 'Unknown'. No further JDBC access is allowed within this transaction.
         weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:219)
         weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:228)
         weblogic.jdbc.wrapper.ResultSet.getMetaData(ResultSet.java:184)
         us.tx.state.rrc.common.util.QueryUtils.getSimpleResults(QueryUtils.java:455)
         us.tx.state.rrc.common.util.QueryUtils.executeSimplePS(QueryUtils.java:373)
         us.tx.state.rrc.pr.events.valueobject.BaseLeaseEvent.loadEventData(BaseLeaseEvent.java:182)
         us.tx.state.rrc.pr.events.valueobject.BaseLeaseEvent.loadEvents(BaseLeaseEvent.java:194)
         us.tx.state.rrc.pr.events.valueobject.BaseLeaseEvent.getEvents(BaseLeaseEvent.java:161)
         us.tx.state.rrc.pr.events.PREventManager.getLeaseComingleEvents(PREventManager.java:104)
         us.tx.state.rrc.pr.events.PREventManager.getAllEvents(PREventManager.java:81)
         us.tx.state.rrc.pr.events.process.AutoResolveProcess.createTrxs(AutoResolveProcess.java:80)
         us.tx.state.rrc.process.ejb.session.ProcessManagerSessionBean.initProcess(ProcessManagerSessionBean.java:427)
    Application reportedly ran okay when resubmitted later on the same day without any other changes to the environment except a RMAN hot full backup finished before the second run. Developers have been unable to reproduce application error. Any ideas on where the developers should look for a more definitive definition of application errors?

    That message is a WLS-resident event. It means that the WLS-managed transaction
    for which the thread/JDBC connection was operating, has already finished, whether by
    having completed normally or having been rolled back.

  • Java.sql.SQLException: The TCP/IP connection to the host  has failed.

    Hello. I hope you had a happy new year! Now its back to work.
    I am having a problem connecting to a remote SQL Server DB. I am using NetBeans 5.5 and the latest J2EE. I am able to see the tables in the IDE and bind objects to data. But when I run it it gets this:
    java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: no further information
    at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:100)
    at com.sun.sql.rowset.internal.CachedRowSetXReader.connect(CachedRowSetXReader.java:344)
    at com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:126)
    at com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:968)
    at com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1428)
    I checked the SQL Server Configuration manager on that machine and TCP/IP connections are allowed. What else could be wrong?
    Thank You.

    "Connection refused" means that the client sends a packet saying "I would like to connect to port number NNNN please" to the server computer, and the server computer's OS sends the reply "there is no process listening to that port on the network interface you are using".
    The database server is not running, or running but not listening to TCP/IP connections, or at a different port from what you think, or listening to only selected network interfaces (it is possible for a process to listen to a specific interface or a wildcard for all interfaces). A less likely scenario is that a firewall is sending the "connection refused" message.
    First aid check list for "connection refused":
    - Check host name in connect string.
    - Check port number in connect string.
    - Try numeric IP address of server host in connect string, in case name server is hosed.
    - Are there any firewalls between client and server blocking the port.
    - Check that the db server is running.
    - Check that the db server is listening to the port. On the server, try: "telnet localhost the-port-number". Or "netstat -an", there should be a listening entry for the port. You need to configure the database to accept TCP connections; the server documentation or google should explain how.
    - Try "telnet server-host-name the-port-number" from the client, to see if firewalls are blocking it.
    - If "telnet" fails: try telnet with the numeric ip address.
    - If "telnet" fails: does it fail immediately or after an obvious timeout? How long is the timeout?
    - Does the server respond to "ping serverhost" or "telnet serverhost" or "ssh serverhost"?

  • Error on Expression Query - java.sql.SQLException: DSRA9420E

    We are getting the below error when we execute an Expression query. Other queries seem to be working fine.
    Has anyone seen this error?
    Any help or suggestions are welcome.
    Thanks
    ERROR -
    java.sql.SQLException: DSRA9420E: Connection cannot be reassociated because child objects are still open.
    at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java:1376)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.reactivate(WSJdbcConnection.java:2201)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:2070)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:2039)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1295)
    at oracle.toplink.queryframework.SQLCall.prepareStatement(SQLCall.java:185)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:635)
    at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:134)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(CallQueryMechanism.java:197)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.selectAllRows(CallQueryMechanism.java:567)
    at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:732)
    at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:707)
    at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:447)
    Edited by: amehta5 on Apr 12, 2012 12:13 PM

    It seems like your connection pool is having issues. How have you configured your connections?
    It seems that WebSphere connection pool is performing some sort of statement cache, and the cache statement it is trying to use is still in use.

  • Java.sql.SQLException: ORA-25191

    I'm getting this error msg when I execute my query on the tables of my database,,,,,I'm getting this problem with not all the tables.The problem is,,,
    java.sql.SQLException: ORA-25191: cannot reference overflow table of an index-organized table
    plz help me here....
    thanks....

    review your Oracle documentation and lookup the error code

  • Toplink + Websphere : java.sql.SQLException: DSRA9420E:

    Hello,
    I 'm getting this exception on a Websphere environment using Toplink to access data base. I'm getting the connection from the database using a data source configured in the application server.
    Any help is welcome ...
    java.sql.SQLException: DSRA9420E: Connection cannot be reassociated because child objects are still open., error code: CHILDREN_STILL_OPEN
    Caused by: java.sql.SQLException: DSRA9420E: Connection cannot be reassociated because child objects are still open., error code: CHILDREN_STILL_OPEN
         at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java(Compiled Code))
         at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.reactivate(WSJdbcConnection.java(Compiled Code))
         at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java(Compiled Code))
         at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java(Compiled Code))
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java(Compiled Code))
         at oracle.toplink.queryframework.SQLCall.prepareStatement(SQLCall.java(Compiled Code))
         ... 60 more
    Caused by: com.ibm.ws.rsadapter.exceptions.DataStoreAdapterException: DSRA9420E: Connection cannot be reassociated because child objects are still open., error code: CHILDREN_STILL_OPEN
         at com.ibm.ws.rsadapter.AdapterUtil.createDataStoreAdapterException(AdapterUtil.java(Compiled Code))
         at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.reassociate(WSJdbcConnection.java(Compiled Code))
         at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.associateConnection(WSRdbManagedConnectionImpl.java(Compiled Code))
         at com.ibm.ejs.j2c.MCWrapper.associateConnection(MCWrapper.java(Compiled Code))
         at com.ibm.ejs.j2c.ConnectionManager.reassociateConnectionHandle(ConnectionManager.java(Compiled Code))
         at com.ibm.ejs.j2c.ConnectionManager.associateConnection(ConnectionManager.java(Compiled Code))
         at com.ibm.ejs.j2c.ConnectionManager.associateConnection(ConnectionManager.java(Compiled Code))

    you mean the WAS configuration for the data source ?
    toplink is configured so as to use the WAS datasource, and use external pooling.
    here is the complete stack trace :
    Caused by: Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.9) (Build 060118)): oracle.toplink.exceptions.DatabaseException
    Description de l'exception : java.sql.SQLException: DSRA9420E: Connection cannot be reassociated because child objects are still open., error code: CHILDREN_STILL_OPEN
    Exception interne : java.sql.SQLException: DSRA9420E: Connection cannot be reassociated because child objects are still open., error code: CHILDREN_STILL_OPEN
    Code d'erreur : 0
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java(Compiled Code))
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java(Compiled Code))
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java(Compiled Code))
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java(Compiled Code))
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java(Inlined Compiled Code))
         at oracle.toplink.internal.queryframework.CallQueryMechanism.selectOneRow(CallQueryMechanism.java(Compiled Code))
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectOneRowFromTable(ExpressionQueryMechanism.java(Inlined Compiled Code))
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectOneRow(ExpressionQueryMechanism.java(Compiled Code))
         at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java(Compiled Code))
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java(Compiled Code))
         at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java(Compiled Code))
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java(Inlined Compiled Code))
         at oracle.toplink.threetier.ServerSession.internalExecuteQuery(ServerSession.java(Inlined Compiled Code))
         at oracle.toplink.threetier.ClientSession.internalExecuteQuery(ClientSession.java(Compiled Code))
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java(Compiled Code))
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java(Compiled Code))
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java(Compiled Code))
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java(Inlined Compiled Code))
         at oracle.toplink.publicinterface.Session.readObject(Session.java(Compiled Code))
         ... 25 more
    Caused by: java.sql.SQLException: DSRA9420E: Connection cannot be reassociated because child objects are still open., error code: CHILDREN_STILL_OPEN
         at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java(Compiled Code))
         at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.reactivate(WSJdbcConnection.java(Compiled Code))
         at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java(Compiled Code))
         at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java(Compiled Code))
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java(Compiled Code))
         at oracle.toplink.queryframework.SQLCall.prepareStatement(SQLCall.java(Compiled Code))
         ... 45 more
    Caused by: com.ibm.ws.rsadapter.exceptions.DataStoreAdapterException: DSRA9420E: Connection cannot be reassociated because child objects are still open., error code: CHILDREN_STILL_OPEN
         at com.ibm.ws.rsadapter.AdapterUtil.createDataStoreAdapterException(AdapterUtil.java(Compiled Code))
         at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.reassociate(WSJdbcConnection.java(Compiled Code))
         at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.associateConnection(WSRdbManagedConnectionImpl.java(Compiled Code))
         at com.ibm.ejs.j2c.MCWrapper.associateConnection(MCWrapper.java(Compiled Code))
         at com.ibm.ejs.j2c.ConnectionManager.reassociateConnectionHandle(ConnectionManager.java(Compiled Code))
         at com.ibm.ejs.j2c.ConnectionManager.associateConnection(ConnectionManager.java(Compiled Code))
         at com.ibm.ejs.j2c.ConnectionManager.associateConnection(ConnectionManager.java(Compiled Code))
         ... 50 more

  • Java.sql.SQLException: ORA-02014

    Hello.
    We are running an application on BEA WLS 8.1 SP1 on Fedora Core1 and HP-UX, connected to an Oracle 9.2.0.4 with the appropriate driver.
    In jdbc.log we keep receiving the exception below when deploying or starting our WLS:
    SQLException: SQLState(42000) vendor code(2014)
    java.sql.SQLException: ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:830)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2391)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2672)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:572)
    at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:316)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifySelectForUpdateSupported(RDBMSPersistenceManager.java:964)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:202)
    at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:217)
    at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:184)
    at weblogic.ejb20.manager.DBManager.setup(DBManager.java:164)
    at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1004)
    at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1322)
    at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:610)
    at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3012)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2076)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2057)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2005)
    at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3136)
    at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1688)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:407)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:230)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
    at weblogic.Server.main(Server.java:32)
    It seems that the BEA deployer is trying to update a locked row in a table. Is there any experience on ORA side on how to deal with this issue? On BEA side there obviously isn't as we have not received satisfactory hints ...
    Thanks,
    Alex

    I had the same problem using INSTEAD OF in combination with VPD. When i remember correctly, for views without VPD, the FOR UPDATE NOWAIT works.
    You can overwrite the lock() method in your EntityImpl and lock the tables manually like this:try {
      getDBTransaction(  ).executeCommand( "declare v_my_table_id integer; begin "
                             + "SELECT my_table_id INTO v_my_table_id FROM mytable "
                             + "WHERE my_table_id = "
                             + getMyTableId(  )
                             + " FOR UPDATE NOWAIT; END;" );
      setLocked( true );
    } catch( RuntimeException exception ) {
        throw exception;
    }Sadly there is no SAVEPOINT support in BC4J, so if you have more than one table, better create a DB Package function that issues a savepoint, try to lock each of the tables and do a ROLLBACK TO savepoint if one of the SELECT FOR UPDATE fails.
    hth, Markus

  • How to get rid of java.sql.SQLException?

    I get a error message while executing the SQL statement select * from person where person_ID =? in a web application.
    error
    java.sql.SQLException: The requested parameter metadata is not available for the current statement.
    Thanks in advance

    i am using MySQL and NetBeans 5.5.1
    when i am using the SQL statement which does not involve user input like
    select * from travel
    then there is no error and the program is working fine.
    But when i use the statement like
    select * from travel where = ?
    the error is generated.
    java.sql.SQLException: [DataDirect]The requested parameter metadata is not available for the current statement.
    at com.ddtek.jdbc.base.BaseExceptions.createException(Unknown Source)
    at com.ddtek.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.ddtek.jdbc.base.BaseParameters.getParameterInfo(Unknown Source)
    at com.ddtek.jdbc.base.BaseParameterMetaData.getParameterType(Unknown Source)
    at org.netbeans.modules.sql.project.dbmodel.DBMetaData.getPrepStmtParameters(DBMetaData.java:1749)
    at org.netbeans.modules.sql.project.dbmodel.DBMetaData.getPrepStmtMetaData(DBMetaData.java:698)
    at org.netbeans.modules.sql.project.dbmodel.DBMetaData.getPrepStmtMetaData(DBMetaData.java:733)
    at org.netbeans.modules.sql.project.anttasks.WSDLGenerator.generateInsertSchemaElements(WSDLGenerator.java:690)
    at org.netbeans.modules.sql.project.anttasks.WSDLGenerator.modifyMessageTypes(WSDLGenerator.java:401)
    at org.netbeans.modules.sql.project.anttasks.WSDLGenerator.modifyWSDL(WSDLGenerator.java:326)
    at org.netbeans.modules.sql.project.anttasks.WSDLGenerator.generateWSDL(WSDLGenerator.java:294)
    at org.netbeans.modules.sql.project.anttasks.GenerateWSDL.execute(GenerateWSDL.java:176)
    at org. customer .tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org. customer .tools.ant.Task.perform(Task.java:364)
    at org. customer .tools.ant.Target.execute(Target.java:341)
    at org. customer .tools.ant.Target.performTasks(Target.java:369)
    at org. customer.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org. customer .tools.ant.Project.executeTarget(Project.java:1185)
    at org. customer .tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org. customer .tools.ant.Project.executeTargets(Project.java:1068)
    at org. customer .tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
    at org. customer .tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)

Maybe you are looking for

  • Burning more than one movie

    If I burn a 10-minute movie to DVD-R or DVD+R can I later burn another 10 minute move to the same DVD on the leftover space?

  • When I open iTunes, it opens for about a milisecond, then closes.

    As in the title, when I open iTunes on my Dell computer, it closes before I am able to do anything. It was working fine one night when I logged off and the next morning it was not working. I have tried re-installing, and changing firewall ports, and

  • Can't connect to 802.1x wifi

    Did anybody succeed in connecting to a 802.1x authenticated wi-fi network? I've got a 2G iphone with 2.1 firmware. My iphone asks me whether i want to join an "enterprise wi-fi network", I tap OK, then it asks me for the username and password (which

  • Music sorting by song

    I cannot figure out how my iPad is sorting music when I look under the "Songs" tab in the Music app (screenshot attached). I noticed it yesterday after I updated to ios6. How can I get it to sort with in simple alphabetical order by song title? Why a

  • Beginner trying to use Jasper Reports

    Hi, I am a beginner in implementing report generation. I want to use Jasper reports to convert my xml to pdf using the ireport plugin in Netbeans Presently i have an input xml, i do not want to make an JDBC connection or an database connection, i am