Devutils breaks applications if session size is not available for any reason ----------------------------------------------------------------------------
Key: WICKET-3355 URL: https://issues.apache.org/jira/browse/WICKET-3355 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 1.5-M3 Reporter: Martin Grigorov Assignee: Martin Grigorov Fix For: 1.5-RC2 Trying to upload file the multiupload wicket example fails with: Caused by: java.lang.IllegalArgumentException: 'bytes' cannot be negative. at org.apache.wicket.util.lang.Bytes.<init>(Bytes.java:111) at org.apache.wicket.util.lang.Bytes.bytes(Bytes.java:124) at org.apache.wicket.devutils.inspector.SessionSizeModel.load(SessionSizeModel.java:36) at org.apache.wicket.devutils.inspector.SessionSizeModel.load(SessionSizeModel.java:24) at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:119) at org.apache.wicket.devutils.debugbar.SessionSizeDebugPanel$2.getObject(SessionSizeDebugPanel.java:75) at org.apache.wicket.devutils.debugbar.SessionSizeDebugPanel$2.getObject(SessionSizeDebugPanel.java:79) at org.apache.wicket.Component.getDefaultModelObject(Component.java:1675) ..... The problem is that WicketObjects.sizeOf() may return -1 if an exception happens during the calculation. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.