• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

clob.setCharacterStream(1); Unsupported feature

 
Ranch Hand
Posts: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to insert a CLOB into a Oracle Database. Oracle 9i.

In my SP I insert an empty CLOB and then return a clob as an out parameter which I then set a writer to so that I can write to the clob.

But when I run my application I get the following Error.


Exception Class...:java.sql.SQLException
Exception Message.:Unsupported feature
Failing Class..... racle.jdbc.dbaccess.DBError
Failing Method....:throwSqlException
Failing File...... BError.java
Failing Line No...:134
Previous Exception:null

From Code :

opDVO.setOUTParameter("ERROR_COL",_DatabaseUtility.CLOB_TYPE);

System.out.println("MISDAO StoreProcEnterMISData()Get a Clob");
Clob clob =
(Clob)results.getOutParameter("ERROR_COL");

System.out.println("Clob size
"+clob.length());

System.out.println("MISDAO
StoreProcEnterMISData()Set up a writer");

Writer writer = clob.setCharacterStream(1);

Is setCharacterStream no longer supported or is it a misleading error message.

Thanks for any help.

Tony
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic