<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    favey sky!

    BlogJava 首頁 新隨筆 聯系 聚合 管理
      5 Posts :: 0 Stories :: 2 Comments :: 0 Trackbacks
    在運行Appfuse1.9時,按照其README上的操作,前面四步沒問題,啟動tomcat也沒有問題,但是運行ant ?test-canoo ?-Dtestcase=Login時出現錯誤: ? ?
    Login: ?
    ?
    BUILD ?FAILED ?
    D:\appfuse\build.xml:599: ?The ?following ?error ?occurred ?while ?executing ?this ?line ?
    : ?
    D:\appfuse\test\web\web-tests.xml:28: ?Canoo ?Webtest: ?R_1393. ?
    Test ?failed. ?
    Test ?step ?verifytitle ?(D:\appfuse\test\web\login.xml:2: ?) ? ?named ?"we ?should ?see ?
    the ?login ?title" ?failed ?with ?message ?"Wrong ?document ?title ?found! ?Expected ?".*?? ?
    ??????????.*" ?but ?got ?"登錄 ? ?| ?AppFuse"" ?
    ?
    Total ?time: ?19 ?seconds ?
    然后運行ant ?test-reports后查看html文檔,錯誤如下: ?
    Name ? ? ? ? ? ? ? ? ? ? ?Tests ?Errors ?Failures ?Time(s) ?Time ? ? ? ? ? ? ? ?Stamp ? ? ?Host ? ?
    GenericDaoTest ?1 ? ? ? ?0 ? ? ? ? ? ?0 ? ? ? ? ? ? ? ?5.094 ? ? ?2007-03-14T03:14:51 ?xiao ? ?
    LookupDaoTest ? ?1 ? ? ? ?0 ? ? ? ? ? ?0 ? ? ? ? ? ? ? ?0.422 ? ? ?2007-03-14T03:14:55 ?xiao ? ?
    RoleDaoTest ? ? ? ?4 ? ? ? ? ?4 ? ? ? ? ? ?0 ? ? ? ? ? ? ? ?0.422 ? ?2007-03-14T03:14:56 ?xiao ? ?
    UserDaoTest ? ? ? ?5 ? ? ? ? ?2 ? ? ? ? ? ?0 ? ? ? ? ? ? ? ?0.329 ? ? ?2007-03-14T03:14:56 ?xiao ? ?
    然后在頁面的時候登陸和注冊總是提示錯誤,奇怪的是在UserDaoTest中testGetUserInvalid,testGetUser,testUpdateUser測試正確,testAddUserRole,testAddAndRemoveUser卻錯誤,提示為 ?
    testAddUserRole ?Error ?JDBC ?exception ?on ?Hibernate ?data ?access; ?nested ?exception ?is ?org.hibernate.exception.GenericJDBCException: ?could ?not ?execute ?query ?
    ?
    org.springframework.orm.hibernate3.HibernateJdbcException: ?JDBC ?exception ?on ?Hibernate ?data ?access; ?nested ?exception ?is ?org.hibernate.exception.GenericJDBCException: ?could ?not ?execute ?query ?
    Caused ?by: ?org.hibernate.exception.GenericJDBCException: ?could ?not ?execute ?query ?
    at ?org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) ?
    at ?org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) ?
    at ?org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) ?
    at ?org.hibernate.loader.Loader.doList(Loader.java:2147) ?
    at ?org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028) ?
    at ?org.hibernate.loader.Loader.list(Loader.java:2023) ?
    at ?org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393) ?
    at ?org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338) ?
    at ?org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172) ?
    at ?org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121) ?
    at ?org.hibernate.impl.QueryImpl.list(QueryImpl.java:79) ?
    at ?org.springframework.orm.hibernate3.HibernateTemplate$29.doInHibernate(HibernateTemplate.java:839) ?
    at ?org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:362) ?
    at ?org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:830) ?
    at ?org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:826) ?
    at ?org.appfuse.dao.hibernate.RoleDaoHibernate.getRoleByName(RoleDaoHibernate.java:30) ?
    at ?org.appfuse.dao.UserDaoTest.testAddUserRole(UserDaoTest.java:68) ?
    at ?org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69) ?
    Caused ?by: ?java.sql.SQLException: ?Illegal ?mix ?of ?collations ?(gbk_chinese_ci,IMPLICIT) ?and ?(utf8_general_ci,COERCIBLE) ?for ?operation ?'=' ?
    at ?com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946) ?
    at ?com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870) ?
    at ?com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573) ?
    at ?com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1160) ?
    at ?com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:685) ?
    at ?com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1262) ?
    at ?org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186) ?
    at ?org.hibernate.loader.Loader.getResultSet(Loader.java:1668) ?
    at ?org.hibernate.loader.Loader.doQuery(Loader.java:662) ?
    at ?org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) ?
    at ?org.hibernate.loader.Loader.doList(Loader.java:2144) ? ?
    用的是appfuse-springmvc-1.9.4,tomcat5.5,SMTP是IIS
    有誰知道解決方法的還請告知!謝謝啦!
    posted on 2007-03-14 14:54 favey 閱讀(1303) 評論(2)  編輯  收藏 所屬分類: Appfuse學習

    Feedback

    # re: 有沒有熟悉Appfuse的?Help me! 2007-04-11 10:16 戴生
    詳細內容請參看appfuse中文論壇bbs.pben.cn
    第一個錯誤請修改把test\web\web-tests.xml文件里面的

    <property file="${build.dir}/test/properties/ApplicationResources_${user.language}.properties"/>
    <property file="web/WEB-INF/classes/ApplicationResources.properties"/>
    兩行都刪掉,改為
    <property file="${build.dir}/web/classes/ApplicationResources_${user.language}.properties"/>

    就可以test-all成功了,第二個我沒有試過,應該修改build.xml文件中數據庫的訪問屬性也可以的,  回復  更多評論
      

    # re: 有沒有熟悉Appfuse的?Help me! 2008-07-18 11:28 s
    謝謝,已經解決  回復  更多評論
      


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 久久亚洲精品无码观看不卡| 激情综合色五月丁香六月亚洲| 亚洲视频在线观看免费| 亚洲性猛交xx乱| 国产AV日韩A∨亚洲AV电影| 一区二区三区无码视频免费福利| 亚洲精品黄色视频在线观看免费资源| 国产成人综合久久精品亚洲| 四虎影视精品永久免费网站| 国产午夜亚洲精品不卡电影| 亚洲福利视频一区二区| 两个人的视频www免费| 国产成人免费福利网站| 亚洲最大成人网色| 四虎永久在线精品免费一区二区| 在线视频免费观看爽爽爽| 国产啪亚洲国产精品无码| 国产高清对白在线观看免费91| 亚洲精品成人片在线观看精品字幕 | 99视频免费播放| 国产精品亚洲综合五月天| a国产成人免费视频| 亚洲综合一区二区国产精品| 欧洲精品成人免费视频在线观看| 亚洲狠狠婷婷综合久久| 在线观看亚洲精品福利片| 久9热免费精品视频在线观看| 亚洲国产精品乱码在线观看97| 女人张开腿给人桶免费视频| 日韩毛片免费一二三| 亚洲国产综合精品中文第一区| www.黄色免费网站| 亚洲成人福利在线观看| 日韩在线视频免费看| 中文毛片无遮挡高清免费| 亚洲国产日韩女人aaaaaa毛片在线| 久草免费福利视频| 亚洲精品夜夜夜妓女网| 亚色九九九全国免费视频| 久久久久久a亚洲欧洲AV| 好爽又高潮了毛片免费下载|