click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilberto C Andrade (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLK-792) Create an entry on FAQ about reflection exceptions
Date Tue, 11 Sep 2012 19:26:08 GMT

     [ https://issues.apache.org/jira/browse/CLK-792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gilberto C Andrade updated CLK-792:
-----------------------------------

    Description: 
For intermediate java programmer is common to do this trivial error:
class com.xxxxxxxxClass {
}

instead of

public class com.xxxxxxxxClass {
}

Causing this type of execption:
Caused by: java.lang.IllegalAccessException: Class org.apache.click.util.PropertyUtils can
not access a member of class com.xxxxxxxClass with modifiers "public"
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95)

So, I'm suggesting the following entry on FAQ:

question: can not access a member of with modifiers "public" 
 answer: 
If you get the following error in Click:
java.lang.IllegalAccessException: Class org.apache.click.util.PropertyUtils can not access
a member of class com.xxxxxClass with modifiers "public"
it's likely because your class com.xxxxxxxxClass is not public. You just need to add a public
keyword in front of the class definition

public class com.xxxxxxxxAction {
}

  was:
For intermediate java programmer is common to this trivial error:
class com.xxxxxxxxClass {
}

instead of

public class com.xxxxxxxxClass {
}

Causing this type of execption:
Caused by: java.lang.IllegalAccessException: Class org.apache.click.util.PropertyUtils can
not access a member of class myGroupId.Person with modifiers "public"
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95)

So, I'm suggesting the following entry on FAQ:

question: can not access a member of with modifiers "public" 
 answer: 
If you get the following error in Click:
java.lang.IllegalAccessException: Class org.apache.click.util.PropertyUtils can not access
a member of class com.xxxxxClass with modifiers "public"
it's likely because your class com.xxxxxxxxClass is not public. You just need to add a public
keyword in front of the class definition

public class com.xxxxxxxxAction {
}

    
> Create an entry on FAQ about reflection exceptions
> --------------------------------------------------
>
>                 Key: CLK-792
>                 URL: https://issues.apache.org/jira/browse/CLK-792
>             Project: Click
>          Issue Type: Improvement
>          Components: documentation
>    Affects Versions: 2.3.0
>            Reporter: Gilberto C Andrade
>            Priority: Minor
>             Fix For: 2.3.1
>
>
> For intermediate java programmer is common to do this trivial error:
> class com.xxxxxxxxClass {
> }
> instead of
> public class com.xxxxxxxxClass {
> }
> Causing this type of execption:
> Caused by: java.lang.IllegalAccessException: Class org.apache.click.util.PropertyUtils
can not access a member of class com.xxxxxxxClass with modifiers "public"
> 	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95)
> So, I'm suggesting the following entry on FAQ:
> question: can not access a member of with modifiers "public" 
>  answer: 
> If you get the following error in Click:
> java.lang.IllegalAccessException: Class org.apache.click.util.PropertyUtils can not access
a member of class com.xxxxxClass with modifiers "public"
> it's likely because your class com.xxxxxxxxClass is not public. You just need to add
a public keyword in front of the class definition
> public class com.xxxxxxxxAction {
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message