[ 
https://issues.apache.org/jira/browse/WICKET-5904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545576#comment-14545576
 ] 

Guillaume Smet commented on WICKET-5904:
----------------------------------------

OK, got it reproduced with a simple quickstart!

How to reproduce:
- start the application using Start.java in debug mode;
- Go to the home page: you should be directed to /?0 as I added a statelessHint 
to false;
- then, in Eclipse, add something to the HomePage.html markup. For instance, I 
added " 2" just after the "Test" string which is in the enclosure;
- refresh the page in the browser (keeping the /?0 parameter)

You should end up with:
java.lang.IllegalArgumentException: Argument 'markup' may not be null.
     at org.apache.wicket.util.lang.Args.notNull(Args.java:41)
     at org.apache.wicket.markup.MarkupStream.<init>(MarkupStream.java:65)
     at 
org.apache.wicket.markup.html.internal.Enclosure.getChild(Enclosure.java:133)
     at 
org.apache.wicket.markup.html.internal.Enclosure.onConfigure(Enclosure.java:148)
     at org.apache.wicket.Component.configure(Component.java:1055)
     at org.apache.wicket.Component.internalBeforeRender(Component.java:940)
     at org.apache.wicket.Component.beforeRender(Component.java:1017)
     at 
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1712)
     at org.apache.wicket.Component.onBeforeRender(Component.java:3876)
     at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
     at org.apache.wicket.Component.beforeRender(Component.java:1017)
     at 
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1712)
     at org.apache.wicket.Component.onBeforeRender(Component.java:3876)
     at org.apache.wicket.Page.onBeforeRender(Page.java:801)
     at org.apache.wicket.Component.internalBeforeRender(Component.java:949)

> NPE after editing a markup file in debug mode
> ---------------------------------------------
>
>                 Key: WICKET-5904
>                 URL: https://issues.apache.org/jira/browse/WICKET-5904
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 7.0.0-M5
>            Reporter: Guillaume Smet
>            Assignee: Andrea Del Bene
>         Attachments: npe-markup.tar.gz
>
>
> Hi,
> I have a weird behavior with 7.0.0-SNAPSHOT: if I update the markup in 
> Eclipse debug mode (just add a class in a class attribute for instance, 
> nothing fancy), I get the following exception when I reload the page without 
> removing the ?version parameter:
> java.lang.IllegalArgumentException: Argument 'markup' may not be null.
>      at org.apache.wicket.util.lang.Args.notNull(Args.java:41)
>      at org.apache.wicket.markup.MarkupStream.<init>(MarkupStream.java:65)
>      at 
> org.apache.wicket.markup.html.internal.Enclosure.getChild(Enclosure.java:133)
>      at 
> org.apache.wicket.markup.html.internal.Enclosure.onConfigure(Enclosure.java:148)
>      at org.apache.wicket.Component.configure(Component.java:1055)
>      at org.apache.wicket.Component.internalBeforeRender(Component.java:940)
>      at org.apache.wicket.Component.beforeRender(Component.java:1017)
>      at 
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1712)
>      at org.apache.wicket.Component.onBeforeRender(Component.java:3876)
>      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
>      at org.apache.wicket.Component.beforeRender(Component.java:1017)
>      at 
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1712)
>      at org.apache.wicket.Component.onBeforeRender(Component.java:3876)
>      at org.apache.wicket.Page.onBeforeRender(Page.java:801)
>      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
>      at org.apache.wicket.Component.beforeRender(Component.java:1017)
>      at 
> org.apache.wicket.Component.internalPrepareForRender(Component.java:2214)
>      at org.apache.wicket.Page.internalPrepareForRender(Page.java:242)
> I can reproduce it every time.
> If the issue isn't obvious, I can try to extract a quick start.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to