Tag Archives: read

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

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

让人蛋疼的错误,找了好久不知道是什么原因,最后看源码,原来spring自动帮我加我flushmode = 手动。 明明在web.xml里面已经配置过了的,最后发现原来是有我自己的安全方法,哎。。。。

 

如下[java]












[/java]

加上你的方法表达式就可以了

在linux上配置mantis的图形报表

Mantis是一个缺陷跟踪系统, 但是在linux下有时候图形报表不能显示,出现错误unable to read find font, 解决方法如下:
 

Red Hat/Centos

只要下载两个rpm安装就可以了
# wget http://www.cabextract.org.uk/cabextract-1.4-1.i386.rpm

# wget ftp://ftp.pbone.net/mirror/apt.unl.edu/apt/fedora/fedora/13/i386/unl/RPMS/msttcorefonts-2.0-2.noarch.rpm

# /sbin/service xfs reload(重新装载font)
 

Ubuntu

sudo apt-get install ttf-mscorefonts-installer

扩展阅读http://baike.baidu.com/view/1346130.htm

http://hjwahjl.blog.163.com/blog/static/346813402011531353485/
http://corefonts.sourceforge.net/