練功房推薦書單

  • 猛虎出柙雙劍合璧版--最新 OCA / OCP Java SE 7 Programmer 專業認證 (電子書)
  • 流浪教師存零股存到3000萬(全新增修版)(書+DVD)
  • 開始在關西自助旅行(京都‧大阪‧神戶‧奈良)(全新增訂版)
  • 不敗教主的300張股票存股術

关于eclipse中jforum生成war包的错误 RSS feed
討論區首頁 » JForum中文社群 JForum Chinese Users Community
發表人 內容
wyhao31

十級學員

註冊時間: 2012/12/11
文章: 2
離線
maven package以后,出现了单元测试不通过的错误:

Results :

Failed tests: testInReplyToIncorrectShouldCreateNewTopic(net.jforum.api.integration.mail.pop.POPListenerTestCase): The message was not inserted

Tests in error:
testSimple(net.jforum.api.integration.mail.pop.POPListenerTestCase)
testInReplyToCreateNewTopicThenReply(net.jforum.api.integration.mail.pop.POPListenerTestCase)

Tests run: 62, Failures: 1, Errors: 2, Skipped: 0

详细的异常如下:
Tests run: 3, Failures: 1, Errors: 2, Skipped: 0, Time elapsed: 1.211 sec <<< FAILURE!
testSimple(net.jforum.api.integration.mail.pop.POPListenerTestCase) Time elapsed: 1.142 sec <<< ERROR!
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:417)
at java.lang.Integer.parseInt(Integer.java:499)
at net.jforum.context.standard.StandardRequestContext.getIntParameter(StandardRequestContext.java:138)
at net.jforum.view.forum.PostAction.list(PostAction.java:129)
at net.jforum.view.forum.PostAction.isForumReadonly(PostAction.java:1489)
at net.jforum.view.forum.PostAction.insertSave(PostAction.java:956)
at net.jforum.api.integration.mail.pop.POPPostAction.insertMessage(POPPostAction.java:138)
at net.jforum.api.integration.mail.pop.POPPostAction.insertMessages(POPPostAction.java:116)
at net.jforum.api.integration.mail.pop.POPListener.execute(POPListener.java:92)
at net.jforum.api.integration.mail.pop.POPListenerTestCase.sendMessage(POPListenerTestCase.java:223)
at net.jforum.api.integration.mail.pop.POPListenerTestCase.testSimple(POPListenerTestCase.java:112)

求教这应该怎么解决?谢谢~
andowson

七段學員
[Avatar]

註冊時間: 2007/1/2
文章: 711
來自: 台北
離線
wyhao31您好:
目前我尚未遇到這個問題,推測是您的環境問題,請參考我這邊的開發環境:
OS: Windows 7
DB: MySQL Server 5.5.29
IDE: Eclipse Java EE IDE for Web Developers(Juno Service Release 1)
JDK: Oracle Java SE JDK 6.0 Update 38
Builder: Apache Maven 3.0.4
App Server: Apache Tomcat 7.0.35


分享經驗 累積智慧
[WWW]
 
討論區首頁 » JForum中文社群 JForum Chinese Users Community
前往:   
行動版