Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- Bug? EL and Anonymous Classes

- Bug? EL and Anonymous Classes

2007-07-18       - By thatrichard

 Back
I'm using Seam2/JBoss4.2.

I get an exception when using EL to reference a method on an anonymous class.
You can view the relevant code at http://www.jboss.org/index.html?module=bb&op
=viewtopic&t=112929

In short:
1. I bind an anonymous class using Contexts.getConversationContext().set(
"someName", anonymousClass)
2. I call a method on the class using EL during the same conversation.

Is there a technical reason that I cannot do this or is this a bug?

Richard
P.S. 2. Where can I get the source for jboss-el.jar? This lib is distributed
with the source for JBoss 4.2 and Seam 2. I can't seem to find it among the
JBoss projects.

Exception
javax.faces.FacesException Source code of javax.faces.FacesException: javax.el.ELException: /forms/party/person/editor
.xhtml @(protected),112 rendered="#{not empty partyFinderClient and partyFinderClient
.supportsCancel()}": java.lang.IllegalAccessException Source code of java.lang.IllegalAccessException: Class org.jboss.el.util
.ReflectionUtil can not access a member o
 | f class com.sadalbari.mvanamibia.registration.RegistrationEditorBean$1 with
modifiers "public"
 |   at javax.faces.component.UIComponentBase Source code of javax.faces.component.UIComponentBase(UIComponentBase.java
:373)
 |   at javax.faces.component.UIComponent Source code of javax.faces.component.UIComponent(UIComponent.java:880)
 |   at javax.faces.render.Renderer Source code of javax.faces.render.Renderer(Renderer.java:137)
 |   at javax.faces.component.UIComponentBase Source code of javax.faces.component.UIComponentBase(UIComponentBase
.java:809)
 |   at javax.faces.component.UIComponent Source code of javax.faces.component.UIComponent(UIComponent.java:886)
 |   at javax.faces.component.UIComponent Source code of javax.faces.component.UIComponent(UIComponent.java:892)
 |   at com.sun.facelets.FaceletViewHandler Source code of com.sun.facelets.FaceletViewHandler(FaceletViewHandler.java
:577)
 |   at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper
.java:108)
 |   at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler
.java:233)
 |   at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase
.java:106)
 |   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
 |   at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
 |   at javax.faces.webapp.FacesServlet Source code of javax.faces.webapp.FacesServlet(FacesServlet.java:245)
 |   at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:290
 | )
 |   at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:206)
 |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
.java:83)
 |   at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
 |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
.java:69)
 |   at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
 |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
.java:69)
 |   at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
 |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
.java:69)
 |   at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter
(BaseXMLFilter.java:127)
 |   at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter
.java:277)
 |   at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
 |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
.java:69)
 |   at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java
:63)
 |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
.java:69)
 |   at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
 |   at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:235
 | )
 |   at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:206)
 |   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
(ReplyHeaderFilter.java:96)
 |   at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:235
 | )
 |   at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:206)
 |   at org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve
(StandardWrapperValve.java:230)
 |   at org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve
(StandardContextValve.java:175)
 |   at org.jboss.web.tomcat.security.SecurityAssociationValve Source code of org.jboss.web.tomcat.security.SecurityAssociationValve
(SecurityAssociationValve.java:179)
 |
 |   at org.apache.catalina.authenticator.AuthenticatorBase Source code of org.apache.catalina.authenticator.AuthenticatorBase
(AuthenticatorBase.java:433)
 |   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve
.java:84)
 |   at org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve(StandardHostValve
.java:128)
 |   at org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve(ErrorReportValve
.java:104)
 |   at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke
(CachedConnectionValve.java:156)
 |   at org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve(StandardEngineValve
.java:109)
 |   at org.apache.catalina.connector.CoyoteAdapter Source code of org.apache.catalina.connector.CoyoteAdapter(CoyoteAdapter.java
:241)
 |   at org.apache.coyote.http11.Http11Processor Source code of org.apache.coyote.http11.Http11Processor(Http11Processor.java
:844)
 |   at org.apache.coyote.http11.Http11Protocol Source code of org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(Http11Protocol.java:580)
 |
 |   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 |   at java.lang.Thread Source code of java.lang.Thread(Thread.java:619)
 | Caused by: javax.el.ELException: /forms/party/person/editor.xhtml @(protected),112
rendered="#{not empty partyFinderClient and partyFinderClient.supportsCancel()}
": java.lang.IllegalAccessException Source code of java.lang.IllegalAccessException: Class org.jboss.el.util.ReflectionUtil can
not access a member o
 | f class com.sadalbari.mvanamibia.registration.RegistrationEditorBean$1 with
modifiers "public"
 |   at com.sun.facelets.el.TagValueExpression Source code of com.sun.facelets.el.TagValueExpression(TagValueExpression.java
:76)
 |   at javax.faces.component.UIComponentBase Source code of javax.faces.component.UIComponentBase(UIComponentBase.java
:370)
 |   ... 47 more
 | Caused by: java.lang.IllegalAccessException Source code of java.lang.IllegalAccessException: Class org.jboss.el.util
.ReflectionUtil can not access a
 |  member of class com.sadalbari.mvanamibia.registration
.RegistrationEditorBean$1 with modifiers "public"
 |   at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
 |   at java.lang.reflect.Method Source code of java.lang.reflect.Method(Method.java:588)
 |   at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325)
 |   at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:270)
 |   at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)
 |   at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
 |   at org.jboss.el.parser.AstAnd.getValue(AstAnd.java:26)
 |   at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
 |   at com.sun.facelets.el.TagValueExpression Source code of com.sun.facelets.el.TagValueExpression(TagValueExpression.java
:71)
 |   ... 48 more
 |  

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4065337#4065337

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4065337
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.