本帖最后由 dd121011 于 2011-02-12 21:43:18 编辑

解决方案 »

  1.   

    报的错:java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)used by: org.springframework.jdbc.BadSqlGrammarException: SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:   
    --- The error occurred in sqlmapping/CMCC_MAILBOX_OFFICESUPPLIES_SqlMap.xml.  
    --- The error occurred while applying a parameter map.  
    --- Check the CMCC_MAILBOX_OFFICESUPPLIES.sql_select_OfficeSuppliesApply-InlineParameterMap.  
    --- Check the statement (query failed).  
    --- Cause: java.sql.SQLException: ORA-00942: table or view does not exist
    好像说配置文件的映射有问题,没太用过itbatis。所以有点迷茫。多多指教
      

  2.   

    提示信息告诉你sql_select_OfficeSuppliesApply这个查询有问题:table or view does not exist
    你把这个查询SELECT id,APPLICANT,TFORMNUMBER,APPLY_DEPARTMENT,ARTICLE_NAME,TYPE_SIZE,UNIT,AMOUNT,REMARK,EXPAND from OFFICE_SUPPLIES_APPLY放到数据库里自己跑一下就知道了
      

  3.   

    先按楼上的试一下
    报的错误就是select查询里
    另外把<select></select>里的parameterClass="java.lang.String"去掉
    你这个查询中根本就不用传入参数啊
      

  4.   

    Cause: java.sql.SQLException: ORA-00942: table or view does not exist
    表或视图不存在 检查下
      

  5.   

    ORA-00942: table or view does not exist
    说不存在这个表或者视图呢
      

  6.   

    应该是parameterMap 与resultMap  id(Res_id_OfficeSuppliesData)  相同。
      

  7.   

    OFFICE_SUPPLIES_APPLY 是什么,有吗?