[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-3835) @UserPrincipal doesn't work when used in variable declaration.

Shane Bryzak (JIRA) jira-events at lists.jboss.org
Thu Dec 11 18:43:36 EST 2008


     [ https://jira.jboss.org/jira/browse/JBSEAM-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shane Bryzak closed JBSEAM-3835.
--------------------------------

    Resolution: Out of Date
      Assignee: Shane Bryzak


Already fixed in SVN

> @UserPrincipal doesn't work when used in variable declaration.
> --------------------------------------------------------------
>
>                 Key: JBSEAM-3835
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3835
>             Project: Seam
>          Issue Type: Bug
>    Affects Versions: 2.1.0.SP1
>            Reporter: Andre Salvati
>            Assignee: Shane Bryzak
>
> Related to https://jira.jboss.org/jira/browse/JBSEAM-3556
> 1) Make this change in class MemberAccount.java into seam-space example 
>    @NotNull @UserPrincipal
>    private String username;
>    ..........
>    //@NotNull @UserPrincipal
>    public String getUsername()
>    {
>       return username;
>    }
> 2) deploy, register a new user and try to login.
> java.lang.IllegalAccessException: Class org.jboss.seam.util.Reflections can not access a member of class org.jboss.seam.example.seamspace.MemberAccount with modifiers "private"
> 	sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
> 	java.lang.reflect.Field.doSecurityCheck(Field.java:960)
> 	java.lang.reflect.Field.getFieldAccessor(Field.java:896)
> 	java.lang.reflect.Field.set(Field.java:657)
> 	org.jboss.seam.util.Reflections.set(Reflections.java:71)
> 	org.jboss.seam.util.Reflections.setAndWrap(Reflections.java:119)
> 	org.jboss.seam.util.AnnotatedBeanProperty.setValue(AnnotatedBeanProperty.java:99)
> 	org.jboss.seam.security.management.JpaIdentityStore.createUser(JpaIdentityStore.java:207)
> 	org.jboss.seam.security.management.IdentityManager.createUser(IdentityManager.java:98)
> 	org.jboss.seam.security.management.IdentityManager.createUser(IdentityManager.java:92)
> 	org.jboss.seam.example.seamspace.RegisterAction$1.execute(RegisterAction.java:104)
> 	org.jboss.seam.security.Identity.runAs(Identity.java:734)
> 	org.jboss.seam.security.RunAsOperation.run(RunAsOperation.java:84)
> 	org.jboss.seam.example.seamspace.RegisterAction.uploadPicture(RegisterAction.java:102)
> 	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	java.lang.reflect.Method.invoke(Method.java:597)
> 	org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list