[JBoss Seam] - Re: Postback/form resubmission detection
by alpheratz-jb
I haven't yet actually tried the <s:*> tags YET.
I have <h:message for=""> with my input elements and <h:messages> in the page body...
When I do a back-button/resubmit, I see no messages against any input element and only "No conversation" from the <h:messages> tag.
I guess that the "you are not in a conversation" situation does not occur due to a validation error and so is not 'for' any input element...
As an aside, in the JBoss log, I see:
[ConversationInterceptor] no long-running conversation for @Conversational bean: disasterManager
This is good.
The issue is how to make this situation more 'beautiful' for the user...can I hook into things somewhere so that I can present a more user-oriented message like "please don't do back/submit...you dolt" ;-)
Cheers,
Alph
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977409#3977409
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977409
19 years, 7 months
[EJB 3.0] - @PostLoad invoked before eagerly loaded property finishes lo
by JLuv
I have an entity which has a Map set to load eagerly. When trying to access the map in a method annotated as PostLoad, I am getting a LazyInitializationException ("illegal access to loading collection") from AbstractPersistentCollection.java:341
| /**
| * Initialize the collection, if possible, wrapping any exceptions
| * in a runtime exception
| * @param writing currently obsolete
| * @throws LazyInitializationException if we cannot initialize
| */
| protected final void initialize(boolean writing) {
| if (!initialized) {
| if (initializing) {
| throw new LazyInitializationException("illegal access to loading collection");
| }
| throwLazyInitializationExceptionIfNotConnected();
| session.initializeCollection(this, writing);
| }
| }
|
Correct me if I am wrong, but I think a PostLoad method should not be fired until eagerly loaded properties are finished.
In other words, listeners.onPostLoad(postLoadEvent) from TwoPhaseLoad.initializeEntity shouldn't be invoked until the "initializing" field in each of the entity's eagerly loaded AbstractPersistentCollection objects is set to false.
Any thoughts on whether this should be considered a bug?
How about any ideas for a workaround?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977408#3977408
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977408
19 years, 7 months
[Installation, Configuration & Deployment] - Re: IllegalArgumentException
by lightbulb432
Some new information to help in the diagnosis of this problem:
I've discovered that the same problem occurs when a working JAR is deleted and re-deployed (using Ant) with the EXACT SAME JAR!
I noticed that prior to deleting the JAR, the deployed TravelAgentBean (the session bean for which the error message is complaining of "Wrong target") in the JNDIView shows the following:
| +- remote (proxy: $Proxy92 implements interface com.titan.travelagent.TravelAgentRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
After deleting and redeploying, the proxy value changes to a different number:
>From $Proxy92 to $Proxy50, or any other two digits at the end. I suspect this is causing the problem. Please explain whether I am on the right track, and how I can solve this (if even possible).
Thank you. I really appreciate any moments you could spend helping me on this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977407#3977407
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977407
19 years, 7 months
[JBoss Seam] - Very strange exception
by gus888
Hi all,
I don't know what I did wrong recently. After I deployed codes to a running jboss server, I always got the exception shown below when I begin to run it, exception that I shut down server and restart. This is very boring exception. Every time when I modify codes and deploy it to server, I always have to shut down server and restart it. Can anybody give me some advice? Thank you in advance.
com.sun.facelets.tag.TagAttributeException: /tree/sidemenu.xhtml @15,20 var="node" object is not an instance of declaring class
| at com.sun.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:53)
| at com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
| at com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:140)
| at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
| at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:119)
| at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
| at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
| at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
| at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)
| 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)
| at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
| at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
| at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
| at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
| at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
| at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
| at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
| at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:510)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
| 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 com.jdemo.custom.util.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:132)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| 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:67)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223)
| 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.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.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: java.lang.IllegalArgumentException: object is not an instance of declaring class
| 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 com.sun.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:49)
| ... 76 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977405#3977405
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977405
19 years, 7 months