Mojarra 2.1.11 と JBoss AS 6.1.0 を使用しています。java.lang.IllegalArgumentException: null sourceで提起されたのと同じ問題がありますが、答えがうまくいきません。
ページの xhtml は構文的に適切なので (多くのページでこれを試しました)、それが問題だとは思いません。エラー テキスト:
Servlet.service() for servlet Faces Servlet threw exception: java.lang.IllegalArgumentException: null source
at java.util.EventObject.<init>(Unknown Source) [:1.6.0_31]
at javax.faces.event.SystemEvent.<init>(SystemEvent.java:71) [:2.1.11]
at javax.faces.event.ComponentSystemEvent.<init>(ComponentSystemEvent.java:73) [:2.1.11]
at javax.faces.event.PostRestoreStateEvent.<init>(PostRestoreStateEvent.java:73) [:2.1.11]
at com.sun.faces.lifecycle.RestoreViewPhase.deliverPostRestoreStateEvent(RestoreViewPhase.java:271) [:2.1.11]
...
web.xml で、セッション タイムアウトを 1 分に設定しました。テストしたページは、その 1 分後に上記のエラーを生成します。私の理解が正しければ、代わりに ViewExpiredException が生成されるはずです。誰かが私が試すことができる何か他のアイデアを持っているなら、私はそれを感謝します.
ありがとう、クレ
:編集 2012 年 7 月 28 日 - プロジェクトのスタック トレース:
16:55:01,663 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/TestProject
16:55:01,711 INFO [org.apache.catalina.core.StandardContext] The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
16:55:01,789 INFO [javax.enterprise.resource.webcontainer.jsf.config] Initializing Mojarra 2.1.11 ( 20120711-1632) for context '/TestProject'
16:55:03,692 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
16:55:03,692 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
16:55:03,692 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8443
16:55:03,692 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.1.0.Final "Neo"] Started in 30s:523ms
16:56:59,846 WARN [org.apache.tomcat.util.http.Parameters] Parameters: Invalid chunk ignored.
16:56:59,846 WARN [org.apache.tomcat.util.http.Parameters] Parameters: Invalid chunk ignored.
16:57:01,642 WARN [org.apache.tomcat.util.http.Parameters] Parameters: Invalid chunk ignored.
16:57:01,642 WARN [org.apache.tomcat.util.http.Parameters] Parameters: Invalid chunk ignored.
16:57:01,642 INFO [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
16:57:03,219 WARN [org.apache.tomcat.util.http.Parameters] Parameters: Invalid chunk ignored.
16:57:03,219 WARN [org.apache.tomcat.util.http.Parameters] Parameters: Invalid chunk ignored.
16:59:37,112 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/TestProject].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: java.lang.IllegalArgumentException: null source
at java.util.EventObject.<init>(Unknown Source) [:1.6.0_31]
at javax.faces.event.SystemEvent.<init>(SystemEvent.java:71) [:2.1.11]
at javax.faces.event.ComponentSystemEvent.<init>(ComponentSystemEvent.java:73) [:2.1.11]
at javax.faces.event.PostRestoreStateEvent.<init>(PostRestoreStateEvent.java:73) [:2.1.11]
at com.sun.faces.lifecycle.RestoreViewPhase.deliverPostRestoreStateEvent(RestoreViewPhase.java:271) [:2.1.11]
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:257) [:2.1.11]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [:2.1.11]
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [:2.1.11]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [:2.1.11]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [:2.1.11]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.1.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [:6.1.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.1.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.1.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [:6.1.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.1.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.1.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159) [:6.1.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.1.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.1.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.1.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.1.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.1.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.1.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.1.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.1.0.Final]
at java.lang.Thread.run(Unknown Source) [:1.6.0_31]
サーバーの起動時からエラーが発生するまでの完全なスタック トレースが役立つ場合は、お知らせください。