File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL)" Watch "Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL)" New topic
Author

Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL)

zabet tyan
Ranch Hand

Joined: Jan 14, 2009
Posts: 32
Hi

I am getting this exception:



I read somewhere online that I have to wrap my the classes in transactionProxies. I am doing so for wfControllerMdb which is a MessageListener and where the initial request is made.




my initial call at the top of the stacktrace is wrapped in a proxy:



I am also doing in my OrderManager which makes the final call to my entityManager to save:





and my entityManager which is in charge of saving is also wrapped in a transcationProxy:



So WFControllerMdb (wrapped in txProxy) calls a couple of objects:


those objects get the OrderManager bean from my beanAwareFactory (wrapped in txProxy) and call updateOrder.
then OrderManager(wrapped in txProxy) calls entityManger (wrapped in txProxy) to save the order.

I am pretty sure that no where in my code any transaction is marked as readonly, so the question is why am I getting this error message.


THanks a lot.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL)