[JBoss Seam] - Exception in generate-entities
by dustismo
Hi,
I generated a seam app using generate-entities and I get an exception on every generated page:
| SEVERE: Error Rendering View[/UgroupList.xhtml]
| javax.faces.el.EvaluationException: /UgroupList.xhtml @41,59 rendered="#{empty ugroupList.resultList}": Exception getting value of property resultList of base of type : com.mydomain.NewTest.UgroupList$$EnhancerByCGLIB$$f8e3e669
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:241)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.faces.el.EvaluationException: Bean: com.mydomain.NewTest.UgroupList$$EnhancerByCGLIB$$f8e3e669, property: resultList
| at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:442)
| at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:82)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
| at com.sun.el.parser.AstEmpty.getValue(AstEmpty.java:49)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| ... 42 more
| Caused by: 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:585)
| at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:438)
| ... 49 more
| Caused by: java.lang.NullPointerException
| at java.util.StringTokenizer.<init>(StringTokenizer.java:182)
| at org.jboss.seam.persistence.QueryParser.<init>(QueryParser.java:38)
| at org.jboss.seam.persistence.QueryParser.<init>(QueryParser.java:33)
| at org.jboss.seam.framework.Query.parseEjbql(Query.java:133)
| at org.jboss.seam.framework.EntityQuery.createQuery(EntityQuery.java:100)
| at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:41)
| at org.jboss.seam.framework.EntityQuery$$FastClassByCGLIB$$225925e6.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
| at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:32)
| at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
| at org.jboss.seam.interceptors.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:154)
| at org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:89)
| at com.mydomain.NewTest.UgroupList$$EnhancerByCGLIB$$f8e3e669.getResultList(<generated>)
| ... 54 more
|
I am using the latest seam from cvs.
Thanks,
Dustin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022754#4022754
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022754
19Â years, 1Â month
[JBoss Seam] - Re: Seam EL extension configuration problem
by stu2
Hmm. Just in case more of the stacktrace would be helpful, here's more. The stacktrace from my initial post was the root cause of this one.
| SEVERE: Error Rendering View[/members/ingest-errors.xhtml]
| javax.el.ELException: Error Parsing: #{FeedImport.generalErrors.size()}
| at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:140)
| at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:157)
| at com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:201)
| at com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:74)
| at org.jboss.seam.ui.facelet.SeamExpressionFactory.createValueExpression(SeamExpressionFactory.java:107)
| at com.sun.facelets.el.ELText$ELTextVariable.apply(ELText.java:161)
| at com.sun.facelets.el.ELText$ELTextComposite.apply(ELText.java:142)
| at com.sun.facelets.compiler.TextInstruction.apply(TextInstruction.java:56)
| at com.sun.facelets.compiler.UIInstructionHandler.apply(UIInstructionHandler.java:85)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
| at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
| at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
| at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022751#4022751
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022751
19Â years, 1Â month
[JBoss Seam] - Seam EL extension configuration problem
by stu2
I'm using Seam 1.1.7 and facelets, and it appears I'm getting the vanilla EL interpreter rather than Seam's enhanced version.
For instance, when I use an expression like this:
| #{FeedImport.generalErrors.size()}
|
I get an parse exception like this:
| Caused by: com.sun.el.parser.ParseException: Encountered "(" at line 1, column 32.
| Was expecting one of:
| "}" ...
| "." ...
| "[" ...
| ">" ...
| .... (more stuff like this)
|
| at com.sun.el.parser.ELParser.generateParseException(ELParser.java:1651)
| at com.sun.el.parser.ELParser.jj_consume_token(ELParser.java:1531)
| at com.sun.el.parser.ELParser.DeferredExpression(ELParser.java:134)
| at com.sun.el.parser.ELParser.CompositeExpression(ELParser.java:61)
| at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:103)
|
Section 24.1 of the guide explains that I need to have
| <application>
| <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
| </application>
|
in faces-config.xml, which I do. And using a debugger I verified that this is getting loaded and appears to register Seam's EL compiler - though from the exception it looks like the vanilla EL resolver is being used.
Any suggestions?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022747#4022747
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022747
19Â years, 1Â month
[JBoss Seam] - Previous jBPM PageFlow and #{identity.login} No Longer worki
by djeverson
Just upgraded to the 1.17 RC1 release.
Prior to the update, we had the following page defined in a pageflow file:
| <page name="login" view-id="/login.xhtml">
| <redirect/>
| <transition name="cancel" to="info" />
| <transition name="login" to="isLoggedIn">
| <action expression="#{identity.login}"/>
| </transition>
| <transition name="cancel" to="cancelpage" />
| </page>
|
This worked just fine.
However, after the Seam upgrade, we now get the following error after providing the userid and password and clicking on the button that triggers the login transition in the above page flow:
| 2007-02-26 16:47:59,393 ERROR [org.jbpm.graph.def.GraphElement] action threw exception: couldn't evaluate expression '#{identity.login}'
| org.jbpm.JbpmException: couldn't evaluate expression '#{identity.login}'
| at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:38)
| at org.jbpm.graph.def.Action.execute(Action.java:119)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:235)
| at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:212)
| at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:182)
| at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:166)
| at org.jbpm.graph.def.Transition.take(Transition.java:106)
| at org.jbpm.graph.def.Node.leave(Node.java:383)
| at org.jbpm.graph.exe.Token.signal(Token.java:178)
| at org.jbpm.graph.exe.Token.signal(Token.java:141)
| at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:229)
| at org.jboss.seam.pageflow.PageflowHelper.signal(PageflowHelper.java:47)
| at org.jboss.seam.core.Pageflow.navigate(Pageflow.java:298)
| at org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:59)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:84)
| at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:274)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:250)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:405)
| at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| Caused by: org.jbpm.jpdl.el.ELException: Unable to find a value for "login" in object of class "org.jboss.seam.security.RuleBasedIdentity" using operator "."
| at org.jbpm.jpdl.el.impl.Logger.logError(Logger.java:482)
| at org.jbpm.jpdl.el.impl.Logger.logError(Logger.java:499)
| at org.jbpm.jpdl.el.impl.Logger.logError(Logger.java:612)
| at org.jbpm.jpdl.el.impl.ArraySuffix.evaluate(ArraySuffix.java:303)
| at org.jbpm.jpdl.el.impl.ComplexValue.evaluate(ComplexValue.java:146)
| at org.jbpm.jpdl.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:264)
| at org.jbpm.jpdl.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:191)
| at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:34)
| at org.jbpm.graph.def.Action.execute(Action.java:119)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:235)
| at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:212)
| at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:182)
| at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:166)
| at org.jbpm.graph.def.Transition.take(Transition.java:106)
| at org.jbpm.graph.def.Node.leave(Node.java:383)
| at org.jbpm.graph.exe.Token.signal(Token.java:178)
| at org.jbpm.graph.exe.Token.signal(Token.java:141)
| at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:229)
| at org.jboss.seam.pageflow.PageflowHelper.signal(PageflowHelper.java:47)
| at org.jboss.seam.core.Pageflow.navigate(Pageflow.java:298)
| at org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:59)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:84)
| at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:274)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:250)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:405)
| at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| 2007-02-26 16:47:59,393 ERROR [org.jboss.seam.web.ExceptionFilter] uncaught exception
| javax.servlet.ServletException
| ...
|
I looked at 1.1.7 related posts and could not find anything similar.
Any idea what the problem or solution is?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022740#4022740
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022740
19Â years, 1Â month
[JBoss Seam] - Re: Combining list and all CRUD functionality on a single pa
by tony.herstellï¼ gmail.com
I would post another example of CRUD based on IceFaces but IceFaces is not tooooooo stable with Seam right now (they are working on it).
I have a menu option with Create that goes to a create page, in a separate conversation, of the required object type.
I use a page with a list of objects of the required object type... and buttons for View, Delete, Update that "jump off the list" (into separate conversations).
>From the View you can transform into a Update or Delete.
Finally, the separate conversations talk back to the original stateful list to update it.
All view pages use "NonEditableXXXFields.xhtml" and all pages that need to edit (inc. Create) the fields use "EditableXXXFields.xhtml"... using one .xhtml gets just too cluttered i.m.h.o.
The List is both paged and ordered based on the column header you select (nice features of IceFaces Table).
Its all a matter of taste...
I'll post a link to the running site at some point (but it's FRAGILE) due to Icefaces.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022737#4022737
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022737
19Â years, 1Â month
[JBoss Portal] - Portlet modes
by sudarshanacharya
I have a portlet with different modes. Form the default page (mode), there are links to the various modes.
The default page is accessed through a navigation link. It works fine for all the modes. But when I refresh the page from the explorer, the default page shows up regardless of which mode I am in currently. But I want it to stay on the current mode and refresh that page only, while it goes back to the default page. This is because I have killed the session after it sets the template page. But if I dont kill the session, the Navigation link when clicked will link to the current mode, while it should go to the default page.
Basically, I want the navigation link to bring the page back to default page, while I want the explorer REFRESH to refresh the current template mode only.
My code looks like this. Has anyone ever faced situation like this. It's kinda tricky. How can I modify the doView to solve the problem? Any suggestions will be highly appreciated:
************************************************************
protected void doView(RenderRequest request, RenderResponse response) {
String template = TEMPLATE_HOME;
String mode1= (String) session.getAttribute(MODE1, PortletSession.PORTLET_SCOPE);
if(mode1 != null && mode1.equalsIgnoreCase(PAGE1)) {
template = TEMPLATE_PAGE1;
session.removeAttribute(MODE1);
}
setTemplate(request, response, template);
}
public void processAction(ActionRequest request, ActionResponse {
String mode1 = request.getParameter(MODE1);
if(mode1 != null && mode1.equalsIgnoreCase(MODE1)) {
request.getPortletSession().setAttribute(MODE1, PAGE1, PortletSession.PORTLET_SCOPE);
}
}
*************************************************************
Thanks
Sudarshan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022736#4022736
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022736
19Â years, 1Â month