• 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
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Error editing posts when using Oracle 9i

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
also entered at : http://www.jforum.net/jira/browse/JF-556

When editing posts (your own or others) JForum will correctly post the information if the post is longer.

If you the post is made shorter (ie. delete some words from the post and press submit) there is garbage data displayed.

I have not tested this in other environments but can reproduce every time with Oracle 9i.

E/.
[originally posted on jforum.net by ewise]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This was suposed to be fixed.

Which JForum version and Oracle version are you using?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are running with Oracle 9i and JForum 2.1.6 as stated in Jira.

From looking at the code it doesn't appear that the size of the BLOB is reduced when smaller posts are made.

E/.
[originally posted on jforum.net by ewise]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a bug of the jdbc driver, nor JForum. The oracle driver is a factory of bugs.

You can try the beta of JForum 2.1.7 - get it from http://www.jforum.net/beta/latest_dev.jsp

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rafael,

<also posted in JIRA>

I have fixed this issue (in my environment) by using two steps.

1) installed the latest Oracle Driver 10g 10.2.0.2 (for Solaris x86)

2) changing the method writeBlobUTF16BinaryStream in net.jforum.dao.oracle.OracleUtils as follows.
A note: this code relies on the 10g driver as the 9i driver doesn't seem to like the truncate() call. I didn't look too closely and went for the quickest fix here.


[originally posted on jforum.net by ewise]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hehe.. great.

This should be the 4th different solution for the same problem.

It's amazing to see how a company like oracle can't ship a decent jdbc implementation.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafae,

I face same problem in our project.

Can you tell me another 3 solution for the same problem.

Thank you very much !

Spring
[originally posted on jforum.net by spring]
 
Migrated From Jforum.net
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 just wanna say that with Hibernate and Spring, this is easy peacy stuff
[originally posted on jforum.net by lazee]
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic