im new to hibernate . i use the framework which includes struts,spring and hibernate . when i run the code (below),get error message.
the part of code as below:
Code:
public List getUsers() {
try {
return getHibernateTemplate().find(
"from LoginUser");
}
catch (Exception ex) {
System.out.println(ex.getMessage());
logger.error(ex);
return new ArrayList();
}
}
when excute the programme(
Code:
return getHibernateTemplate().find(
"from LoginUser"
);
),get the error as below:
Hibernate: select loginuser0_.USER_ID as USER_ID, loginuser0_.USER_NAME as USER_NAME, loginuser0_.ACCOUNT as ACCOUNT, loginuser0_.PASSWORD as PASSWORD from USER_ACCOUNT loginuser0_
- SQL Error: 600, SQLState: 60000
- ORA-00600: 内部错误代码(it mean inner error code),参数(mean parameter): [ttcgcshnd-1], [0], [], [], [], [], [], []
- SQL Error: 600, SQLState: 60000
- ORA-00600: 内部错误代码(it mean inner error code),,参数(mean parameter): [ttcgcshnd-1], [0], [], [], [], [], [], []
- Could not execute query
java.sql.SQLException: ORA-00600: 内部错误代码(it mean inner error code),参数(mean parameter): [ttcgcshnd-1], [0], [], [], [], [], [], []
why?it even get the SQL string via hibernate .
any help will be appreciated,thanks!
joe.