This content has been marked as final.
Show 4 replies
-
1. Re: Admin Portlet: Strange Behavior with Oracle-DB
peterj Mar 19, 2008 12:17 PM (in response to ironman77)This is a long shot, but in the jboss-portal.sar/conf/hibernate/*/hibernate.cfg.xml files, try setting the "dialect" property (currently it is commented out).
-
2. Re: Admin Portlet: Strange Behavior with Oracle-DB
ironman77 Mar 19, 2008 1:03 PM (in response to ironman77)Hi Peter,
i tried
* org.hibernate.dialect.OracleDialect
* org.hibernate.dialect.Oracle9Dialect
but no effect.
An extension to the previous description:
If you try to add a property (e.g. "hidden") first nothing happens (reload). If you try to add the property again you get a:java.sql.BatchUpdateException: ORA-00001: Unique Constraint (JBOSSPORTAL_2_6.SYS_C0011591)
Exception as the property is already written to the database table! -
3. Re: Admin Portlet: Strange Behavior with Oracle-DB
ssolfaroli Apr 10, 2008 5:14 AM (in response to ironman77)Same problem here.
Trying to add a property to a page i get nothing on first time, if I retry I get this error:2008-04-10 10:44:38,300 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 1, SQLState: 23000 2008-04-10 10:44:38,300 ERROR [org.hibernate.util.JDBCExceptionReporter] ORA-00001: unique constraint (JBPORTAL.SYS_C0016340) violated 2008-04-10 10:44:38,300 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 1, SQLState: 23000 2008-04-10 10:44:38,300 ERROR [org.hibernate.util.JDBCExceptionReporter] ORA-00001: unique constraint (JBPORTAL.SYS_C0016340) violated 2008-04-10 10:44:38,300 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
My environment:
* Version: jboss-portal-2.6.4
* Download Version
* JBoss AS Version: 4.2.2.GA
* Database: Oracle Database 10g Release 2
* JDBC Connector and Version: ojdb14.jar shipped with database
* OS Platform: Red Hat Enterprise Linux AS release 4
* Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Searching in Hibernate FAQ i tried to disable batch update<property name="hibernate.jdbc.batch_versioned_data">false</property> <property name="hibernate.jdbc.batch_size">0</property>
, nothing has changed.
Tried specifing hibernate dialect also, with:<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
Someone has an idea of what is happening?
Please help me.
Thanks -
4. Re: Admin Portlet: Strange Behavior with Oracle-DB
ssolfaroli Apr 15, 2008 5:49 AM (in response to ironman77)I change the question:
there is someone that is using Oracle10g with JBoss portal without having this problem?
If so, I could exclude a bug or an incompatibily with this database...
Thanks