Invalid arguments in call

Good Day,
i am using oracle driver to test a small application and i am getting these Error:
oracle.jdbc.driver.OracleDriver od = new oracle.jdbc.driver.OracleDriver();
properties p = new properties();
p.load("new FileInputStream("c:\\filename.properties");
connection con = od.connect("jdbc:oracle:thin:@localhost:1521:sid",p);
Statement st = con.createStatement();
ResultSet rs = st.executeQuery("select user from dual");
while(rs.next()) {
System.out.println(rs);
rs.close();
Error Message is showing at od.connect("url",p);
java.sql.SQLException: invalid arguments in call
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:183)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
Exception in thread "main"

Hi user,
try to do that:
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public void method() {
try {
     Connection connection;
String driver = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc:oracle:thin:@localhost:1521:Sid";
     Class.forName(driver).newInstance();
     connection = DriverManager.getConnection(url, your_user, your_password);
     PreparedStatement st = connection.prepareStatement("select user from dual");
     ResultSet rs = st.executeQuery();
     while(rs.next()) {
          System.out.println(rs);
     rs.close();
} catch (ClassNotFoundException e) {
} catch (IllegalAccessException e) {
} catch (InstantiationException e) {
} catch (SQLException e) {
}

Similar Messages

  • Invalid arguments in call for an Application Module

    We are writing a web-app which has two packages in our BC4J project, each with an Application Module. One of these app modules contains business components for objects owned by the user ILOGNET and the other for objects owned by the user EAGLE. We are allowing users to logon and connect to the database as themselves by specifying username and password dynamically as attributes of each instance of both application modules.
    The problem we are having is that for a particular JSP sometimes when we deploy, we get an "invalid arguments in call" error. Other times, it doesn't seem to be a problem. The user I am testing with has Oracle roles that have privileges to view all the necessary objects. I'm just not sure why it seems to be temperamental like this. Does anyone have any ideas ? The code for the problem JSP is shown below.
    Thanks for any help :
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <link rel="stylesheet" type="text/css" href="../style/style.css">
    <TITLE>
    Commenting Subject Administration Portlet
    </TITLE>
    <script language="JavaScript">
    var g_valid = false;
    function get_validate()
    var el_subject = document.getElementById("id_subject");
    el_subject.value = pro_trim(el_subject.value);
    if (el_subject.value == "")
    alert("Subject is a required field");
    g_valid = false;
    else
    g_valid = true;
    function pro_trim(p_in)
    var s_remaining = p_in;
    while (s_remaining.charAt(s_remaining.length - 1) == ' ')
    s_remaining = s_remaining.substring(0, s_remaining.length - 1);
    while (s_remaining.charAt(0) == ' ')
    s_remaining = s_remaining.substring(1, s_remaining.length);
    return s_remaining;
    </script>
    </HEAD>
    <body class="portlet">
    <jbo:ApplicationModule id="am_subjectAdmin" configname="eagle.EagleModule.EagleModuleLocal" releasemode="Stateful" username="<%=request.getRemoteUser()%>" password='<%=(String)session.getValue("PASSWORD")%>' />
    <jbo:DataSource id="ds_enditems" orderbyclause="eiacodxa" rangesize="4" appid="am_subjectAdmin" viewobject="EIACSELECTView" />
    <table class="portlet" width="100%" cellpadding=10 cellspacing=0>
              <tr class="portlet-title">
              <td>
    Commenting Subject Administration Portlet
              </td>
              </tr>
              <tr class="portlet-body" height="100%">
              <td>
    <table width="100%" align="center">
    <tr>
    <td height="50"></td>
    </tr>
    <tr>
    <td>
    <form name="frm_subject" action="cls_comment_subject" method="post" onSubmit="get_validate();return g_valid;">
    <table>
    <tr>
    <td width="150">End Item :</td>
    <td align="left">
    <jbo:InputSelect datasource="ds_enditems" dataitem="Eiacodxa" displaydatasource="ds_enditems" displaydataitem="Eiacodxa" displayvaluedataitem="Eiacodxa" ></jbo:InputSelect>
    </td>
    <td align="right">Subject Type :</td>
    <td align="left">
    <select name="type">
    <option value="C">Comment
    <option value="R">Response
    </select>
    </td>
    <td width="250"></td>
    </tr>
    <tr>
    <td width="150">Subject Title :</td>
    <td colspan="3">
    <input id="id_subject" type="text" name="subject" size="100" maxlength="255">
    </td>
    </tr>
    <tr>
    <td colspan="4" align="right">
    <input type="Submit" value="Submit Subject">
    <input type="Reset" value=" Clear ">
    </td>
    </tr>
    <tr>
    <td height="250">
    </td>
    </tr>
    </table>
    </form>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </HTML><jbo:ReleasePageResources />
    Regards,
    Joe Mellors

    I'd forgotten all about this until now when it just happened again. Seems strange that it works fine a lot of the time. It only seems to happen with one of the two Application Module's in the project.
    Here is the call stack. I'd appreciate any help.
    Thanks,
    Joe
    JBO-30003: The application pool (eagle.EagleModule.EagleModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:193)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:116)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:290)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:208)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:63)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:53)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:615)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:815)
         at oracle.jbo.server.NullDBTransactionImpl.initTxn(NullDBTransactionImpl.java:489)
         at oracle.jbo.server.NullDBTransactionImpl.connect(NullDBTransactionImpl.java:367)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:201)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.connect(ApplicationPoolImpl.java:2304)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1096)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:1669)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:289)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:181)
         at org.apache.jsp.mp_0005fdt$jsp._jspService(mp_0005fdt$jsp.java:83)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    ## Detail 0 ##
    java.sql.SQLException: invalid arguments in call
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:185)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:227)
         at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:973)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:197)
         at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:353)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:457)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:332)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:162)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:116)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:290)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:208)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:63)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:53)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:615)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:815)
         at oracle.jbo.server.NullDBTransactionImpl.initTxn(NullDBTransactionImpl.java:489)
         at oracle.jbo.server.NullDBTransactionImpl.connect(NullDBTransactionImpl.java:367)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:201)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.connect(ApplicationPoolImpl.java:2304)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1096)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:1669)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:289)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:181)
         at org.apache.jsp.mp_0005fdt$jsp._jspService(mp_0005fdt$jsp.java:83)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)

  • Oracle.jms.AQjmsException: invalid arguments in call

    Hi
    Has anyone seen this error before?
    Environment Configuration:
    APP SERVER 9.0.4 (OUT 0F BOX CONFIG)
    JDK 1.4
    RED HAT ENTERPRISE SERVER 3.0
    COMPAC DL380
    ON VM SOFTWARE
    DB 9.2.0.4
    HP-UX 11i
    SUPERDOME
    Error logs:
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.pool.QueueConnectionPool]
    [getQueueConnection] :Using pooled queue connection for factory:
    java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.pool.QueueSessionPool]
    [createQueueSession] :Failed to create queue session: oracle.jms.AQjmsException: invalid arguments in call
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.BytesMessageWriter]
    [writeBytesMessage] :Failed to write message onto queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue
    factory: java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
    QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in call
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.sil.common.log.silInteractionLogger] [log]
    :silInteractionLogger.log() Exception writing ServiceExecutionRecord to JMS queue: bcc.sde.common.exception.SDEException:
    Failed to write message onto queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue factory:
    java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
    QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in
    call: QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments
    in call;
    ---> nested: bcc.sde.common.jms.pool.JMSPoolException: QueueSessionPool.createQueueSession() failed to create queue
    session - oracle.jms.AQjmsException: invalid arguments in call
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.sil.bids.api.sql.BidsSQLInterface]
    [logInteractionRecord] :Failed to log interaction record: bcc.sde.common.exception.SDEException: silInteractionLogger.log()
    Exception writing ServiceExecutionRecord to JMS queue: bcc.sde.common.exception.SDEException: Failed to write message onto
    queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue factory:
    java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
    QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in
    call: QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments
    in call;
    ---> nested: bcc.sde.common.jms.pool.JMSPoolException: QueueSessionPool.createQueueSession() failed to create queue
    session - oracle.jms.AQjmsException: invalid arguments in call
    Database error with same error message:
    ORA-17433 - invalid arguments in call
    http://www.doc.gold.ac.uk/oracle/doc/java.817/a83724/ermesap3.htm
    Code causing problem:
    queueConnection = queueConnectionPool.getQueueConnection(queueConnectionFactoryName, runningExternal);
    queueSession = queueConnection.createQueueSession(TRANSACTIONAL, AUTO_ACK_MODE);

    I am facing the same problem. Have you figured out what the cause was? Thanks,

  • Java.sql.SQLException: invalid arguments in call

    Hi
    I am getting the following exception
    java.sql.SQLException: invalid arguments in call
    Please send me a soln.
    Thanks in advance

    I had to switch the classes12.jar file that I was using with Tomcat to the one that came packaged with JDeveloper. Thanks for the quick reponse though.

  • BLOB error: invalid arguments in call

    I created a table with 3 columns: PICID(Number), Pic(BLOB) and User(Varchar2[20]). I am using SQL Developer to create a new row and put a picture into the Pic column. When I try to save it, I get this:
    One error savings changes to table "PICS":
    Row 1: Invalid argument(s) in call.
    What am I doing wrong?

    Forigve me, I thought that the stuff I wrote before that would've been at least SOME help.
    INSERT INTO "PICS" (PICID, PIC, INITIALS) VALUES ('1', empty_blob(), 'BOB')
    SELECT PIC FROM "PICS" WHERE ROWID='AAATutAAEAAAAMUAAA' AND ORA_ROWSCN='4846781' FOR UPDATE
    Invalid argument(s) in call
    One error saving changes to table PICS":
    Row 1: Invalid argument(s) in call
    This is what SQL Developer comes up with after I click 'Load', browse for an image and put it into the PIC column.
    I'm running 11g. What other information do you need? Thanks for your help, sorry to bother you.

  • Invalid argument(s) in call: SetRowBufferAt

    The following exception is produced because resultSet.next() was
    called on an empty resultSet why ??
    Driver = Oracle 8.1.7 thin (current version 8/30/01) for NT.
    Thanks
    try
    m_resultSet = m_statement.executeQuery("SELECT
    CODE_DECODE.* FROM CODE_DECODE WHERE 0 = 1");
    // NOTE If this statement is not called the code works
    fine.
    while( m_resultSet.next())
    // Does nothing as the resultset is empty
    // NOTE If the above statement is not called the code
    works fine
    // Insert a row
    m_resultSet.moveToInsertRow();
    m_resultSet.updateObject
    ("CODE_DECODE.CODE_DECODE_ID",new Double(100000001d));
    // Next statement causes the exception
    m_resultSet.insertRow();
    catch(Exception e)
    e.printStackTrace();
    gives the following stack trace
    java.sql.SQLException: Invalid argument(s) in call:
    setRowBufferAt
    at oracle.jdbc.dbaccess.DBError.throwSqlException
    (DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException
    (DBError.java:210)
    at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
    (UpdatableResultSet.java:1803)
    at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
    (UpdatableResultSet.java:1785)
    at oracle.jdbc.driver.UpdatableResultSet.updateObject
    (UpdatableResultSet.java:1574)
    at oracle.jdbc.driver.OracleResultSet.updateObject
    (OracleResultSet.java:2787)

    Hi, same problem with insert.
    A path exist for Oracle database jdbc support.
    see this link for doc.
    http://jpsunf01.oracle.co.jp/PATCH/PSR/IBM_RS6000/90PATCHSETS/90130_64/README.html#JDBC
    No way to find the patch file !!!!!
    See you ...

  • Insert error SQLException: Invalid argument(s) in call:

    The following exception is produced because resultSet.next() was
    called on an empty resultSet why ??
    Driver = Oracle 8.1.7 thin (current version 8/30/01) for NT.
    Thanks
    try
         m_resultSet = m_statement.executeQuery("SELECT
    CODE_DECODE.* FROM CODE_DECODE WHERE 0 = 1");
         // NOTE If this statement is not called the code works
    fine.
         while( m_resultSet.next())
              // Does nothing as the resultset is empty
         // NOTE If the above statement is not called the code
    works fine
         // Insert a row
         m_resultSet.moveToInsertRow();
         m_resultSet.updateObject
    ("CODE_DECODE.CODE_DECODE_ID",new Double(100000001d));
         // Next statement causes the exception
         m_resultSet.insertRow();
    catch(Exception e)
    e.printStackTrace();
    gives the following stack trace
    java.sql.SQLException: Invalid argument(s) in call:
    setRowBufferAt
         at oracle.jdbc.dbaccess.DBError.throwSqlException
    (DBError.java:168)
         at oracle.jdbc.dbaccess.DBError.throwSqlException
    (DBError.java:210)
         at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
    (UpdatableResultSet.java:1803)
         at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
    (UpdatableResultSet.java:1785)
         at oracle.jdbc.driver.UpdatableResultSet.updateObject
    (UpdatableResultSet.java:1574)
         at oracle.jdbc.driver.OracleResultSet.updateObject
    (OracleResultSet.java:2787)
         at com.aceva.tool.toolbox.dbtool.JDBCAdapter.insertRow
    (JDBCAdapter.java:440)
         at com.aceva.tool.toolbox.dbtool.DBToolPanel.doInsert
    (DBToolPanel.java:289)
         at
    com.aceva.tool.toolbox.dbtool.DBToolPanel$4.actionPerformed
    (DBToolPanel.java:102)
         at javax.swing.AbstractButton.fireActionPerformed
    (AbstractButton.java:1450)
         at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
    (AbstractButton.java:1504)
         at javax.swing.DefaultButtonModel.fireActionPerformed
    (DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed
    (DefaultButtonModel.java:250)
         at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased
    (BasicButtonListener.java:216)
         at java.awt.Component.processMouseEvent
    (Component.java:3717)
         at java.awt.Component.processEvent(Component.java:3546)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl
    (Component.java:2595)
         at java.awt.Container.dispatchEventImpl
    (Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2499)
         at java.awt.LightweightDispatcher.retargetMouseEvent
    (Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent
    (Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent
    (Container.java:2125)
         at java.awt.Container.dispatchEventImpl
    (Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:912)
         at java.awt.Component.dispatchEvent(Component.java:2499)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
         at java.awt.EventDispatchThread.pumpOneEvent
    (EventDispatchThread.java:103)
         at java.awt.EventDispatchThread.pumpEvents
    (EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run
    (EventDispatchThread.java:84)

    The stack trace was:
    06/09/06 09:02:52 java.sql.SQLException: Invalid argument(s) in call
    06/09/06 09:02:52 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBErro
    r.java:189)
    06/09/06 09:02:52 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBErro
    r.java:231)
    06/09/06 09:02:52 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBErro
    r.java:294)
    06/09/06 09:02:52 at oracle.sql.CLOB.createTemporary(CLOB.java:527)
    After that I change a code little bit:
    clob = oracle.sql.CLOB.createTemporary(c, true, 1);
    Ant it pass through, but it fails with CastException. Then I upgraded JDBC driver, because I'm using Java 1.4
    So, now I have this kind of error:
    at oracle.jdbc.driver.OracleConnection.physicalConnectionWithin(OracleConnection.java:5174)
         at oracle.sql.CLOB.createTemporary(CLOB.java:1009)
         at oracle.sql.CLOB.createTemporary(CLOB.java:956)
         at my.pack.db.impl.ImportDatabaseDAO_JDBC.execute(ImportDatabaseDAO_JDBC.java:68)
    It fails when I'm creating temporaryClob:
    clob = oracle.sql.CLOB.createTemporary(c, true, 1);
    The problem occurs, because my connection driver is:
    com.evermind.sql.OrclCMTConnection and it can't be converted into oracle.jdbc.driver.OracleConnection.
    It is datasource config:
    <data-source location="jdbc/oooDS"
         class="com.evermind.sql.DriverManagerDataSource"
         password="iate"
         xa-location="jdbc/xa/oooXADS"
         connection-driver="oracle.jdbc.driver.OracleDriver"
         username="ooo"
         url="jdbc:oracle:thin:@192.168.45.14:1526:ooo"
         inactivity-timeout="30"
         name="oooDS"
         ejb-location="jdbc/oooDS"
         pooled-location="jdbc/oooPoolDS"
         min-connections="3"
         max-connections="200"/>
    Could you advise, how can I convert my Connection class?

  • Java.sql.SQLException: Invalid argument(s) in call: setRowBufferAt

    I have created a custom tag that does inserts. While it works on most every other table that I have dealt with, I keep getting this error for a particular table. I have created another table on an entirely different database, but get the same error.
    Is anyone familiar with this error? I'm running Oracle 8.1.7.0.0
    Thanks in advance,
    Jim

    Bug 1548205 Fixed: 9011
    JDBC
    Inserting into an empty Updateable Resultset causes an
    SQLException:
    java.sql.SQLException: Invalid argument(s) in call: setRowBufferAt

  • Invalid Argument Exception on Java API's DB Close

    When closing the database via the Java API's close method, I am getting an invalid argument exception... how can this be fixed... subsequent access to the DB causes the JVM to crash??
    ERROR: An exception has occurred: java.lang.IllegalArgumentException: Invalid argument
    java.lang.IllegalArgumentException: Invalid argument
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_close0(Native Method)
    at com.sleepycat.db.internal.DbEnv.close0(DbEnv.java:217)
    at com.sleepycat.db.internal.DbEnv.close(DbEnv.java:77)
    at com.sleepycat.db.Environment.close(Environment.java:39)
    at com.sleepycat.dbxml.XmlManager.closeInternal(XmlManager.java:301)
    at com.sleepycat.dbxml.XmlManager.delete(XmlManager.java:33)
    at com.sleepycat.dbxml.XmlManager.close(XmlManager.java:310)
    at com.iconnect.data.adapters.BerkleyXMLDBImpl.insert(BerkleyXMLDBImpl.java:827)
    at com.iconnect.data.DataManagerFactory.insert(DataManagerFactory.java:182)
    at Xindice2Berkley.main(Xindice2Berkley.java:99)

    I had the same problem. I could fix it by carefully calling the delete() function on all those DBXML Xml..xyz objects that you create when you perform queries etc. It seems that those Java objects have some 'shadow' object in the underlying DLL and by calling delete() you free resources that remain otherwise assigned (maybe somebody with a C++ background who programmed this stuff?). Call delete() before the Java object gets out of scope. For instance:
    results = mgr.query(collection,context,null);
    XmlValue value;
    try {
    while ((value = results.next()) != null) {
    XmlValue c = value.getFirstChild();
    String ref = c.getNodeValue();
    c.delete(); c = null;
    value.delete(); value = null;
    catch (Exception e) {
    finally {
    if (results != null) {
    results.delete();
    results = null;
    Once i did this on all possible dbxml objects i used in my code, the java.lang.IllegalArgumentException: Invalid argument disappeared.
    Message was edited by:
    user562374

  • Invalid arguments error while executing oracle procedure

    Dear all,
    we have a table hr_emp with fields ecode, ename, edoj.
    the following procedure we created to return the table data to our .net app.
    CREATE OR REPLACE
    PACKAGE pname AS
    TYPE T_hr_cursor IS REF CURSOR;
    PROCEDURE get_hr_list (P_hrlist OUT T_hr_cursor);
    END HRPACK;
    create or replace PACKAGE BODY pname AS
         PROCEDURE get_hr_list (P_hrlist OUT T_hr_cursor)
         IS
         BEGIN
         OPEN P_hrlist FOR
              SELECT *
                   FROM Hr_Emp WHERE edoj>='01-jan-2009';
         END get_hr_list;
    END;
    these code edited in a single file [both package and package body] and created successfully.
    but, while executing, by typing execute get_hr_list, ORA-00304 error, invalid arguments, is coming. How to resolve this, please help.
    also, in sql developer 1.5.3, when we create this, another error is ciming like 'source doesnot have a runnable target'.
    Where is the issue? please help

    Yes, its great dear...
    sqlplus>
    declare
    hr_cursor hrmain.t_hr_cursor;
    begin
    pname.get_hr_list(hr_cursor);
    end;
    Its worked as i got 'pl/sql procedure successfully executed'.
    Also, then how i can call this get_hr_list procedure from .net? im using c# and i want to get the result of hr_emp to c#. how i can call the same from c#? any help please

  • Crystal reports 10 - Invalid Argument Provided Error obtained

    Post Author: p8***8
    CA Forum: General
    I have a report that takes a USERID value(int) as a parameter(user supplied).  This report works for all parameter values except one(so I know this has nothing to do with stored procedure permissions).  If I run the associated stored procedure independently for this parameter value, it returns the complete result set.  Also, the data obtained from the database tables is validated, so I doubt that the report encountered some invalid value.  The Stored Procedure that the report uses does not call any other procedure.  I don't understand what invalid argument the report comes across causing it to throw this error.  The only thing I can think of is the enormous result set that is returned for this particular parameter(over 8000 records).  Is there a limit to the report size in Crystal Reports version 10?

    can you run it locally outside the viewer?

  • PLS-00306: wrong number or types of arguments in call to 'XMLAGG'

    Hello,
    I have a procedure that creates an xml file and I need to order by an admission date using XMLAGG. When I run the query on it's own, with it not being inside a procedure it runs fine. When I try to run it within a procedure it throws back the above error message, unless I comment out the 'order by'. Does anyone know how I can get this to run with the order by within a procedure?
    We are using Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production.
    Thanks.
    SELECT XMLELEMENT("Stakeholder", XMLELEMENT("ULI", a.ULI),
                                            XMLELEMENT("Gender",a.GENDER),
                                  XMLELEMENT("BirthDate", XMLATTRIBUTES(a.BIRTH_DATE_TYPE AS "type"), a.BIRTH_DATE),
                                            XMLELEMENT("HealthCareNumberInformation",XMLELEMENT("HealthCareNumber",a.HCN),
                                                                                              XMLFOREST((a.PROV_ISSUING_HCN) AS "ProvinceTerritoryIssuingHCN")),
                                            XMLELEMENT("SubmissionType",a.SUBMISSION_TYPE),
                                            (SELECT XMLAGG(XMLELEMENT("ServiceEpisode", XMLELEMENT("AdmissionDate", a2.ADMISSION_DATE )) ORDER BY a2.ADMISSION_DATE)
                                                      FROM admissions a2
                                                                , discharge d2
                                            WHERE a.uli = a2.uli
                                                      AND a.uli = d2.uli
                                                           AND a2.encounter_number = d2.encounter_number
                        )).getClobVal() AS "result"
    FROM Admissions a
         , Discharge d3
         , Diagnosis d
    WHERE a.ULI = d3.ULI
    AND a.ENCOUNTER_NUMBER = d3.ENCOUNTER_NUMBER
    AND a.ULI = d.ULI
    AND a.ENCOUNTER_NUMBER = d.ENCOUNTER_NUMBER
    GROUP BY a.ULI
         , a.GENDER
         , a.BIRTH_DATE_TYPE
         , a.BIRTH_DATE
         , a.HCN
         , a.PROV_ISSUING_HCN
         , a.SUBMISSION_TYPE

    create table mytab (a number,b number);           
    insert into mytab values (1,100);                 
    insert into mytab values (2,200);                 
    SVIL>SELECT xmlelement("A",XMLAGG(XMLELEMENT("B", b ) ORDER BY b)) FROM mytab;
    XMLELEMENT("A",XMLAGG(XMLELEMENT("B",B)ORDERBYB))
    <A><B>100</B><B>200</B></A>
    SVIL>create or replace function getx return xmltype is
      2  r xmltype;
      3  begin
      4  SELECT xmlelement("A",XMLAGG(XMLELEMENT("B", b ) ORDER BY b))
      5  into r
      6  FROM mytab;
      7  return r;
      8  end;
      9  /
    Avvertimento: funzione creata con errori di compilazione.
    SVIL>sho err
    Errori in FUNCTION GETX:
    LINE/COL ERROR
    4/1      PL/SQL: SQL Statement ignored
    4/23     PLS-00306: wrong number or types of arguments in call to 'XMLAGG'
    4/23     PL/SQL: ORA-00904: "XMLAGG": invalid identifier
    SVIL>
    SVIL>ed a
    SVIL>select * from v$version where rownum=1
      2  ;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit ProductionThe same code works on 10.2.0.4 and 11.1.0.6, don't have other versions to test
    Testing your code
    SVIL>declare                                                                                              
      2   d integer;                                                                                          
      3   x xmltype;                                                                                          
      4  begin                                                                                                
      5     select deptno, xmlagg (xmlelement (e, ename || ',') order by ename)                               
      6     into d, x                                                                                         
      7     from emp                                                                                          
      8    where deptno = 10                                                                                  
      9   group by deptno;                                                                                    
    10  end;                                                                                                 
    11  /                                                                                                    
       select deptno, xmlagg (xmlelement (e, ename || ',') order by ename)                                    
    ERRORE alla riga 5:                                                                                       
    ORA-06550: line 5, column 19:                                                                             
    PLS-00306: wrong number or types of arguments in call to 'XMLAGG'                                         
    ORA-06550: line 5, column 19:                                                                             
    PL/SQL: ORA-00904: "XMLAGG": invalid identifier                                                           
    ORA-06550: line 5, column 4:                                                                              
    PL/SQL: SQL Statement ignored                                                                             
    SVIL>select deptno, xmlagg (xmlelement (e, ename || ',') order by ename) from emp group by deptno;        
        DEPTNO XMLAGG(XMLELEMENT(E,ENAME||',')ORDERBYENAME)                                                   
             1 <E>mike,</E><E>tom,</E>                                                                        
             2 <E>carl,</E>                                                                                    Max
    Edited by: Massimo Ruocchio on Dec 7, 2009 11:11 PM
    Corrected return type

  • Why Error 17068, invalid arg in call: SetRowBufferAt

    I am trying to "copy" from one result set to another, updatable, result set and keep getting the error in the subject. Any idea why?
    I have fromCatRs which I have verify is opened, has data, and is on the row I want to "copy".
    I have toCatRs which I have verify is opened, updatable, etc.
    I enter the following code snip with
    toCatRs.moveToInsertRow();
    int numColumns = fromCatRs.getMetaData().getColumnCount();
    // I start copying data.
    toCatRs.updateString( "CATCD", fromCatRs.getString( "CATCD") );
    and I get the following error.
    SQLException:
    Message: Invalid argument(s) in call: SetRowBufferAt
    SQLState: null
    ErrorCode: 17068
    Any ideas greatly appreciated.
    null

    Hi Baji,
    I guess its a typo, please cross check again.
    OdiImportObject -FILE_NAME=/opt/Dem-Hyp-PIP/AIA24/F
    P249/PIPS/Core/DIS/DemantraHyperion/ODI Master Repository/CONT_HyperionToDemantr
    aContext.*xml* -IMPORT_MODE=SYNONYM_INSERT_UPDATE ...
    Thanks,
    G

  • Rman Linux Error: 22: Invalid argument

    Hi,
    I have Oracle 8.1.7.0.1 running on Redhat 7.2
    When I try to backup database using RMAN I get following
    error:
    RMAN-03026: error recovery releasing channel resources
    RMAN-08031: released channel: disk1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03015: error occurred in stored script live_full_backup
    RMAN-03007: retryable error occurred during execution of command: backup
    RMAN-07004: unhandled exception during command execution on channel disk1
    RMAN-10035: exception raised in RPC: ORA-19504: failed to create file "/u03/oradata/backups/live/db_6_1_482765733.ora"
    ORA-27044: unable to write the header block of file
    Linux Error: 22: Invalid argument
    Additional information: 2
    RMAN-10031: ORA-19624 occurred during call to DBMS_BACKUP_RESTORE.BACKUPPIECECREATE
    Did anybody see this before ? Any ideas ?
    d.

    make sure /u03/oradata/backups/live exists and is writable.

  • Wrong number or types of arguments in call to gt

    <Dec 1, 2014 12:17:54 PM CST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY GetHighVolume AS  
         select
      trade.symbol, trade.volume from AdapterOutputChannel [now] as trade
      where (trade.volume IS NOT NULL)
      and (trade.symbol like 'IBM')
      and (trade.symbol = 'IBM')
      and (trade.volume > 10) 
      >
    <Dec 1, 2014 12:17:54 PM CST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY GetHighVolume AS  
         select
      trade.symbol, trade.volume from AdapterOutputChannel [now] as trade
      where (trade.volume IS NOT NULL)
      and (trade.symbol like 'IBM')
      and (trade.symbol = 'IBM')
      and (>>trade.volume > 10<<) 
    wrong number or types of arguments in call to gt. Check the spelling of the registered function. Also confirm that its call is correct and its parameters are of correct datatypes.>
    <Dec 1, 2014 12:17:54 PM CST> <Emergency> <CQLServerTrace> <BEA-000000> <oracle.cep.exceptions.CEPException: wrong number or types of arguments in call to gt>
    <Dec 1, 2014 12:17:54 PM CST> <Error> <CQLProcessor> <BEA-000000> <Failed to create statement [GetHighVolume].
    Invalid statement: "select
      trade.symbol, trade.volume from AdapterOutputChannel [now] as trade
      where (trade.volume IS NOT NULL)
      and (trade.symbol like 'IBM')
      and (trade.symbol = 'IBM')
      and (>>trade.volume > 10<<)"
    Description: wrong number or types of arguments in call to gt
    Cause: This error occurs when the named function call cannot be matched to any declaration for that function name. The function name might be misspelled, a parameter might have the wrong datatype, or the function declaration might be faulty
    Action: Check the spelling of the registered function. Also confirm that its call is correct and its parameters are of correct datatypes.>
    <Dec 1, 2014 12:17:55 PM CST> <Error> <Deployment> <BEA-2045016> <The application context "TradeReport" could not be started. Could not initialize component "<unknown>":
    Invalid statement: "select
      trade.symbol, trade.volume from AdapterOutputChannel [now] as trade
      where (trade.volume IS NOT NULL)
      and (trade.symbol like 'IBM')
      and (trade.symbol = 'IBM')
      and (>>trade.volume > 10<<)"
    Description: wrong number or types of arguments in call to gt
    Cause: This error occurs when the named function call cannot be matched to any declaration for that function name. The function name might be misspelled, a parameter might have the wrong datatype, or the function declaration might be faulty
    Action: Check the spelling of the registered function. Also confirm that its call is correct and its parameters are of correct datatypes.>
    i use OEP 11g. help me!

    It seems like the semantic checks for comparison expression "trade.volume>10" is failing.
    Kindly make sure that trade.volume is CQL native "int" type.
    If problem is still coming after datatype checks, please share your EPN and configuration files with queries.

Maybe you are looking for

  • HT1414 restoring my iphone 3gs is not completeing and the phone is not working

    restoring my iphone 3gs is not completing and my phone is not working i took it to my local phone shop they told me that the new itunes will not fit onto the iphone 3gs, how can i get my phone to work.

  • Any way to not have Edge be the first option?

    Whenever I use my iphone at home, I use my wifi...which works great. I turn off 3G to save on the battery when in the house. However, I've noticed that if I want to use the internet or even check email, sometimes it will try to use Edge before the wi

  • JPY Currency Decimal Places

    Hi  All Today we noticed a difference in the way SAP handles a PO which has document currency JPY. The price displayed on screen for the PO was 790 JPY, but the value stored in the tables was 0.79.  Any reason why this like this ? How does standard S

  • Using Application View controls in Workshop

    How can I access a JCA resource adapter in Workshop? The documentation suggests that I create an Application View in WLI, then create a Workshop control that is associated with it. However, the Workshop documentation says the following about using Ap

  • Regarding oracle solaris certification

    send me detail information regarding oracle solaris certification.Whenever i am trying to look about this it is giving error like this country is not in list for solaris certification