[jboss-user] [JBoss Portal] - Re: Localizing Tab that has spaces in its name
stephenhouston
do-not-reply at jboss.com
Mon Nov 10 09:47:45 EST 2008
Under Oracle it doesn't seem like its possible to just use the display-name elements in the deployment descriptor. When doing so you send up with an error
| 2008-11-10 14:17:01,016 DEBUG [org.hibernate.util.JDBCExceptionReporter] Could not execute JDBC batch update [insert into JBP_PORTAL_OBJECT_DNAMES (INSTANCE
| _PK, LOCALE, TEXT) values (?, ?, ?)]
| java.sql.BatchUpdateException: ORA-01400: cannot insert NULL into ("FOO"."JBP_PORTAL_OBJECT_DNAMES"."LOCALE")
|
| at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343)
| at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10768)
| at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:774)
| at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
| at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
| at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
| at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
| at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNodeNoCache(PersistentPortalObjectContainer.java:274)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:291)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:252)
| at org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.setSecurityBindings(AbstractPortalObjectContainer.java:194)
| at org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData.configure(PortalObjectMetaData.java:234)
| at org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData.create(PortalObjectMetaData.java:150)
|
It works fine if you use the resource-bundle and supported-locale elements though. Also display-name works fine with mysql, its only when I use oracle that I get the problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188147#4188147
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188147
More information about the jboss-user
mailing list