[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-820) CLONE -allow MockHttpServletRequest and MockExternalContext to support cookies
Mariusz Smykula (JIRA)
jira-events at lists.jboss.org
Mon Feb 12 04:34:29 EST 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-820?page=comments#action_12352827 ]
Mariusz Smykula commented on JBSEAM-820:
----------------------------------------
There's another error in latest nightly (11/02/2007).
FAILED: testLogin
java.lang.NullPointerException
at org.jboss.seam.mock.MockExternalContext.getRequestCookieMap(MockExternalContext.java:181)
at org.jboss.seam.core.Selector.getCookieValue(Selector.java:59)
at org.jboss.seam.security.Identity.initCredentialsFromCookie(Identity.java:91)
at org.jboss.seam.security.Identity.create(Identity.java:85)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
at org.jboss.seam.Component.callComponentMethod(Component.java:1835)
at org.jboss.seam.Component.callCreateMethod(Component.java:1783)
at org.jboss.seam.Component.newInstance(Component.java:1772)
at org.jboss.seam.Component.getInstance(Component.java:1669)
at org.jboss.seam.Component.getInstance(Component.java:1636)
at org.jboss.seam.Namespace.get(Namespace.java:42)
at javax.el.MapELResolver.getValue(MapELResolver.java:157)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:135)
at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at org.jboss.seam.util.UnifiedELValueBinding.getValue(UnifiedELValueBinding.java:34)
at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:53)
at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1710)
at org.jboss.seam.Component.getInstance(Component.java:1659)
at org.jboss.seam.Component.getInstance(Component.java:1636)
at org.jboss.seam.Component.getInstance(Component.java:1630)
at org.jboss.seam.mock.SeamTest.getInstance(SeamTest.java:115)
at my.admin.LoginTest.access$1(LoginTest.java:1)
at my.admin.LoginTest$1.invokeApplication(LoginTest.java:17)
at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:486)
at my.admin.LoginTest.testLogin(LoginTest.java:21)
... Removed 25 stack frames
I make build from CVS and there is other minor problem:
10:27:53,468 INFO [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
FAILED CONFIGURATION: @BeforeClass init
java.lang.NoClassDefFoundError: javax/mail/Authenticator
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at org.jboss.seam.Component.initMembers(Component.java:435)
at org.jboss.seam.Component.<init>(Component.java:254)
at org.jboss.seam.Component.<init>(Component.java:205)
at org.jboss.seam.init.Initialization.addComponent(Initialization.java:787)
at org.jboss.seam.init.Initialization.addComponents(Initialization.java:691)
at org.jboss.seam.init.Initialization.init(Initialization.java:452)
at org.jboss.seam.mock.SeamTest.init(SeamTest.java:698)
... Removed 22 stack frames
SKIPPED CONFIGURATION: @BeforeMethod begin
SKIPPED CONFIGURATION: @AfterMethod end
SKIPPED CONFIGURATION: @BeforeMethod begin
SKIPPED CONFIGURATION: @AfterMethod end
SKIPPED CONFIGURATION: @AfterClass cleanup
SKIPPED: testUserLogin
SKIPPED: testLogin
===============================================
my.admin.LoginTest
Tests run: 2, Failures: 0, Skips: 2
Configuration Failures: 1, Skips: 5
===============================================
After adding mail.jar to eclipse classpath I have the first error and all tests breaks.
> CLONE -allow MockHttpServletRequest and MockExternalContext to support cookies
> ------------------------------------------------------------------------------
>
> Key: JBSEAM-820
> URL: http://jira.jboss.com/jira/browse/JBSEAM-820
> Project: JBoss Seam
> Issue Type: Patch
> Components: Tools
> Affects Versions: 1.1.6.GA
> Reporter: Mariusz Smykula
> Assigned To: Gavin King
> Priority: Minor
> Fix For: 1.1.7.GA
>
>
> After updating to 1.1.6 and using Seam/Security authentication, my login integration test failed with a NPE:
> java.lang.NullPointerException
> at org.jboss.seam.core.Selector.getCookieValue(Selector.java:59)
> at org.jboss.seam.security.Identity.initCredentialsFromCookie(Identity.java:91)
> at org.jboss.seam.security.Identity.create(Identity.java:85)
> ...
> at org.uscm.crs.test.LoginTest.testLogin(LoginTest.java:25)
> The root cause is the MockExternalContext always returned null for getRequestCookieMap().
--
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
More information about the seam-issues
mailing list