You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sylvain Vieujot (JIRA)" <ji...@apache.org> on 2012/08/13 08:14:37 UTC

[jira] [Created] (WICKET-4706) SerializableChecker.close throws NPE

Sylvain Vieujot created WICKET-4706:
---------------------------------------

             Summary: SerializableChecker.close throws NPE
                 Key: WICKET-4706
                 URL: https://issues.apache.org/jira/browse/WICKET-4706
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 6.0.0-beta3
            Reporter: Sylvain Vieujot


The following code : 

try( SerializableChecker checker = new SerializableChecker( new NotSerializableException() ); ){
	checker.writeObject( page );
}

throws an NPE because SerializableChecker does not implement close.
Creating a simple empty close method in SerializableChecker should fix the problem.

java.lang.NullPointerException
	at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:715)
	at java.io.ObjectOutputStream.close(ObjectOutputStream.java:736)
	at com.seanergie.wicket.WicketTestUtils.testPage(WicketTestUtils.java:92) // Line corresponding to the try closing }



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (WICKET-4706) SerializableChecker.close throws NPE

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4706.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.0.0
                   1.5.8
         Assignee: Martin Grigorov
    
> SerializableChecker.close throws NPE
> ------------------------------------
>
>                 Key: WICKET-4706
>                 URL: https://issues.apache.org/jira/browse/WICKET-4706
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.0.0-beta3
>            Reporter: Sylvain Vieujot
>            Assignee: Martin Grigorov
>             Fix For: 1.5.8, 6.0.0
>
>
> The following code : 
> try( SerializableChecker checker = new SerializableChecker( new NotSerializableException() ); ){
> 	checker.writeObject( page );
> }
> throws an NPE because SerializableChecker does not implement close.
> Creating a simple empty close method in SerializableChecker should fix the problem.
> java.lang.NullPointerException
> 	at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:715)
> 	at java.io.ObjectOutputStream.close(ObjectOutputStream.java:736)
> 	at com.seanergie.wicket.WicketTestUtils.testPage(WicketTestUtils.java:92) // Line corresponding to the try closing }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira