[
https://issues.apache.org/jira/browse/WICKET-3050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913223#action_12913223
]
Igor Vaynberg edited comment on WICKET-3050 at 9/25/10 4:49 PM:
----------------------------------------------------------------
we call the method so we can replace objects while we are serializing them. we
replace objects while serializing them so that we can replace references to
pages with pointers to the pagestore so we do not have two different instances
of a page with the same id.
was (Author: ivaynberg):
we call the method so we can replace objects while we are serializing them.
we replace objects while serializing them so that we can replace references to
pages with points to the pagestore so we do not have two different instances of
a page with the same id.
> AccessControlException thrown when security manager denies access
> -----------------------------------------------------------------
>
> Key: WICKET-3050
> URL: https://issues.apache.org/jira/browse/WICKET-3050
> Project: Wicket
> Issue Type: Bug
> Environment: Google App Engine
> Reporter: Clint Checketts
> Priority: Trivial
> Attachments: enableReplaceObject_patch.txt
>
>
> Google App Engine locks down various environmental pieces. The ModelChange
> class tries to do some serialization which causes the exception.
> Caused by: java.security.AccessControlException: access denied
> (java.io.SerializablePermission enableSubstitution)
> at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:355)
> at
> java.security.AccessController.checkPermission(AccessController.java:567)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
> at
> java.io.ObjectOutputStream.enableReplaceObject(ObjectOutputStream.java:609)
> at
> org.apache.wicket.util.lang.Objects$ReplaceObjectOutputStream.<init>(Objects.java:183)
> at
> org.apache.wicket.util.lang.Objects$ReplaceObjectOutputStream.<init>(Objects.java:174)
> at org.apache.wicket.util.lang.Objects.cloneModel(Objects.java:461)
> at
> org.apache.wicket.version.undo.ModelChange.<init>(ModelChange.java:103)
> at
> org.apache.wicket.version.undo.ChangeList.componentModelChanging(ChangeList.java:64)
> at
> org.apache.wicket.version.undo.UndoPageVersionManager.componentModelChanging(UndoPageVersionManager.java:123)
> at org.apache.wicket.Page.componentModelChanging(Page.java:1598)
> at org.apache.wicket.Component.modelChanging(Component.java:2206)
> at
> org.apache.wicket.Component.setDefaultModelObject(Component.java:3046)
> at
> org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.setSelectedTab(TabbedPanel.java:338)
> at
> org.apache.wicket.extensions.markup.html.tabs.TabbedPanel$5.onClick(TabbedPanel.java:319)
> at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:224)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.