banq老師--jdon框架問題

mianwo602發表於2012-06-28
jdon版本:JdonFramework_5.8.zip
問題:
當系統執行一定時間後出現如下錯誤:
2012-06-28 14:02:06,375 [http-80-exec-864] ERROR com.jdon.model.handler.HandlerObjectFactory - [JdonFramework]borrowHandlerObject error:java.util.NoSuchElementException
2012-06-28 14:02:06,375 [http-80-exec-864] ERROR com.jdon.model.ModelManagerImp - [JdonFramework]can't get the modelHandler for the formName b_news_form
2012-06-28 14:02:06,375 [http-80-exec-864] ERROR com.jdon.strutsutil.util.CreateViewPageUtil - [JdonFramework]please check your service 、 model or form, error is: java.lang.NullPointerException
2012-06-28 14:02:08,672 [http-80-exec-870] ERROR com.jdon.model.handler.HandlerObjectFactory - [JdonFramework]borrowHandlerObject error:java.util.NoSuchElementException
2012-06-28 14:02:08,672 [http-80-exec-870] ERROR com.jdon.model.ModelManagerImp - [JdonFramework]can't get the modelHandler for the formName b_news_form
2012-06-28 14:02:08,672 [http-80-exec-870] ERROR com.jdon.strutsutil.util.CreateViewPageUtil - [JdonFramework]please check your service 、 model or form, error is: java.lang.NullPointerException
2012-06-28 14:02:12,640 [http-80-exec-863] ERROR com.jdon.model.handler.HandlerObjectFactory - [JdonFramework]borrowHandlerObject error:java.util.NoSuchElementException
2012-06-28 14:02:12,640 [http-80-exec-863] ERROR com.jdon.model.ModelManagerImp - [JdonFramework]can't get the modelHandler for the formName b_news_form
2012-06-28 14:02:12,640 [http-80-exec-863] ERROR com.jdon.strutsutil.util.CreateViewPageUtil - [JdonFramework]please check your service 、 model or form, error is: java.lang.NullPointerException
2012-06-28 14:02:17,375 [http-80-exec-862] ERROR com.jdon.model.handler.HandlerObjectFactory - [JdonFramework]borrowHandlerObject error:java.util.NoSuchElementException
2012-06-28 14:02:17,375 [http-80-exec-862] ERROR com.jdon.model.ModelManagerImp - [JdonFramework]can't get the modelHandler for the formName b_ggl_form
2012-06-28 14:02:17,375 [http-80-exec-862] ERROR com.jdon.strutsutil.util.CreateViewPageUtil - [JdonFramework]please check your service 、 model or form, error is: java.lang.NullPointerException

錯誤程式碼分析:
2012-06-28 14:02:06,375 [http-80-exec-864] ERROR com.jdon.model.ModelManagerImp - [JdonFramework]can't get the modelHandler for the formName b_news_form

找不到b_news_form
導致ModelSaveAction中ModelSaveAction的ModelHandler modelHandler = modelManager.borrowtHandlerObject(formName);報錯。
原始碼:
/**
* borrow a Handler instance from Modelhandler pool
*/
public ModelHandler borrowtHandlerObject(String formName) {
ModelHandler modelHandler = null;
try {
modelHandler = handlerObjectFactory.borrowHandlerObject(formName);
modelHandler.setModelMapping(modelFactory.getModelMapping(formName));
} catch (Exception ex) {
Debug.logError("[JdonFramework]can't get the modelHandler for the formName " + formName,
module);
returnHandlerObject(modelHandler);
}
return modelHandler;
}

導致後面的異常。
是不是儲存formname的記憶體,被清空了。

banq老師蠻煩能不能幫忙解決下。
jdon這個版本已經從06年用到現在了,我們能夠改的都改了,現在jdon的新版本我們暫時換了,客戶太多,換的話怕出問題。
希望您這邊能不能幫助解決下

相關文章