I can share quickstart if it will save your time

Thanks for helping!

On Tue, Oct 27, 2015 at 6:38 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Here you are:
> https://gist.github.com/solomax/832efd4e11c94accac9b#file-homepage-java-L27
> (line 27 produces NPE)
>
> On Tue, Oct 27, 2015 at 6:35 PM, Martin Grigorov <mgrigo...@apache.org>
> wrote:
>
>> The formatting got lost...
>> Please use some pastebin service instead.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Tue, Oct 27, 2015 at 2:34 PM, Maxim Solodovnik <solomax...@gmail.com>
>> wrote:
>>
>> > OK
>> >
>> > the issue is reproducible with the code like this:
>> >
>> > public class HomePage extends WebPage { private static final long
>> > serialVersionUID = 1L; private final DebugBar dev; public HomePage(final
>> > PageParameters parameters) { super(parameters); add(new Label("version",
>> > getApplication().getFrameworkSettings().getVersion())); add(dev = new
>> > DebugBar("dev")); dev.setOutputMarkupId(true); // TODO Add your page's
>> > components here add(new AbstractAjaxTimerBehavior(Duration.ONE_SECOND) {
>> > private static final long serialVersionUID = 1L; @Override protected
>> void
>> > onTimer(AjaxRequestTarget target) { *target.add(dev);* } }); } }
>> > The call in *bold* produces NPE, am I doing something wrong here?
>> >
>> > On Tue, Oct 27, 2015 at 6:24 PM, Martin Grigorov <mgrigo...@apache.org>
>> > wrote:
>> >
>> > > AjaxRequestHandler is the impl behind AjaxRequestTarget (and
>> > > transitively IPartialPageRequestHandler)
>> > > interface.
>> > >
>> > > I'd expect NotSerializableException in the logs with its pretty
>> exception
>> > > message explaining where AjaxRequestHandler is referenced in your
>> > component
>> > > tree.
>> > >
>> > >
>> > > Martin Grigorov
>> > > Wicket Training and Consulting
>> > > https://twitter.com/mtgrigorov
>> > >
>> > > On Tue, Oct 27, 2015 at 2:15 PM, Maxim Solodovnik <
>> solomax...@gmail.com>
>> > > wrote:
>> > >
>> > > > Just grep all my code: have no references to 'AjaxRequestHandler',
>> > > > 'IPartialPageRequestHandler'
>> > > >
>> > > > Actually 2 things are scares me:
>> > > > 1) everything works with wicket 7.0.0
>> > > > 2) everything works in DEPLOYMENT mode
>> > > >
>> > > > Hopefully will be able to create quickstart, or find the reason
>> > > >
>> > > > On Tue, Oct 27, 2015 at 4:51 PM, Martin Grigorov <
>> mgrigo...@apache.org
>> > >
>> > > > wrote:
>> > > >
>> > > > > Maybe your application keeps a reference to ARH.
>> > > > > It shouldn't be serializable because it is per request.
>> > > > >
>> > > > > Martin Grigorov
>> > > > > Wicket Training and Consulting
>> > > > > https://twitter.com/mtgrigorov
>> > > > >
>> > > > > On Tue, Oct 27, 2015 at 12:47 PM, Maxim Solodovnik <
>> > > solomax...@gmail.com
>> > > > >
>> > > > > wrote:
>> > > > >
>> > > > > > It seems AjaxRequestHandler is not serializable, why is it being
>> > > > > serialized
>> > > > > > in DEVELOPMENT mode?
>> > > > > > will try to create quickstart for this
>> > > > > >
>> > > > > > On Tue, Oct 27, 2015 at 3:57 PM, Maxim Solodovnik <
>> > > > solomax...@gmail.com>
>> > > > > > wrote:
>> > > > > >
>> > > > > > > Surprisingly this error is caused by "Not serializable
>> > > > > > > component org.apache.wicket.ajax.AjaxRequestHandler$1@ef915bc3
>> "
>> > > > > > > not sure how to find what is wrong
>> > > > > > > The issue is not reproducible in DEPLOYMENT mode
>> > > > > > >
>> > > > > > >
>> > > > > > > On Tue, Oct 27, 2015 at 1:11 PM, Maxim Solodovnik <
>> > > > > solomax...@gmail.com>
>> > > > > > > wrote:
>> > > > > > >
>> > > > > > >> Works as expected using simple quickstart
>> > > > > > >> Will try to debug serialization process
>> > > > > > >>
>> > > > > > >> On Tue, Oct 27, 2015 at 9:42 AM, Maxim Solodovnik <
>> > > > > solomax...@gmail.com
>> > > > > > >
>> > > > > > >> wrote:
>> > > > > > >>
>> > > > > > >>> Hello,
>> > > > > > >>>
>> > > > > > >>> I'm getting weird NPE in wicket 7.1.0 debug bar, here is the
>> > > stack
>> > > > > > trace:
>> > > > > > >>>
>> > > > > > >>> java.lang.RuntimeException: An error occurred while getting
>> the
>> > > > model
>> > > > > > object for Component: [Component id = data, page =
>> > > > > > org.apache.openmeetings.web.pages.MainPage, path =
>> > > > > > 0:dev:content:contributors:3:contrib:link:data.Label, isVisible
>> =
>> > > true,
>> > > > > > isVersioned = true, markup = [markup =
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> jar:file:/home/solomax/work/openmeetings/branches/3.0.x/dist/red5/webapps/openmeetings/WEB-INF/lib/wicket-devutils-jar-7.1.0.jar!/org/apache/wicket/devutils/debugbar/StandardDebugPanel.html
>> > > > > > >>> <span wicket:id="data"></span>, index = 0, current =  '<span
>> > > > > > wicket:id="data">' (line 0, column 0)]]
>> > > > > > >>>      at
>> > > > > >
>> > > org.apache.wicket.Component.getDefaultModelObject(Component.java:1631)
>> > > > > > >>>      at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1654)
>> > > > > > >>>      at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.wicket.markup.html.basic.Label.onComponentTagBody(Label.java:115)
>> > > > > > >>>      at
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
>> > > > > > >>>
>> > > > > > >>>
>> > > > > > >>> full log: http://pastebin.com/u9N6Kbe0
>> > > > > > >>>
>> > > > > > >>> According to the debugger page is being serialized to the
>> null
>> > > byte
>> > > > > > array :(
>> > > > > > >>>
>> > > > > > >>> Would appreciate any help on investigating this
>> > > > > > >>>
>> > > > > > >>>
>> > > > > > >>> Sorry for the raising this too late, but I had no time to
>> test
>> > > RC2
>> > > > > for
>> > > > > > >>> 7.1.0 :(
>> > > > > > >>>
>> > > > > > >>>
>> > > > > > >>> --
>> > > > > > >>> WBR
>> > > > > > >>> Maxim aka solomax
>> > > > > > >>>
>> > > > > > >>
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> --
>> > > > > > >> WBR
>> > > > > > >> Maxim aka solomax
>> > > > > > >>
>> > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > > > --
>> > > > > > > WBR
>> > > > > > > Maxim aka solomax
>> > > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > --
>> > > > > > WBR
>> > > > > > Maxim aka solomax
>> > > > > >
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > WBR
>> > > > Maxim aka solomax
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>> >
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax

Reply via email to