Any one found a solution for this?http://lists.ofbiz.org/pipermail/dev/2005-August/009073.htmlI'm using an Oracle database and all the tables were successfully created.The problem is that when I run startofbiz, I get the following. The problemis in the WHERE clause: WHERE((RUN_TIIME <= '2500-08-20 19:34:52.0' Inoracle, the timestamp uses the following format: 01-JAN-00 12.00.00.000000AM. What is the suggested way to get OFBIZ and Oracle to cooperate withTimestamps? 313031[ BeanShellContainer.java:110:INFO ] NOTICE: BeanShell service portsare not secure. Please protect the ports323141[ GenericDelegator.java:1010:ERROR] ---- exception report----------------------------------------------------------Failure in storeByCondition operation for entity [JobSandbox]:org.ofbiz.entity.GenericDataSourceException: Generic Entity Exceptionoccured in updateByCondition (SQL Exception while executing thefollowing:UPDATE OFBIZ.JOB_SANDBOX SET RUN_BY_INSTANCE_ID = ?, STATUS_ID = ?WHERE ((RUN_TIME <= '2005-08-20 19:34:52.0' AND START_DATE_TIME IS NULL ANDCANCEL_DATE_TIME IS NULL AND RUN_BY_INSTANCE_ID IS NULL) AND (POOL_ID ISNULL OR POOL_ID = 'pool')) (ORA-01843: not a valid month)). Rolling back transaction.Exception: org.ofbiz.entity.GenericDataSourceExceptionMessage: Generic Entity Exception occured in updateByCondition (SQLException while executing the following:UPDATE OFBIZ.JOB_SANDBOX SETRUN_BY_INSTANCE_ID = ?, STATUS_ID = ? WHERE ((RUN_TIME <= '2005-08-2019:34:52.0' AND START_DATE_TIME IS NULL AND CANCEL_DATE_TIME IS NULL ANDRUN_BY_INSTANCE_ID IS NULL) AND (POOL_ID IS NULL OR POOL_ID = 'pool'))(ORA-01843: not a valid month))---- stack trace---------------------------------------------------------------org.ofbiz.entity.GenericDataSourceException: Generic Entity Exceptionoccured in updateByCondition (SQL Exception while executing thefollowing:UPDATE OFBIZ.JOB_SANDBOX SET RUN_BY_INSTANCE_ID = ?, STATUS_ID = ?WHERE ((RUN_TIME <= '2005-08-20 19:34:52.0' AND START_DATE_TIME IS NULL ANDCANCEL_DATE_TIME IS NULL AND RUN_BY_INSTANCE_ID IS NULL) AND (POOL_ID ISNULL OR POOL_ID = 'pool')) (ORA-01843: not a valid month))org.ofbiz.entity.datasource.GenericDAO.updateByCondition(GenericDAO.java:315)org.ofbiz.entity.datasource.GenericHelperDAO.storeByCondition(GenericHelperDAO.java:231)org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1007)org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:982)org.ofbiz.service.job.JobManager.poll(JobManager.java:152)org.ofbiz.service.job.JobPoller.run(JobPoller.java:96)java.lang.Thread.run(Thread.java:534)org.ofbiz.entity.GenericDataSourceException: SQL Exception while executingthe following:UPDATE OFBIZ.JOB_SANDBOX SET RUN_BY_INSTANCE_ID = ?, STATUS_ID= ? WHERE ((RUN_TIME <= '2005-08-20 19:34:52.0' AND START_DATE_TIME IS NULLAND CANCEL_DATE_TIME IS NULL AND RUN_BY_INSTANCE_ID IS NULL) AND (POOL_ID ISNULL OR POOL_ID = 'pool')) (ORA-01843: not a valid month)org.ofbiz.entity.jdbc.SQLProcessor.executeUpdate(SQLProcessor.java:438)org.ofbiz.entity.datasource.GenericDAO.updateByCondition(GenericDAO.java:357)org.ofbiz.entity.datasource.GenericDAO.updateByCondition(GenericDAO.java:312)org.ofbiz.entity.datasource.GenericHelperDAO.storeByCondition(GenericHelperDAO.java:231)org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1007)org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:982)org.ofbiz.service.job.JobManager.poll(JobManager.java:152)org.ofbiz.service.job.JobPoller.run(JobPoller.java:96)java.lang.Thread.run(Thread.java:534)java.sql.SQLException: ORA-01843: not a valid monthoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047)oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)org.ofbiz.minerva.pool.jdbc.PreparedStatementInPool.executeUpdate(PreparedStatementInPool.java:82)org.ofbiz.entity.jdbc.SQLProcessor.executeUpdate(SQLProcessor.java:435)org.ofbiz.entity.datasource.GenericDAO.updateByCondition(GenericDAO.java:357)org.ofbiz.entity.datasource.GenericDAO.updateByCondition(GenericDAO.java:312)org.ofbiz.entity.datasource.GenericHelperDAO.storeByCondition(GenericHelperDAO.java:231)org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1007)org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:982)org.ofbiz.service.job.JobManager.poll(JobManager.java:152)org.ofbiz.service.job.JobPoller.run(JobPoller.java:96)java.lang.Thread.run(Thread.java:534)-------------------------------------------------------------------------------- 323141[ TransactionUtil.java:281:WARN ] ---- exception report----------------------------------------------------------[TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; thisstack trace shows where this is happening:Exception: java.lang.ExceptionMessage: null---- stack trace---------------------------------------------------------------java.lang.Exceptionorg.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:281)org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:231)org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1013)org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:982)org.ofbiz.service.job.JobManager.poll(JobManager.java:152)org.ofbiz.service.job.JobPoller.run(JobPoller.java:96)java.lang.Thread.run(Thread.java:534)-------------------------------------------------------------------------------- 323141[ JobManager.java:158:ERROR]
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
| Free forum by Nabble | Edit this page |
