简体   繁体   中英

Error calling a submit: java.io.NotSerializableException

There is a Web Panel from where a Call is made to a Procedure as a Submit. The Submit is sent an empty String and a collection SDT as parameter. When it is called, it fails with this error: java.io.NotSerializableException. How can I solve this?

The thrown exception is telling you what is the problem. You need to make the required object to be serializable.
It can be done by implementing java.io.Serializable interface :

class MySerializableClass implements Serializable {}

Now MySerializableClass is serializable and can be used as bean etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM