why I'm getting NotSerializableException exception though I've implemented 'Serializable'

后端 未结 3 414
抹茶落季
抹茶落季 2021-01-28 12:18

I\'ve implemented Serializable in class \'userInfo\'. Still I\'m getting exception. Here\'s the output console -

java.io.WriteAbortedException: writing aborted;         


        
3条回答
  •  醉话见心
    2021-01-28 12:41

    Pass -Dsun.io.serialization.extendedDebugInfo=true to the JVM for tracking the exact cause for NotSerializableException.

    Eg: Add SET CATALINA_OPTS=%CATALINA_OPTS% -Dsun.io.serialization.extendedDebugInfo=true in the startup.bat

提交回复
热议问题