• 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

incorrect function call parameters..

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
inside delete() funciton of net.forum.view.forum.PostAction, it calls net.forum.view.forum.common.TopicsCommon like this:

TopicsCommon.deleteTopic(p.getTopicId(), p.getForumId());

HOWEVER, in TopicsCommon, deleteTopic() function is defined like this.
public static void deleteTopic(int topicId, int forumId, boolean fromModeration) throws Exception

take note, it has three parameters!. but is called with only 2 parameters passed!


am referring to version 2.1.4...
[originally posted on jforum.net by Anonymous]
 
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
The source code for this class is incorrect in the package, but the class file should be right. This was a mistake when packaging 2.1.4. You can add the 3rd parameter without any problem.

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
so, what would be my 3rd parameter's value?.
should i set that to TRUE or FALSE?

thanks!
[originally posted on jforum.net by Anonymous]
 
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
FALSE.

TRUE is used only from ModerationHelper.java

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
how about this? OutputStream blobWriter = ((oracle.sql.BLOB) postText).getBinaryOutputStream();

I am getting error in that part, it said that oracle cannot be resolved. what should i do with this?

thansk for your help

I am able to run the jforum but if i compiled it in eclipse that was another error im getting, aside from the previous comments post that i've already fixed.

thanks
[originally posted on jforum.net by Anonymous]
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic