Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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.


Regards,
Andr̩ Lu�?s Dantas


[originally posted on jforum.net by aldantas]
 
reply
    Bookmark Topic Watch Topic
  • New Topic