Java.sql.SQLDataException: ORA-01878: specified field not found in datetime

I am getting the exception mentioned in the subject field. Here is the query
select * from tabel_abc where from_tz(cast(LAST_RECEIVED_TIME + timeout_duration/86400 as timestamp),'UTC') <systimestamp at time zone 'UTC';
This is happening only for the during the daylight saving, because the date operation is returning the incorrect time value.
timeout_duration holds the value in terms of number of seconds.
Please suggest how to resolve the issue.
Caused by: java.sql.SQLDataException: ORA-01878: specified field not found in
datetime or interval
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
at
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
at
oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.ja
va:1079)
at
oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1
293)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1
419)
at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedState
ment.java:3752)
at
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatemen
t.java:3806)
at
oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedS
tatementWrapper.java:1667)
at
weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:13
5)
at

>
When I run the following expression on this value I get the ORA-01878 error:
(EXTRACT(DAY FROM ((ETD_ZULU - 4/24) - SYSTIMESTAMP)))
>
That isn't the same as the snippet you first posted
This works
select EXTRACT(DAY FROM ((ETD_ZULU - 4/24) - SYSTIMESTAMP)) from
(select cast (systimestamp as timestamp(6)) etd_zulu from dual)The first snippet you posted was
>
select * from tabel_abc where from_tz(cast(LAST_RECEIVED_TIME + timeout_duration/86400 as timestamp),'UTC') <systimestamp at time zone 'UTC';
>
And it includes time zone. All of the web references I have found indicate the problem is either a missing timezone or a timezone mismatch.
I can't reproduce the problem with the last snippet you used. Are you certain that ETD_ZULE is timestamp and does not include timezone?
Do you have a complete query that fails? If so, try to narrow the query down to one record that is causing the problem. If you have to you can use brute force approach. Assume that 60 records should be produced. Add
WHERE ROWNUM < 30to the query. If it runs clean the problem is in the second half so use '< 40', and keep testing until you know which record. Then examine the contents of the field for that record.
Without some code to try to reproduce the problem there isn't much other help to offer.

Similar Messages

  • ORA-01878: specified field not found in datetime or interval

    I have TIME_SOLD field which is a date data type. WHen I run a simple query against this table with the where clause below, I get ORA-01878: specified field not found in datetime or interval. Please help?
    and to_char(from_tz(cast(time_sold as timestamp), 'Australia/Sydney') at time zone 'US/Pacific', 'yyyymmdd') >= '20091001'
    and to_char(from_tz(cast(time_sold as timestamp), 'Australia/Sydney') at time zone 'US/Pacific', 'yyyymmdd') < '20091101'

    just to give an exampe I've created a table called your_table with a date field (time_sold).
    I've inserted 100 random values plus this one: 20090329 02:30:00 (read it using the format yyyymmdd hh24:mi:ss).
    It's a non valid time in Rome because on March 29 we went to the DST so time skipped from 02.00 to 03.00.
    Here's my script's result:
    SQL> declare
      2    x varchar2(100);
      3    cursor c is
      4      select time_sold from your_table;
      5  begin
      6    for r in c loop
      7      begin
      8       x:= to_char(from_tz(cast(r.time_sold as timestamp), 'Europe/Rome') at time zone 'US/Pacific', 'yyyym
    mdd');
      9      exception
    10        when others then
    11           DBMS_OUTPUT.PUT_LINE(SQLCODE||' '||to_char(r.time_sold,'yyyymmdd hh24:mi:ss'));
    12      end;
    13    end loop;
    14  end;
    15  /
    -1878 20090329 02:30:00Max

  • Java.sql.SQLDataException: ORA-01882: timezone region  not found

    i am new in jdeveloper 11g.i using jdeveloper 11g version. Studio Edition Version 11.1.1.0.0 Build JDEVADF_MAIN.BOXER_GENERIC_081002.2127.5156 Studio Edition Version 11.1.1.0.0
    Firefox3 - 3.0.3 os : fedora 9 -- Linux myname 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686 i686 i386 GNU/Linux
    java version : usr/java/jdk1.6.0_06
    following running default server log
    ==============================
    [48] BC4J Property AppModuleJndiName='sc.wadia.model.AppModule' -->(SessionImpl) from Client Environment
    [49] Skipping empty Property java.naming.security.principal from System Default
    [50] Skipping empty Property java.naming.security.credentials from System Default
    [51] Skipping empty Property jbo.user.principal from System Default
    [52] BC4J Property jbo.simulate.remote='false' -->(SessionImpl) from System Default
    [53] BC4J Property jbo.security.context='oracle.security.jazn' -->(MetaObjectManager) from System Default
    [54] Skipping empty Property jbo.object.marshaller from System Default
    [55] BC4J Property jbo.use.pers.coll='false' -->(SessionImpl) from System Default
    [56] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
    [57] BC4J Property jbo.pers.max.active.nodes='30' -->(SessionImpl) from System Default
    [58] BC4J Property jbo.validation.threshold='10' -->(SessionImpl) from System Default
    [59] Skipping empty Property jbo.pcoll.mgr from System Default
    [60] BC4J Property jbo.txn_table_name='PS_TXN' -->(SessionImpl) from System Default
    [61] BC4J Property jbo.txn_seq_name='PS_TXN_seq' -->(SessionImpl) from System Default
    [62] BC4J Property jbo.txn_seq_inc='50' -->(SessionImpl) from System Default
    [63] BC4J Property jbo.control_table_name='PCOLL_CONTROL' -->(MetaObjectManager) from System Default
    [64] BC4J Property jbo.stringmanager.factory.class='use_default' -->(SessionImpl) from System Default
    [65] BC4J Property jbo.domain.date.suppress_zero_time='true' -->(MetaObjectManager) from System Default
    [66] BC4J Property jbo.domain.bind_sql_date='true' -->(MetaObjectManager) from System Default
    [67] BC4J Property jbo.domain.string.as.bytes.for.raw='false' -->(MetaObjectManager) from System Default
    [68] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
    [69] BC4J Property jbo.323.compatible='false' -->(MetaObjectManager) from System Default
    [70] BC4J Property jbo.903.compatible='false' -->(MetaObjectManager) from System Default
    [71] Skipping empty Property JBODynamicObjectsPackage from System Default
    [72] BC4J Property MetaObjectContextFactory='oracle.jbo.mom.xml.DefaultMomContextFactory' -->(MetaObjectManager) from System Default
    [73] BC4J Property jbo.load.components.lazily='false' -->(MetaObjectManager) from System Default
    [74] BC4J Property MetaObjectContext='oracle.jbo.mom.xml.XMLContextImpl' -->(MetaObjectManager) from System Default
    [75] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(SessionImpl) from Client Environment
    [76] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [77] BC4J Property oracle.jbo.usemds='true' -->(MetaObjectManager) from System Default
    [78] BC4J Property oracle.adfm.usemds='true' -->(MetaObjectManager) from System Default
    [79] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
    [80] Skipping empty Property HandleName from System Default
    [81] Skipping empty Property Factory-Substitution-List from System Default
    [82] BC4J Property jbo.project='sc.wadia.model.Model' -->(Configuration) from Client Environment
    [83] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
    [84] WARNING: Property jbo.dofailoverset to null
    [85] Skipping empty Property jbo.dofailover from null
    [86] WARNING: Property jbo.envinfoproviderset to null
    [87] Skipping empty Property jbo.envinfoprovider from null
    [88] BC4J Property jbo.rowid_am_conn_name='ROWIDAM_DB' -->(MetaObjectManager) from System Default
    [89] WARNING: Property jbo.ampool.writecookietoclientset to null
    [90] Skipping empty Property jbo.ampool.writecookietoclient from null
    [91] WARNING: Property jbo.doconnectionpoolingset to null
    [92] Skipping empty Property jbo.doconnectionpooling from null
    [93] WARNING: Property jbo.recyclethresholdset to null
    [94] Skipping empty Property jbo.recyclethreshold from null
    [95] WARNING: Property jbo.ampool.dynamicjdbccredentialsset to null
    [96] Skipping empty Property jbo.ampool.dynamicjdbccredentials from null
    [97] BC4J Property jbo.ampool.resetnontransactionalstate='true' -->(SessionImpl) from System Default
    [98] WARNING: Property jbo.ampool.sessioncookiefactoryclassset to null
    [99] Skipping empty Property jbo.ampool.sessioncookiefactoryclass from null
    [100] WARNING: Property jbo.ampool.connectionstrategyclassset to null
    [101] Skipping empty Property jbo.ampool.connectionstrategyclass from null
    [102] WARNING: Property jbo.ampool.maxpoolsizeset to null
    [103] Skipping empty Property jbo.ampool.maxpoolsize from null
    [104] WARNING: Property jbo.ampool.initpoolsizeset to null
    [105] Skipping empty Property jbo.ampool.initpoolsize from null
    [106] WARNING: Property jbo.ampool.monitorsleepintervalset to null
    [107] Skipping empty Property jbo.ampool.monitorsleepinterval from null
    [108] WARNING: Property jbo.ampool.minavailablesizeset to null
    [109] Skipping empty Property jbo.ampool.minavailablesize from null
    [110] WARNING: Property jbo.ampool.maxavailablesizeset to null
    [111] Skipping empty Property jbo.ampool.maxavailablesize from null
    [112] WARNING: Property jbo.ampool.maxinactiveageset to null
    [113] Skipping empty Property jbo.ampool.maxinactiveage from null
    [114] WARNING: Property jbo.ampool.timetoliveset to null
    [115] Skipping empty Property jbo.ampool.timetolive from null
    [116] WARNING: Property jbo.ampool.doampoolingset to null
    [117] Skipping empty Property jbo.ampool.doampooling from null
    [118] WARNING: Property jbo.ampool.issupportspassivationset to null
    [119] Skipping empty Property jbo.ampool.issupportspassivation from null
    [120] WARNING: Property jbo.ampool.isuseexclusiveset to null
    [121] Skipping empty Property jbo.ampool.isuseexclusive from null
    [122] BC4J Property jbo.passivationstore='null' -->(MetaObjectManager) from System Default
    [123] BC4J Property jbo.saveforlater='false' -->(SessionImpl) from System Default
    [124] BC4J Property jbo.snapshotstore.undo='persistent' -->(SessionImpl) from System Default
    [125] BC4J Property jbo.maxpassivationstacksize='10' -->(SessionImpl) from System Default
    [126] BC4J Property jbo.txn.handleafterpostexc='false' -->(SessionImpl) from System Default
    [127] BC4J Property jbo.connectfailover='true' -->(SessionImpl) from System Default
    [128] WARNING: Property jbo.maxpoolcookieageset to null
    [129] Skipping empty Property jbo.maxpoolcookieage from null
    [130] WARNING: Property PoolClassNameset to null
    [131] Skipping empty Property PoolClassName from null
    [132] BC4J Property jbo.maxpoolsize='4096' -->(MetaObjectManager) from System Default
    [133] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
    [134] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
    [135] BC4J Property jbo.poolmonitorsleepinterval='600000' -->(MetaObjectManager) from System Default
    [136] BC4J Property jbo.poolminavailablesize='5' -->(MetaObjectManager) from System Default
    [137] BC4J Property jbo.poolmaxavailablesize='25' -->(MetaObjectManager) from System Default
    [138] BC4J Property jbo.poolmaxinactiveage='600000' -->(MetaObjectManager) from System Default
    [139] BC4J Property jbo.pooltimetolive='-1' -->(MetaObjectManager) from System Default
    [140] BC4J Property RELEASE_MODE='Stateful' -->(MetaObjectManager) from System Default
    [141] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
    [142] BC4J Property jbo.viewlink.consistent='DEFAULT' -->(MetaObjectManager) from System Default
    [143] BC4J Property jbo.passivation.TrackInsert='true' -->(MetaObjectManager) from System Default
    [144] Skipping empty Property jbo.ViewCriteriaAdapter from System Default
    [145] BC4J Property jbo.SQLBuilder='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [146] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(MetaObjectManager) from System Default
    [147] BC4J Property jbo.TypeMapEntries='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [148] Skipping empty Property jbo.sql92.JdbcDriverClass from System Default
    [149] BC4J Property jbo.sql92.LockTrailer='FOR UPDATE' -->(MetaObjectManager) from System Default
    [150] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
    [151] BC4J Property jbo.abstract.base.check='true' -->(MetaObjectManager) from System Default
    [152] BC4J Property jbo.assoc.where.early.set='false' -->(MetaObjectManager) from System Default
    [153] BC4J Property jbo.sql92.DbTimeQuery='select sysdate from dual' -->(MetaObjectManager) from System Default
    [154] BC4J Property oracle.jbo.defineColumnLength='skipDefines' -->(MetaObjectManager) from System Default
    [155] BC4J Property jbo.jdbc_bytes_conversion='jdbc' -->(MetaObjectManager) from System Default
    [156] Skipping empty Property jbo.tmpdir from System Default
    [157] Skipping empty Property jbo.server.internal_connection from System Default
    [158] BC4J Property SessionClass='oracle.jbo.server.SessionImpl' -->(SessionImpl) from System Default
    [159] Skipping empty Property TransactionFactory from System Default
    [160] Skipping empty Property jbo.def.mgr.listener from System Default
    [161] Skipping empty Property jbo.use.global.sub.map from System Default
    [162] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
    [163] BC4J Property jbo.debug.prefix='DBG: ' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [164] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [165] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [166] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [167] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [168] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [169] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
    [170] BC4J Property oracle.home='/u01/app/oracle/middleware/jdeveloper' -->(Diagnostic) from System Property
    [171] Skipping empty Property oc4j.name from System Default
    [172] BC4J Property jbo.ejb.txntimeout='1830' -->(SessionImpl) from System Default
    [173] BC4J Property jbo.ejb.txntype='local' -->(SessionImpl) from System Default
    [174] BC4J Property jbo.ejb.txn.disconnect_on_completion='false' -->(SessionImpl) from System Default
    [175] BC4J Property jbo.ejb.useampool='false' -->(SessionImpl) from Client Environment
    [176] Skipping empty Property oracle.jbo.schema from System Default
    [177] BC4J Property jbo.xml.validation='false' -->(MetaObjectManager) from System Default
    [178] BC4J Property ord.RetrievePath='ordDeliverMedia' -->(MetaObjectManager) from System Default
    [179] BC4J Property ord.HttpMaxMemory='102400' -->(MetaObjectManager) from System Default
    [180] Skipping empty Property ord.HttpTempDir from System Default
    [181] BC4J Property ord.wmp.classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' -->(MetaObjectManager) from System Default
    [182] BC4J Property ord.qp.classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' -->(MetaObjectManager) from System Default
    [183] BC4J Property ord.rp.classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' -->(MetaObjectManager) from System Default
    [184] BC4J Property ord.wmp.codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' -->(MetaObjectManager) from System Default
    [185] BC4J Property ord.qp.codebase='http://www.apple.com/qtactivex/qtplugin.cab' -->(MetaObjectManager) from System Default
    [186] Skipping empty Property ord.rp.codebase from System Default
    [187] BC4J Property ord.wmp.plugins.page='http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&' -->(MetaObjectManager) from System Default
    [188] BC4J Property ord.qp.plugins.page='http://www.apple.com/quicktime/download/' -->(MetaObjectManager) from System Default
    [189] BC4J Property ord.rp.plugins.page='http://www.real.com/player/' -->(MetaObjectManager) from System Default
    [190] BC4J Property jbo.security.enforce='None' -->(SessionImpl) from System Default
    [191] BC4J Property jbo.security.loginmodule='oracle.security.jazn.oc4j.JAZNUserManager' -->(SessionImpl) from System Default
    [192] Skipping empty Property jbo.security.config from System Default
    [193] BC4J Property jbo.server.useNullDbTransaction='false' -->(SessionImpl) from System Default
    [194] BC4J Property jbo.domain.reopenblobstream='false' -->(MetaObjectManager) from System Default
    [195] BC4J Property jbo.server.retainAssocAccessor='false' -->(SessionImpl) from System Default
    [196] BC4J Property oracle.adfm.DefaultEventPolicy='NONE' -->(MetaObjectManager) from System Default
    [197] Copying unknown Client property (DBconnection='jdbc:oracle:thin:@localhost:1521:DB10G') to session
    [198] Copying unknown Client property (jbo.timezone='+05:30') to session
    [199] Copying unknown Client property (password='*****') to session
    [200] Copying unknown Client property (JDBCName='wadia') to session
    [201] Copying unknown Client property (jbo.jndi.use_default_context='true') to session
    [202] Copying unknown Client property (user='wadia') to session
    [203] Copying unknown Client property (name='AppModuleLocal') to session
    [204] Copying unknown Client property (jbo.applicationmoduleclassname='sc.wadia.model.AppModule') to session
    [205] Copying unknown Client property (java.naming.factory.url.pkgs='weblogic.jndi.factories:weblogic.corba.j2ee.naming.url:weblogic.jndi.factories:weblogic.corba.j2ee.naming.url') to session
    [206] Copying unknown Client property (ApplicationName='sc.wadia.model.AppModule') to session
    [207] WARNING: Unused property: java.vm.version='10.0-b22' found in System Property
    [208] WARNING: Unused property: java.vendor.url='http://java.sun.com/' found in System Property
    [209] WARNING: Unused property: oracle.dms.context='OFF' found in System Property
    [210] WARNING: Unused property: weblogic.Name='DefaultServer' found in System Property
    [211] WARNING: Unused property: wls.home='/u01/app/oracle/middleware/wlserver_10.3/server' found in System Property
    [212] WARNING: Unused property: java.awt.printerjob='sun.print.PSPrinterJob' found in System Property
    [213] WARNING: Unused property: javax.rmi.CORBA.UtilClass='weblogic.iiop.UtilDelegateImpl' found in System Property
    [214] WARNING: Unused property: wlw.iterativeDev='' found in System Property
    [215] WARNING: Unused property: java.vendor.url.bug='http://java.sun.com/cgi-bin/bugreport.cgi' found in System Property
    [216] WARNING: Unused property: line.separator='
    ' found in System Property
    [217] WARNING: Unused property: http.proxyPort='3128' found in System Property
    [218] WARNING: Unused property: weblogic.webservice.client.proxyusername='myname' found in System Property
    [219] WARNING: Unused property: proxyPort='3128' found in System Property
    [220] WARNING: Unused property: java.vm.vendor='Sun Microsystems Inc.' found in System Property
    [221] WARNING: Unused property: java.class.path=':/u01/app/oracle/middleware/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/middleware/patch_jdev1111/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/middleware/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java/jdk1.6.0_06/lib/tools.jar:/u01/app/oracle/middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/middleware/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/middleware/modules/features/weblogic.server.modules_10.3.0.0.jar:/u01/app/oracle/middleware/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/middleware/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/u01/app/oracle/middleware/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar:/u01/app/oracle/middleware/jdeveloper/modules/features/adf.share_11.1.1.jar::/u01/app/oracle/middleware/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/u01/app/oracle/middleware/wlserver_10.3/server/lib/xqrl.jar::' found in System Property
    [222] WARNING: Unused property: weblogic.webservice.client.proxypassword='safari' found in System Property
    [223] WARNING: Unused property: os.arch='i386' found in System Property
    [224] WARNING: Unused property: java.protocol.handler.pkgs='oracle.mds.net.protocol|weblogic.net|weblogic.utils|weblogic.utils|weblogic.utils' found in System Property
    [225] WARNING: Unused property: user.name='myname' found in System Property
    [226] WARNING: Unused property: sun.boot.class.path='/usr/java/jdk1.6.0_06/jre/lib/resources.jar:/usr/java/jdk1.6.0_06/jre/lib/rt.jar:/usr/java/jdk1.6.0_06/jre/lib/sunrsasign.jar:/usr/java/jdk1.6.0_06/jre/lib/jsse.jar:/usr/java/jdk1.6.0_06/jre/lib/jce.jar:/usr/java/jdk1.6.0_06/jre/lib/charsets.jar:/usr/java/jdk1.6.0_06/jre/classes' found in System Property
    [227] WARNING: Unused property: org.xml.sax.driver='weblogic.xml.jaxp.RegistryXMLReader' found in System Property
    [228] WARNING: Unused property: sun.cpu.endian='little' found in System Property
    [229] WARNING: Unused property: java.endorsed.dirs='/usr/java/jdk1.6.0_06/jre/lib/endorsed' found in System Property
    [230] WARNING: Unused property: vde.home='/home/myname/.jdeveloper/system11.1.1.0.31.51.56/DefaultDomain/servers/DefaultServer/data/ldap' found in System Property
    [231] WARNING: Unused property: com.sun.xml.ws.api.streaming.XMLStreamWriterFactory.woodstox='true' found in System Property
    [232] WARNING: Unused property: domain.home='/home/myname/.jdeveloper/system11.1.1.0.31.51.56/DefaultDomain' found in System Property
    [233] WARNING: Unused property: wlw.logErrorsToConsole='' found in System Property
    [234] WARNING: Unused property: https.proxyHost='192.147.1.129' found in System Property
    [235] WARNING: Unused property: https.proxyPort='3128' found in System Property
    [236] WARNING: Unused property: wlw.testConsole='' found in System Property
    [237] WARNING: Unused property: java.specification.vendor='Sun Microsystems Inc.' found in System Property
    [238] WARNING: Unused property: javax.xml.rpc.ServiceFactory='weblogic.webservice.core.rpc.ServiceFactoryImpl' found in System Property
    [239] WARNING: Unused property: oracle.core.ojdl.logging.componentId='DefaultServer' found in System Property
    [240] WARNING: Unused property: user.timezone='GMT+05:30' found in System Property
    [241] WARNING: Unused property: os.name='Linux' found in System Property
    [242] WARNING: Unused property: java.ext.dirs='/usr/java/jdk1.6.0_06/jre/lib/ext:/usr/java/packages/lib/ext' found in System Property
    [243] WARNING: Unused property: sun.arch.data.model='32' found in System Property
    [244] WARNING: Unused property: os.version='2.6.25-14.fc9.i686' found in System Property
    [245] WARNING: Unused property: java.specification.name='Java Platform API Specification' found in System Property
    [246] WARNING: Unused property: java.vendor='Sun Microsystems Inc.' found in System Property
    [247] WARNING: Unused property: http.proxyHost='192.147.1.129' found in System Property
    [248] WARNING: Unused property: java.naming.factory.url.pkgs='weblogic.jndi.factories:weblogic.corba.j2ee.naming.url:weblogic.jndi.factories:weblogic.corba.j2ee.naming.url' found in System Property
    [249] WARNING: Unused property: javax.xml.soap.MessageFactory='weblogic.webservice.core.soap.MessageFactoryImpl' found in System Property
    [250] WARNING: Unused property: sun.jnu.encoding='UTF-8' found in System Property
    [251] WARNING: Unused property: java.vm.info='mixed mode, sharing' found in System Property
    [252] WARNING: Unused property: user.dir='/home/myname/.jdeveloper/system11.1.1.0.31.51.56/DefaultDomain' found in System Property
    [253] WARNING: Unused property: sun.cpu.isalist='' found in System Property
    [254] WARNING: Unused property: java.awt.graphicsenv='sun.awt.X11GraphicsEnvironment' found in System Property
    [255] WARNING: Unused property: sun.os.patch.level='unknown' found in System Property
    [256] WARNING: Unused property: org.omg.CORBA.ORBSingletonClass='weblogic.corba.orb.ORB' found in System Property
    [257] WARNING: Unused property: java.io.tmpdir='/tmp' found in System Property
    [258] WARNING: Unused property: user.home='/home/myname' found in System Property
    [259] WARNING: Unused property: oracle.security.jps.config='/home/myname/.jdeveloper/system11.1.1.0.31.51.56/DefaultDomain/config/oracle/jps-config.xml' found in System Property
    [260] WARNING: Unused property: java.version='1.6.0_06' found in System Property
    [261] WARNING: Unused property: file.encoding.pkg='sun.io' found in System Property
    [262] WARNING: Unused property: weblogic.management.discover='true' found in System Property
    [263] WARNING: Unused property: javax.rmi.CORBA.PortableRemoteObjectClass='weblogic.iiop.PortableRemoteObjectDelegateImpl' found in System Property
    [264] WARNING: Unused property: platform.home='/u01/app/oracle/middleware/wlserver_10.3' found in System Property
    [265] WARNING: Unused property: file.encoding='UTF-8' found in System Property
    [266] WARNING: Unused property: java.vm.specification.vendor='Sun Microsystems Inc.' found in System Property
    [267] WARNING: Unused property: org.omg.CORBA.ORBClass='weblogic.corba.orb.ORB' found in System Property
    [268] WARNING: Unused property: java.security.policy='/u01/app/oracle/middleware/wlserver_10.3/server/lib/weblogic.policy' found in System Property
    [269] WARNING: Unused property: sun.io.unicode.encoding='UnicodeLittle' found in System Property
    [270] WARNING: Unused property: user.language='en' found in System Property
    [271] WARNING: Unused property: java.runtime.version='1.6.0_06-b02' found in System Property
    [272] WARNING: Unused property: jbo.34010='false' found in System Property
    [273] WARNING: Unused property: weblogic.classloader.preprocessor='weblogic.diagnostics.instrumentation.DiagnosticClassPreProcessor' found in System Property
    [274] WARNING: Unused property: weblogic.home='/u01/app/oracle/middleware/wlserver_10.3/server' found in System Property
    [275] WARNING: Unused property: proxySet='true' found in System Property
    [276] WARNING: Unused property: sun.boot.library.path='/usr/java/jdk1.6.0_06/jre/lib/i386' found in System Property
    [277] WARNING: Unused property: java.vm.name='Java HotSpot(TM) Client VM' found in System Property
    [278] WARNING: Unused property: java.home='/usr/java/jdk1.6.0_06/jre' found in System Property
    [279] WARNING: Unused property: weblogic.ext.dirs='/u01/app/oracle/middleware/patch_wls1030/profiles/default/sysext_manifest_classpath:/u01/app/oracle/middleware/patch_jdev1111/profiles/default/sysext_manifest_classpath:/u01/app/oracle/middleware/patch_cie660/profiles/default/sysext_manifest_classpath' found in System Property
    [280] WARNING: Unused property: https.nonProxyHosts='' found in System Property
    [281] WARNING: Unused property: sun.management.compiler='HotSpot Client Compiler' found in System Property
    [282] WARNING: Unused property: java.runtime.name='Java(TM) SE Runtime Environment' found in System Property
    [283] WARNING: Unused property: java.library.path='/usr/java/jdk1.6.0_06/jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jre/../lib/i386::/usr/java/jdk1.6.0_06/jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jre/../lib/i386:/u01/app/oracle/product/10.2.0/db_1/lib:/lib:/usr/lib:/u01/app/oracle/middleware/wlserver_10.3/server/native/linux/i686:/u01/app/oracle/middleware/wlserver_10.3/server/native/linux/i686/oci920_8:/usr/java/packages/lib/i386:/lib:/usr/lib' found in System Property
    [284] WARNING: Unused property: file.separator='/' found in System Property
    [285] WARNING: Unused property: java.vm.specification.version='1.0' found in System Property
    [286] WARNING: Unused property: oracle.core.ojdl.logging.applicationcontextprovider='oracle.core.ojdl.weblogic.ApplicationContextImpl' found in System Property
    [287] WARNING: Unused property: proxyHost='192.147.1.129' found in System Property
    [288] WARNING: Unused property: sun.java.launcher='SUN_STANDARD' found in System Property
    [289] WARNING: Unused property: http.nonProxyHosts='' found in System Property
    [290] WARNING: Unused property: com.sun.xml.ws.api.streaming.XMLStreamReaderFactory.woodstox='true' found in System Property
    [291] WARNING: Unused property: path.separator=':' found in System Property
    [292] WARNING: Unused property: org.xml.sax.parser='weblogic.xml.jaxp.RegistryParser' found in System Property
    [293] WARNING: Unused property: LC='Calling Function' found in /oracle/jbo/common/Diagnostic.properties resource
    [294] WARNING: Unused property: user.country='US' found in System Property
    [295] WARNING: Unused property: java.class.version='50.0' found in System Property
    [296] WARNING: Unused property: java.vm.specification.name='Java Virtual Machine Specification' found in System Property
    [297] WARNING: Unused property: java.specification.version='1.6' found in System Property
    [298] }} finished loading BC4J properties
    [299] -----------------------------------------------------------
    Diagnostics: (Properties (re)loaded) Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    [300] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [301] JavaVMVersion: 10.0-b22
    [302] JavaVMVendor: Sun Microsystems Inc.
    [303] JavaVMName: Java HotSpot(TM) Client VM
    [304] OperatingSystemName: Linux
    [305] OperatingSystemVersion: 2.6.25-14.fc9.i686
    [306] OperatingSystemUsername: myname
    [307] jbo.323.compatible Flag: false, str: false
    [308] jbo.903.compatible Flag: false, str: false
    [309] oracle.jbo.usemds Flag: true, str: true
    following solution i tried.
    in jdev.conf
    AddVMOption -Duser.timezone="+05:30"
    in environment variable
    export TZ="Asia/Calcutta"
    please help me to start learning jdeveloper 11g.

    duplicate of java.sql.SQLDataException: ORA-01882: timezone region  not found

  • Java.sql.BatchUpdateException: ORA-01027: bind variables not allowed for da

    Hi guys, I m facing a problem while executing below query .Query is working fine in toad i don't know what is the issue with the code
    <code>
    String url3 = "CREATE OR REPLACE VIEW Table2(PERIOD, YEARS, COST_CENTRE, S_DIR_PERM, S_DIR_CONT, S_INDIR_PERM, S_INDIR_CONT, O_DIR_PERM, O_DIR_CONT, O_INDIR_PERM, O_INDIR_CONT)AS select period, year, cost_center, sum(s_dir_perm), sum(s_dir_cont), sum(s_indir_perm), sum(s_indir_cont), sum(o_dir_perm), sum(o_dir_cont), sum(o_indir_perm), sum(o_indir_cont) from ( select b.period, b.year, a.cost_center, sum(a.perm_dir_hc) as s_dir_perm, sum(a.contract_dir_hc) as s_dir_cont, sum(a.perm_indir_hc) as s_indir_perm, sum(a.contract_indir_hc) as s_indir_cont, 0 as o_dir_perm, 0 as o_dir_cont, 0 as o_indir_perm, 0 as o_indir_cont from ZVHR_ACT_HC_ASOF_FISPRD a, pertable b where to_char(as_of_date, 'mm/dd/yyyy') = b.ENDPERIOD and shift not in ('G','N','O2','O7') and b.endperiod = ? group by b.period, b.year, a.cost_center union select b.period, b.year, a.cost_center, 0 as s_dir_perm, 0 as s_dir_cont, 0 as s_indir_perm, 0 as s_indir_cont, sum(a.perm_dir_hc) as o_dir_perm, sum(a.contract_dir_hc) as o_dir_cont, sum(a.perm_indir_hc) as o_indir_perm, sum(a.contract_indir_hc) as o_indir_cont from ZVHR_ACT_HC_ASOF_FISPRD a, pertable b where to_char(as_of_date, 'mm/dd/yyyy') = b.ENDPERIOD and shift in ('G','N','O2','O7') and b.endperiod = ? group by b.period, b.year, a.cost_center) group by period, year, cost_center";
    PreparedStatement statement3 = connection.prepareStatement(url3);
    statement3.setString(1, "12/10/2008");
    statement3.setString(2, "12/10/2008");
    statement3.addBatch();
    statement3.executeBatch();
    </code>
    i m getting the following error
    java.sql.BatchUpdateException: ORA-01027: bind variables not allowed for data definition operations
    can any1 help me with this.

    Can you explain what you are trying to do from a business perspective?
    If you are creating a view, it doesn't make sense to pass bind variables to that DDL statement. The view definition itself is going to have to end up with hard coded date values there. So what possible benefit is there to using bind variables?
    As an aside, if you are using bind variables and you have DATE columns, you really want to pass in the proper data type (i.e. setDate or setTimestamp rather than setString). Otherwise, Oracle has to do implicit string to date conversion, which depends on the session's NLS settings, which is likely to be different on different client machines and lead to all sorts of odd errors and behaviors down the line.
    Are you trying to build a view that takes parameters? If so, there are a few options for that sort of thing.
    Justin

  • ORA-01882:timezone region not found while trying to add ADF-BC Fact in Rule

    Hi,
    I want to use the SOA component "Oracle Business Rules" in the ADF application.
    I created a ADF Application, created relevant VO's. I created a SOA project in the same workspace and tried to add a ADF-BC fact to the Business Rule component.
    I configured the -Duser.timezone="+05:30" option for java runtime.
    However I still get the timezone not found exception and am unable to add ADF-BC fact to the rule component.
    Here is the full stack trace.
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.sql.SQLDataException, msg=ORA-01882: timezone region not found
         at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:5550)
         at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5267)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1185)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6728)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:153)
         at oracle.rules.sdk2.datamodel.impt.AdfBcTransactionFactory.createTransaction(AdfBcTransactionFactory.java:50)
         at oracle.rules.sdk2.datamodel.impt.FactTypeImporter.addAdfBcFactType(FactTypeImporter.java:1899)
         at oracle.rules.sdk2.datamodel.impt.FactTypeImporter.addAdfBcFactType(FactTypeImporter.java:1875)
         at oracle.tip.tools.ide.rules.sdkmodel.SDKModel.createBCFacts(SDKModel.java:3155)
         at oracle.tip.tools.ide.rules.editor.facts.bc.BCFactCreationPanel.handleImportViewDefinition(BCFactCreationPanel.java:222)
         at oracle.tip.tools.ide.rules.editor.facts.bc.BCFactCreationDialog$2.run(BCFactCreationDialog.java:157)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.sql.SQLDataException: ORA-01882: timezone region not found
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:193)
         at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:998)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315)
         at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1822)
         at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1787)
         at oracle.jdbc.driver.OracleStatementWrapper.executeUpdate(OracleStatementWrapper.java:280)
         at oracle.jdbc.driver.PhysicalConnection.setSessionTimeZone(PhysicalConnection.java:8007)
         at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:5544)
         ... 19 more
    ## Detail 0 ##
    java.sql.SQLDataException: ORA-01882: timezone region not found
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:193)
         at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:998)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315)
         at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1822)
         at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1787)
         at oracle.jdbc.driver.OracleStatementWrapper.executeUpdate(OracleStatementWrapper.java:280)
         at oracle.jdbc.driver.PhysicalConnection.setSessionTimeZone(PhysicalConnection.java:8007)
         at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:5544)
         at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5267)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1185)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6728)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:153)
         at oracle.rules.sdk2.datamodel.impt.AdfBcTransactionFactory.createTransaction(AdfBcTransactionFactory.java:50)
         at oracle.rules.sdk2.datamodel.impt.FactTypeImporter.addAdfBcFactType(FactTypeImporter.java:1899)
         at oracle.rules.sdk2.datamodel.impt.FactTypeImporter.addAdfBcFactType(FactTypeImporter.java:1875)
         at oracle.tip.tools.ide.rules.sdkmodel.SDKModel.createBCFacts(SDKModel.java:3155)
         at oracle.tip.tools.ide.rules.editor.facts.bc.BCFactCreationPanel.handleImportViewDefinition(BCFactCreationPanel.java:222)
         at oracle.tip.tools.ide.rules.editor.facts.bc.BCFactCreationDialog$2.run(BCFactCreationDialog.java:157)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)

    Hi,
    ORA-01882: timezone region not found in pivot is it bug
    Its a database error, why do you think its a bug with the Pivot table. The same behavior can be observed with WebLogic Server and SQL Developer - so I am not quite sure how this can be pointed back to the pivot table in your opinion. Maybe this here will help you getting to the core of the problem: http://www.jvmhost.com/articles/java-and-timezones
    Frank
    Edited by: Frank Nimphius on Jun 1, 2012 8:01 AM

  • Fusion order  issue+(SQLException) ORA-01882: timezone region  not found

    hi,
    i have created entities,viewObjects and AM with help of Business Components from tables
    after creating the wizard when i run the AM i am getting the below error please any one help
    oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.sql.SQLException, msg=ORA-01882: timezone region not found
    ----- Level 1: Detail 0 -----
    (java.sql.SQLException) ORA-01882: timezone region not found

    hi,
    i am trying to creating a graph in ADF page where i have dragged a node from datacontrol i have selected as bar graph in configuration window given values for Bars and swap bars with Xaxis and click the preview tab where i am getting this error as
    it couldnot fetech data
    Unable to retrieve data: JBO-29000: Unexpected exception caught: java.sql.SQLDataException, msg=ORA-01882: timezone region not found
    Jdev11g i have reinstalled the recently but previously i installed Jdev11g and used were i got same problem i have followed steps which given by Shychemaker that time it work fine now i have done same steps but now its not working can anyone help me
    Unexpected exception caught: java.sql.SQLDataException, msg=ORA-01882: timezone region not found
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.sql.SQLDataException, msg=ORA-01882: timezone region not found
         at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:4957)
         at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5054)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1280)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6415)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:118)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:217)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:558)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:414)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8377)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4364)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2421)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2207)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3086)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:494)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:836)
         at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:480)
         at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:265)
         at oracle.adf.model.BindingContext.put(BindingContext.java:1012)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:175)
         at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:778)
         at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:911)
         at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:802)
         at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:758)
         at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:889)
         at oracle.adf.model.BindingContext.get(BindingContext.java:848)
         at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1421)
         at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2388)
         at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2333)
         at oracle.adf.model.dvt.binding.transform.Utils.getCubicDataControl(Utils.java:104)
         at oracle.adf.model.dvt.binding.transform.CDCDefinition.getCubicDataControl(CDCDefinition.java:124)
         at oracle.adf.model.dvt.binding.transform.TransformDefinition.getCubicDataControl(TransformDefinition.java:175)
         at oracle.adf.model.dvt.binding.transform.CDCDefinition.setCubicBinding(CDCDefinition.java:64)
         at oracle.adf.model.dvt.binding.transform.TransformDefinition.setCubicBinding(TransformDefinition.java:160)
         at oracle.adf.model.dvt.binding.common.CubicBinding.getProjection(CubicBinding.java:184)
         at oracle.adf.model.dvt.binding.common.CubicBinding.getProjection(CubicBinding.java:141)
         at oracle.adf.model.dvt.binding.common.CubicBinding.createCubeDataModel(CubicBinding.java:203)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.createDataModel(FacesCubicBinding.java:169)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:131)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:122)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:89)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.preview.PreviewRuntime.fetchData(PreviewRuntime.java:99)
         at oracle.adfdtinternal.model.dvt.ide.objects.editors.CubicHierEditor$5$1.run(CubicHierEditor.java:933)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.sql.SQLDataException: ORA-01882: timezone region not found
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:79)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:936)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
         at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1706)
         at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1674)
         at oracle.jdbc.driver.OracleStatementWrapper.executeUpdate(OracleStatementWrapper.java:274)
         at oracle.jdbc.driver.PhysicalConnection.setSessionTimeZone(PhysicalConnection.java:7264)
         at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:4953)
         ... 45 more
    ## Detail 0 ##
    java.sql.SQLDataException: ORA-01882: timezone region not found
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:79)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:936)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
         at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1706)
         at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1674)
         at oracle.jdbc.driver.OracleStatementWrapper.executeUpdate(OracleStatementWrapper.java:274)
         at oracle.jdbc.driver.PhysicalConnection.setSessionTimeZone(PhysicalConnection.java:7264)
         at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:4953)
         at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5054)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1280)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6415)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:118)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:217)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:558)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:414)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8377)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4364)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2421)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2207)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3086)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:494)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:836)
         at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:480)
         at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:265)
         at oracle.adf.model.BindingContext.put(BindingContext.java:1012)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:175)
         at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:778)
         at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:911)
         at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:802)
         at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:758)
         at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:889)
         at oracle.adf.model.BindingContext.get(BindingContext.java:848)
         at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1421)
         at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2388)
         at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2333)
         at oracle.adf.model.dvt.binding.transform.Utils.getCubicDataControl(Utils.java:104)
         at oracle.adf.model.dvt.binding.transform.CDCDefinition.getCubicDataControl(CDCDefinition.java:124)
         at oracle.adf.model.dvt.binding.transform.TransformDefinition.getCubicDataControl(TransformDefinition.java:175)
         at oracle.adf.model.dvt.binding.transform.CDCDefinition.setCubicBinding(CDCDefinition.java:64)
         at oracle.adf.model.dvt.binding.transform.TransformDefinition.setCubicBinding(TransformDefinition.java:160)
         at oracle.adf.model.dvt.binding.common.CubicBinding.getProjection(CubicBinding.java:184)
         at oracle.adf.model.dvt.binding.common.CubicBinding.getProjection(CubicBinding.java:141)
         at oracle.adf.model.dvt.binding.common.CubicBinding.createCubeDataModel(CubicBinding.java:203)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.createDataModel(FacesCubicBinding.java:169)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:131)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:122)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:89)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.preview.PreviewRuntime.fetchData(PreviewRuntime.java:99)
         at oracle.adfdtinternal.model.dvt.ide.objects.editors.CubicHierEditor$5$1.run(CubicHierEditor.java:933)
         at java.lang.Thread.run(Thread.java:619)

  • How to fix msg=ORA-01882: timezone region  not found

    Hi,
    Im new in ADF development and I have this problem, I have a error message: (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.sql.SQLException, msg=ORA-01882: timezone region not found
    I dont know how to fix it, please help me.
    ale.

    Hi all
    I am using jdev11g (with weblogic), i faced same issue and included -Duser.timezone as mentioned in default run target, but still got the same error.
    WARNING: ADF: Adding the following JSF error message: ORA-01882: timezone region not found
    java.sql.SQLDataException: ORA-01882: timezone region not found
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:79)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:942)
    I am new to ADF and trying to create ADF Table from Database Table using Entity and View Objects.
    Regards,
    Amit

  • Java.sql.SQLDataException, msg=ORA-01882: timezone region not found

    Hi,
    I am new to ADF. I am using Jdev 11.1.1.1 version.
    I created sample application , in that i added one jspx AM, VO and droppping the VO to the jspx file.
    when i try to run the page i am getting the following error.
    " java.sql.SQLDataException, msg=ORA-01882: timezone region not found"
    please can anybody tell what's went wrong...
    Thanks,
    mahi.

    there you go http://baigsorcl.blogspot.com/2009/11/ora-01882-timezone-region-not-found.html

  • Java.sql.SQLException: ORA-00942: table or view does not exist

    Hi all,
    I have an Oracle table called: USER_APP_VERSION with the fields (all String): (username, application_name, version).
    I use PreparedStatement to insert rows into table:
    String psInsertRpt = "INSERT INTO USER_APP_VERSION (username, application_name, version) VALUES (?, ?, ?)";
    rptPS = conn.prepareStatement(psInsertRpt);
    rptPS.setString(1, username);
    rptPS.setString(2, source);
    rptPS.setString(3, version);
    rptPS.executeUpdate(); At executeUpdate() line, I get the following error:
    java.sql.SQLException: ORA-00942: table or view does not exist
    The table does exist, I can use the "INSERT INTO USER_APP_VERSION (username, application_name, version) VALUES ("name", "source", "version")";
    to insert rows into db at sql command line, however, when run the same query as part of my Java code, get the SQLException.
    Any idea? Any help is greatly appreciated.

    Thanks for the raply. I can connect to the db using a username and password, and run the query with no problem. I use the same username and password to make a jdbc connection from Java code. Since username and password are the same, does "permission" is still an issue? If yes, how can I solve it?

  • Java.sql.SQLException: ORA-01006: bind variable does not exist

    The java code is given below...
    /*UPDATE D9T652_DISBRSMNT_PRMTR
                        SET
                             Stmnt_Page_Wgt_Ozs = wtStatementStockSheet,
                        Chk_Page_Wgt_Ozs = wtCheckStockSheet,
                        Flat_Envelope_Wgt_Ozs = wtFlatEnv,
                        Half_Fold_Envelope_Wgt_Ozs = wtHalfFoldEnv,
                        Last_Chngd_By = TRIM(userId),
                        Last_Chngd_Dt = sysdate
                        WHERE
                             Ins_Sys_Id = Ins_Sys_Id_Constant_For_Compass AND
                             Last_Chngd_Dt = SELECT MAX(Last_Chngd_Dt)
              FROM D9T652_DISBRSMNT_PRMTR
              WHERE Ins_Sys_Id = Ins_Sys_Id_Constant_For_Compass
    updateDbPmtr= new StringBuffer(" UPDATE ")
    .append(SqlConst.PARAM)
    .append(" SET ")
    .append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_DSBRSMNT_PRMTR_ID).append(" = 100, ")
    .append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_MIN_DSBRSMNT_AMT).append(" = ? ").append(",")
    .append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_OVRRD_MIN_DSBRSMNT_DT).append(" = ").append(currentTimeStamp).append(",")
    .append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_SPCL_HNDLG_AMT).append(" = ? ").append(", ")
    .append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_STMNT_DT).append(" = ").append(currentTimeStamp).append(" , ")
    .append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_LAST_CHNGD_BY).append(" ='?' ").append(" , ")
    .append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_LAST_CHNGD_DT).append(" = ").append(currentTimeStamp)
    .append(" WHERE ")
    .append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_INS_SYS_ID).append(" = ? ")
    .append(" AND ")
    .append(SqlConst.PARAM).append(".").append(SqlConst.PARAM_LAST_CHNGD_DT)
    .append(" = ")
    .append(" ( SELECT ")
    .append(" MAX( ").append(SqlConst.PARAM_LAST_CHNGD_DT).append(" ) ")
    .append(" FROM ").append(SqlConst.PARAM)
    .append(" WHERE ")
    .append(SqlConst.PARAM_INS_SYS_ID).append(" = ? )").toString();
    conn = SqlUtil.getConnection();
    conn.setAutoCommit(false);     
    prepStmtDsbrsmntPmtr = conn.prepareStatement(updateDbPmtr);                     
    prepStmtStckWght      = conn.prepareStatement(updateStkWght);
                        String minDsbrsmntAmount     = parametersListForm.getParametersForm().getMinDisbursementAmt();
                        String specialHndlAmount     = parametersListForm.getParametersForm().getSpecialHandlingAmt();
                        String statementDt               = parametersListForm.getParametersForm().getStatementDate();
                        String overrideCycleDt          = parametersListForm.getParametersForm().getOverrideCycleDate();
                        String lastMdfdBy               = parametersListForm.getParametersForm().getLastModifiedBy();
                        String lastMdfdDt               = parametersListForm.getParametersForm().getLastModifiedDate();
                        String wtStmtStkSheet          = parametersListForm.getParametersForm().getWtStatementStockSheet();
                        String wtHlfFoldEnvelope     = parametersListForm.getParametersForm().getWtHalfFoldEnv();
                        String wtFltEnvelope          = parametersListForm.getParametersForm().getWtFlatEnv();
                        String wtChkStkSheet          = parametersListForm.getParametersForm().getWtCheckStockSheet();
    prepStmtDsbrsmntPmtr.setLong(1,Integer.parseInt(minDsbrsmntAmount));
    prepStmtDsbrsmntPmtr.setLong(2, Long.parseLong(specialHndlAmount));
    prepStmtDsbrsmntPmtr.setString(3,lastMdfdBy);
    prepStmtDsbrsmntPmtr.setLong(4,1);
    prepStmtDsbrsmntPmtr.setLong(5,1);
    int rUpdtInParam = prepStmtDsbrsmntPmtr.executeUpdate();
    ========================================================================
    I am getting following errors...
    [8/6/04 19:17:14:286 GMT+05:30] 19192340 SystemErr R java.sql.SQLException: ORA-01006: bind variable does not exist
    [8/6/04 19:17:14:302 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:314)
    [8/6/04 19:17:14:317 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:117)
    [8/6/04 19:17:14:349 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:306)
    [8/6/04 19:17:14:364 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:43)
    [8/6/04 19:17:14:380 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:41)
    [8/6/04 19:17:14:411 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:941)
    [8/6/04 19:17:14:427 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:662)
    [8/6/04 19:17:14:442 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:214)
    [8/6/04 19:17:14:474 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:135)
    [8/6/04 19:17:14:489 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:227)
    [8/6/04 19:17:14:505 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:72)
    [8/6/04 19:17:14:536 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:190)
    [8/6/04 19:17:14:552 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:406)
    [8/6/04 19:17:14:567 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:57)
    [8/6/04 19:17:14:583 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:461)
    [8/6/04 19:17:14:614 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:414)
    [8/6/04 19:17:14:630 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
    [8/6/04 19:17:14:661 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:57)
    [8/6/04 19:17:14:677 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:461)
    [8/6/04 19:17:14:692 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:414)
    [8/6/04 19:17:14:708 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
    [8/6/04 19:17:14:739 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:414)
    [8/6/04 19:17:14:755 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
    [8/6/04 19:17:14:770 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:414)
    [8/6/04 19:17:14:802 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
    [8/6/04 19:17:14:817 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:414)
    [8/6/04 19:17:14:833 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
    [8/6/04 19:17:14:864 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:190)
    [8/6/04 19:17:14:880 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:406)
    [8/6/04 19:17:14:896 GMT+05:30] 19192340 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:614)
    ========================================================================
    Database Table:-
    Desc D9T651_DSBRSMNT_PRMTR:
    Name Null? Type
    DSBRSMNT_PRMTR_ID NOT NULL NUMBER(38)
    INS_SYS_ID NUMBER(38)
    MIN_DSBRSMNT_AMT NUMBER(15,2)
    OVRRD_MIN_DSBRSMNT_DT DATE
    SPCL_HNDLG_AMT NUMBER(15,2)
    STMNT_DT DATE
    CRTD_BY VARCHAR2(30)
    CRTD_DT DATE
    LAST_CHNGD_BY VARCHAR2(30)
    LAST_CHNGD_DT DATE

    What exactly are you trying to do? If you're trying to run an update statement, it's simpler if you do this:
    PreparedStatement pstmt = null;
    Connection conn = ?????;
    String updateStr = "UPDATE D9T652_DISBRSMNT_PRMTR " +
    "SET " +
    "Stmnt_Page_Wgt_Ozs = ?, " +
    "Chk_Page_Wgt_Ozs = ?, " +
    "Flat_Envelope_Wgt_Ozs = ?, " +
    "Half_Fold_Envelope_Wgt_Ozs = ?, " +
    "Last_Chngd_By = TRIM(?), " +
    "Last_Chngd_Dt = ? " +
    "WHERE " +
    "Ins_Sys_Id = Ins_Sys_Id_Constant_For_Compass AND " +
    "Last_Chngd_Dt = (SELECT MAX(Last_Chngd_Dt) " +
    "FROM D9T652_DISBRSMNT_PRMTR " +
    "WHERE Ins_Sys_Id = Ins_Sys_Id_Constant_For_Compass) "
    From the String constructed above, the first ? mark will be bind to 1, second to 2..... etc and you can set the appropriate types.
    pstmt = conn.prepareStatement(updateStr);
    pstmt.setString(1, request.getParameter("formValue1")); // this is assuming you want to store string value in DB field
    pstmt.setInt(2, Integer.parseInt(request.getParameter("formValue2"))); // this is assuming you want to store int value in DB field
    pstmt.setTimestamp(3, new java.sql.Timestamp(new java.util.Date().getTime())); // this is assuming you want to store current time in DB Date field
    ..... etc
    ..... etc
    ...... etc
    int rows = pstmt.executeUpdate();
    Hope this helps!!

  • Could not get schema Object:java.sql.SQLSyntaxErrorException ora-904

    All of a sudden I get
    Could not get schema Object:java.sql.SQLSyntaxErrorException: ORA-00904: "SYS"."O"."NAME": ongeldige ID
    when doing anything in the tables tree in the connections pane
    The only thing I set recently is pga_aggregate_target
    Environment
    Oracle 11.2.0.1
    OS Windows Vista Ultimate sp2
    Sql developer 2.1.1.64.39 with its own JDK
    As the download links on OTN are broken I can not upgrade, and I'd rather not work in command line sqlplus.
    Help!!!
    Sybrand Bakker
    Senior Oracle DBA

    My copy of sqldeveloper isn't located in that directory. Would that matter?
    In the mean time I have disabled filtering the tables node. Opening the tables node doesn't result in exceptions anymore.
    Now, when I click on any table in that node I get 4 identical ora-904 error messages for sys.o.name for any table.
    Apparently it is querying either the all_objects view and it thinks it is querying sys.obj$.
    I didn't yet enable sql_trace for the session, I'm more or less giving up on sqldeveloper. I can not use the space bar in any datagrid, sqldeveloper has always been extreemly unresponsive when navigating the schema browser (as opposed to Toad), etc, etc. Too bad I bought Sue Harpers book, but I think I will be de-installing sqldeveloper soon.
    Sybrand Bakker
    Senior Oracle DBA

  • Java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist while invoking a DBAdapter

    I have a WebService which is invoked , the request is routed through the mideator to the DBAdapter .DBAdapter interacts with the database and replies the result.
    I send in the CreditCardNumber in the request and recieve its Status (VALID,INVALID). i get this error every time . i have tried almost every thing to fix this . Please help me with same .
    Below is the complete error stacktrace.
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [getCreditValidationSelect], Descriptor name: [getCreditValidation.Creditcardinfo]. Caused by java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist . See root exception for the specific exception. This exception is considered retriable, likely due to a communication failure. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "942" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    Thanks in advance

    Can you please check the following
    a. check the JNDI Configuration. ( check for the value used for XADatasourceName )
    b. check the Data source created for the User.
    c. Incase you have updated the existing JNDI then you need to update the adapter with the New Deployment Plan.
    Thanks,
    Sunil Gopal

  • JBO-27122: SQL error during statement preparation IN OAF(java.sql.SQLException: ORA-01008: not all variables bound)

    Hi Friends,
    I have have extended CO where i have added dynamic where condition to VO,it's throwing error.
    Code added in controller :
    public class Custom_HomePageCO extends HomePageCO
      public Custom_HomePageCO()
    public void processRequest(OAPageContext pageContext,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 void processFormRequest(OAPageContext pageContext,OAWebBean webBean)
      super.processFormRequest(pageContext,webBean);
    Error message:
    Exception Details.
    Error Details
           Logout
          Error Page
          Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.  Statement: SELECT * FROM (SELECT
    AI.DESCRIPTION PURPOSE,
    AI.INVOICE_CURRENCY_CODE CURRENCY_CODE,
    AI.INVOICE_DATE REPORT_DATE,
    AERH.REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
    AI.INVOICE_NUM REPORT_NUMBER,
    TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                     0, decode(AI.CANCELLED_DATE,
                                 null, APS.GROSS_AMOUNT,
                                 AERH.TOTAL),
                   nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)) ,  
            FND_CURRENCY_CACHE.GET_FORMAT_MASK
            (AI.INVOICE_CURRENCY_CODE, 30)) ||' '|| AI.INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
    TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                     0, decode(AI.CANCELLED_DATE,
                                 null, APS.GROSS_AMOUNT,
                                 AERH.TOTAL),
                   nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)) ,  
            FND_CURRENCY_CACHE.GET_FORMAT_MASK
            (AI.INVOICE_CURRENCY_CODE, 30))
    REPORT_TOTAL,
    P.PERSON_ID EMPLOYEE_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,'PAID',
                                    decode(AI.Payment_status_flag,'Y','PAID',
                                                            'N','INVOICED',
                                                            'P','PARPAID',NULL))),
                                            'CANCELLED') STATUS_CODE,
    AERH.source SOURCE,
    NULL CURRENT_APPROVER,
    ROUND(sysdate - AI.LAST_UPDATE_DATE) DAYS_SINCE_ACTIVITY,
    AERH.RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
    AERH.HOLDING_REPORT_HEADER_ID,
    AI.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:MI:SS'),
    AI.INVOICE_ID INVOICE_ID
    FROM
           AK_WEB_USER_SEC_ATTR_VALUES A,
           PO_VENDORS PV,
           AP_INVOICES AI,
           AP_EXPENSE_REPORT_HEADERS AERH,
           PER_PEOPLE_X P,
           AP_PAYMENT_SCHEDULES APS
    WHERE  AI.INVOICE_ID= APS.INVOICE_ID
    AND    AI.INVOICE_ID = AERH.VOUCHNO(+)
    AND AI.INVOICE_TYPE_LOOKUP_CODE||'' = 'EXPENSE REPORT'
    AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID'
    AND PV.EMPLOYEE_ID = A.NUMBER_VALUE
    AND A.WEB_USER_ID = :1
    AND P.PERSON_ID = PV.EMPLOYEE_ID
    AND PV.VENDOR_ID = AI.VENDOR_ID
    AND DECODE (AI.PAYMENT_STATUS_FLAG,
             'Y', sysdate - AI.LAST_UPDATE_DATE,
            decode(APS.GROSS_AMOUNT , 0 ,sysdate - AI.LAST_UPDATE_DATE,0)
              )  <= 30
    AND (AERH.SOURCE <> 'Both Pay' OR AERH.REPORT_HEADER_ID IS NULL)       
    UNION
    SELECT
    AI.DESCRIPTION PURPOSE,
    AI.INVOICE_CURRENCY_CODE CURRENCY_CODE,
    AI.INVOICE_DATE REPORT_DATE,
    AERH.REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
    AI.INVOICE_NUM REPORT_NUMBER,
    TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                     0, decode(AI.CANCELLED_DATE,
                                 null, APS.GROSS_AMOUNT,
                                 AERH.TOTAL),
                   nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)) ,  
            FND_CURRENCY_CACHE.GET_FORMAT_MASK
            (AI.INVOICE_CURRENCY_CODE, 30)) ||' '|| AI.INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
    TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                     0, decode(AI.CANCELLED_DATE,
                                 null, APS.GROSS_AMOUNT,
                                 AERH.TOTAL),
                   nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)),  
            FND_CURRENCY_CACHE.GET_FORMAT_MASK
            (AI.INVOICE_CURRENCY_CODE, 30))
    REPORT_TOTAL,
    P.PERSON_ID EMPLOYEE_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,'PAID',
                                    decode(AI.Payment_status_flag,'Y','PAID',
                                                            'N','INVOICED',
                                                            'P','PARPAID',NULL))),
                                            'CANCELLED') STATUS_CODE,
    AERH.source SOURCE,
    NULL CURRENT_APPROVER,
    ROUND(sysdate - AI.LAST_UPDATE_DATE) DAYS_SINCE_ACTIVITY,
    AERH.RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
    AERH.HOLDING_REPORT_HEADER_ID,
    AI.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:MI:SS'),
    AI.INVOICE_ID INVOICE_ID
    FROM
           AK_WEB_USER_SEC_ATTR_VALUES A,
           PO_VENDORS PV,
           AP_INVOICES AI,
           AP_EXPENSE_REPORT_HEADERS AERH,
           PER_PEOPLE_X P,
           AP_PAYMENT_SCHEDULES APS
    WHERE  AI.INVOICE_ID= APS.INVOICE_ID
    AND    AI.INVOICE_ID = AERH.VOUCHNO(+)
    AND AI.INVOICE_TYPE_LOOKUP_CODE||'' in ('STANDARD','MIXED')
    AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID'
    AND AI.PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
    AND A.WEB_USER_ID = :2
    AND P.PERSON_ID = AI.PAID_ON_BEHALF_EMPLOYEE_ID
    AND PV.VENDOR_ID = AI.VENDOR_ID
    AND DECODE (AI.PAYMENT_STATUS_FLAG,
             'Y', sysdate - AI.LAST_UPDATE_DATE,
            decode(APS.GROSS_AMOUNT , 0 ,sysdate - AI.LAST_UPDATE_DATE,0)
            ) <= 30
    AND (AERH.SOURCE <> 'Both Pay' OR AERH.REPORT_HEADER_ID IS NULL)            
    UNION ALL
    SELECT
    AERH.DESCRIPTION PURPOSE,
    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.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.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.LAST_UPDATE_DATE)) DAYS_SINCE_ACTIVITY,
    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:MI:SS'),
    -1 INVOICE_ID
    FROM
           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 <> 'Both Pay'
    UNION
    SELECT
    AERH.DESCRIPTION PURPOSE,
    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.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.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.LAST_UPDATE_DATE)) DAYS_SINCE_ACTIVITY,
    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:MI:SS'),
    -1 INVOICE_ID
    FROM
           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 <> 'Both Pay'
    UNION ALL
    /* This select is for invoice imported reports by contingent workers */
    SELECT
    AI.DESCRIPTION PURPOSE,
    AI.INVOICE_CURRENCY_CODE CURRENCY_CODE,
    AI.INVOICE_DATE REPORT_DATE,
    AERH.REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
    AI.INVOICE_NUM REPORT_NUMBER,
    TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                     0, decode(AI.CANCELLED_DATE,
                                 null, APS.GROSS_AMOUNT,
                                 AERH.TOTAL),
                   nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)) ,  
            FND_CURRENCY_CACHE.GET_FORMAT_MASK
            (AI.INVOICE_CURRENCY_CODE, 30)) ||' '|| AI.INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
    TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                     0, decode(AI.CANCELLED_DATE,
                                 null, APS.GROSS_AMOUNT,
                                 AERH.TOTAL),
                   nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)) ,  
            FND_CURRENCY_CACHE.GET_FORMAT_MASK
            (AI.INVOICE_CURRENCY_CODE, 30))
    REPORT_TOTAL,
    P.PERSON_ID EMPLOYEE_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,'PAID',
                                    decode(AI.Payment_status_flag,'Y','PAID',
                                                            'N','INVOICED',
                                                            'P','PARPAID',NULL))),
                                            'CANCELLED') STATUS_CODE,
    AERH.source SOURCE,
    NULL CURRENT_APPROVER,
    ROUND(sysdate - AI.LAST_UPDATE_DATE) DAYS_SINCE_ACTIVITY,
    AERH.RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
    AERH.HOLDING_REPORT_HEADER_ID,
    AI.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:MI:SS'),
    AI.INVOICE_ID INVOICE_ID
    FROM
           AK_WEB_USER_SEC_ATTR_VALUES A,
           AP_INVOICES AI,
           AP_EXPENSE_REPORT_HEADERS AERH,
           PER_PEOPLE_X P,
           AP_PAYMENT_SCHEDULES APS
    WHERE  AI.INVOICE_ID= APS.INVOICE_ID
    AND    AI.INVOICE_ID = AERH.VOUCHNO(+)
    AND AI.INVOICE_TYPE_LOOKUP_CODE||'' = 'EXPENSE REPORT'
    AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID'
    AND AI.PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
    AND A.WEB_USER_ID = :5
    AND P.PERSON_ID = AI.PAID_ON_BEHALF_EMPLOYEE_ID
    AND AP_WEB_DB_HR_INT_PKG.IsPersonCwk(AI.PAID_ON_BEHALF_EMPLOYEE_ID)='Y'
    AND DECODE (AI.PAYMENT_STATUS_FLAG,
             'Y', sysdate - AI.LAST_UPDATE_DATE,
            decode(APS.GROSS_AMOUNT , 0 ,sysdate - AI.LAST_UPDATE_DATE,0)
              )  <= 30
    AND (AERH.SOURCE <> 'Both 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)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01008: not all variables bound
    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)
    at 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 bound
    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)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    I have took the sql from error message and i tried executing the same in toad... i was able execute it smoothly... i dot know why its working while running the page
    Please help me guys...
    Thanks,
    Pavan

    Hi Shobhi,
    Actually this relates to the Iexpenese Module. The VO is "oracle.apps.ap.oie.server.TrackExpenseReportsVO"(Seeded)
    The user Expense home screen is based on the above VO and this view returning multiple line for the same expense number which should be eliminated.
    so for this i need to filter data by adding where clause dynamically on top of the existing where conditions so that i can eliminate the duplicate row.
    Please suggest me !! how to move on
    Thanks,
    Pavan V
    91-9640871542

  • JBO-27122: SQL error & java.sql.SQLException: ORA-01843: not a valid month

    Hi,
    We developed OA page for Employee's Payslip and it is working fine for all the employees but it is not working for only one employee...Getting the error as
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement
    preparation
    ## Detail 0 ##
    java.sql.SQLException: ORA-01843: not a valid month
    Real Scenario is:
    The user "DANISH.LOTFY" is login into application and when he click on Payslip to the month then he is always getting the above error.
    For testing purpose we have removed his employee assignment from user screen(fnd_user) and assigned some other employee name (say MOHAMED.ELBAHY)... After this when DANISH.LOTFY logins into the application and payslip page is working fine...(He can able to see MOHAMED.ELBAHY payslip.....
    Realy we don't know this strange behaviour of OA ...
    ------ Code with Error details------------------
    Statement:
    SELECT * FROM (SELECT DISTINCT ppa.DATE_EARNED, TO_CHAR(ppa.DATE_EARNED,'MON-YYYY') DISPLAY
    , TO_CHAR(ppa.DATE_EARNED,'MM YYYY') PARAM
    FROM
    pay_payroll_actions ppa
    ,pay_assignment_actions pac
    ,PER_ALL_ASSIGNMENTS_F PASS
    ,FND_USER FU
    ,per_time_periods PTP
    WHERE ppa.payroll_id = 61
    AND ppa.payroll_action_id = pac.payroll_action_id
    AND PAC.ASSIGNMENT_ID = PASS.ASSIGNMENT_ID
    AND PASS.PERSON_ID = FU.EMPLOYEE_ID
    AND FU.USER_ID =Fnd_Profile.VALUE('USER_ID')
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) IS NOT NULL
    ---Added by Sudipta C on 28th Janaury 2008
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) <> TRIM(TO_CHAR(SYSDATE,'MON-YYYY'))
    AND ppa.DATE_EARNED=(SELECT MAX(DATE_EARNED) FROM pay_payroll_actions WHERE time_period_id=ppa.time_period_id)
    AND ppa.DATE_EARNED >='30-NOV-2007'
    UNION ALL
    --Query to Display only the Current Month if the Concurrent Request Ran
    SELECT DISTINCT ppa.DATE_EARNED, TO_CHAR(ppa.DATE_EARNED,'MON-YYYY') DISPLAY
    , TO_CHAR(ppa.DATE_EARNED,'MM YYYY') PARAM
    FROM
    pay_payroll_actions ppa
    ,pay_assignment_actions pac
    ,PER_ALL_ASSIGNMENTS_F PASS
    ,FND_USER FU
    ,per_time_periods PTP
    WHERE ppa.payroll_id = 61
    AND ppa.payroll_action_id = pac.payroll_action_id
    AND PAC.ASSIGNMENT_ID = PASS.ASSIGNMENT_ID
    AND PASS.PERSON_ID = FU.EMPLOYEE_ID
    AND FU.USER_ID = Fnd_Profile.VALUE('USER_ID')
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) IS NOT NULL
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) = TRIM(TO_CHAR(SYSDATE,'MON-YYYY'))
    AND ppa.DATE_EARNED=(SELECT MAX(DATE_EARNED) FROM pay_payroll_actions WHERE time_period_id=ppa.time_period_id)
    AND ppa.DATE_EARNED >='30-NOV-2007'
    --Check the Concurrent Program Ran or not to Display the SYS Month Payroll Period ID
    AND EXISTS
    (SELECT TRIM(TO_CHAR(REQUEST_DATE,'MON-YYYY')) FROM fnd_conc_req_summary_v fcrs
    WHERE program_short_name = 'PROC_EXP1_TESTING'
    AND PHASE_CODE='C' AND STATUS_CODE='C'
    AND TO_CHAR(REQUEST_DATE,'MON-YYYY')=TO_CHAR(SYSDATE,'MON-YYYY')
    AND REQUEST_DATE=(SELECT MAX(REQUEST_DATE) FROM fnd_conc_req_summary_v
    WHERE CONCURRENT_PROGRAM_ID=fcrs.CONCURRENT_PROGRAM_ID))
    ORDER BY 1 DESC) QRSLT WHERE (( UPPER(DISPLAY) like :1 AND (DISPLAY like :2 OR DISPLAY like :3 OR DISPLAY like :4 OR DISPLAY like :5)))
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(OAPageBean.java:2555)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1677)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01843: not a valid month
    Could any please suggest/provide your valuable inputs to resolve this issue(It is in production , so please treat it as very urgent).
    Thanks & Regards,
    J.Prakash

    Hi,
    This is really a strange behaviour as you are saying that it is happening only for one user so please check his user preferences.
    Regards,
    Reetesh Sharma

  • ERROR java.sql.SQLException: ORA-01843: not a valid month

    This page is working fine for English Language. Once we change preference Lanuage to "French Candian" We are getting this issue.
    This is little urgent on this.
    ERROR
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select
    ppf.person_id,
    ppf.employee_number,
    god.organization_id,
    ppf.full_name employee_name,
    (select full_name from per_people_x where person_id = paf.supervisor_ID ) manager_name,
    (select full_name from per_people_x where person_id = haou.attribute4 ) hr_name,
    --hr_general.decode_person_name(haou.attribute4 ) hr_name,
    haou.name organization_name,
    GEM.termination_date actual_termination_date,
    (select meaning from hr_lookups where lookup_type = 'LEAV_REAS' and lookup_code = GEM.Leaving_reason and enabled_flag = 'Y') leaving_reason,
    god.sub_business sub_business,
    god.business_segment business_segment,
    god.industry_focus_group industry_focus_group,
    pgd.segment2 corporate_Band,
    tl.territory_short_name country
    from per_people_f ppf,
    per_assignments_f paf,
    hr_all_organization_units haou,
    per_grades pg,
    per_grade_definitions pgd,
    per_addresses pa,
    fnd_territories_tl tl,
    XXsm_org_dtl god,
    XX_EXIT_TRANSACTION GET,
    XX_EXIT_MANAGER GEM
    where 1=1
    and paf.person_id=:1
    and paf.primary_flag='Y'
    and ppf.person_id = paf.person_id
    and paf.organization_id=haou.organization_id
    and paf.organization_id = god.organization_id
    and trunc(sysdate) between trunc(paf.effective_start_date) and trunc(paf.effective_end_date)
    and trunc(sysdate) between trunc(ppf.effective_start_date) and trunc(ppf.effective_end_date)
    and ppf.person_id=GET.employee_id(+)
    and GET.Transaction_id = GEM.transaction_id
    and paf.grade_id=pg.grade_id(+)
    and pg.grade_definition_id=pgd.grade_definition_id(+)
    and ppf.person_id=pa.person_id(+)
    and pa.primary_flag(+)='Y'
    and pa.country=tl.territory_code(+)
    AND tl.language = USERENV('LANG')
    AND trunc(sysdate) between trunc(pa.Date_from) and trunc(nvl(pa.Date_to, TO_DATE ('31-DEC-4712', 'DD-MON-YYYY')))
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:750)
         at ge.oracle.apps.per.selfservice.eexit.employee.webui.GEExitEmployeeCO.processRequest(GEExitEmployeeCO.java:112)
         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:2348)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1747)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01843: not a valid month
         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:590)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2566)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2963)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
         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:4507)
         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

    Are you hard coding anything in code or VO ?
    AND trunc(sysdate) between trunc(pa.Date_from) and trunc(nvl(pa.Date_to, TO_DATE ('31-DEC-4712', 'DD-MON-YYYY')))Try some modification in the above nvl code and test.
    And refer:
    http://apps2fusion.com/apps/apps/430-string-to-date
    -Anand

Maybe you are looking for

  • Java JTable Screen Blink Problem.

    Dear All, I am facing Screen blink issue while using the JTable. JTable is updated in real Time, It uses custom table model. To update the JTable, I update the Table Model and then call the UpdateUI() and repaint(). These update process is running in

  • Chinese characters in Notes app became gibberish

    I have some notes typed in Chinese while the language setting is in English. Then one day I showed my in-law how to change the language setting to Chinese. After that I changed back the setting to English, now all the chineses characters in Notes loo

  • MW not showing Internet Expenses pre-upgrade tasks

    User logins to MW, Selects project from "Select Role" "Engineer", Select category "Prep for Upgrade" from Process Steps. An assigned task/step for that user does not appear. For this particular user it is Category=Prep for Upgrade, Prod Family=Financ

  • Database error - can't even open apature

    Can't even open apature because of the message "There was an error opening the database for the library "/Users/Beadphoria/Pictures/Aperture Library.aplibrary". Any suggestions?I already tried deleting and reinstalling. Didn't help.

  • How do I convert a string to a double, a number loses the precision

    I tried converting a string to a double but that limits the precision. I need to convert a string to a double.