• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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]
 
This is my favorite show. And this is my favorite tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic