Struts Problem Report
Struts has detected an unhandled exception: Messages: ORA-00942: ??????? 
could not execute query 
could not execute query; SQL [select this_.CASE_ID as CASE1_43_0_, this_.ORIN_ID as ORIN2_43_0_, this_.CASE_NAME as CASE3_43_0_, this_.CASE_DESCRIPTION as CASE4_43_0_, this_.CASE_SERVICE_ORGN_ID as CASE5_43_0_, this_.CASE_USE_ORGN_ID as CASE6_43_0_, this_.CASE_USER_TYPE as CASE7_43_0_, this_.CASE_SERVICE_LOCATION as CASE8_43_0_, this_.CASE_VIDEO as CASE9_43_0_, this_.CASE_PIC as CASE10_43_0_, this_.CASE_SERVICE_YEAR as CASE11_43_0_, this_.CASE_INDUSTRY_FIELD as CASE12_43_0_, this_.CASE_CREATOR_ID as CASE13_43_0_, this_.CASE_CREATE_TIME as CASE14_43_0_, this_.CASE_HITS as CASE15_43_0_, this_.CASE_PUBLIC_TIME as CASE16_43_0_, this_.CASE_IF_PUBLIC as CASE17_43_0_, this_.CASE_SYSTEM as CASE18_43_0_, this_.CASE_IF_RECOMMEND as CASE19_43_0_ from HYJC.CASE this_ where this_.CASE_IF_RECOMMEND=? order by this_.CASE_PUBLIC_TIME desc]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query 
 
File: oracle/jdbc/driver/DatabaseError.java 
Line number: 112 
请问这是什么错误啊?

解决方案 »

  1.   

    ora-00942 表或视图不存在问题
      

  2.   

    SQLGrammarException: could not execute query  
    SQL语法错误 
      

  3.   

    sql语句错误?无语,我从服务器上拷下来的代码怎么会这样呢?部署在服务器上没错误啊,无语啊
      

  4.   

    SQL在PLSQL Developer上单独跑一下试试!
      

  5.   

    HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; SQL [select this_.CASE_ID as CASE1_43_0_, this_.ORIN_ID as ORIN2_43_0_, this_.CASE_NAME as CASE3_43_0_, this_.CASE_DESCRIPTION as CASE4_43_0_, this_.CASE_SERVICE_ORGN_ID as CASE5_43_0_, this_.CASE_USE_ORGN_ID as CASE6_43_0_, this_.CASE_USER_TYPE as CASE7_43_0_, this_.CASE_SERVICE_LOCATION as CASE8_43_0_, this_.CASE_VIDEO as CASE9_43_0_, this_.CASE_PIC as CASE10_43_0_, this_.CASE_SERVICE_YEAR as CASE11_43_0_, this_.CASE_INDUSTRY_FIELD as CASE12_43_0_, this_.CASE_CREATOR_ID as CASE13_43_0_, this_.CASE_CREATE_TIME as CASE14_43_0_, this_.CASE_HITS as CASE15_43_0_, this_.CASE_PUBLIC_TIME as CASE16_43_0_, this_.CASE_IF_PUBLIC as CASE17_43_0_, this_.CASE_SYSTEM as CASE18_43_0_, this_.CASE_IF_RECOMMEND as CASE19_43_0_ from HYJC.CASE this_ where this_.CASE_IF_RECOMMEND=? order by this_.CASE_PUBLIC_TIME desc]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
    org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:629)
    org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
    org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)
    org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
    org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria(HibernateTemplate.java:1046)
    cn.sgst.des.common.dao.GenericHibernateDao.findByCriteria(GenericHibernateDao.java:155)
    cn.sgst.des.mainpage.service.MainInfoServiceImpl.find(MainInfoServiceImpl.java:56)
    cn.sgst.des.mainpage.action.MainPageAction.execute(MainPageAction.java:326)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)
    com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)现在又变成这个错误了
      

  6.   

    这是什么意思啊?纠结,难道还是hql语句的错误?