aspose file tools*
The moose likes JForum and the fly likes Method public boolean net.jforum.entities.UserSession.isAdmin() threw an exception when invoked... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Method public boolean net.jforum.entities.UserSession.isAdmin() threw an exception when invoked..." Watch "Method public boolean net.jforum.entities.UserSession.isAdmin() threw an exception when invoked..." New topic
Author

Method public boolean net.jforum.entities.UserSession.isAdmin() threw an exception when invoked...

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
hi, em my english is not enough to explain what happend to my forum, ive just installed it and works fine but later this :

what i should do ???

thanks.

Method public boolean net.jforum.entities.UserSession.isAdmin() threw an exception when invoked on net.jforum.entities.UserSession@1fea26b9 The problematic instruction: ---------- ==> if-else [on line 130, column 57 in default/forum_list.htm] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public boolean net.jforum.entities.UserSession.isAdmin() threw an exception when invoked on net.jforum.entities.UserSession@1fea26b9 at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Expression.isTrue(Expression.java:138) at freemarker.core.IfBlock.accept(IfBlock.java:80) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) at freemarker.core.Environment.visit(Environment.java:351) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Environment.process(Environment.java:176) at freemarker.template.Template.process(Template.java:231) at net.jforum.JForum.processCommand(JForum.java:236) at net.jforum.JForum.service(JForum.java:203) 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 net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: net.jforum.exceptions.SecurityLoadException: java.lang.ArrayIndexOutOfBoundsException: -1 at net.jforum.repository.SecurityRepository.get(SecurityRepository.java:236) at net.jforum.repository.SecurityRepository.canAccess(SecurityRepository.java:206) at net.jforum.repository.SecurityRepository.canAccess(SecurityRepository.java:179) at net.jforum.entities.UserSession.isAdmin(UserSession.java:302) 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:585) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) ... 38 more Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at net.jforum.dao.generic.security.SecurityCommon.groupIdAsString(SecurityCommon.java:206) at net.jforum.repository.RolesRepository.getGroupRoles(RolesRepository.java:94) at net.jforum.dao.generic.security.GenericGroupSecurityDAO.loadRolesByUserGroups(GenericGroupSecurityDAO.java:213) at net.jforum.repository.SecurityRepository.load(SecurityRepository.java:151) at net.jforum.repository.SecurityRepository.load(SecurityRepository.java:94) at net.jforum.repository.SecurityRepository.load(SecurityRepository.java:112) at net.jforum.repository.SecurityRepository.get(SecurityRepository.java:233) ... 47 more
[originally posted on jforum.net by ins]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
And .....





[originally posted on jforum.net by ins]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
This problem was discovered some days ago and is already fixed. It was related to some problems to the Groups. Check your groups to see if everything is ok.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
i dont know how to know that what kind of problem with the froups what should i do ??

ops:
[originally posted on jforum.net by ins]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Really i don�t know what should i do.
[originally posted on jforum.net by ins]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Method public boolean net.jforum.entities.UserSession.isAdmin() threw an exception when invoked...
 
Similar Threads
sometimes get error :( on load jforum main page
Some problem with my account
Caused by: com.mysql.jdbc.CommunicationsException
No configuration found for the specified action
totalPostpages is not numerical...