java.sql.SQLException: ORA-03115: unsupported network datatype or representation

前端 未结 3 1228
忘了有多久
忘了有多久 2020-12-16 10:38

I\'m Using Oracle 11g database. When i try to access data from db it was showing the error java.sql.SQLException: ORA-03115: unsupported network datatype or representation.

相关标签:
3条回答
  • 2020-12-16 11:17

    Add email column

    select uname, email from passmanager where pass=?
    
    0 讨论(0)
  • 2020-12-16 11:18

    Instead of:

    rs = ps.executeQuery(Query);
    

    you should execute:

    rs = ps.executeQuery();
    

    Otherwise, you unprepare your statement and lose all parameters because you assign it a new SQL statement (even though it's the same).

    0 讨论(0)
  • 2020-12-16 11:24

    This error appears when you try to get a field by name ( rs.getString("uname") in your case) which is not in the resultset.

    And like igr said, you are trying to get the email field ( with rs.getString("email") ) and it's not in the query, so this is your error.

    I found this conversation because I was getting the same error in an application when I was trying to get a field with an whitespace at the end of the string ( rs.getString("uname ") instead of rs.getString("uname" ).

    And I just fix it using the correct name for the field I was getting from the query.

    I hope it is useful! ;)

    0 讨论(0)
提交回复
热议问题