[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1312) Extend Compoent.initInterceptors to scan Annnotations on methods for additional interceptors
by Chris Rudd (JIRA)
Extend Compoent.initInterceptors to scan Annnotations on methods for additional interceptors
--------------------------------------------------------------------------------------------
Key: JBSEAM-1312
URL: http://jira.jboss.com/jira/browse/JBSEAM-1312
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 1.2.1.GA
Reporter: Chris Rudd
It would be nice if the Component.initInterceptors method not only scanned the annotations on the class for additional interceptors but also scanned the methods / fields for additional interceptors.
This would allow more flexability.
EG the @LoggedIn from the examples could be extended so that it checked for a class level or method level @LoggedIn annotation to instruct it to do the check (instead of only the class level as it is now). Naturally you would want to remove the class level annotation and only put it on the methods that require being logged in. BUT if you do that, the auto-magic initInterceptor code wont know to add the LoggedInInterceptor.
Altered initInterceptors:
private void initInterceptors()
{
initDefaultInterceptors();
findInterceptors(new AnnotatedElement[] { component.getBeanClass() });
for (Class clazz = component.getBeanClass(); clazz != Object.class; clazz = clazz
.getSuperclass())
{
findInterceptors(clazz.getDeclaredFields());
findInterceptors(clazz.getDeclaredMethods());
}
}
Additional support method :
protected void findInterceptors(AnnotatedElement[] aes)
{
for (AnnotatedElement ae : aes)
{
for (Annotation annotation : ae.getAnnotations())
{
if ( annotation.annotationType().isAnnotationPresent(INTERCEPTORS) )
{
Class[] classes = value( annotation.annotationType().getAnnotation(INTERCEPTORS) );
addInterceptor( new Interceptor(classes, annotation, this) );
}
if ( annotation.annotationType().isAnnotationPresent(Interceptors.class) )
{
Class[] classes = annotation.annotationType().getAnnotation(Interceptors.class).value();
addInterceptor( new Interceptor(classes, annotation, this) );
}
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1276) Blog example failure on Windows JDK 1.6.0
by Rob Jellinghaus (JIRA)
Blog example failure on Windows JDK 1.6.0
-----------------------------------------
Key: JBSEAM-1276
URL: http://jira.jboss.com/jira/browse/JBSEAM-1276
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 1.2.1.GA
Environment: Windows, JDK 1.6.0-b105
Reporter: Rob Jellinghaus
With a clean install of Seam 1.2.1GA, after following the instructions to run the blog example under Tomcat (with no difficulties), I start Tomcat -- which works fine -- and then go to http://localhost:8080/jboss-seam-blog and get a crash.
It appears that JGroups is failing to configure itself due to a very, very strange ClassCastException.
Rolling back to JDK 5 causes the problem to go away. So this is a JDK 6-specific issue, and may be Windows-specific.
The full Tomcat log is here.
[main ] 2007-05-01 11:32:18,682 INFO StoreLoader:229 - Find registry server-registry.xml at classpath resource
[main ] 2007-05-01 11:32:18,760 INFO Catalina:544 - Server startup in 24926 ms
[GC [DefNew: 21158K->1144K(22144K), 0.0270051 secs] 30603K->12004K(521856K), 0.0272320 secs]
11:32:30,692 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
Hibernate: select distinct blog0_.name as name0_0_, blogentrie1_.id as id1_1_, blog0_.description as descript2_0_0_, blog0_.locale as locale0_0_, blog0_.timeZone as timeZone0_0_, blog0_.password as password0_0_, blogentrie1_.title as title1_1_, blogentrie1_.excerpt as excerpt1_1_, blogentrie1_.bodyas body1_1_, blogentrie1_.date as date1_1_, blogentrie1_.blog_name as blog6_1_1_, blogentrie1_.blog_name as blog6_0__, blogentrie1_.id as id0__ from Blog blog0_ left outer join BlogEntry blogentrie1_ on blog0_.name=blogentrie1_.blog_name order by blogentrie1_.date desc
Hibernate: select hitcount0_.blog_name as blog1_2_2_, hitcount0_.pageviews as pageviews2_2_, blog1_.name as name0_0_, blog1_.description as descript2_0_0_, blog1_.locale as locale0_0_, blog1_.timeZone as timeZone0_0_, blog1_.password as password0_0_, hitcount2_.blog_name as blog1_2_1_, hitcount2_.pageviews as pageviews2_1_ from HitCount hitcount0_ inner join Blog blog1_ on hitcount0_.blog_name=blog1_.name left outer join HitCount hitcount2_ on blog1_.name=hitcount2_.blog_name where hitcount0_.blog_name=?
Hibernate: update HitCount set pageviews=? where blog_name=?
[GC [DefNew: 20856K->1770K(22144K), 0.0201453 secs] 31716K->12630K(521856K), 0.0203847 secs]
May 1, 2007 11:32:32 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jakarta-tomcat-5.5.9/catalina_base_local_oracle/webapps/jboss-seam-blog/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
May 1, 2007 11:32:32 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jakarta-tomcat-5.5.9/catalina_base_local_oracle/webapps/jboss-seam-blog/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
May 1, 2007 11:32:32 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jakarta-tomcat-5.5.9/catalina_base_local_oracle/webapps/jboss-seam-blog/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/seam-ui.taglib.xml
May 1, 2007 11:32:32 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jakarta-tomcat-5.5.9/catalina_base_local_oracle/webapps/jboss-seam-blog/WEB-INF/lib/richfaces-3.0.1-SNAPSHOT.jar!/META-INF/rich.taglib.xml
May 1, 2007 11:32:32 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jakarta-tomcat-5.5.9/catalina_base_local_oracle/webapps/jboss-seam-blog/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
May 1, 2007 11:32:32 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jakarta-tomcat-5.5.9/catalina_base_local_oracle/webapps/jboss-seam-blog/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
May 1, 2007 11:32:33 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jakarta-tomcat-5.5.9/catalina_base_local_oracle/webapps/jboss-seam-blog/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
May 1, 2007 11:32:33 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jakarta-tomcat-5.5.9/catalina_base_local_oracle/webapps/jboss-seam-blog/WEB-INF/lib/ajax4jsf-1.1.1-SNAPSHOT.jar!/META-INF/a4j.taglib.xml
11:32:33,737 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
11:32:33,737 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
11:32:33,737 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
[GC [DefNew: 21482K->1180K(22144K), 0.0230797 secs] 32342K->13179K(521856K), 0.0232792 secs]
11:32:34,065 INFO [PropertyConfigurator] Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@1b9bbf6
11:32:34,065 INFO [PropertyConfigurator] attribute size: 14
11:32:34,143 WARN [TreeCache] Using deprecated configuration element 'UseMarshalling'. See 'UseRegionBasedMarshalling' instead.
11:32:34,268 INFO [InterceptorChainFactory] interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
class org.jboss.cache.interceptors.TxInterceptor
class org.jboss.cache.interceptors.CacheMgmtInterceptor
May 1, 2007 11:32:34 AM com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Error Rendering View[/index.xhtml]
java.lang.RuntimeException: exception invoking: start
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:133)
at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
at org.jboss.seam.Component.newInstance(Component.java:1746)
at org.jboss.seam.Component.getInstance(Component.java:1643)
at org.jboss.seam.Component.getInstance(Component.java:1622)
at org.jboss.seam.Component.getInstance(Component.java:1599)
at org.jboss.seam.Component.getInstance(Component.java:1594)
at org.jboss.seam.core.PojoCache.instance(PojoCache.java:74)
at org.jboss.seam.ui.UICache.getFromCache(UICache.java:100)
at org.jboss.seam.ui.UICache.encodeChildren(UICache.java:55)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:244)
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:108)
at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
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.ExceptionFilter.doFilter(ExceptionFilter.java:57)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
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.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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
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:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
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:619)
Caused by: org.jgroups.ChannelException: failed loading class
at org.jgroups.conf.ClassConfigurator.init(ClassConfigurator.java:92)
at org.jgroups.conf.ClassConfigurator.getInstance(ClassConfigurator.java:112)
at org.jgroups.stack.ProtocolStack.<init>(ProtocolStack.java:48)
at org.jgroups.JChannel.<init>(JChannel.java:254)
at org.jgroups.JChannel.<init>(JChannel.java:234)
at org.jboss.cache.TreeCache._createService(TreeCache.java:1421)
at org.jboss.cache.TreeCache.createService(TreeCache.java:1346)
at org.jboss.seam.core.PojoCache.start(PojoCache.java:39)
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:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
... 43 more
Caused by: java.lang.ClassNotFoundException: [Ljava.lang.Object;
at org.jgroups.util.Util.loadClass(Util.java:1215)
at org.jgroups.conf.ClassMap.getClassForMap(ClassMap.java:55)
at org.jgroups.conf.ClassConfigurator.init(ClassConfigurator.java:74)
... 56 more
11:32:34,643 ERROR [ExceptionFilter] uncaught exception
javax.servlet.ServletException: exception invoking: start
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
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.ExceptionFilter.doFilter(ExceptionFilter.java:57)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
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.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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
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:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
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:619)
11:32:34,690 ERROR [ExceptionFilter] exception root cause
java.lang.RuntimeException: exception invoking: start
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:133)
at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
at org.jboss.seam.Component.newInstance(Component.java:1746)
at org.jboss.seam.Component.getInstance(Component.java:1643)
at org.jboss.seam.Component.getInstance(Component.java:1622)
at org.jboss.seam.Component.getInstance(Component.java:1599)
at org.jboss.seam.Component.getInstance(Component.java:1594)
at org.jboss.seam.core.PojoCache.instance(PojoCache.java:74)
at org.jboss.seam.ui.UICache.getFromCache(UICache.java:100)
at org.jboss.seam.ui.UICache.encodeChildren(UICache.java:55)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:244)
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:108)
at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
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.ExceptionFilter.doFilter(ExceptionFilter.java:57)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
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.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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
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:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
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:619)
Caused by: org.jgroups.ChannelException: failed loading class
at org.jgroups.conf.ClassConfigurator.init(ClassConfigurator.java:92)
at org.jgroups.conf.ClassConfigurator.getInstance(ClassConfigurator.java:112)
at org.jgroups.stack.ProtocolStack.<init>(ProtocolStack.java:48)
at org.jgroups.JChannel.<init>(JChannel.java:254)
at org.jgroups.JChannel.<init>(JChannel.java:234)
at org.jboss.cache.TreeCache._createService(TreeCache.java:1421)
at org.jboss.cache.TreeCache.createService(TreeCache.java:1346)
at org.jboss.seam.core.PojoCache.start(PojoCache.java:39)
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:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
... 43 more
Caused by: java.lang.ClassNotFoundException: [Ljava.lang.Object;
at org.jgroups.util.Util.loadClass(Util.java:1215)
at org.jgroups.conf.ClassMap.getClassForMap(ClassMap.java:55)
at org.jgroups.conf.ClassConfigurator.init(ClassConfigurator.java:74)
... 56 more
11:32:34,799 ERROR [DebugPageHandler] redirecting to debug page
java.lang.ClassNotFoundException: [Ljava.lang.Object;
at org.jgroups.util.Util.loadClass(Util.java:1215)
at org.jgroups.conf.ClassMap.getClassForMap(ClassMap.java:55)
at org.jgroups.conf.ClassConfigurator.init(ClassConfigurator.java:74)
at org.jgroups.conf.ClassConfigurator.getInstance(ClassConfigurator.java:112)
at org.jgroups.stack.ProtocolStack.<init>(ProtocolStack.java:48)
at org.jgroups.JChannel.<init>(JChannel.java:254)
at org.jgroups.JChannel.<init>(JChannel.java:234)
at org.jboss.cache.TreeCache._createService(TreeCache.java:1421)
at org.jboss.cache.TreeCache.createService(TreeCache.java:1346)
at org.jboss.seam.core.PojoCache.start(PojoCache.java:39)
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:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
at org.jboss.seam.Component.newInstance(Component.java:1746)
at org.jboss.seam.Component.getInstance(Component.java:1643)
at org.jboss.seam.Component.getInstance(Component.java:1622)
at org.jboss.seam.Component.getInstance(Component.java:1599)
at org.jboss.seam.Component.getInstance(Component.java:1594)
at org.jboss.seam.core.PojoCache.instance(PojoCache.java:74)
at org.jboss.seam.ui.UICache.getFromCache(UICache.java:100)
at org.jboss.seam.ui.UICache.encodeChildren(UICache.java:55)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:244)
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:108)
at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
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.ExceptionFilter.doFilter(ExceptionFilter.java:57)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
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.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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
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:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
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:619)
Hibernate: select hitcount0_.blog_name as blog1_2_2_, hitcount0_.pageviews as pageviews2_2_, blog1_.
name as name0_0_, blog1_.description as descript2_0_0_, blog1_.locale as locale0_0_, blog1_.timeZone
as timeZone0_0_, blog1_.password as password0_0_, hitcount2_.blog_name as blog1_2_1_, hitcount2_.pa
geviews as pageviews2_1_ from HitCount hitcount0_ inner join Blog blog1_ on hitcount0_.blog_name=blo
g1_.name left outer join HitCount hitcount2_ on blog1_.name=hitcount2_.blog_name where hitcount0_.bl
og_name=?
Hibernate: update HitCount set pageviews=? where blog_name=?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1221) propagation=drop
by Leo Baschy (JIRA)
propagation=drop
----------------
Key: JBSEAM-1221
URL: http://jira.jboss.com/jira/browse/JBSEAM-1221
Project: JBoss Seam
Issue Type: Feature Request
Affects Versions: 1.2.1.GA
Environment: all
Reporter: Leo Baschy
Use is to be in
<s:link view="/myOther.xhtml" propagation="drop" value="Outta Here" />
propagation="none" is almost the same, but "none" leaves conversations stored in an inactive state until they timeout. One might not want that, either not to use storage, or not to allow to come back, etc.
To reiterate what is specified and has been said, but still may be puzzling at times, specifically when used with s:link view="/any.xhtml", propagation="end" has effect at the end of the target page.
propagation="drop" should be like propagation="none" combined with the destruction of "end". As a matter of symbolism, if you "drop" it then it breaks and does no longer exist.
For now one can get the effect by instead doing this (note the funny spelling of "conversaction" != "conversation"):
<s:link action="#{conversaction.endAndTo('/myOther.xhtml')}" value="Outta Here" />
backed by
import org.jboss.seam.annotations.Name;
import org.jboss.seam.core.Conversation;
@Name("conversaction")
public class Conversaction {
public String endAndTo(String viewId) {
Conversation.instance().end();
return viewId;
}
}
Would be nice to avoid the redirect.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1212) Unnecessary exception printed in log when accesing page which require logged in.
by Mariusz Smykula (JIRA)
Unnecessary exception printed in log when accesing page which require logged in.
--------------------------------------------------------------------------------
Key: JBSEAM-1212
URL: http://jira.jboss.com/jira/browse/JBSEAM-1212
Project: JBoss Seam
Issue Type: Feature Request
Components: Security
Affects Versions: 1.2.1.GA
Environment: Seam 1.2.1, ICEFaces 1.5.3, JBoss AS 4.0.5
Reporter: Mariusz Smykula
17:21:49,890 ERROR [SeamPhaseListener] uncaught exception
org.jboss.seam.security.NotLoggedInException
at org.jboss.seam.security.Identity.checkRestriction(Identity.java:156)
at org.jboss.seam.pages.Page.enter(Page.java:206)
at org.jboss.seam.core.Pages.enterPage(Pages.java:276)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:276)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:214)
at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:56)
at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:406)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
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.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
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.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(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1203) Redirect doesn't allow viewId as EL
by Alan Fehr (JIRA)
Redirect doesn't allow viewId as EL
-----------------------------------
Key: JBSEAM-1203
URL: http://jira.jboss.com/jira/browse/JBSEAM-1203
Project: JBoss Seam
Issue Type: Feature Request
Components: JSF
Affects Versions: 1.2.1.GA
Reporter: Alan Fehr
Using an EL expression in the viewId in a redirect in *.page.xml doesn't work, as it is not interpreted.
Changing
public void redirect(String viewId, Map<String, Object> parameters,
boolean includeConversationId)
in
org.jboss.seam.core.Manager
to incorporate this at the beginning did the trick for me:
if (viewId.contains("#{"))
{viewId = (String)Expressions.instance().createValueBinding(viewId).getValue();}
Of course, actually parsing the string to find out if it really is an EL expression would be much better, I didn't have the time to find out how. Also the value binding may be the wrong way to go, but hey, it worked for me.
It would be nice if redirecting to an EL viewId would be possible in the next release.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months