• 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

cannot delete a post on CVS version

 
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 Rafael,
I can't delete a post on the CVS vesion. It works fine on version 2.0.2.
I got the following exception:

[originally posted on jforum.net by andowson]
 
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
It looks like your jforum is not correctly compiled:

Caused by: java.lang.NoSuchMethodError: net.jforum.repository.TopicRepository.loadMostRecentTopics()V

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
I use ant to build jforum. My JDK is Sun J2SE 5.0
The build process is as follows:
1. downloaded all the code into a working directory
2. execute ant under the working directory
3. Stop Tomcat(my setting will delete the stuff under Tomcat's "work" directory also)
4. go to the production webapp's WEB-INF/classes directory
5. delete the net directory including all of its subdirectory
6. copy the newly build net directory back
7. Start Tomcat

I checked the TopicRepository.java in both two versions.
In CVS, it's

and in version 2.0.2 was:

The return type changed from void to List. Is this the hint for the error?
[originally posted on jforum.net by andowson]
 
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
OK...The problem is removed.
I solve it by first comment out the TopicRepository.loadMostRecentTopics(); in TopicsCommon.java
After recompiling, it works.
Then I remove the comment. Recompiling again.
It still works...
So...the code is OK. It should be my environment's problem.

[originally posted on jforum.net by andowson]
 
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 found a real bug now.
In TopicsCommon.java

should be:

In PostAction.java

should be:

[originally posted on jforum.net by andowson]
 
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
Thanks for fixing the code.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Seriously? That's what you're going with? I prefer 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