Alex-Hempel said in Proget Jenkins Plugin: Not working on Slaves?:
Caused by: java.io.NotSerializableException: com.inedo.proget.jenkins.DownloadPackageBuilder
java.io.NotSerializableException can occur when you serialize an inner class instance because serializing such an inner class instance will result in serialization of its associated outer class instance as well. How to solve it?
-
If the class is yours, make the class serializable by implementing the interface java.io.Serializable.
-
All non primitive members implement Serializable (or are transient instead)
-
If your class is an inner class it's either static or the outer class implements Serializable
-
If the class is 3rd party, but you don't need it in the serialized form, mark the field as transient
It is important to note that Serialization of inner classes (i.e., nested classes that are not static member classes), including local and anonymous classes, is strongly discouraged.