java吧 关注:1,275,549贴子:12,787,790
  • 3回复贴,共1

高手指点这是什么问题啊?

只看楼主收藏回复

Hibernate: select admin0_.AdminCode as AdminCode, admin0_.AdminPass as AdminPass, admin0_.AdminName as AdminName, admin0_.NewPopedom as NewPopedom, admin0_.IsOnline as IsOnline, admin0_.AreaCode as AreaCode, admin0_.RoleTypeID as RoleTypeID from Admin admin0_ where (adminCode='thhtbg' )and(adminPass='123456' )
Hibernate: select dictionary0_.AreaCode as AreaCode2_, dictionary0_.UnitName as UnitName2_, dictionary0_.Phone as Phone2_, dictionary0_.AreaGradeCode as AreaGrad4_2_, dictionary0_.RelegationCode as Relegati5_2_, admins1_.AreaCode as AreaCode__, admins1_.AdminCode as AdminCode__, admins1_.AdminCode as AdminCode0_, admins1_.AdminPass as AdminPass0_, admins1_.AdminName as AdminName0_, admins1_.NewPopedom as NewPopedom0_, admins1_.IsOnline as IsOnline0_, admins1_.AreaCode as AreaCode0_, admins1_.RoleTypeID as RoleTypeID0_, roleinfo2_.RoleTypeID as RoleTypeID1_, roleinfo2_.PopedomName as PopedomN2_1_, roleinfo2_.RoleName as RoleName1_ from Dictionary_UsersName dictionary0_, Admin admins1_, RoleInfo roleinfo2_ where dictionary0_.AreaCode=? and dictionary0_.AreaCode=admins1_.AreaCode(+) and admins1_.RoleTypeID=roleinfo2_.RoleTypeID(+)
- SQL Error: 942, SQLState: 42000
- ORA-00942: 表或视图不存在
- Unhandled Exception thrown: class java.lang.NullPointerException
- 


1楼2011-05-19 09:26回复
    没仔细看,你去检查下你的查询语句。 应该是你写的语句和数据库不匹配造成的。


    2楼2011-05-19 09:38
    回复
      2025-08-26 01:39:28
      广告
      不感兴趣
      开通SVIP免广告
      很明显啊,都提示了,表或视图不存在,就是说你查询的那个表不存在,去库里查一下到底有这表不? 下面的空指针也容易,不表都不存在了,自然查处的结果集没值了


      IP属地:河北3楼2011-05-19 10:51
      回复
        Hibernate: select admin0_.AdminCode as AdminCode, admin0_.AdminPass as AdminPass, admin0_.AdminName as AdminName, admin0_.NewPopedom as NewPopedom, admin0_.IsOnline as IsOnline, admin0_.AreaCode as AreaCode, admin0_.RoleTypeID as RoleTypeID from Admin www.cctv40.cnadmin0_ where (adminCode='thhtbg' )and(adminPass='123456' )
        Hibernate: select dictionary0_.AreaCode as AreaCode2_, dictionary0_.UnitName as UnitName2_, dictionary0_.Phone as Phone2_, dictionary0_.AreaGradeCode as AreaGrad4_2_, dictionary0_.RelegationCode as Relegati5_2_, admins1_.AreaCode as AreaCode__, admins1_.AdminCode as AdminCode__, admins1_.AdminCode as AdminCode0_, admins1_.AdminPass as AdminPass0_, admins1_.AdminName as AdminName0_, admins1_.NewPopedom as NewPopedom0_, admins1_.IsOnline as IsOnline0_, admins1_.AreaCode as AreaCode0_, admins1_.RoleTypeID as RoleTypeID0_, roleinfo2_.RoleTypeID as RoleTypeID1_, roleinfo2_.PopedomName as PopedomN2_1_, roleinfo2_.RoleName as RoleName1_ from Dictionary_UsersName dictionary0_, Admin admins1_, RoleInfo roleinfo2_ where dictionary0_.AreaCode=? and dictionary0_.AreaCode=admins1_.AreaCode(+) and admins1_.RoleTypeID=roleinfo2_.RoleTypeID(+)
        - SQL Error: 942, SQLState: 42000
        - ORA-00942: 表或视图不存在
        - Unhandled Exception thrown: class java.lang.NullPointerException
        


        4楼2011-05-30 13:20
        回复