• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

incorrect function call parameters..

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!