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

java.lang.reflect.InvocationTargetException

 
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

After installation and configuration of jforum i hava a message on the :

http://www.evamm-asso.com/jforum/forums/list.page

Information

An error has ocurred. For detailed stack trace, please see the page's source code.
java.lang.reflect.InvocationTargetException


Index du Forum


I don't uderstand !!

The site is www.evamm-asso.com/jforum


[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
I visited the link and it was working, so I'm considering you solved the issue

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
No, because i reinstall Jforum, but now this problem is always here !!!after restart tomcat !!! its very big problem for me !!!
[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
Ok.

I need to know the OS, Database name and *version*.

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
Operating system Linux
Service Status Click to View
Kernel version 2.6.11-1.35_FC3smp
Machine Type i686
Apache version 1.3.33 (Unix)
PERL version 5.8.5
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 4.3.10
MySQL version 4.0.22-standard

[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
Thanks.

Another user already reported the problem before. I'm investigating it.

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
hehe....is it after u restatr the tomcat.....then u open ur browser it gave this exception?....hehehe...

This was wat happened to me....

when i opened the page....hehe.. this error occured.....but if i manage to get by these without the error then the forum works perfectly........but once i restarted the tomcat....this error will comes back again......

is tat the same?....
[originally posted on jforum.net by loonyew]
 
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
Please, download the beta version of JForum 2.1.5 here:

http://www.jforum.net/tmp/jforum-2-1.5-180705.zip

Do the manual installation as described at http://www.jforum.net/install_no_wizard.jsp

and tell me how it goes.

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
Just want to add that we also seeing this error... oly seems to happen on the "Recent topics" page.

Note also that we cannot delete topics due to a boolean missing as a paramter from the delete fn?

Our system is running:
OS: Linux
Apache: 2.0.50 (using modJK 2.0.4)
MySQL: 4.1.8a
Tomcat: 5.5.9-1ep
JDK: 1.5.0

[originally posted on jforum.net by clomax]
 
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, get version 2.1.5 too and test it, please.

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
Does 2.1.5 have a substantially larger footprint than 2.1.4? What are all those jboss J2EE jars in the lib folder for?
[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
I have downloaded 2.1.5 and receive the following error:
java.lang.ClassNotFoundException: net.jforum.drivers.mysql.DataAccessDriver
I have looked through the supplied classes and the drivers directory is completely missing.
Please advise, 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
I have set up 3 JForums 2.1.4 on 2 different SUN Microsystems servers and one OS X server, servlet container is on all Tomcat 5.0.28. On 2 of the installed JForums the 'Recent Topics' throws an error. The 2 problem installations have the JForum webapp in a different directory (context) than ROOT. So in a nutshell, catalina/webapps/ROOT installation works, any other webapp name doesn't. Might there be a request.getContextPath() be missing somewhere?

Caused by: java.lang.NullPointerException
at net.jforum.repository.ForumRepository.getForum(ForumRepository.java:367)
at net.jforum.view.forum.common.TopicsCommon.isTopicAccessible(TopicsCommon.java:201)
at net.jforum.view.forum.RecentTopicsAction.topics(RecentTopicsAction.java:91)
at net.jforum.view.forum.RecentTopicsAction.list(RecentTopicsAction.java:74)



BEGIN ERROR STACK TRACE
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at net.jforum.Command.process(Command.java:106)
at net.jforum.JForum.service(JForum.java:298)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at net.jforum.repository.ForumRepository.getForum(ForumRepository.java:367)
at net.jforum.view.forum.common.TopicsCommon.isTopicAccessible(TopicsCommon.java:201)
at net.jforum.view.forum.RecentTopicsAction.topics(RecentTopicsAction.java:91)
at net.jforum.view.forum.RecentTopicsAction.list(RecentTopicsAction.java:74)
... 31 more

END ERROR STACK TRACE
[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

Anonymous wrote:I have downloaded 2.1.5 and receive the following error:
java.lang.ClassNotFoundException: net.jforum.drivers.mysql.DataAccessDriver
I have looked through the supplied classes and the drivers directory is completely missing.
Please advise, thanks.



Had the same problem: there is an entry in custom-config that points to this class ... after deleting it it worked ... but i have very strange settings now, nearly every user is moderator of one forum and I cant create new forums, as they seam to be invisible for all users including admin ... any changes to the DB I should know? (tried to update from 2.1.4 to 2.1.5) ...

Greets,
Alex
[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
Please re-set all permissions.

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 tried.

I even reset the corresponding tables in the DB ... it all worked fine for some time, but now whenever somebody posts something, the forum where the post was made starts to list all users in the admin-group AND Anonymous as Mods (there are no such permissions anywhere) and when trying to access such a forum after that I'm getting the java.lang.reflect.InvocationTargetException again ...

info: I manually updated from 2.1.4 to 2.1.5 and reset everything except for the DB (only roles and role_values there (see above) with the values of the create-script) and the custom-config ...

Alex
[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
Its me again, Alex (sorry for the double post, should have registered earlier) ...

I just wanted to add, that after restarting Tomcat now again all forums have Anonymous listed as mod ... changing its permissions or the permission of the group doesn�۪t change anything, as he is only listed there ... he doesn�۪t have any real permission (I just tried) or sees the moderation-options, but he is listed and that seem to cause the InvocationTargetExceptions on my system :?

Any explanations for this weird behavior?

Thanks,
Alex

/edit: Ok, I just created a new forum and for this everything look fine ... no Anonymous as mod, and - until now - no InvocationTargetExceptions in this forum ... have there been any changes to whatever DB table holding this informations (by the way: I tried to find any link between the forums and die users in the DB ... i'm I right, that its role_values linking the roles with the forums (=role_values)?
[originally posted on jforum.net by urbus]
 
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!

Additional information: the InvocationTargetException still persists although the problem that Anonymous is listed as a mod is solved. I checked where the error has its origin and it looks like (at least with my problem) its line 144 in TopicsCommon.java throwing a null-pointer-exception ... the real weird thing is, that this error appears randomly (restarting the webapp its gone and comes back after some hours, no matter how much or if there is any activity) ... and its always another post causing it and its always only one within a single forum (surrounding it with a try catch all topics before and after the one are shown) ... restarting the webapps its gone again ... without understanding the internal flow of the program (and the objects hold in the memory) I don�۪t see any chance for me solving this, as I don�۪t find any reasons why sometimes (without any special reason or event) a null-reference appears in the post-listing and then again disappear after rebooting although the data remains exactly the same ...

Any ideas?

Greets,
Alex
[originally posted on jforum.net by urbus]
 
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
Damn, that's tricky. Please check if your line 144 is



If so, the bug much probably is due a failure to correctly add a valid entry to the cache - but this was suposed to be fixed in 2.1.5.

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

Damn, that's tricky. Please check if your line 144 is ...



Yes, it is.

Strange ... I only took parts of the database from 2.1.4, all classes are 100% 2.1.5 ...


[originally posted on jforum.net by urbus]
 
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 Steil wrote:Damn, that's tricky. Please check if your line 144 is



If so, the bug much probably is due a failure to correctly add a valid entry to the cache - but this was suposed to be fixed in 2.1.5.

Rafael



This is the exact error I get when I edit a post and then submit the edit the forum assicated with it always produces this error trying to get the topics..... tomcat must be restarts to fix the associated forum

I dsiabled the cache and now it works.

There must be some cache errors.

I printed the topics list and the offend obect t
had the right name but the t.getLastPostTimeInMillis() Date object was null doing a check for null and letting it pass only caused other goofyness later.

How bad do I need cache?


[originally posted on jforum.net by mqjoe1]
 
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
Just to confirm: are you with the 2.1.5 version? (the current cvs one.)

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
yes v 2.1.5 current as of yesterday to cvs
[originally posted on jforum.net by mqjoe1]
 
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
Damn.

Ok, I'm checking it.

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
Ok, just to be sure I tried to reinstall jforum one more time --> same error ... after editing a post i get

16:28:11,800 ERROR [ExceptionWriter ] java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
(......)
Caused by: java.lang.NullPointerException
at net.jforum.view.forum.common.TopicsCommon.prepareTopics(TopicsCommon.java:144)
at net.jforum.view.forum.ForumAction.show(ForumAction.java:199)
(......)

Its java 1.4.2 and 100% jforum 2.1.5 ;) (cvs version from today) ...

Also I have noticed, that sometimes when trying to edit a post, I get an invalid post / post not found error ... clicking again it works ...

Just wanted to add, so to be sure that its not my installation ... thanks in advance for your help

Alex
[originally posted on jforum.net by urbus]
 
reply
    Bookmark Topic Watch Topic
  • New Topic