I am upgrading my AppFuse 1.9.3. application to AppFuse 1.9.4.

On every write access, including the UserManager, I receive a

Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL):
Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker
from transaction definition.

The application log shows:


DEBUG http-8080-Processor23
org.springframework.orm.hibernate3.HibernateTransactionManager - Creating
new transaction with name [org.appfuse.service.RoleManager.getByName]
DEBUG http-8080-Processor23
org.springframework.orm.hibernate3.HibernateTransactionManager - Preparing
JDBC Connection of Hibernate Session
[EMAIL PROTECTED]
DEBUG http-8080-Processor23
org.springframework.jdbc.datasource.DataSourceUtils - Setting JDBC
Connection [EMAIL PROTECTED] read-only
DEBUG http-8080-Processor23
org.springframework.orm.hibernate3.HibernateTransactionManager - Exposing
Hibernate transaction as JDBC transaction
[EMAIL PROTECTED]

I used the AppFuse 1.9.4 configuration files and edited them as needed. I
revised action-servlet.xml, applicationContext-hibernate and
applicationContext-service.xml again and again, but cannot find the problem. 

The UserManager causes the same problem, even if the aop-section in
applicationContext-service.xml is edited to be identical as in AppFuse
1.9.4:


<aop:config>
    <aop:advisor id="userManagerTx" advice-ref="userManagerTxAdvice"
pointcut="execution(* *..service.UserManager.*(..))" order="0"/>
    <aop:advisor id="userManagerSecurity" advice-ref="userSecurityAdvice"
pointcut="execution(* *..service.UserManager.saveUser(..))" order="1"/>
    <aop:advisor id="managerTx" advice-ref="txAdvice"
pointcut="execution(* *..service.*Manager.*(..))" order="2"/>
</aop:config>

 A basic AppFuse 1.9.4 application on the same machine works fine, but still
there are so many differences in these two applications, that I would be
very happy, if somebody could give me a hint, where to look!


Thank you in advance for any comments!

-- 
View this message in context: 
http://www.nabble.com/Problems-with-HibernateTransactionManager%2C-FlushMode%2C-readOnly-when-upgrading-from-Appfuse-1.9.3-to-1.9.4-tf2772668s2369.html#a7733994
Sent from the AppFuse - User mailing list archive at Nabble.com.

Reply via email to