Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6704

JavaSerializer.serialize causes the JVM crash !

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.5.0
    • 8.7.0, 9.0.0-M4, 7.16.0
    • wicket-core
    • None
    • Windows 7, but probably it's NOT OS dependant

    Description

      • 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)

      Attachments

        1. jvm-crash_from_wicket.zip
          3 kB
          Joe K
        2. WicketObjects_stacktrace_1.jpg
          681 kB
          Joe K

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              joek Joe K
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: