Wicket
  1. Wicket
  2. WICKET-1239

java.lang.IllegalAccessError when changing AjaxEditableLabel

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-rc2, 1.3.0-final
    • Fix Version/s: 1.3.2
    • Component/s: wicket-extensions
    • Labels:
      None
    • Environment:
      Windows XP Pro SP2, Java 1.6.0_03-b05

      Description

      When changing AjaxEditableLabel system throws:

      java.lang.IllegalAccessError: tried to access method
      org.apache.wicket.Component.onModelChanging()V from class
      org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1
      at
      org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1.onModelChanging
      (AjaxEditableLabel.java:273)
      at org.apache.wicket.Component.modelChanging(Component.java:2058)
      at org.apache.wicket.Component.setModelObject(Component.java:2823)
      at org.apache.wicket.markup.html.form.FormComponent.updateModel(
      FormComponent.java:992)
      at org.apache.wicket.markup.html.form.FormComponent.processInput(
      FormComponent.java:874)
      [...]

      The probem is in methd:

      protected FormComponent newEditor(MarkupContainer parent, String componentId, IModel model)
      {
      TextField editor = new TextField(componentId, model)
      {
      private static final long serialVersionUID = 1L;

      protected void onModelChanged()

      { super.onModelChanged(); AjaxEditableLabel.this.onModelChanged(); //here is a bug }

      protected void onModelChanging()

      { super.onModelChanging(); AjaxEditableLabel.this.onModelChanging(); //here is a bug }

      };
      editor.setOutputMarkupId(true);
      editor.setVisible(false);
      editor.add(new EditorAjaxBehavior());
      return editor;
      }

      AjaxEditableLabel.this.XXXXXX is not visible.

      Artur

      1. code.java
        2 kB
        Eric Gulatee

        Issue Links

          Activity

          Artur Wronski created issue -
          Frank Bille Jensen made changes -
          Field Original Value New Value
          Affects Version/s 1.3.0-final [ 12312515 ]
          Frank Bille Jensen made changes -
          Link This issue is duplicated by WICKET-1253 [ WICKET-1253 ]
          Gerolf Seitz made changes -
          Resolution Fixed [ 1 ]
          Assignee Gerolf Seitz [ seitz ]
          Fix Version/s 1.3.2 [ 12312942 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Gerolf Seitz made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Gerolf Seitz made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Eric Gulatee made changes -
          Attachment code.java [ 12378595 ]
          Igor Vaynberg made changes -
          Assignee Gerolf Seitz [ seitz ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Artur Wronski
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development