File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes unexpected end of subtree   , hellp me pls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "unexpected end of subtree   , hellp me pls" Watch "unexpected end of subtree   , hellp me pls" New topic
Author

unexpected end of subtree , hellp me pls

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
HI:
I check out Fourm3 source code and runing but found a error as ?


ibernate:
/* select
new Forum(forum.id)
from
Forum as forum
) */ select
forum0_.forum_id as col_0_0_
from
jforum_forums forum0_
17:48:36,343 ERROR [PARSER ] <AST>:0:0: unexpected end of subtree
2009-3-8 17:48:36 org.apache.catalina.core.ApplicationDispatcher invoke
??: Servlet.service() for servlet jsp threw exception
org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [select new Topic(topic.id) from net.jforum.entities.Topic as topic where topic.forum in ()]
at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:31)
at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:24)
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:235)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1113)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at net.jforum.plugins.tagging.TagDAO.getAccessableHotTags(TagDAO.java:111)
at net.jforum.plugins.tagging.TagService.getHotTags(TagService.java:144)
at net.jforum.plugins.tagging.TaggingCloudTag.doTag(TaggingCloudTag.java:77)
at org.apache.jsp.templates.default_.forums.list_jsp._jspx_meth_jforum_005ftaggingCloud_005f0(list_jsp.java:1210)
at org.apache.jsp.templates.default_.forums.list_jsp._jspService(list_jsp.java:178)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at net.jforum.core.support.vraptor.DefaultViewManager.directForward(DefaultViewManager.java:85)
at net.jforum.core.support.vraptor.DefaultViewManager.forward(DefaultViewManager.java:60)
at org.vraptor.interceptor.ViewInterceptor.intercept(ViewInterceptor.java:36)
at org.vraptor.core.VRaptorExecution.execute(VRaptorExecution.java:98)
at org.vraptor.core.DefaultController.execute(DefaultController.java:46)
at org.vraptor.VRaptorServlet.service(VRaptorServlet.java:74)
at net.jforum.JForumServlet.service(JForumServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at net.jforum.core.support.hibernate.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
2009-3-8 17:48:36 org.apache.catalina.core.StandardWrapperValve invoke
??: Servlet.service() for servlet jforum threw exception
[originally posted on jforum.net by kerryzeng]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Is HQL error

List<Topic> topics = this.session().createQuery("select new Topic(topic.id) from Topic as topic where topic.forum in (:forums)")
.setParameterList("forums", forums).list();
[originally posted on jforum.net by kerryzeng]
 
 
subject: unexpected end of subtree , hellp me pls