在java版发了,没人解答大家帮下忙.
http://expert.csdn.net/Expert/topic/1910/1910415.xml?temp=.9471704这是我在google上找到的一个帖子,情况和我一样:
http://www.oraclub.ru/news/nmsg.jsp?msg=317001
内容如下:
Hello,i'm new to this list and to Oracle, so if the following is a FAQ, please 
point me to the right direction.I try to setup a connection to an Oracle-database (Version 8.1.7) by the 
Oracle-JDBC-Thin-driver. When i try to insert a new data row, the 
JDBC-driver throws the SQLException listed above in case the leading 
executeQuery-statement produces an empty ResultSet.With a non-empty ResultSet updating the data row is no problem. As a 
workarround i can also insert the new row by creating an 
executeQuery-statement including the SQL-Insert-Statement, but i regard 
this more as a trick than a working solution.While googling arround with the error-message i found some notices that 
there exists already a patch for this bug, but i couldn't find any place 
where to find more information.Any comment is highly appreciated, thanks for your help - Thomas

解决方案 »

  1.   

    我认为是不是Oracle中定义了某些字段是非空的,而你的实体Bean在执行create方法,并没有设置这些值,才导致错误的。
    这是我的愚见,我们可以再讨论,不过,我认为中文可能讨论的更加清楚些,呵呵。
      

  2.   

    我不是用的EJB
    而是用的可更新的结果集
    时的问题,但更新结果集是没问题
    而但插入时就出现以上错误