-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Second Level Cache with Read-Only - attempt to write
PostPosted: Wed Mar 04, 2009 11:52 am 
Newbie

Joined: Thu May 22, 2008 9:48 am
Posts: 13
Supposedly I have this large amount of data that is definitional and drives the application. It should not change. Because of this, I thought it a good idea to enable an application-wide second level cache. I annotated all the the classes @Cache(READ_ONLY) that were in the hierarchy of these definitions. However, when I attempt to reattach the graph (which I think may be unnecessary since the entities should be available via 2nd level), I get the following. Now the goal of all of this is to reduce in-memory objects, which I'm not entirely sure 2nd level cache does nor reattaching. If there's any other info that could help let me know. Partly I need help finding a good way of debugging the situation since I can't seem to isolate the dirty entity (the entire subgraph appears to be dirty from the debug).


Hibernate version:
3.3

Mapping documents:
na - This is all annotation. I have some single table subclassing which overrides and defaults certain columns, but those are insertable=false, updatable=false. In fact, anything that defaults is labeled as such.

Code between sessionFactory.openSession() and session.close():
na

Full stack trace of any exception that occurs:
Code:
java.lang.UnsupportedOperationException: Can't write to a readonly object
   at org.hibernate.cache.ReadOnlyCache.lock(ReadOnlyCache.java:68)
   at org.hibernate.cache.impl.bridge.EntityAccessStrategyAdapter.lockItem(EntityAccessStrategyAdapter.java:72)
   at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:108)
   at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
   at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
   at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
   at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
   at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
   at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
   at com.ciminc.compass.spring.security.OracleCompassUserDetailsService.retrieveCompassUser(OracleCompassUserDetailsService.java:202)
   at com.ciminc.compass.spring.security.OracleCompassUserDetailsService.loadUserDetails(OracleCompassUserDetailsService.java:83)
   at com.ciminc.spring.security.DatabaseUserAuthenticationProvider.authenticate(DatabaseUserAuthenticationProvider.java:44)
   at org.springframework.security.providers.ProviderManager.doAuthentication(ProviderManager.java:188)
   at org.springframework.security.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:46)
   at org.springframework.security.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:82)
   at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:258)
   at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
   ....

Name and version of the database you are using:
Oracle 10g

The generated SQL (show_sql=true):
no sql is generated

Debug level Hibernate log excerpt:
Code:
2009-03-04 10:34:16,550 [http-8080-Processor25] DEBUG org.hibernate.transaction.JDBCTransaction - begin
2009-03-04 10:34:16,550 [http-8080-Processor25] DEBUG org.hibernate.transaction.JDBCTransaction - current autocommit status: true
2009-03-04 10:34:16,550 [http-8080-Processor25] DEBUG org.hibernate.transaction.JDBCTransaction - disabling autocommit
2009-03-04 10:34:16,553 [http-8080-Processor25] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - processing flush-time cascades
2009-03-04 10:34:16,553 [http-8080-Processor25] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - dirty checking collections
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.TableDefinition.childTableDefinitions#000000000000000000000000000000000100], was: [com.ciminc.compass.domain.TableDefinition.childTableDefinitions#000000000000000000000000000000000100] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.TableDefinition.sectionDefinitions#000000000000000000000000000000000100], was: [com.ciminc.compass.domain.TableDefinition.sectionDefinitions#000000000000000000000000000000000100] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.TableDefinition.summaryButtonDefinitions#000000000000000000000000000000000100], was: [com.ciminc.compass.domain.TableDefinition.summaryButtonDefinitions#000000000000000000000000000000000100] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.TableDefinition.summaryDefinitions#000000000000000000000000000000000100], was: [com.ciminc.compass.domain.TableDefinition.summaryDefinitions#000000000000000000000000000000000100] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.SectionDefinition.collectionDefinitions#000000000000000000000000000000000315], was: [com.ciminc.compass.domain.SectionDefinition.collectionDefinitions#000000000000000000000000000000000315] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.CollectionDefinition.fieldDefinitions#000000000000000000000000000000000315], was: [com.ciminc.compass.domain.CollectionDefinition.fieldDefinitions#000000000000000000000000000000000315] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008083], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008083] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008084], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008084] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008085], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008085] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008086], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008086] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008087], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008087] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008088], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008088] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008089], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008089] (initialized)
2009-03-04 10:34:16,558 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008090], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008090] (initialized)
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008091], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008091] (initialized)
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008092], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008092] (initialized)
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008093], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008093] (initialized)
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.engine.Collections - Collection found: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008094], was: [com.ciminc.compass.domain.field.FieldDefinition.relatedFields#000000000000000000000000000000008094] (initialized)
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Flushed: 0 insertions, 15 updates, 0 deletions to 15 objects
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Flushed: 0 (re)creations, 0 updates, 0 removals to 18 collections
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - listing entities:
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.TextDefinition{reportTypes=null, questionText=VERSION, fieldType=NUMERIC, validationExpression=null, sortOrder=2, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=null, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=null, guiObject=TEXT, reportQuestionText=null, questionTooltip=null, custom1=null, length=10, notes=null, subquestionTooltip=null, subquestionText=null, uniqueKey=false, fieldName=VERSION, reviewMissing=false, helpLink=null, minimumExpression=null, visible=true, guid=000000000000000000000000000000008085, relatedFields=[], mask=null, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=null}
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.TextDefinition{reportTypes=null, questionText=Phone number called, fieldType=CHARACTER, validationExpression=null, sortOrder=6, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=null, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=null, guiObject=TEXT, reportQuestionText=null, questionTooltip=null, custom1=null, length=3, notes=null, subquestionTooltip=null, subquestionText=Area Code, uniqueKey=false, fieldName=AREA_CALLED, reviewMissing=true, helpLink=null, minimumExpression=null, visible=true, guid=000000000000000000000000000000008089, relatedFields=[], mask=###, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=null}
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.ComboboxDefinition{ajaxAutoComplete=false, reportTypes=null, questionText=Contact Method, fieldType=CHARACTER, validationExpression=null, sortOrder=1, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=F, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=null, guiObject=COMBOBOX, reportQuestionText=null, questionTooltip=null, custom1=F, length=2, notes=null, subquestionTooltip=null, subquestionText=null, uniqueKey=false, fieldName=CONTACT_METHOD, reviewMissing=true, helpLink=null, editableCombo=false, minimumExpression=null, visible=true, guid=000000000000000000000000000000008084, relatedFields=[], mask=null, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=com.ciminc.compass.domain.Lookup#607357AF16A3B1EEE040007F01007019}
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.TableDefinition{parentTableName=null, summaryButtonDefinitions=[], nodeLabel=Progress Notes , limitedRecordCount=-1, parentTableDefinition=null, syncOrder=10, sortOrder=10, allowDelete=true, tableName=PROGRESS_NOTE, subNodeLabelSource=NOTE_DATE_TIME, clonePreviousRecord=false, iconFileName=PROGRESSNOTES.GIF, initialCloneTable=null, childTableDefinitions=[], lockFieldName=NOTE_DATE_TIME, visible=true, guid=000000000000000000000000000000000100, childTableNames=null, summaryDefinitions=[], sectionDefinitions=[com.ciminc.compass.domain.SectionDefinition#000000000000000000000000000000000315], application=WEB}
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.FieldDefinition{reportTypes=null, questionText=Notes, fieldType=CHARACTER, validationExpression=null, sortOrder=9, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=null, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=null, guiObject=MEMO, reportQuestionText=null, questionTooltip=null, custom1=null, length=4000, notes=null, subquestionTooltip=null, subquestionText=null, uniqueKey=false, fieldName=NOTES, reviewMissing=true, helpLink=null, minimumExpression=null, visible=true, guid=000000000000000000000000000000008092, relatedFields=[], mask=null, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=null}
2009-03-04 10:34:16,559 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.TextDefinition{reportTypes=null, questionText=null, fieldType=CHARACTER, validationExpression=null, sortOrder=5, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=null, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=null, guiObject=TEXT, reportQuestionText=null, questionTooltip=null, custom1=null, length=50, notes=null, subquestionTooltip=null, subquestionText=Contact Name, uniqueKey=false, fieldName=CONTACT_NAME, reviewMissing=false, helpLink=null, minimumExpression=null, visible=true, guid=000000000000000000000000000000008088, relatedFields=[], mask=null, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=null}
2009-03-04 10:34:16,560 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.TextDefinition{reportTypes=null, questionText=Care Manager Initials, fieldType=CHARACTER, validationExpression=null, sortOrder=10, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=null, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=com.ciminc.compass.domain.field.Expression#000000000000000000000000000000003507, guiObject=TEXT, reportQuestionText=null, questionTooltip=null, custom1=null, length=3, notes=null, subquestionTooltip=null, subquestionText=null, uniqueKey=false, fieldName=CARE_MAN_INIT, reviewMissing=true, helpLink=null, minimumExpression=null, visible=true, guid=000000000000000000000000000000008093, relatedFields=[], mask=null, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=null}
2009-03-04 10:34:16,560 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.TimestampDefinition{reportTypes=null, questionText=Date, fieldType=DATE, validationExpression=null, sortOrder=11, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=null, reviewMissingExpression=null, maximumExpression=com.ciminc.compass.domain.field.Expression#000000000000000000000000000000003509, nullable=false, defaultExpression=com.ciminc.compass.domain.field.Expression#000000000000000000000000000000003508, guiObject=TIMESTAMP, reportQuestionText=null, questionTooltip=null, custom1=null, length=10, notes=null, subquestionTooltip=null, subquestionText=null, uniqueKey=false, fieldName=NOTE_DATE_TIME, reviewMissing=true, helpLink=null, minimumExpression=null, visible=true, guid=000000000000000000000000000000008094, relatedFields=[], mask=##/##/####, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=null}
2009-03-04 10:34:16,560 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.TextDefinition{reportTypes=null, questionText=null, fieldType=CHARACTER, validationExpression=null, sortOrder=4, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=null, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=null, guiObject=TEXT, reportQuestionText=null, questionTooltip=null, custom1=null, length=36, notes=null, subquestionTooltip=null, subquestionText=null, uniqueKey=false, fieldName=EPISODE_GUID, reviewMissing=false, helpLink=null, minimumExpression=null, visible=true, guid=000000000000000000000000000000008087, relatedFields=[], mask=null, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=null}
2009-03-04 10:34:16,560 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.TextDefinition{reportTypes=null, questionText=null, fieldType=CHARACTER, validationExpression=null, sortOrder=0, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=null, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=null, guiObject=TEXT, reportQuestionText=null, questionTooltip=null, custom1=null, length=36, notes=null, subquestionTooltip=null, subquestionText=null, uniqueKey=false, fieldName=GUID, reviewMissing=false, helpLink=null, minimumExpression=null, visible=true, guid=000000000000000000000000000000008083, relatedFields=[], mask=null, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=null}
2009-03-04 10:34:16,560 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.TextDefinition{reportTypes=null, questionText=null, fieldType=CHARACTER, validationExpression=null, sortOrder=7, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=null, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=null, guiObject=TEXT, reportQuestionText=null, questionTooltip=null, custom1=null, length=20, notes=null, subquestionTooltip=null, subquestionText=Number, uniqueKey=false, fieldName=NUMBER_CALLED, reviewMissing=true, helpLink=null, minimumExpression=null, visible=true, guid=000000000000000000000000000000008090, relatedFields=[], mask=###-####************, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=null}
2009-03-04 10:34:16,560 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.ComboboxDefinition{ajaxAutoComplete=false, reportTypes=null, questionText=Person Contacted, fieldType=CHARACTER, validationExpression=null, sortOrder=3, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=F, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=null, guiObject=COMBOBOX, reportQuestionText=null, questionTooltip=null, custom1=F, length=2, notes=null, subquestionTooltip=null, subquestionText=null, uniqueKey=false, fieldName=PERSON_CONTACTED, reviewMissing=true, helpLink=null, editableCombo=false, minimumExpression=null, visible=true, guid=000000000000000000000000000000008086, relatedFields=[], mask=null, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=com.ciminc.compass.domain.Lookup#607357AF16D6B1EEE040007F01007019}
2009-03-04 10:34:16,560 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.ListCollectionDefinition{questionJustification=LEFT, answerJustification=LEFT, text=null, type=LIST, guid=000000000000000000000000000000000315, sortOrder=0, sectionDefinition=com.ciminc.compass.domain.SectionDefinition#000000000000000000000000000000000315, name=COLLECTION, fieldDefinitions=[com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008083, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008084, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008085, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008086, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008087, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008088, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008089, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008090, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008091, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008092, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008093, com.ciminc.compass.domain.field.FieldDefinition#000000000000000000000000000000008094]}
2009-03-04 10:34:16,560 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.SectionDefinition{section=NULL_SECTION, collectionDefinitions=[com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315], guid=000000000000000000000000000000000315, tableDefinition=com.ciminc.compass.domain.TableDefinition#000000000000000000000000000000000100, sortOrder=0, updatableComment=false}
2009-03-04 10:34:16,560 [http-8080-Processor25] DEBUG org.hibernate.pretty.Printer - com.ciminc.compass.domain.field.TextDefinition{reportTypes=null, questionText=Duration of Contact (in minutes), fieldType=NUMERIC, validationExpression=null, sortOrder=8, clone=true, updatableComment=false, custom3=null, reportSubquestionText=null, custom2=null, reviewMissingExpression=null, maximumExpression=null, nullable=false, defaultExpression=null, guiObject=TEXT, reportQuestionText=null, questionTooltip=null, custom1=null, length=3, notes=null, subquestionTooltip=null, subquestionText=null, uniqueKey=false, fieldName=CONTACT_DURATION, reviewMissing=false, helpLink=null, minimumExpression=null, visible=true, guid=000000000000000000000000000000008091, relatedFields=[], mask=null, readOnly=false, collectionDefinition=com.ciminc.compass.domain.CollectionDefinition#000000000000000000000000000000000315, lookup=null}
2009-03-04 10:34:16,561 [http-8080-Processor25] DEBUG org.hibernate.cache.UpdateTimestampsCache - Pre-invalidating space [TABLE_DEFINITION]
2009-03-04 10:34:16,561 [http-8080-Processor25] ERROR org.hibernate.cache.ReadOnlyCache - Application attempted to edit read only item: com.ciminc.compass.domain.TableDefinition#000000000000000000000000000000000100
2009-03-04 10:34:16,561 [http-8080-Processor25] DEBUG org.hibernate.transaction.JDBCTransaction - rollback
2009-03-04 10:34:16,562 [http-8080-Processor25] DEBUG org.hibernate.transaction.JDBCTransaction - re-enabling autocommit
2009-03-04 10:34:16,562 [http-8080-Processor25] DEBUG org.hibernate.transaction.JDBCTransaction - rolled back JDBC Connection
2009-03-04 10:34:16,562 [http-8080-Processor25] DEBUG org.hibernate.jdbc.ConnectionManager - transaction completed on session with on_close connection release mode; be sure to close the session to release JDBC resources!
2009-03-04 10:34:16,562 [http-8080-Processor25] ERROR org.hibernate.cache.ReadOnlyCache - Application attempted to edit read only item: com.ciminc.compass.domain.TableDefinition#000000000000000000000000000000000100
2009-03-04 10:34:16,562 [http-8080-Processor25] DEBUG org.hibernate.cache.UpdateTimestampsCache - Invalidating space [TABLE_DEFINITION], timestamp: 5063396788477952
2009-03-04 10:34:16,563 [http-8080-Processor25] DEBUG org.hibernate.jdbc.ConnectionManager - transaction completed on session with on_close connection release mode; be sure to close the session to release JDBC resources!


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 04, 2009 2:33 pm 
Newbie

Joined: Thu May 22, 2008 9:48 am
Posts: 13
Added
Code:
@Immutable

to classes and this seems to "fix it" (albeit, unsatisfactorily). Of course, I'd like to know how to determine the root cause, so I'm still willing to try things out.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.