[JBoss JIRA] (JBSEAM-4971) Could not submit any Form or Action in seam-gen generated project
by Tomas Remes (JIRA)
Tomas Remes created JBSEAM-4971:
-----------------------------------
Summary: Could not submit any Form or Action in seam-gen generated project
Key: JBSEAM-4971
URL: https://issues.jboss.org/browse/JBSEAM-4971
Project: Seam 2
Issue Type: Bug
Components: Tools
Affects Versions: 2.3.0.BETA2
Environment: Seam 2.3.0.CR1-SNAPSHOT from 2012-05-25
Reporter: Tomas Remes
Fix For: 2.3.0.CR1
There is error when invoking any action or submitting form in project generated by seam-gen. This always produces following exception:
{noformat}
08:17:59,360 ERROR [org.jboss.seam.exception.Exceptions] (http-localhost/127.0.0.1:8080-3) handled and logged exception: javax.servlet.ServletException: viewId:/home.seam - View /home.seam could not be restored.
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:606) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.16.Final-redhat-1.jar:]
at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_22]
Caused by: javax.faces.application.ViewExpiredException: viewId:/home.seam - View /home.seam could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:205) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]
... 31 more
{noformat}
If there is defined PROJECT_STAGE with value "Development", you will get only following error in server log:
{noformat}
ERROR [org.jboss.as.txn] (http-localhost/127.0.0.1:8080-5) JBAS010152: APPLICATION ERROR: transaction still active in request with status 0
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (JBSEAM-4987) Seam2.3.0.Beta2 documentation issues
by Marek Schmidt (JIRA)
Marek Schmidt created JBSEAM-4987:
-------------------------------------
Summary: Seam2.3.0.Beta2 documentation issues
Key: JBSEAM-4987
URL: https://issues.jboss.org/browse/JBSEAM-4987
Project: Seam 2
Issue Type: Bug
Components: Documentation Issues
Affects Versions: 2.3.0.BETA2
Reporter: Marek Schmidt
Assignee: Marek Novotny
Priority: Critical
Fix For: 2.3.0.CR1
Introduction to JBoss Seam
* Hibernate3
** should be Hibernate4 now
* "Java EE 5" should be updated to Java EE 5 or 6, or just 6 where it makes sense. Some additional paragraph should be added to the introduction that would explain how Seam2.3 now works on EE6 server, which part of EE6 it uses, mention the relation to CDI, etc.
Using the Seam examples
* examples directory is now examples-ee6 (although that should be probably changed for Final)
* "The example applications run both on JBoss AS and Tomcat with no additional configuration"
** I don't believe tomcat works ATM, so should be removed
* "Note that all the examples are built and run from the Ant build.xml, so you'll need a recent version of Ant installed before you get started. "
** should be Maven now
Running the examples on JBoss AS
* "The examples are configured for use on JBoss AS 4.2 or 5.0. "
** Should be "JBoss AS 7.1"
* build and deploy steps should be changed to "mvn clean package" and $JBOSS_HOME/bin/jboss-cli.sh --connect 'deploy example-ear/target/example.ear'
* "Most of the examples can be deployed as a WAR to Tomcat with Embedded JBoss by typing ant tomcat.deploy."
** not true anymore AFAIK, should be removed.
Running the examples on Tomcat
* Should be removed, as embedded jboss is no more and the examples have not been updated for tomcat yet.
Running the example tests
* TestNG should be changed to JUnit.
* Not ant test, but "mvn clean verify -Darquillian=jbossas-managed-7"
1.2.1. Understanding the code
1.2.1.1. The entity bean: User.java
* @Length should be changed to @Size
Example 1.7. web.xml
* web.xml version and schema should be updated to 3.0 and 3_0.xsd respectively.
1.2.1.7. The JSF configuration: faces-config.xml
* The <application> element with the view-handler should be removed.
* version should be updated to 2.1 (2_1.xsd) (actually, the whole file is not necessarry, so this section could be removed.
1.2.1.9. The EJB persistence deployment descriptor: persistence.xml
* version should be upgraded to 2.0
* java:/DefaultDS should be changed to java:jboss/datasources/ExampleDS
1.3.1.1. The entity bean: Message.java ... and others
* @Length should be changed to @Size, see also other examples
1.3.1.4. The view: messages.jsp .. and other JSP and JSPX examples
* should be converted to xhtml facelets, as we use JSF2 now, so we should not recommend JSP. See also other examples.
1.6. A complete Seam application: the Hotel Booking example
* s/Hibernate3/Hibernate4
* Richfaces AJAX examples need to be migrated to richfaces4, see the updated examples.
2.1. Before you start
* "Make sure you have JDK 5 or JDK 6 (see Section 42.1, “JDK Dependencies†for details), JBoss AS 4.2 or 5.0 and Ant 1.7.0, along with recent versions of Eclipse, the JBoss IDE plugin for Eclipse and the TestNG plugin for Eclipse correctly installed before starting"
** should probably be "JDK 6 or JDK 7 ... JBoss AS 7.1, Maven 3.0.4, ... " and TestNG plugin is no longer necessary.
* there are other references to JDK5 in the text that should be fixed
2.9. Using Seam with JBoss 4.0
* section should be removed
3.1. Before you start
* "Make sure you have JDK 5, JBoss AS 4.2 or 5.0, Eclipse 3.3"
** dependencies should be updated, (JDK6, AS7.1, )
3.2. Setting up a new Seam project
* Should be updated according to however it works not in the current jboss tools (at least JBoss AS versions and Seam versions need to be updated in the text)
16.1.1. Application server configuration
* should be updated to AS7.1, if it is still needed there.
21.3. Configuration
* "The Seam Mail module requires the use of Facelets as the view technology. Future versions of the library may also support the use of JSP. Additionally, it requires the use of the seam-ui package. " this note should probably be removed.
21.4. Meldware
* buni.org is a dead link.
26.4. GWT Ant Targets
* should be updated to Maven
29.2. Configuration
* "It is not longer necessary the register the event listeners if Hibernate Annotations or EntityManager 3.3.x are used. When using Hibernate Search 3.1.x more eventlisteners are needed, but these are registered automatically by Hibernate Annotations; refer to the Hibernate Search reference for configuring it without EntityManager and Annotations." should be removed then, as we now have Hibernate4
* "hibernate-commons-annotations.jar is not needed in JBossAS6." should be removed or updated to AS7
30.1.2. Using Facelets
* not required for JSF2
30.1.5. Integrating Seam with your EJB container
* JNDI names should be updated to those that are true for AS7
30.6. Configuring Seam in Java SE, with JBoss Embedded
* should probably be removed, together with any other jboss embedded-specific piece of documentation
30.8. Configuring SFSB and Session Timeouts in JBoss AS
* should be updated for AS7
Chapter 35. Clustering and EJB Passivation
* should be updated for AS7
37.2. Integration testing Seam components
* JBoss Embedded parts should probably be removed
Chapter 39. Seam on BEA's Weblogic
Chapter 40. Seam on IBM's WebSphere AS v7
Chapter 41. Seam on GlassFish application server
* Seam2.3 has not been tested on these platforms, so the docs should at least have a note that this part has not been updated to Seam2.3 and it has not been tested.
* Also, the ee5/ example is no longer there, so these guides are pretty much useless.
Chapter 42. Dependencies
* Should be updated for AS7
42.3. Dependency Management using Maven
* should be updated.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (JBSEAM-4945) Seam Drools fails on Java 7 with: value '1.7' is not a valid language level
by Marek Schmidt (JIRA)
Marek Schmidt created JBSEAM-4945:
-------------------------------------
Summary: Seam Drools fails on Java 7 with: value '1.7' is not a valid language level
Key: JBSEAM-4945
URL: https://issues.jboss.org/browse/JBSEAM-4945
Project: Seam 2
Issue Type: Bug
Components: Drools
Affects Versions: 2.3.0.BETA1
Environment: Seam 2.3.0.Beta2-SNAPSHOT, AS7.1.2-SNAPSHOT, JDK 1.7.0
Reporter: Marek Schmidt
Assignee: Marek Novotny
Fix For: 2.3.0.BETA2
{noformat}
09:33:52,619 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/seam-drools].[Faces Servlet]] (http--127.0.0.1-8080-1) Servlet.service() for servlet Faces Servlet threw exception: org.drools.RuntimeDroolsException: value '1.7' is not a valid language level
at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.getDefaultLanguageLevel(JavaDialectConfiguration.java:162) [drools-compiler-5.1.1.jar:5.1.1]
at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:57) [drools-compiler-5.1.1.jar:5.1.1]
at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:279) [drools-compiler-5.1.1.jar:5.1.1]
at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:268) [drools-compiler-5.1.1.jar:5.1.1]
at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:181) [drools-compiler-5.1.1.jar:5.1.1]
at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:159) [drools-compiler-5.1.1.jar:5.1.1]
at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:45) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.callComponentMethod(Component.java:2275) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.callCreateMethod(Component.java:2198) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.newInstance(Component.java:2158) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.getInstance(Component.java:2024) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.getInstance(Component.java:1986) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.getInstance(Component.java:1980) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) [jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) [jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:157) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.drools.ManagedWorkingMemory.getRuleBaseFromValueBinding(ManagedWorkingMemory.java:125) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.drools.ManagedWorkingMemory.getStatefulSession(ManagedWorkingMemory.java:76) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.callComponentMethod(Component.java:2275) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.unwrap(Component.java:2301) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.getInstance(Component.java:2044) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.getInstance(Component.java:1986) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.Component.getInstance(Component.java:1980) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.drools.DroolsHandler.getWorkingMemory(DroolsHandler.java:25) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.drools.DroolsDecisionHandler.decide(DroolsDecisionHandler.java:28) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jbpm.graph.node.Decision.handleDecision(Decision.java:165) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2]
at org.jbpm.graph.node.Decision.execute(Decision.java:95) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2]
at org.jbpm.graph.def.Node.enter(Node.java:381) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2]
at org.jbpm.graph.def.Transition.take(Transition.java:162) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2]
at org.jbpm.graph.def.Node.leave(Node.java:450) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2]
at org.jbpm.graph.exe.Token.signal(Token.java:210) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2]
at org.jbpm.graph.exe.Token.signal(Token.java:171) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2]
at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:291) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2]
at org.jboss.seam.pageflow.Pageflow.signal(Pageflow.java:485) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.pageflow.Pageflow.navigate(Pageflow.java:341) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:40) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-0-todo.jar:2.0.2.Final]
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-0-todo.jar:2.0.2.Final]
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-0-todo.jar:2.0.2.Final]
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-0-todo.jar:2.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam.jar:2.3.0.Beta2-SNAPSHOT]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.15.Final-redhat-0-todo.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (JBSEAM-4986) occasional NPE in dvdstore integration tests
by Marek Schmidt (JIRA)
Marek Schmidt created JBSEAM-4986:
-------------------------------------
Summary: occasional NPE in dvdstore integration tests
Key: JBSEAM-4986
URL: https://issues.jboss.org/browse/JBSEAM-4986
Project: Seam 2
Issue Type: Bug
Components: Core
Affects Versions: 2.3.0.BETA2
Reporter: Marek Schmidt
Assignee: Marek Schmidt
Fix For: 2.3.0.CR1
The dvdstore tests sometimes fail with the following NPE. The problem seems to be that sometimes the real SeamNavigationHandler, instead of the expected MockNavigationHandler is used. I suspect we are setting the MockApplicationFactory in FactoryFinder too late.
{noformat}
java.lang.AssertionError: java.lang.NullPointerException
at org.jboss.seam.mock.AbstractSeamTest$Request.onException(AbstractSeamTest.java:471)
at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:520)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at org.jboss.seam.mock.AbstractSeamTest$Request.run(AbstractSeamTest.java:507)
at org.jboss.seam.mock.AbstractSeamTest$FacesRequest.run(AbstractSeamTest.java:884)
at com.jboss.dvd.seam.test.OrderTest.makeOrder(OrderTest.java:245)
at com.jboss.dvd.seam.test.OrderTest.checkout(OrderTest.java:297)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)
at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
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.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38)
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.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)
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.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)
at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)
at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65)
at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.executeTest(ServletTestRunner.java:160)
at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execute(ServletTestRunner.java:126)
at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet(ServletTestRunner.java:90)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at com.sun.faces.application.view.FaceletViewHandlingStrategy.viewExists(FaceletViewHandlingStrategy.java:795)
at com.sun.faces.application.view.MultiViewHandler.derivePhysicalViewId(MultiViewHandler.java:504)
at com.sun.faces.application.view.MultiViewHandler.deriveViewId(MultiViewHandler.java:391)
at javax.faces.application.ViewHandlerWrapper.deriveViewId(ViewHandlerWrapper.java:125)
at com.sun.faces.application.NavigationHandlerImpl.findImplicitMatch(NavigationHandlerImpl.java:545)
at com.sun.faces.application.NavigationHandlerImpl.getViewId(NavigationHandlerImpl.java:297)
at com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:159)
at org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:44)
at org.jboss.seam.mock.AbstractSeamTest$Request.invokeApplicationPhase(AbstractSeamTest.java:669)
at org.jboss.seam.mock.AbstractSeamTest$Request.emulateJsfLifecycle(AbstractSeamTest.java:613)
at org.jboss.seam.mock.AbstractSeamTest$Request.access$100(AbstractSeamTest.java:184)
at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:513)
... 107 more
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months