You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (Jira)" <ji...@apache.org> on 2019/09/27 20:10:00 UTC
[jira] [Commented] (WICKET-6704) JavaSerializer.serialize causes
the JVM crash !
[ https://issues.apache.org/jira/browse/WICKET-6704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16939733#comment-16939733 ]
Sven Meier commented on WICKET-6704:
------------------------------------
You've written it in your code comments already: This is weird!
I don't have a clue why this special combination of fields (Future, PropertyChangeSupport subclass in superclass) fails this way, let alone why this should result in a JVM crash.
If this is critical for you, I suggest you skip the magic and do with a standard ObjectOutputStream instead:
{code:java}
frameworkSettings.setSerializer(new JavaSerializer(application.getApplicationKey()) {
@Override
protected ObjectOutputStream newObjectOutputStream(OutputStream out) throws IOException
{
return new ObjectOutputStream(out);
}
});
{code}
> JavaSerializer.serialize causes the JVM crash !
> -----------------------------------------------
>
> Key: WICKET-6704
> URL: https://issues.apache.org/jira/browse/WICKET-6704
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 8.5.0
> Environment: Windows 7, but probably it's NOT OS dependant
> Reporter: Joe K
> Priority: Critical
> Attachments: jvm-crash_from_wicket.zip
>
>
> * when trying to serialize my custom object with a non-serializable field by JavaSerializer.serialize the JVM crashes instead of throwing the regular NotSerializableException !
> * when trying to serialize THE SAME object by java ObjectOutputStream then it's handled correctly and NotSerializableException is thrown
> * I'm attaching the very simple source code (Maven project), 1st test simulates the wicket issue (JVM crash) and 2nd test simulates the correct handling by java ObjectOutputStream
> * the attached example is just the simplification of very large project which is massively used by the users, so in fact it's critical for us
>
> * java: 1.8 (probably doesn't matter, tested on 1.8.0_162 and 1.8.0_221)
> * wicket: 8.5.0 (probably the problem is also in other versions)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)