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

AccessControlException thrown when security manager denies access

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None
    • Google App Engine

    Description

      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)

      Attachments

        1. enableReplaceObject_patch.txt
          1 kB
          Clint Checketts

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              checketts Clint Checketts
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: