• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

Oracle & Blob error

Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have installed the newest CVS version of JForum with Oracle Support and compiled it. I have Tomcat 4.1, JSDK 1.4.2 and Oracle 9i. When creating a new topic the above error occurs:

Caused by: java.lang.ClassCastException
at net.jforum.dao.oracle.OracleUtils.writeBlobUTF16BinaryStream(OracleUtils.java:111)
at net.jforum.dao.oracle.OraclePostDAO.addNewPostText(OraclePostDAO.java:70)
at net.jforum.dao.generic.GenericPostDAO.addNew(GenericPostDAO.java:235)
at net.jforum.view.forum.PostAction.insertSave(PostAction.java:1074)

It occurs in the method OracleUtils.writeBlobUTF16BinaryStream(), in line:

OutputStream blobWriter = ((oracle.sql.BLOB)postText).getBinaryOutputStream();

Does anyone have an idea? I used classes12.zip and ojdbc14.jar and the erros persists.

Andr̩ Lu�?s Dantas

[originally posted on jforum.net by aldantas]
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic