[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-795) allow MockHttpServletRequest and MockExternalContext to support cookies
Mariusz Smykula (JIRA)
jira-events at lists.jboss.org
Mon Feb 12 03:39:30 EST 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-795?page=comments#action_12352823 ]
Mariusz Smykula commented on JBSEAM-795:
----------------------------------------
This was fixed, but last nigtly build (11.02.2007) have another error:
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
> allow MockHttpServletRequest and MockExternalContext to support cookies
> -----------------------------------------------------------------------
>
> Key: JBSEAM-795
> URL: http://jira.jboss.com/jira/browse/JBSEAM-795
> Project: JBoss Seam
> Issue Type: Patch
> Components: Tools
> Affects Versions: 1.1.6.GA
> Reporter: Matt Drees
> Assigned To: Gavin King
> Priority: Minor
> Fix For: 1.1.7.GA
>
> Attachments: MockExternalContext-patch.txt, MockHttpServletRequest-patch.txt
>
>
> 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