favey sky!

          BlogJava 首頁(yè) 新隨筆 聯(lián)系 聚合 管理
            5 Posts :: 0 Stories :: 2 Comments :: 0 Trackbacks

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          在運(yùn)行Appfuse1.9時(shí),按照其README上的操作,前面四步?jīng)]問(wèn)題,啟動(dòng)tomcat也沒有問(wèn)題,但是運(yùn)行ant ?test-canoo ?-Dtestcase=Login時(shí)出現(xiàn)錯(cuò)誤: ? ?
          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 ?
          然后運(yùn)行ant ?test-reports后查看html文檔,錯(cuò)誤如下: ?
          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 ? ?
          然后在頁(yè)面的時(shí)候登陸和注冊(cè)總是提示錯(cuò)誤,奇怪的是在UserDaoTest中testGetUserInvalid,testGetUser,testUpdateUser測(cè)試正確,testAddUserRole,testAddAndRemoveUser卻錯(cuò)誤,提示為 ?
          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
          有誰(shuí)知道解決方法的還請(qǐng)告知!謝謝啦!
          posted on 2007-03-14 14:54 favey 閱讀(1307) 評(píng)論(2)  編輯  收藏 所屬分類: Appfuse學(xué)習(xí)

          Feedback

          # re: 有沒有熟悉Appfuse的?Help me! 2007-04-11 10:16 戴生
          詳細(xì)內(nèi)容請(qǐng)參看appfuse中文論壇bbs.pben.cn
          第一個(gè)錯(cuò)誤請(qǐng)修改把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成功了,第二個(gè)我沒有試過(guò),應(yīng)該修改build.xml文件中數(shù)據(jù)庫(kù)的訪問(wèn)屬性也可以的,  回復(fù)  更多評(píng)論
            

          # re: 有沒有熟悉Appfuse的?Help me! 2008-07-18 11:28 s
          謝謝,已經(jīng)解決  回復(fù)  更多評(píng)論
            


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 安康市| 鞍山市| 合作市| 成武县| 汾阳市| 凯里市| 东丰县| 泰州市| 阿坝县| 都匀市| 布尔津县| 青冈县| 龙游县| 乡宁县| 巍山| 曲靖市| 永兴县| 永嘉县| 宜都市| 江源县| 洛扎县| 周口市| 中超| 墨竹工卡县| 淮滨县| 枣强县| 夏邑县| 玉树县| 灯塔市| 遂宁市| 新宾| 奈曼旗| 龙海市| 思南县| 陕西省| 淳安县| 永安市| 望江县| 岳西县| 大洼县| 鱼台县|