<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Failed to deserialize ch.ivyteam.ivy.security.internal.jndi.JndiUser</title><link>https://answers.axonivy.com/questions/1461/failed-to-deserialize-ch-ivyteam-ivy-security-internal-jndi-jndiuser</link><description>&lt;p&gt;Hi everyone,
We have an application which uses LDAP users. 
I have a question regarding to the message in log:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Failed to de-serialize java object of class ch.ivyteam.ivy.security.internal.jndi.JndiUser. Object will be null.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What does it mean and how can we prevent this issue?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Matej&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1461/failed-to-deserialize-ch-ivyteam-ivy-security-internal-jndi-jndiuser" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 08 Sep 2015 11:32:17 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1461/failed-to-deserialize-ch-ivyteam-ivy-security-internal-jndi-jndiuser/1462</link><description>&lt;p&gt;It occurs because when a DataClass holds a reference to a non serializable class. In your case one of your data classes will have an attribute of type &lt;code&gt;ch.ivyteam.ivy.security.IUser&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The serialization problem arises as soon as the process is resumed from a persistent state. Basically when you resume a Task with data, that was not fully serializable.&lt;/p&gt;
&lt;p&gt;You can work around the error by setting the data class attribute which references the non-serizalizable value as not persistent.&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/nonPersistentAttribute.PNG"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 08 Sep 2015 11:32:17 -0400</pubDate><guid>https://answers.axonivy.com/questions/1461/failed-to-deserialize-ch-ivyteam-ivy-security-internal-jndi-jndiuser/1462</guid></item></channel></rss>