- 浏览: 279296 次
- 性别:
- 来自: 北京
-
最新评论
-
somefuture:
为何有文章说asyncAppdender不支持J2ee容器ht ...
log4j 日志异步化AsyncAppender 大幅提升系统性能 -
model2012:
你用adt跑的吧,android里面是不能直接运行main方法 ...
JVM崩溃:Current thread JavaThread "CompilerThread1" daemon [_thre -
di1984HIT:
不错。学习了啊
.rmi.ConnectException: Connection refused to host: 127.0.0.1来龙去脉 -
gygwoaini:
还有可能是第3个问号没给值
索引中丢失 IN 或 OUT 参数:: 3 -
fool2011:
多谢
索引中丢失 IN 或 OUT 参数:: 3
文章列表
ERROR TransactionInterceptor:307 - Application exception overridden by commit exception
错误原因可能为:
Remember only unchecked exceptions cause rollbacks in spring transactions.
What is happening is that you're catching the unchecked exception, converting it to a checked exception and then propogat ...
Bug ID:
5040096
Votes
0
Synopsis
Vtest/Vmark fail after 6 hrs run on windows20 ...
- 2009-09-22 19:08
- 浏览 4838
- 评论(0)
样例:
package thread;
public class CleanThead {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
DestroyableImpl di = new DestroyableImpl();
ShutdownHook sh ...
- 2009-09-21 16:53
- 浏览 7331
- 评论(0)
连接超时和响应超时:
因为spring没有直接设置超时的参数,只能设置rmi底层参数。
在jvm启动参数中增加:
-Dsun.rmi.transport.proxy.connectTimeout=3000 -Dsun.rmi.transport.tcp.responseTimeout=3000
但在spring 的 RMI中却不能使用,经过查看源代码发现在调用Socket时,没有设置相关超时时间。
修改
RMIDirectSocketFactory.java文件
/*
* @(#)RMIDirectSocketFactory.java 1.10 ...
- 2009-09-15 17:14
- 浏览 6799
- 评论(0)
临时解决办法:
-XX:CompileCommand=exclude,net/sf/cglib/core/CodeEmitter,process_switch
--------------- T H R E A D ---------------
Current thread (0x0000000007573bb0): JavaThread "CompilerThread1" daemon [_thread_in_native, id=2304]
siginfo: ExceptionCode=0xc0000005, reading ...
- 2009-09-15 10:57
- 浏览 7977
- 评论(1)
原因1:读取js文件时选用的编码不匹配导致该错误。
解决办法:
方法1:修改js的存储编码。可以使用editplus打开js文件,再用匹配的的编码方式保存并取代原来的js文件即可,这种方式移植性较差。因为tomcat和websphere在读取同一文件可能选用的编码不同。建议使用方法2.
方法2:在include js时指定编码:<script type="text/javascript" src="xmenu.js" charset="UTF-8"></script>
- 2009-09-10 10:21
- 浏览 8779
- 评论(0)
错误有二:
其一:程序错误,ramwriter的关闭时机有问题,应在合并之前关闭。
FSDirectory fsDir = FSDirectory.getDirectory("/data/index", true);
RAMDirectory ramDir = new RAMDirectory();
IndexWriter fsWriter = new IndexWriter(fsDir, new StandardAnalyzer(), true);
IndexWriter ramWriter = new IndexWriter(ramDir, new Standa ...
- 2009-09-08 17:38
- 浏览 1674
- 评论(0)
lucene在执行索引和检索时能同时打开多个文件,打开多个与共同使用一个有多大的区别?
在索引时能否对同一文件进行并发打开?
在检索时并发打开一个文件与公用一个打开句柄,哪个性能更好?
导致文件打开过多的可能用法:
Why am I getting an IOException that says "Too many open files"?
The number of files that can be opened simultaneously is a
system-wide limitation of your operating ...
- 2009-09-06 19:01
- 浏览 1304
- 评论(0)
内存溢出,无法创建新的本地线程的原因和解决方案,java.lang.OutOfMemoryError: unable to create new native thread
I recently came across this exception on a couple of java systems that
use many threads java.lang.OutOfMemoryError: unable to create new
native thread. The strange thing was that the JVM had been assigned ...
- 2009-09-03 13:55
- 浏览 3899
- 评论(0)
JavaScript 未
结束
的字符
串
常量
JavaScript 未
结束
的字符
串
常量
做JavaScript的时候,发现老是出现错误:“未
结束
的字符
串
常量
”.
自己找了下应该是传参数的时候,有特殊字符
引起的.
网上也找了 ...
- 2009-08-26 17:24
- 浏览 1312
- 评论(0)
Write operations are not allowed in read-only mode (FlushMode.NEVER)
错误代码:
org.springframework
.dao
.InvalidDataAccessApiUsageException
: Write operations are not allowed in read-only mode (
FlushMode.NEVER
)
- turn your Session into FlushMode.AUTO
or remove 'readOnly'
m ...
- 2009-08-26 14:04
- 浏览 1510
- 评论(0)
错误日志:
Could
not
synchronize
database
state
with session
org.hibernate.HibernateException:
at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:32)
原因及解决办法:
原因1:
Hibernate: Could
not
synchronize
database
state
with session
...
- 2009-08-21 16:29
- 浏览 10142
- 评论(0)
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not execute query; uncategorized SQLException for SQL [select ** *** ? ))]; SQL state [null]; error code [17041]; 索引中丢失 IN 或 OUT 参数:: 3; nested exception is java.sql.SQLException: 索引中丢失 IN 或 OUT 参数:: 3java.sql.SQLExcepti ...
- 2009-08-20 18:39
- 浏览 25378
- 评论(3)
原因:
1、手工删除索引文件导致。
2、磁盘错误导致。
解决办法:
方法一:重启lucene服务。
出错样例:
HI There
I keep getting the following error when simultaneously reindexing my
documents and searching through the index.
java.io.IOException: Cannot overwrite: C:\index9121\_2.cfs
at
org.apache.lucene.store.FSDir ...
- 2009-08-20 17:24
- 浏览 3202
- 评论(0)
http://www.boolean.cn/read.php?363
在单一字段的唯一性约束时,我们可以在映射文件里配置property属性的unique="true"来达到目的,但多字段的唯一性约束怎样处理呢?如
果使用复合主键可以很简单地解决这个问题,但如果不希望使用composite-id映射,则可以使用property元素里的unique-key属性
来达到此目的。
unique_key_id只是保证了几个相关的字段共用一个unique-key而已,只要这组字段使用相同的unique-key即可。
1. <property na ...
- 2009-08-20 15:59
- 浏览 7161
- 评论(1)