随笔 - 23  文章 - 3  trackbacks - 0
<2006年7月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

常用链接

留言簿(1)

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜

注意writer的参数有多个,特别是有一个boolean的参数决定刷新或在附加文本

            log  =    new  PrintWriter( new  FileOutputStream(fl, true ), true );
            SimpleDateFormat df 
=   new  SimpleDateFormat( " yyyy.MM.dd 'at' hh:mm:ss\n "
);
            Date now 
=   new
 Date();
            String dateformat 
=
 df.format(now)
            BufferedWriter bf  
=   new  BufferedWriter( new  FileWriter(fl,  true
));
            bf.append(dateformat);
            bf.close();
            log.println(
" start connection databse: "
);
            log.println(
" driver name: " .concat(driveName);


输出的结果示例:
2006.12.12 at 10:21:13
start connection databse:
driver name:oracle.jdbc.driver.OracleDriver

posted @ 2006-12-12 12:16 aimy 阅读(214) | 评论 (0)编辑 收藏
1、org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xindeco.business.pojo.NonageRegister#82]
 at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27)
 at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:65)
 at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(ApplicationFilterChain.java:252)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
 at org.apache.catalina.core.ApplicationDispatcher.forward

错误的原因:
在nonregsiter中已经手动删除了id=‘82’的记录,而在WF_task以及wf-proces中还有bizclass = '3' && bizId = '82'的记录,只要删除wf-task中相应的记录.
posted @ 2006-07-09 16:17 aimy 阅读(227) | 评论 (0)编辑 收藏