Type column (java.sql.SQLException) not valid

On Jdeveloper 11.1.2 on Windows 7 64B

I got this table:

create the table entry
(the number (32) of entry_id not null,)
entry_class_id varchar2 (5) not null,
VARCHAR2 (200) of notes not null,.
VARCHAR2 (1) active by default not null, 'Y '.
VARCHAR2 (1) of the interface by default ' is not null,.
total_debit number (32.2) default null, 0
total_credit number (32.2) default null, 0
created_on date not null,
created_by varchar2 (30) not null,
voided_notes varchar2 (200) null,
voided_on date null,
voided_by varchar2 (30) null
);

Jdev map this table like this:

EntryId BigInteger
String EntryClassId
Channel information
String active
Chain of Interface1
TotalDebit BigDecimal
TotalCredit BigDecimal
CreatedOn Timestamp
String CreatedBy
String VoidedNotes
VoidedOn Timestamp
String VoidedBy

Run ADF Model Tester I got the error (java.sql.SQLException) invalid column type. prompts to insert a line. I used instead of timestamp date by getting the same error. Any ideas?

Thank you

You can copy the complete stack trace? It works if you change BigInteger in full (recent fix, it was a bug with the JDBC driver)

Tags: Java

Similar Questions

  • Error on Printmaster Platinum 2012 caused by java.sql.SQLException...

    My Printmaster Platinum 2012 software which I've used for may 2012 suddenly would not work and gives the following message: java.sql.SQLException: not found "PRINTMASTER 2012 PLATINUM" database.

    Hi Elizabeth,.

    You can try to reinstall the program. If the problem still persists, then contact their support , help.

    I hope this helps.

  • Caused by: java.sql.SQLException: column type invalid or NOT?

    It has all,

    I use JDev Studio Edition Version 11.1.2.3.0
    Oracle 11g
    Problem is simple a table

    CREATE TABLE 'FACT '. "" MU_UREDJAJ ".
    (
    ACTIVATE THE "MUURE_ID" NUMBER (32.0) NOT NULL,
    VARCHAR2 (25 CHAR) "MUURE_BROJ_UREDJAJA."
    NUMBER (15.0) "MUTU_ID."
    NUMBER (4,0) "MUURE_GOD_PROZ."
    NUMBER (4,0) "MUURE_GOD_OVERE."
    NUMBER (2.0) "MUVUR_ID."
    NUMBER (2.0) "MUSVL_ID."
    NUMBER (2.0) "MUSURE_ID."
    'MU_UREDJAJ_PK' CONSTRAINT PRIMARY KEY ('MUURE_ID')
    )

    VO and EO created based on this table
    Here is the generated type the JDev

    < attribute
    Name = "MuureId".
    IsNotNull = 'true '.
    Precision = "32".
    Scale = '0 '.
    ColumnName = "MUURE_ID."
    SQLType = 'DIGITAL '.
    Type = "Java.Math.BigInteger"
    ColumnType = 'NUMBER '.
    TableName = "MU_UREDJAJ."
    PrimaryKey = "true" / >
    < attribute
    Name = "MuureBrojUredjaja".
    Precision = "25".
    ColumnName = "MUURE_BROJ_UREDJAJA."
    SQLType = 'VARCHAR '.
    Type = "Java.lang.String"
    ColumnType = "VARCHAR2".
    TableName = "MU_UREDJAJ" >
    < DesignTime >
    < name Attr = "_DisplaySize" Value = "25" / >
    < / DesignTime >
    < / attribute >
    ......

    When I try to insert only primary keys with all null values I get error:
    [51] INFO: not app def in BindingContext for: AppModule
    [52] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for AppModule
    [53] replacement: null with: AppModule_MuUredjajView1_0PageDef
    [54] INFO: not app def in BindingContext for: AppModule
    [55] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for AppModule
    [56] INFO: not app def in BindingContext for: PROJECT_GLOBAL_VARIABLES
    [57] INFO: search mDCRefMap has failed. The cpx has an entry dataControlUsages 'dc '? PROJECT_GLOBAL_VARIABLES
    [58] fix VO:AppModule.MuUredjajView1 of iterator binding: oracle_jbo_uicli_binding_JUIteratorBinding_2
    [59] DCUtil, RETURN: < null > to AppModule.MuUredjajView1
    [60] MuUredjajView1 ViewRowSetImpl.execute caused to be 'one' changed params
    [61] with over CappedRowCount:-1 for ViewRowSet:MuUredjajView1
    [62] number of columns: 8
    [63] executeQueryForCollection ViewObject:MuUredjajView1, RowSet:MuUredjajView1
    [64] MuUredjajView1 > #q calculated SQLStmtBufLen: 298, real = 271, storage = 301
    [65] SELECT MuUredjaj.MUURE_ID, MuUredjaj.MUURE_BROJ_UREDJAJA, MuUredjaj.MUTU_ID, MuUredjaj.MUURE_GOD_PROZ, MuUredjaj.MUURE_GOD_OVERE, MuUredjaj.MUVUR_ID, MuUredjaj.MUSVL_ID, MU_UREDJAJ MuUredjaj MuUredjaj.MUSURE_ID
    [66] ViewObject: [model. MuUredjajView] AppModule.MuUredjajView1 creating new QUERY statement
    [67] params for ViewObject bind: [model. MuUredjajView] AppModule.MuUredjajView1
    [68] DBTransactionImpl.mDefaultSparseArrayThreshold is 20
    [69] entity with key:oracle.jbo.Key [375681] owned by row:oracle.jbo.Key [375681]
    [70] * refreshControl() for BindingContainer: AppModule_MuUredjajView1_0PageDef
    [71] * refreshControl() for BindingContainer: AppModule_MuUredjajView1_0PageDef
    [72] INFO: not app def in BindingContext for: adfFacesContext
    [73] INFO: search mDCRefMap has failed. The cpx has an entry dataControlUsages 'dc '? adfFacesContext
    [74] INFO: not app def in BindingContext for: adfFacesContext
    [75] INFO: search mDCRefMap has failed. The cpx has an entry dataControlUsages 'dc '? adfFacesContext
    [76] OracleSQLBuilder: SAVEPOINT 'BO_SP '.
    [77] OracleSQLBuilder execution, memorize 2 DML: MU_UREDJAJ (insert)
    [78] INSERT buf MuUredjaj > #i SQLStmtBufLen: 165, real = 44
    [79] INSERT INTO MU_UREDJAJ (MUURE_ID) VALUES (: 1).
    [80] insert link param 1:400000
    [81] OracleSQLBuilderImpl.doEntityDML is not...
    [82] X / Open SQL State is: 99999
    [83] java.sql.SQLException: invalid column type
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindInsertStatement(OracleSQLBuilderImpl.java:2036)
    at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10466)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:415)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6775)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6289)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6054)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4652)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
    in java.awt.EventQueue$ 1.run(EventQueue.java:603)
    in java.awt.EventQueue$ 1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 2.run(EventQueue.java:617)
    in java.awt.EventQueue$ 2.run(EventQueue.java:615)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    [84] OracleSQLBuilder: ROLLBACK WORK point registration "BO_SP".
    [85] DCBindingContainer.reportException: oracle.jbo.DMLException
    [86] oracle.jbo.DMLException: Houston-26041: failure to publish data from database in "Insert": SQL statement "INSERT INTO MU_UREDJAJ (MUURE_ID) VALUES (: 1).
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:581)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6775)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6289)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6054)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4652)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
    in java.awt.EventQueue$ 1.run(EventQueue.java:603)
    in java.awt.EventQueue$ 1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 2.run(EventQueue.java:617)
    in java.awt.EventQueue$ 2.run(EventQueue.java:615)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: invalid column type
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindInsertStatement(OracleSQLBuilderImpl.java:2036)
    at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10466)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:415)
    ... 52 more
    # # 0 in detail
    java.sql.SQLException: invalid column type
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindInsertStatement(OracleSQLBuilderImpl.java:2036)
    at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10466)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:415)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6775)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6289)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6054)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4652)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
    in java.awt.EventQueue$ 1.run(EventQueue.java:603)
    in java.awt.EventQueue$ 1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 2.run(EventQueue.java:617)
    in java.awt.EventQueue$ 2.run(EventQueue.java:615)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    [87] JUErrorHandlerDlg.reportException (oracle.jbo.DMLException)

    Try to change. BigInteger java.lang.Integer (this is probably a bug in the ADF)

    Dario

  • java.sql.SQLException: type of invalid column when the extension of the Vo of the LOV

    Hi all

    I m that extends a view object to restrict the access of the task list.

    When I click on the first time on lov torch his works very well and return values...
    even if I am able to search also for the first time... If I change the search criteria and click OK again once I'm getting java.sql.SQLException: exception of type of invalid column... I didn't add the binding settings in the query...

    below is the error stack...
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement. Statement: SELECT * FROM (SELECT vo. USER_NAME
    vo. DISPLAY_NAME
    vo. ORIG_SYSTEM
    vo. EMAIL_ADDRESS
    vo. ORIG_SYSTEM_ID
    vo. ID_PARTITION
    haou.name AS ORGANIZATION
    pp.name AS POST
    hla.location_code as LOCATION
    Of
    (SELECT WU.NAME AS USER_NAME,
    WU. DISPLAY_NAME,
    WDP. ORIG_SYSTEM,
    WU. EMAIL_ADDRESS,
    WU. ORIG_SYSTEM_ID,
    WU. ID_PARTITION
    WU WF_ROLE_LOV_VL,.
    WDP WF_DIRECTORY_PARTITIONS
    WHERE WU. ID_PARTITION = OF THE WDP. ID_PARTITION
    AND: 1 <>"BY".
    UNION ALL
    SELECT WU.NAME AS USER_NAME,
    WU. DISPLAY_NAME,
    WU. ORIG_SYSTEM,
    WU. EMAIL_ADDRESS,
    WU. ORIG_SYSTEM_ID,
    WU. ID_PARTITION
    WU WF_ROLE_LOV_VL
    WHERE WU. ORIG_SYSTEM = "BY".
    AND WU. ID_PARTITION = 1
    AND: 2 = "BY".
    ) vo
    per_all_people_f ADP
    per_all_people_f paaf_logper
    per_all_assignments_f paaf1
    fnd_user fu
    hr_all_organization_units haou
    per_positions pp
    hr_locations_all hla
    where 1 = 1
    and fu.user_name = vo.user_name
    and fu.employee_id = paaf.person_id
    and paaf_logper.person_id = fnd_global.employee_id
    and trunc (sysdate) BETWEEN paaf_logper.effective_start_date AND paaf_logper.effective_end_date
    and trunc (sysdate) BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    AND trunc (sysdate) BETWEEN paaf1.effective_start_date AND paaf1.effective_end_date
    and paaf.business_group_id = paaf_logper.business_group_id
    and paaf.person_id = paaf1.person_id
    and paaf1.primary_flag = 'Y '.
    and paaf1. POSITION_ID = pp.position_id (+)
    and paaf1.location_id = hla.location_id (+)
    and paaf1.organization_id = haou.organization_id (+)
    and decode ((select count (*) in the FND_LOOKUP_VALUES where lookup_type like 'GEN_WORKLIST_ACCESS_EXCLUSIONS' and sense = FND_GLOBAL. (USER_NAME), 0, ' N 'Y') = ' don't
    UNION
    SELECT the vo. USER_NAME
    vo. DISPLAY_NAME
    vo. ORIG_SYSTEM
    vo. EMAIL_ADDRESS
    vo. ORIG_SYSTEM_ID
    vo. ID_PARTITION
    haou.name AS ORGANIZATION
    pp.name AS POST
    hla.location_code as LOCATION
    Of
    (SELECT WU.NAME AS USER_NAME,
    WU. DISPLAY_NAME,
    WDP. ORIG_SYSTEM,
    WU. EMAIL_ADDRESS,
    WU. ORIG_SYSTEM_ID,
    WU. ID_PARTITION
    WU WF_ROLE_LOV_VL,.
    WDP WF_DIRECTORY_PARTITIONS
    WHERE WU. ID_PARTITION = OF THE WDP. ID_PARTITION
    AND: 1 <>"BY".
    UNION ALL
    SELECT WU.NAME AS USER_NAME,
    WU. DISPLAY_NAME,
    WU. ORIG_SYSTEM,
    WU. EMAIL_ADDRESS,
    WU. ORIG_SYSTEM_ID,
    WU. ID_PARTITION
    WU WF_ROLE_LOV_VL
    WHERE WU. ORIG_SYSTEM = "BY".
    AND WU. ID_PARTITION = 1
    AND: 2 = "BY".
    ) vo
    per_all_people_f ADP
    per_all_people_f paaf_logper
    per_all_assignments_f paaf1
    fnd_user fu
    hr_all_organization_units haou
    per_positions pp
    hr_locations_all hla
    where 1 = 1
    and fu.user_name = vo.user_name
    and fu.employee_id = paaf.person_id
    and paaf_logper.person_id = paaf.person_id
    and trunc (sysdate) BETWEEN paaf_logper.effective_start_date AND paaf_logper.effective_end_date
    and trunc (sysdate) BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    AND trunc (sysdate) BETWEEN paaf1.effective_start_date AND paaf1.effective_end_date
    and paaf.person_id = paaf1.person_id
    and paaf1.primary_flag = 'Y '.
    and paaf1. POSITION_ID = pp.position_id (+)
    and paaf1.location_id = hla.location_id (+)
    and paaf1.organization_id = haou.organization_id (+)
    and decode ((select count (*) in the FND_LOOKUP_VALUES where lookup_type like 'GEN_WORKLIST_ACCESS_EXCLUSIONS' and sense = FND_GLOBAL. User_name), 0, ' n, 'Y') = 'Y') QRSLT WHERE (ORIG_SYSTEM in ("FND_USR", "PQH_ROLE", "PER") AND (USER_NAME <>: 3) AND (UPPER (DISPLAY_NAME) as UPPER(:4) AND (DISPLAY_NAME love: 5 OR DISPLAY_NAME as: 6 OR DISPLAY_NAME as: 7 OR DISPLAY_NAME as: 8))) ORDER BY DISPLAY_NAME
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2978)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    in OA. jspService(_OA.java:204)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    # # 0 in detail
    java.sql.SQLException: invalid column type
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:8516)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8034)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8767)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:8748)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:11907)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:815)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:3919)
    at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3335)
    at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:13827)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:804)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection (unknown Source)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:743)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2334)
    at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processFormRequestAfterController(OAListOfValuesHelper.java:1584)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:851)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processFormRequest(OAListOfValuesHelper.java:1490)
    at oracle.apps.fnd.framework.webui.beans.layout.OAListOfValuesBean.processFormRequest(OAListOfValuesBean.java:423)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2974)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    in OA. jspService(_OA.java:204)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)


    Help, please...

    Thank you
    Rambaud.

    Hello

    You should check what value deals: 1,: 2 positions when you click GO second time.

    Thank you
    Pratap

  • java.sql.SQLException: ORA-01008: not all variables

    Hi all

    Here is the code in my opinion

    SELECT * FROM (select * from ())
    SELECT WN. NOTIFICATION_ID,
    WN. FROM_USER,
    DECODE (WN. MORE_INFO_ROLE, NULL, WN. TO_USER, wf_directory. GetRoleDisplayName (WN. MORE_INFO_ROLE)) AS TO_USER;
    DECODE (WN. MORE_INFO_ROLE, NULL, WN. TOPIC, FND_MESSAGE. GET_STRING ('FND', 'FND_MORE_INFO_REQUESTED')
    ||' '
    || WN. SUBJECT) AS THE SUBJECT.
    WN. LANGUAGE,
    WN. BEGIN_DATE,
    WN. END_DATE,
    WN. STATUS,
    WN. PRIORITY,
    'P' AS PRIORITY_F,
    WN. RECIPIENT_ROLE,
    WN. END_DATE,
    WIT. DISPLAY_NAME AS TYPE,
    WN. MORE_INFO_ROLE,
    WN. FROM_ROLE,
    WN. MESSAGE_TYPE,
    WN. MESSAGE_NAME,
    WN. CONTEXT,
    XXTPS_FA043_PKG.get_gbv (WN. CONTEXT, WN. MESSAGE_TYPE, wn.language) VBG.
    XXTPS_FA043_PKG.get_asset_type (WN. CONTEXT, WN. Asset_type MESSAGE_TYPE)
    OF WF_NOTIFICATIONS WN.
    WF_ITEM_TYPES_TL WIT,
    WL WF_LOOKUPS_TL
    WHERE WN.message_type = WIT.name
    AND WL.lookup_type = 'WF_NOTIFICATION_STATUS. '
    AND WIT.language = userenv ('LANG')
    AND WIT.language = WL.language
    AND WN.status = WL.lookup_code
    AND more_info_role IS NULL
    AND wn.message_type IN ('XXNCVPIS', 'XXNCVADJ', 'XXNCVTRN', 'XXNCVRCL', 'XXNCVRET', 'XXNCVSPL', 'XXNCVASG')
    AND WN.recipient_role IN
    (SELECT WUR.role_name
    OF WF_USER_ROLES WUR
    WHERE WUR.user_name =: 1
    AND WUR.user_orig_system =: 2
    AND WUR.user_orig_system_id =: 3
    )
    UNION ALL
    SELECT
    / * + Index (WN WF_NOTIFICATIONS_N6) ORDERED PUSH_SUBQ USE_NL (WN WL WIT) * /.
    WN. NOTIFICATION_ID,
    WN. FROM_USER,
    DECODE (WN. MORE_INFO_ROLE, NULL, WN. TO_USER, wf_directory. GetRoleDisplayName (WN. MORE_INFO_ROLE)) AS TO_USER;
    DECODE (WN. MORE_INFO_ROLE, NULL, WN. TOPIC, FND_MESSAGE. GET_STRING ('FND', 'FND_MORE_INFO_REQUESTED')
    ||' '
    || WN. SUBJECT) AS THE SUBJECT.
    WN. LANGUAGE,
    WN. BEGIN_DATE,
    WN. END_DATE,
    WN. STATUS,
    WN. PRIORITY,
    'P' AS PRIORITY_F,
    WN. RECIPIENT_ROLE,
    WN. END_DATE,
    WIT. DISPLAY_NAME AS TYPE,
    WN. MORE_INFO_ROLE,
    WN. FROM_ROLE,
    WN. MESSAGE_TYPE,
    WN. MESSAGE_NAME,
    WN. CONTEXT,
    XXTPS_FA043_PKG.get_gbv (WN. CONTEXT, WN. MESSAGE_TYPE, wn.language) VBG.
    XXTPS_FA043_PKG.get_asset_type (WN. CONTEXT, WN. Asset_type MESSAGE_TYPE)
    OF WF_NOTIFICATIONS WN.
    WF_ITEM_TYPES_TL WIT,
    WL WF_LOOKUPS_TL
    WHERE WN.message_type = WIT.name
    AND WL.lookup_type = 'WF_NOTIFICATION_STATUS. '
    AND WIT.language = userenv ('LANG')
    AND WIT.language = WL.language
    AND WN.status = WL.lookup_code
    AND wn.message_type IN ('XXNCVPIS', 'XXNCVADJ', 'XXNCVTRN', 'XXNCVRCL', 'XXNCVRET', 'XXNCVSPL', 'XXNCVASG')
    AND WN.more_info_role IN
    (SELECT WUR.role_name
    OF WF_USER_ROLES WUR
    WHERE WUR.user_name =: 4
    AND WUR.user_orig_system =: 5
    AND WUR. USER_ORIG_SYSTEM_ID =: 6
    ))
    WHERE DECODE (: 7, NULL, ' 2 ',' > ', VBG, ' 2') > DECODE (: 7, NULL, ' 1 ',' > ',: 8, '1')
    AND DECODE (: 7, NULL, ' 1 ',' < ', VBG, ' 1') < DECODE (: 7, NULL, ' 2 ',' < ',: 8, '2')
    (AND DECODE (: 7, NULL, '1', 'IS', VBG, '1') = DECODE (: 7, NULL, ' 1', 'IS',: 8, '1'))

    Code of VOImpl
    ' public void initQuery (String s, String s1, s2, s3, s4 of the string String String,
    S5, s6 String String) {}
    OAApplicationModuleImpl = localOAApplicationModuleImpl
    (OAApplicationModuleImpl) getApplicationModule ();
    OADBTransactionImpl = localOADBTransactionImpl
    (OADBTransactionImpl) localOAApplicationModuleImpl.getDBTransaction ();
    int i = 0;
    setWhereClause (null);
    setWhereClauseParams (null);

    setWhereClauseParam (0, s);
    setWhereClauseParam (1, s1);
    setWhereClauseParam (2, s2);
    setWhereClauseParam (3, s);
    setWhereClauseParam (4, s1);
    setWhereClauseParam (5, s2);
    setWhereClauseParam (6, s4);
    setWhereClauseParam (7, s6);

    String strWhereClause = "";

    If ((null! = s5) & &!("".)) Equals (S5)))
    {
    If (! (")) All".equalsIgnoreCase (S5)))
    {
    "" strWhereClause = "asset_type =" "+ s5 +" ' ";
    addWhereClause (strWhereClause);
    }
    }

    When I try to run the page, and then I am getting java.sql.SQLException: ORA-01008: not all variables.

    Can someone tell the cause of the road please?

    Thank you
    Siva Prasad

    WHERE DECODE (: 7, NULL, ' 2 ',' > ', VBG, ' 2') > DECODE (: 7, NULL, ' 1 ',' > ',: 8, '1')
    AND DECODE (: 7, NULL, 1 ',')<'1')>< decode(:7,="" null,="" '2',=""><', :8,="">
    (AND DECODE (: 7, NULL, '1', 'IS', VBG, '1') = DECODE (: 7, NULL, ' 1', 'IS',: 8, '1'))

    You use the variable even here several times. Please change sequentially. Even if you use: 7 more than once, please change to: 8 (number) and go to the setWhereClauseParam. Basically do not use the same variable twice (even if you want to compare the same value)

    Thank you
    Shree

  • java.sql.SQLException: ORA-00923: KEYWORD not found where expected

    Hi all

    I wrote a stored procedure where I variables defined for selectColumn, fromClause and whereClause and I'm paasing to another procedure.
    But, while running, I get an error:

    "java.sql.SQLException: ORA-00923: KEYWORD not found where expected.


    XL_SPG_GetPagingSql (strColumnList,
    strFromClause,
    strWhereClause,
    strOrderByClause,
    intSortDirection_in,
    intStartRow_in,
    intPageSize_in,
    select_stmt);

    Please advice

    I think so.

    You will want to ensure that columns used in ORDER BY are listed in the SELECT statement since you use SEPARATE.

  • OFA: Passing XML to process / java.sql.SQLException: colum invalid Type

    I'm moving an XML file to a stored procedure. Regenerating my files myself gives no error, but when I run it in debug mode I get an error message that I'm trying to set my setting for the XML. The error message is java.sql.SQLException: invalid column type
    The error occurs on the line saying:

    cs.setObject(1,WsXml);

    WsXml is of type element.

    setObject was the only option that I found which seems to work, but now I'm wondering if there is no other possibility.
    Any suggestions?
    PS: I am a newbie in java and framework.


    to import java.sql.CallableStatement;
    import java.sql.SQLException;
    import java.sql.Types;

    Import oracle.apps.fnd.common.MessageToken;
    Import oracle.apps.fnd.framework.OAException;
    Import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    Import oracle.apps.fnd.framework.server.OADBTransaction;
    Import oracle.apps.fnd.framework.server.OAExceptionUtils;

    Import org.w3c.dom.Element;

    ...

    public String initSaveXml (item WsXml)
    {
    String status = "ToBeDecided";
    CallableStatement cs = null;
    VR;
    {
    String sql = "BEGIN ISS_XML2TABLE_PKG. ISS_AR_CUSTOMERS_TMP (?,?); END; « ;
    TXN OADBTransaction = getOADBTransaction();
    CS = txn.createCallableStatement(sql,1);
    cs.setObject(1,WsXml);
    cs.registerOutParameter(2,Types.VARCHAR);
    CS. Execute();
    OAExceptionUtils.checkErrors (txn);
    Status = cs.getString (2);
    CS. Close();
    }
    catch (SQLException sqle)
    {
    String Prosedyre = 'ISS_XML2TABLE_PKG. ISS_AR_CUSTOMERS_TMP ';
    String Errmsg = sqle.toString ();
    Tokens [] MessageToken = {new MessageToken ("PROSEDYRE", Prosedyre), new MessageToken ("Message of ERROR", Errmsg)};
    throw new OAException ("ISS", "ISS_PLSQL_ERROR", tokens, OAException.ERROR, null);
    }
    Back to Status;
    }

    ------------------------------------------------------------------

    The procedure I am tying to call is:
    procedure iss_ar_customers_tmp (p_xml IN xmltype
    p_status OUT varchar2);

    Published by: JaddaMasa on 09.sep.2009 05:54

    Hello

    To import the file mentioned, you must set the jar file that contains this file in your class path.
    Please do a search in your jar files in the JDev directory with search term "XMLType" and search in zip activated during the search.
    Even if you can't find a pot, refer to this thread Re: oracle.xdb.XMLType download or make google for the jar.

    On the passage of connection "conn", sorry, now I don't have JDev here. This object can be returned by OADBTransaction associated with your AM.

    Now finish the session.

    Abdul Wahid

  • Help: java.sql.SQLException: ORA-06550: line 1, column 7:, PLS-00201:

    Who can give me a hand to settle the question below? I use the db 11G for two or three days. This works. But now it displays information below, it blocks my server needs to be in place. Can anyone help to take a look? And explain to me what is meaning with below question?

    Thank you


    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00201: identifier ' INVALIDHTOMEH. KEEP ' should be declared

    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
    11/08/05 02:18:17-oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    11/08/05 02:18:17-oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    11/08/05 02:18:17-oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    11/08/05 02:18:17-oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:184)
    11/08/05 02:18:17-oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:873)
    11/08/05 02:18:17-oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1161)
    11/08/05 02:18:17-oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
    11/08/05 02:18:17-oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3093)
    11/08/05 02:18:17-oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4286)
    11/08/05 02:18:17-com.agile.pc.cmserver.util.OracleIDGenerator.pinSequence(OracleIDGenerator.java:245)
    11/08/05-02:18:17-com.agile.pc.cmserver.util.OracleIDGenerator. < init > (OracleIDGenerator.java:62)
    11/08/05 02:18:17-com.agile.pc.cmserver.util.CMUtilReflection.getOracleIDGenerator(CMUtilReflection.java:79)
    11/08/05 02:18:17-com.agile.util.dao.IDGenerator.getNewInstance(IDGenerator.java:78)
    11/08/05 02:18:17-com.agile.util.dao.IDGenerator.getInstance(IDGenerator.java:66)
    11/08/05 02:18:17-com.agile.util.dao.IDGenerator.getNextID(IDGenerator.java:91)
    11/08/05-02:18:17-com.agile.util.AppServerId. < clinit > (AppServerId.java:14)
    11/08/05 02:18:17-com.agile.startup.PCMStartupImpl.start(PCMStartupImpl.java:115)
    11/08/05 02:18:17-com.agile.ui.pcm.InitServlet.init(InitServlet.java:63)
    11/08/05 02:18:17-com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2379)
    11/08/05 02:18:17-com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4830)
    11/08/05 02:18:17-com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4754)
    11/08/05 02:18:17-com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4942)
    11/08/05 02:18:17-com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1144)
    11/08/05-02:18:17-com.evermind.server.http.HttpApplication. < init > (HttpApplication.java:741)
    11/08/05 02:18:17-com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:431)
    11/08/05 02:18:17-com.evermind.server.Application.getHttpApplication(Application.java:586)
    11/08/05 02:18:17-com.evermind.server.http.HttpSite$ HttpApplicationRunTimeReference.createHttpApplicationFromReference (HttpSite.java:1987)
    11/08/05 02:18:17-com.evermind.server.http.HttpSite$ HttpApplicationRunTimeReference. < init > (HttpSite.java:1906)
    11/08/05 02:18:17-com.evermind.server.http.HttpSite.initApplications(HttpSite.java:643)
    11/08/05 02:18:17-com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
    11/08/05 02:18:17-com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
    11/08/05 02:18:17-com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
    11/08/05 02:18:17-com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2493)
    11/08/05 02:18:17-com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1042)
    11/08/05 02:18:17-com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)

    Published by: user774630 on November 4, 2008 18:57

    # com.agile.pc.cmserver.util.OracleIDGenerator.pinSequence(OracleIDGenerator.java:245)

    This method tries to pin a sequence in the Shared Pool so that it is not recharged. Reloading can cause sequence numbers to be ignored, if I remember correctly.
    Pinning is done using packed the INVALIDHTOMEH procedure. KEEP. The error is reported because either the package INVALIDHTOMEH is not created in the database (the $ORACLE_HOME/rdbms/admin/dbmspool.sql script creates) or the user who connects to the database have not run privilege for the package.

    Note that the package has access to the shared swimming pool. Execute privilege to grant only trusted users.

    -Sergiusz

  • Houston-27122: SQL error in the preparation of the statement in OAF(java.sql.SQLException: ORA-01008: not all variables bound)

    Hi friends,

    I've extended CO where I added dynamic VO where condition, it start error.

    Code added to the controller:

    SerializableAttribute public class Custom_HomePageCO extends HomePageCO

    {

    public Custom_HomePageCO()

    {

    }

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processRequest (pageContext, webBean);

    System.out.println ("NewClase");

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    System.out.println (AM);

    OAApplicationModule am1 = (OAApplicationModule) am.findApplicationModule ("TrackExpenseReportsAM");

    System.out.println (AM1);

    OAViewObject vo = (OAViewObject) am1.findViewObject ("TrackExpenseReportsVO");

    System.out.println (VO);

    vo.setWhereClause ("REPORT_SUBMITTED_DATE is not null");

    vo.executeQuery ();

    }

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processFormRequest (pageContext, webBean);

    }

    }

    Error message:

    Details of the exception.

    Error details
    Logout



    Error page


    Details of the exception.

    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement.  Statement: SELECT * FROM (SELECT
    BIM OBJECT DESCRIPTION,
    BIM INVOICE_CURRENCY_CODE CURRENCY_CODE,
    BIM INVOICE_DATE REPORT_DATE,
    AERH. REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
    BIM INVOICE_NUM REPORT_NUMBER,
    To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
    0, decode (HAVE. CANCELLED_DATE,
    NULL, APS. GROSS_AMOUNT,
    AERH. IN TOTAL).
    NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
    FND_CURRENCY_CACHE. GET_FORMAT_MASK
    (HAVE. INVOICE_CURRENCY_CODE, 30)). » '|| BIM INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
    To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
    0, decode (HAVE. CANCELLED_DATE,
    NULL, APS. GROSS_AMOUNT,
    AERH. IN TOTAL).
    NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
    FND_CURRENCY_CACHE. GET_FORMAT_MASK
    (HAVE. INVOICE_CURRENCY_CODE, 30))
    REPORT_TOTAL,
    P.PERSON_ID EMPLOYE_ID,
    AERH. REPORT_HEADER_ID REPORT_HEADER_ID,
    P.FULL_NAME FULL_NAME,
    DECODE (AI. CANCELLED_DATE, null,


    NVL (aerh.expense_status_code, DECODE (APS. GROSS_AMOUNT, 0, 'PAY. "
    decode (HAVE. Payment_status_flag, 'Y', 'PAID. "
    ', 'BILL. "
    'P', 'PARPAID', NULL))),
    STATUS_CODE "CANCELLED"),
    AERH.source SOURCE,
    CURRENT_APPROVER NULL,
    ROUND (sysdate - HAVE. DAYS_SINCE_ACTIVITY LAST_UPDATE_DATE),
    AERH. RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
    AERH. HOLDING_REPORT_HEADER_ID,
    BIM VENDOR_ID VENDOR_ID,
    AERH. AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
    AERH. AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,
    'CurrentApproverName' CURRENT_APPROVER_SWITCHER,
    TO_CHAR (AERH. LAST_UPDATE_DATE, 'DD-MON-RRRR HH'),
    BIM INVOICE_ID INVOICE_ID
    Of
    AK_WEB_USER_SEC_ATTR_VALUES, A.
    PO_VENDORS PV,
    AP_INVOICES HAVE,
    AP_EXPENSE_REPORT_HEADERS AERH,
    PER_PEOPLE_X P,.
    AP_PAYMENT_SCHEDULES APS
    WHERE DID. INVOICE_ID = APS. INVOICE_ID
    AND THE AI. INVOICE_ID = AERH. VOUCHNO (+)
    AND THE AI. INVOICE_TYPE_LOOKUP_CODE: "="BILL ".
    AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID. '
    AND THE PV. EMPLOYEE_ID = A.NUMBER_VALUE
    AND A.WEB_USER_ID =: 1
    AND P.PERSON_ID = PV. EMPLOYEE_ID
    AND THE PV. VENDOR_ID = HAVE. VENDOR_ID
    AND DECODE (AI. PAYMENT_STATUS_FLAG,
    'Y' sysdate - I. LAST_UPDATE_DATE,
    decode (APS. GROSS_AMOUNT, 0, sysdate - I. LAST_UPDATE_DATE, 0)
    ) < = 30
    AND (AERH. SOURCE <>"The two Pay" OR AERH. REPORT_HEADER_ID IS NULL)
    UNION
    SELECT
    BIM OBJECT DESCRIPTION,
    BIM INVOICE_CURRENCY_CODE CURRENCY_CODE,
    BIM INVOICE_DATE REPORT_DATE,
    AERH. REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
    BIM INVOICE_NUM REPORT_NUMBER,
    To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
    0, decode (HAVE. CANCELLED_DATE,
    NULL, APS. GROSS_AMOUNT,
    AERH. IN TOTAL).
    NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
    FND_CURRENCY_CACHE. GET_FORMAT_MASK
    (HAVE. INVOICE_CURRENCY_CODE, 30)). » '|| BIM INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
    To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
    0, decode (HAVE. CANCELLED_DATE,
    NULL, APS. GROSS_AMOUNT,
    AERH. IN TOTAL).
    NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
    FND_CURRENCY_CACHE. GET_FORMAT_MASK
    (HAVE. INVOICE_CURRENCY_CODE, 30))
    REPORT_TOTAL,
    P.PERSON_ID EMPLOYE_ID,
    AERH. REPORT_HEADER_ID REPORT_HEADER_ID,
    P.FULL_NAME FULL_NAME,
    DECODE (AI. CANCELLED_DATE, null,
    NVL (aerh.expense_status_code, DECODE (APS. GROSS_AMOUNT, 0, 'PAY. "
    decode (HAVE. Payment_status_flag, 'Y', 'PAID. "
    ', 'BILL. "
    'P', 'PARPAID', NULL))),
    STATUS_CODE "CANCELLED"),
    AERH.source SOURCE,
    CURRENT_APPROVER NULL,
    ROUND (sysdate - HAVE. DAYS_SINCE_ACTIVITY LAST_UPDATE_DATE),
    AERH. RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
    AERH. HOLDING_REPORT_HEADER_ID,
    BIM VENDOR_ID VENDOR_ID,
    AERH. AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
    AERH. AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,
    'CurrentApproverName' CURRENT_APPROVER_SWITCHER,
    TO_CHAR (AERH. LAST_UPDATE_DATE, 'DD-MON-RRRR HH'),
    BIM INVOICE_ID INVOICE_ID
    Of
    AK_WEB_USER_SEC_ATTR_VALUES, A.
    PO_VENDORS PV,
    AP_INVOICES HAVE,
    AP_EXPENSE_REPORT_HEADERS AERH,
    PER_PEOPLE_X P,.
    AP_PAYMENT_SCHEDULES APS
    WHERE DID. INVOICE_ID = APS. INVOICE_ID
    AND THE AI. INVOICE_ID = AERH. VOUCHNO (+)
    AND THE AI. INVOICE_TYPE_LOOKUP_CODE: "in ("STANDARD "," MIXED")
    AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID. '
    AND THE AI. PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
    AND A.WEB_USER_ID =: 2
    AND P.PERSON_ID = I. PAID_ON_BEHALF_EMPLOYEE_ID
    AND THE PV. VENDOR_ID = HAVE. VENDOR_ID
    AND DECODE (AI. PAYMENT_STATUS_FLAG,
    'Y' sysdate - I. LAST_UPDATE_DATE,
    decode (APS. GROSS_AMOUNT, 0, sysdate - I. LAST_UPDATE_DATE, 0)
    ) < = 30
    AND (AERH. SOURCE <>"The two Pay" OR AERH. REPORT_HEADER_ID IS NULL)
    UNION ALL
    SELECT
    AERH. DESCRIPTION OBJECT,
    AERH. DEFAULT_CURRENCY_CODE CURRENCY_CODE,
    AERH. WEEK_END_DATE REPORT_DATE,
    AERH. REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
    AERH. INVOICE_NUM REPORT_NUMBER,
    To_char (nvl (AERH. AMT_DUE_CCARD_COMPANY + AERH. AMT_DUE_EMPLOYEE + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0), AERH. IN TOTAL), FND_CURRENCY_CACHE. GET_FORMAT_MASK
    (AERH. DEFAULT_CURRENCY_CODE, 30)). » '|| AERH. DEFAULT_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
    To_char (nvl (AERH. AMT_DUE_CCARD_COMPANY + AERH. AMT_DUE_EMPLOYEE + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0), AERH. IN TOTAL), FND_CURRENCY_CACHE. GET_FORMAT_MASK
    (AERH. DEFAULT_CURRENCY_CODE, 30)) REPORT_TOTAL,.
    PER_EMPLOYEE. PERSON_ID EMPLOYEE_ID,
    AERH. REPORT_HEADER_ID REPORT_HEADER_ID,
    PER_EMPLOYEE. FULL_NAME FULL_NAME,
    NVL (AERH.expense_status_code,
    AP_WEB_OA_ACTIVE_PKG. GetReportStatusCode (AERH. Source, AERH. Workflow_approved_flag,
    AERH.report_header_id, 'Y', 'n')) STATUS_CODE.
    AERH.source SOURCE,
    NVL (PER_APPROVER.full_name, AP_WEB_OA_ACTIVE_PKG. GetCurrentApprover (AERH. Source,
    AERH. Workflow_approved_flag, AERH.report_header_id, AERH.expense_status_code)) CURRENT_APPROVER;
    ROUND (NVL (sysdate - AERH. EXPENSE_LAST_STATUS_DATE,
    SYSDATE - AERH. DAYS_SINCE_ACTIVITY LAST_UPDATE_DATE)),
    AERH. RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
    AERH. HOLDING_REPORT_HEADER_ID,
    0 VENDOR_ID,
    AERH. AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
    AERH. AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,
    Decode (aerh.expense_current_approver_id,
    -99999, "AMEMultipleApprovers."
    Decode (PER_APPROVER.full_name,
    (null, 'CurrentApproverName', 'AMESingleApprover')) CURRENT_APPROVER_SWITCHER,
    TO_CHAR (AERH. LAST_UPDATE_DATE, 'DD-MON-RRRR HH'),
    -INVOICE_ID 1
    Of
    AK_WEB_USER_SEC_ATTR_VALUES, A.
    AP_EXPENSE_REPORT_HEADERS AERH,
    PER_PEOPLE_X PER_EMPLOYEE,
    PER_PEOPLE_X PER_APPROVER
    WHERE AERH. VOUCHNO + 0 = 0
    AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID. '
    AND AERH. EMPLOYEE_ID = A.NUMBER_VALUE
    AND A.WEB_USER_ID =: 3
    AND PER_EMPLOYEE. PERSON_ID = AERH. EMPLOYEE_ID
    AND (AERH. Source <>"NonValidatedWebExpense".
    OR AERH. Workflow_approved_flag IS NULL)
    AND AERH.expense_current_approver_id = PER_APPROVER.person_id
    AND decode (AERH.total, 0, ROUND (NVL (sysdate - AERH.) EXPENSE_LAST_STATUS_DATE, sysdate - AERH. (LAST_UPDATE_DATE)), 30) < = 30
    AND AERH. SOURCE <>"the two Pay."
    UNION
    SELECT
    AERH. DESCRIPTION OBJECT,
    AERH. DEFAULT_CURRENCY_CODE CURRENCY_CODE,
    AERH. WEEK_END_DATE REPORT_DATE,
    AERH. REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
    AERH. INVOICE_NUM REPORT_NUMBER,
    To_char (nvl (AERH. AMT_DUE_CCARD_COMPANY + AERH. AMT_DUE_EMPLOYEE + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0), AERH. IN TOTAL), FND_CURRENCY_CACHE. GET_FORMAT_MASK
    (AERH. DEFAULT_CURRENCY_CODE, 30)). » '|| AERH. DEFAULT_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
    To_char (nvl (AERH. AMT_DUE_CCARD_COMPANY + AERH. AMT_DUE_EMPLOYEE + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0), AERH. IN TOTAL), FND_CURRENCY_CACHE. GET_FORMAT_MASK
    (AERH. DEFAULT_CURRENCY_CODE, 30)) REPORT_TOTAL,.
    PER_EMPLOYEE. PERSON_ID EMPLOYEE_ID,
    AERH. REPORT_HEADER_ID REPORT_HEADER_ID,
    PER_EMPLOYEE. FULL_NAME FULL_NAME,
    NVL (AERH.expense_status_code,
    AP_WEB_OA_ACTIVE_PKG. GetReportStatusCode (AERH. Source, AERH. Workflow_approved_flag,
    AERH.report_header_id, 'Y',' don't)) STATUS_CODE.
    AERH.source SOURCE,
    NVL (PER_APPROVER.full_name, AP_WEB_OA_ACTIVE_PKG. GetCurrentApprover (AERH. Source,
    AERH. Workflow_approved_flag, AERH.report_header_id, AERH.expense_status_code)) CURRENT_APPROVER;
    ROUND (NVL (sysdate - AERH. EXPENSE_LAST_STATUS_DATE,
    SYSDATE - AERH. DAYS_SINCE_ACTIVITY LAST_UPDATE_DATE)),
    AERH. RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
    AERH. HOLDING_REPORT_HEADER_ID,
    0 VENDOR_ID,
    AERH. AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
    AERH. AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,
    Decode (aerh.expense_current_approver_id,
    -99999, "AMEMultipleApprovers."
    Decode (PER_APPROVER.full_name,
    (null, 'CurrentApproverName', 'AMESingleApprover')) CURRENT_APPROVER_SWITCHER,
    TO_CHAR (AERH. LAST_UPDATE_DATE, 'DD-MON-RRRR HH'),
    -INVOICE_ID 1
    Of
    AK_WEB_USER_SEC_ATTR_VALUES, A.
    AP_EXPENSE_REPORT_HEADERS AERH,
    PER_PEOPLE_X PER_EMPLOYEE,
    PER_PEOPLE_X PER_APPROVER
    WHERE AERH. VOUCHNO + 0 = 0
    AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID. '
    AND AERH. PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
    AND A.WEB_USER_ID =: 4
    AND PER_EMPLOYEE. PERSON_ID = PAID_ON_BEHALF_EMPLOYEE_ID
    AND AERH. EMPLOYEE_ID IS NULL
    AND (AERH. Source <>"NonValidatedWebExpense".
    OR AERH. Workflow_approved_flag IS NULL)
    AND AERH.expense_current_approver_id = PER_APPROVER.person_id
    AND decode (AERH.total, 0, ROUND (NVL (sysdate - AERH.) EXPENSE_LAST_STATUS_DATE, sysdate - AERH. (LAST_UPDATE_DATE)), 30) < = 30
    AND AERH. SOURCE <>"the two Pay."
    UNION ALL
    / * This selection is for reports of invoice imported by casual workers * /.
    SELECT
    BIM OBJECT DESCRIPTION,
    BIM INVOICE_CURRENCY_CODE CURRENCY_CODE,
    BIM INVOICE_DATE REPORT_DATE,
    AERH. REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
    BIM INVOICE_NUM REPORT_NUMBER,
    To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
    0, decode (HAVE. CANCELLED_DATE,
    NULL, APS. GROSS_AMOUNT,
    AERH. IN TOTAL).
    NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
    FND_CURRENCY_CACHE. GET_FORMAT_MASK
    (HAVE. INVOICE_CURRENCY_CODE, 30)). » '|| BIM INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
    To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
    0, decode (HAVE. CANCELLED_DATE,
    NULL, APS. GROSS_AMOUNT,
    AERH. IN TOTAL).
    NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
    FND_CURRENCY_CACHE. GET_FORMAT_MASK
    (HAVE. INVOICE_CURRENCY_CODE, 30))
    REPORT_TOTAL,
    P.PERSON_ID EMPLOYE_ID,
    AERH. REPORT_HEADER_ID REPORT_HEADER_ID,
    P.FULL_NAME FULL_NAME,
    DECODE (AI. CANCELLED_DATE, null,
    NVL (aerh.expense_status_code, DECODE (APS. GROSS_AMOUNT, 0, 'PAY. "
    decode (HAVE. Payment_status_flag, 'Y', 'PAID. "
    ', 'BILL. "
    'P', 'PARPAID', NULL))),
    STATUS_CODE "CANCELLED"),
    AERH.source SOURCE,
    CURRENT_APPROVER NULL,
    ROUND (sysdate - HAVE. DAYS_SINCE_ACTIVITY LAST_UPDATE_DATE),
    AERH. RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
    AERH. HOLDING_REPORT_HEADER_ID,
    BIM VENDOR_ID VENDOR_ID,
    AERH. AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
    AERH. AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,
    'CurrentApproverName' CURRENT_APPROVER_SWITCHER,
    TO_CHAR (AERH. LAST_UPDATE_DATE, 'DD-MON-RRRR HH'),
    BIM INVOICE_ID INVOICE_ID
    Of
    AK_WEB_USER_SEC_ATTR_VALUES, A.
    AP_INVOICES HAVE,
    AP_EXPENSE_REPORT_HEADERS AERH,
    PER_PEOPLE_X P,.
    AP_PAYMENT_SCHEDULES APS
    WHERE DID. INVOICE_ID = APS. INVOICE_ID
    AND THE AI. INVOICE_ID = AERH. VOUCHNO (+)
    AND THE AI. INVOICE_TYPE_LOOKUP_CODE: "="BILL ".
    AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID. '
    AND THE AI. PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
    AND A.WEB_USER_ID =: 5
    AND P.PERSON_ID = I. PAID_ON_BEHALF_EMPLOYEE_ID
    AND AP_WEB_DB_HR_INT_PKG. IsPersonCwk (HAVE. PAID_ON_BEHALF_EMPLOYEE_ID) = 'Y '.
    AND DECODE (AI. PAYMENT_STATUS_FLAG,
    'Y' sysdate - I. LAST_UPDATE_DATE,
    decode (APS. GROSS_AMOUNT, 0, sysdate - I. LAST_UPDATE_DATE, 0)
    ) < = 30
    AND (AERH. SOURCE <>"The two Pay" OR AERH. REPORT_HEADER_ID IS NULL)) QRSLT WHERE (REPORT_SUBMITTED_DATE is not null)
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:603)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
    at _OA._jspService(OA.jsp:33)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    # # 0 in detail
    java.sql.SQLException: ORA-01008: not all variables

    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:583)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
    at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
    at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
    at oracle.apps.ap.oie.webui.Custom_HomePageCO.processRequest(Custom_HomePageCO.java:26)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
    at _OA._jspService(OA.jsp:33)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: ORA-01008: not all variables

    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:583)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
    at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
    at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
    at oracle.apps.ap.oie.webui.Custom_HomePageCO.processRequest(Custom_HomePageCO.java:26)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
    at _OA._jspService(OA.jsp:33)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)

    I took the sql error message and tried the same performance in Toad... I could run it smoothly... I dot know why his work during the execution of the page

    Please help me guys...

    Thank you

    Pavan

    See you are not sure if they make somewhere clause or where clause params. Your code can be disturbing the standard flow of the code

    Try

    (a) Substitution of view object

    (b)

    OAViewObject vo = (OAViewObject) am1.findViewObject ("TrackExpenseReportsVO");

    System.out.println (VO);

    vo.setWhereClause (null);

    vo.setWhereClause ("REPORT_SUBMITTED_DATE is not null");

    vo.executeQuery (); do not run

    B. try if this does not work go for a

    Concerning

    Marie Lise S

  • java.sql.SQLException: ORA-06550 and ORA-00900 call stored procedures

    Hi all

    I have 2 a stored procedures that I want to call from my Session bean. One of them takes a few settings, but not the other. When I call the procedures, I get the following errors described below. I tested the two stored procedures in sql plus and sqldveleoper and they work well. The funniest, it is, I have another stored procedure that I can call successfully from the same bean in session with no problems, so I'm a bit confused as to why his play now.

    I use stand-alone 10.1.3.4 OC4J and Oracle 10 g Db 10.2.0.4 and platform DB that I use is Oracle10gPlatform and Eclipselink as my JPA provider. I have also tried against toplink (not toplink essentials) and still no joy

    Here is the error I get when I try and call the procedure which takes the parameters of the session bean
    Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'HASHDATA'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    
    Error Code: 6550
    Call: BEGIN HashData(input=>?, hashedValue=>?, hashed=>?); END;
         bind => [password1, => hashedValue, => hashed]
    Query: DataReadQuery()
    Here are my stored procedure that take parameters
    create or replace procedure hashData(input IN VARCHAR2, hashedValue OUT BLOB, hashed OUT BOOLEAN)  as  
    
    inputRaw RAW(2000);
    --hashed BOOLEAN := false;
    begin 
    
    dbms_output.put_line('the data to be hashed is '||input);
    
    dbms_output.put_line('converting input to raw ...');
    inputRaw := utl_i18n.string_to_raw(input,'AL32UTF8');
    
    dbms_output.put_line('Hashing Data ...');
    hashedValue := DBMS_CRYPTO.Hash (src=>inputRaw,typ=>DBMS_CRYPTO.HASH_SH1);
    
    dbms_output.put_line('hash is '||UTL_I18N.raw_to_char(dbms_lob.substr(hashedValue, 4000,1)));
    
    if (hashedValue  is not null) then 
     
    
     hashed :=true;
      dbms_output.put_line('hashedValue IS NOT  null');
     else
     hashed := false;
      dbms_output.put_line('hashedValue IS null');
     end if;
    
    end;
    Here is my code in the session bean to call the procedure that takes as parameters (Hashdata)

    public UserBean() {
              // TODO Auto-generated constructor stub
    
              sessMan = SessionManager.getManager();
              session = sessMan.getSession("Session", Thread.currentThread()
                        .getContextClassLoader());
    
         }
    
    public Serializable hashData(String input){
    
              logger.debug("Hashing Data ... "); 
              hashedValue= null; 
              boolean hashed=false; 
         
              StoredProcedureCall call = new StoredProcedureCall();
    
              ValueReadQuery query = new ValueReadQuery();
              call.setProcedureName("HashData");
              call.addNamedArgumentValue("input", input);
              call.addNamedOutputArgument("hashedValue", "hashedValue", java.sql.Blob.class);
              call.addNamedOutputArgument("hashed", "hashed", java.lang.Integer.class);
                        
              query.addArgument("input");
              
              query.setCall(call);
              
              session.executeQuery(query);
               
              if ((Boolean)hashed){
                   logger.debug("The data has been hashed and the hash value is: "+hashedValue);
              }
              
              else{
                   logger.debug("The data has could not be hashed");
                   hashedValue=null;
              }
              
              return (Serializable)hashedValue;
              }
    When I call the other takes no parameters, I get the following error.
    Internal Exception: java.sql.SQLException: ORA-00900: invalid SQL statement
    
    Error Code: 900
    Call: BEGIN testJPAProc(); END;
    Query: DataReadQuery()
    Here is the procedure which takes no parameters
    create or replace procedure testJPAProc is 
     
     begin
     dbms_output.put_line('testJPAProc called');
     end;
    Heres is the code to call procedures that take no parameters
                                    StoredProcedureCall call = new StoredProcedureCall();
      
              ValueReadQuery query = new ValueReadQuery();
              
              call.setProcedureName("testJPAProc");
              query.setCall(call);
              
              session.executeQuery(query);
    You guys can tell me where I'm wrong if I do something wrong. Why make these mistakes? because as far as I can tell the code (java and pl/sql) are both correct unless there is something I missed. It's kinda funny because I have another stored procedure I can call successfully.


    Thank you

    The first question is that the Boolean in Oracle is not a supported JDBC type, but a PLSQL type.
    Change to an INTEGER is probably the best, you can also use the PLSQLStoredProcedureCall class to access.

    The second problem is perhaps that the stored procedure is not valid, make sure that it compiled correctly. It can also be the type of your query, you must use a DataModifyQuery, not a read request that it returns nothing.
    If still no luck, try to call directly through JDBC, it works?

    ---
    James: http://www.eclipselink.org: http://en.wikibooks.org/wiki/Java_Persistence

  • "Is:java.sql.SQLException error: ORA-01555: snapshot too old: rollback segment number with the name ' ' too small '.

    Hello

    We conduct apply CM which is a failure with the Error: "declared:java.sql.SQLException: ORA-01555: snapshot too old: rollback segment number with the name '' too small'."

    Its in our unique the production instance. I checked on the return parameter. Here are the details.

    SQL > show Cancel parameter

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    _in_memory_undo Boolean TRUE

    _undo_debug_usage integer 2

    UNDO_MANAGEMENT string AUTO

    UNDO_RETENTION integer 40000

    undo_tablespace string APPS_UNDOTS1

    SQL > select max (maxquerylen) of v$ undostat;

    MAX (MAXQUERYLEN)

    ----------------

    637116

    Please suggest what needs to be done to go further.


    Kind regards

    Prabhat.

    Post edited by: 942633

    Hello

    ORA-02067: the rollback transaction or registration required

    As mentioned, you will need to look at the design of the code:

    Error: ORA 2067
    Text: rollback transaction or registration required
    -------------------------------------------------------------------------------
    Cause: A failure (typically a trigger or a stored procedure with several updates remotely) has occurred, such as the execution of all or nothing from a previous call to Oracle cannot be guaranteed.
    Action: return to a previous point of backup or restore the transaction and resubmit.

    ------

    ORA-01555 caused by the following SQL statement (SQL ID: 5y0q4u8r2hdy9, query term s = 637608, SCN: 0x0bcc.4ed82762):

    ------

    ACTUAL SIZE [MB] UNDO UNDO RETENTION [s] NECESSARY UNDO SIZE [MB]

    ------------------------                   ------------------------------------------------------------------------- ------------------------

    304849 40000 267232.292

    To better help you, please let us know:

    -What is the function of this program.

    -Did you recently parameter changes until you have this error.

    Please ensure that the validation controls are implemented correctly, the DBA team and development will work hand in hand.

    Thank you &

    Best regards

  • java.sql.SQLException: timed out trying to establish connection


    I am trying to connect to SQL Server 2012 with flag MULTISUBNETFAILOVER = TRUE


    I created the DSN and it works fine for a day and then I get erorr below. I checked the Server DB and its place and work fine and able to connect to it in management studio. Once I restart the server the question get it fixed. Anyone had any idea on why this problem occurs. I'm using the sqljdbc4.jar for this connection.


    The root cause was that: java.sql.SQLException: timed out trying to establish connection

    Again, I do not think QofQ supports the TRIM feature.  In fact, the only place that Trim appears on the QofQ page in Adobe docs is to indicate it is a reserved word and should not be used.

    As far as I see, you have only two choices here: change your database queries to use the FILLING before you run your QofQ, or to change the data columns (x) char and nchar (x) (x) varchar and nvarchar (x).  Unless this or other applications are based on fixed-length character fields, switch to varchar (x) /nvarchar (x) should not lead to any loss of data or side effects.

    -Carl V.

  • java.sql.SQLException: stream has already been closed when using long vo

    Hi all

    I get the following exception java.sql.SQLException: stream has already been closed.
    This is the first time that we met this exception, even if we use the application for some time.

    This configuration attribute.
    < ViewAttribute
    Name = "AdditionalWhereClause".
    IsUpdateable = "false".
    IsQueriable = "false".
    IsPersistent = "false".
    PrecisionRule = 'true '.
    Type = "Java.lang.String"
    ColumnType = "LONG".
    AliasName = 'ADDITIONAL_WHERE_CLAUSE. '
    Expression = "ADDITIONAL_WHERE_CLAUSE."
    SQLType = "VARCHAR" / >


    Any body has clues.

    Help is appreciated.

    -Nanga

    You're using Long or Long Raw in DB. If Yes, would be great if you can file a bug with the test case. BTW, the below given points have been suggested for problems similar return some time assuming you are using the type Long (btw, I have not tried these personally)
    1. JVM option "-Doracle.jdbc.useFetchSizeWithLongColumn = true '.
    2. make SQLTYPE as long in the application (XMLs EO/VO)
    3 convert the type LONG LOB (table).

  • Cause: java.sql.SQLException: ORA-22295: unable to bind more than 4000 bytes

    Hello

    When you use Java/XML to insert, we got an error like:

    Cause: java.sql.SQLException: ORA-01461: can bind to a LONG value only for insert into a LONG column

    then change column varchar2 (4000) to a long data type.

    as:
    truncate table BAM_ACTIVITY

    ALTER TABLE BAM_ACTIVITY CHANGE (CONTEXT LONG);


    then download the new error message like:

    Cause: java.sql.SQLException: ORA-22295: impossible to link more LOB data and LONG columns 4000 bytes in 1 statement


    I think that time limit of data type is only 2 Giga bytes, do we need to change the data type of this column to
    CLOB, which can be as large as 4 GB,

    Or an experience to draw from this kind of error?

    Thank you very much

    Roy

    Published by: ROY123 on January 25, 2010 14:26

    Published by: ROY123 on January 25, 2010 14:27

    Has LONG been deprecated for a (pardon the pun) a very long time.

    CLOB would be your horse if you need store more than 4000 bytes of information.

    If you need help with that (insert via java), this can provide useful information for you.

    [http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/clob10g/handlingclobsinoraclejdbc10g.html]

  • What is the reason for the error. weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired

    Mr President

    Make me a mistake for an adf application.

    Running application ElizaSoft on IntegratedWebLogicServer...] 
    [06:38:05 PM] Web Module ViewControllerWebApp.war recognized in project ViewController.jpr
    [06:38:07 PM] ----  Deployment started.  ----
    [06:38:07 PM] Target platform is  (Weblogic 12.x).
    [06:38:10 PM] Retrieving existing application information
    [06:38:11 PM] Running dependency analysis...
    [06:38:11 PM] Deploying 2 profiles...
    [06:38:20 PM] Wrote Web Application Module to C:\Users\TANVIR\AppData\Roaming\JDeveloper\system12.2.1.0.42.151011.0031\o.j2ee\drs\ElizaSoft\ViewControllerWebApp.war
    [06:38:22 PM] Wrote Enterprise Application Module to C:\Users\TANVIR\AppData\Roaming\JDeveloper\system12.2.1.0.42.151011.0031\o.j2ee\drs\ElizaSoft
    [06:38:23 PM] Deploying 3 data source(s) to the server...
    [06:38:24 PM] Deploying Application...
    <Jan 3, 2016 6:38:35 PM PKT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "2192494870412" for task "0" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired
    "
    weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:402)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:196)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:191)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
      Truncated. see log file for complete stacktrace
    Caused By: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:466)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:391)
      at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1126)
      at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:507)
      Truncated. see log file for complete stacktrace
    > 
    <Jan 3, 2016 6:38:36 PM PKT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "ElizaSoft".> 
    <Jan 3, 2016 6:38:36 PM PKT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:402)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:196)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:191)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
      Truncated. see log file for complete stacktrace
    Caused By: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:466)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:391)
      at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1126)
      at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:507)
      Truncated. see log file for complete stacktrace
    > 
    [06:38:36 PM] Deployment cancelled.
    [06:38:37 PM] ----  Deployment incomplete  ----.
    [06:38:37 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    #### Cannot run application ElizaSoft due to error deploying to IntegratedWebLogicServer.
    [06:38:37 PM] Cancel requested
    [Application ElizaSoft stopped and undeployed from IntegratedWebLogicServer]
    
    

    But I got back to the top of the same request for the same user and password but it works and do not give the error.

    Help, please.

    Concerning

    Mr President

    I just want to remove the old conn ide and create a new ide conn and add to the application and it works

    Concerning

Maybe you are looking for