[
https://issues.apache.org/jira/browse/SHIRO-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17100460#comment-17100460
]
Benjamin Marwell commented on SHIRO-767:
----------------------------------------
Do you have an exception stack trace you could share with us?
> ClassUtil cannot load the array of Primitive DataType
> -----------------------------------------------------
>
> Key: SHIRO-767
> URL: https://issues.apache.org/jira/browse/SHIRO-767
> Project: Shiro
> Issue Type: Bug
> Components: RememberMe
> Affects Versions: 1.5.2
> Reporter: madongyu
> Priority: Minor
> Attachments: image-2020-05-06-11-40-55-592.png
>
>
> I used Spring boot to build an web project, when i replaced the web container
> with undertow, i found that the remeberMe cookie cannot be serialized
> successful.
> But when i used tomcat , the cookie can be serialized.
> I found that when using tomcat, the function --
> {color:#de350b}ClassUtil.forName(String fqcn) {color:#172b4d}can load the
> class {color:#de350b}[C {color:#172b4d}, but undertow
> cannot.{color}{color}{color}{color}
> {color:#de350b}{color:#172b4d}{color:#de350b}{color:#172b4d}When using
> tomcat,the {color}{color}{color}THREAD_CL_ACCESSOR{color} is
> {color:#de350b}TomcatEmbeddedWebappClassLoader {color}
> When using undertow,the {color:#de350b}THREAD_CL_ACCESSOR{color} is
> {color:#de350b}AppClassLoader{color}.
> Beacase classLoder.loadClass() cannot load Primitive DataType, i think that
> it would be better to use the function --
> {color:#de350b}Class.forName(){color} to load class.
> such as : {color:#de350b}clazz = Class.forName(fqcn,false,cl);{color}
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)