Re: NPE in constructor of AbstractWebSocketProcessor

2017-01-31 Thread Martin Grigorov
Just tried it with Wicket 8.x Examples on Tomcat 8.5.11 and Jetty 9.4.0 and
 - works as expected.
Please let me know if you find a way to reproduce it with the examples or a
quickstart!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Jan 31, 2017 at 4:14 PM, Martin Grigorov 
wrote:

>
> On Tue, Jan 31, 2017 at 4:10 PM, Maxim Solodovnik 
> wrote:
>
>> Also reproducible using FF on Ubuntu 16.10 ...
>> Unfortunately it is not reproducible using simpler config :(
>> I would appreciate any workaround due to issue is critical for our project
>>
>
> When the user reloads the page the old WebSocket connection is closed and
> a new one is created.
> request.getSession(true) should never return null, because even if there
> is no HttpSession the parameter says that a new one should be created.
> Try with Tomcat 8.5.11.
> I'll try to reproduce it later today.
>
>
>>
>> On Tue, Jan 31, 2017 at 3:09 PM, Maxim Solodovnik 
>> wrote:
>> > Thanks a lot Martin,
>> >
>> > I can send the stacktrace if it will help ...
>> > Will try to find reproducible easy steps ...
>> >
>> > On Tue, Jan 31, 2017 at 2:52 PM, Martin Grigorov 
>> wrote:
>> >> Hi Maxim,
>> >>
>> >> I'll try to reproduce it.
>> >>
>> >> Martin Grigorov
>> >> Wicket Training and Consulting
>> >> https://twitter.com/mtgrigorov
>> >>
>> >> On Mon, Jan 30, 2017 at 6:16 PM, Maxim Solodovnik <
>> solomax...@gmail.com>
>> >> wrote:
>> >>
>> >>> Forgot versions:
>> >>>
>> >>> Tomcat 8.5.9
>> >>> Wicket 7.6.0
>> >>> Chrome latest
>> >>> Ubuntu 16.10 latest
>> >>>
>> >>>
>> >>> On Tue, Jan 31, 2017 at 12:06 AM, Maxim Solodovnik <
>> solomax...@gmail.com>
>> >>> wrote:
>> >>> > Hello All,
>> >>> >
>> >>> > I'm observing weird behavior:
>> >>> > I'm displaying wicket page in iframe
>> >>> > For some unknown reason I'm getting NPE in [1] if page is being
>> >>> > reloaded both F5 and Shift+F5
>> >>> > Every second time I got NPE
>> >>> >
>> >>> > The method is being called from [2], every second time
>> >>> > (HttpSession) userProperties.get("session") == NULL
>> >>> >
>> >>> > maybe you know what can be done here?
>> >>> >
>> >>> > [1] https://github.com/apache/wicket/blob/wicket-7.x/wicket-
>> >>> native-websocket/wicket-native-websocket-core/src/
>> >>> main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocke
>> tProcessor.
>> >>> java#L104
>> >>> > [2] https://github.com/apache/wicket/blob/wicket-7.x/wicket-
>> >>> native-websocket/wicket-native-websocket-javax/src/
>> >>> main/java/org/apache/wicket/protocol/ws/javax/
>> >>> JavaxUpgradeHttpRequest.java#L74
>> >>> >
>> >>> > --
>> >>> > WBR
>> >>> > Maxim aka solomax
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> WBR
>> >>> Maxim aka solomax
>> >>>
>> >>> -
>> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >>> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>>
>> >>>
>> >
>> >
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: NPE in constructor of AbstractWebSocketProcessor

2017-01-31 Thread Martin Grigorov
On Tue, Jan 31, 2017 at 4:10 PM, Maxim Solodovnik 
wrote:

> Also reproducible using FF on Ubuntu 16.10 ...
> Unfortunately it is not reproducible using simpler config :(
> I would appreciate any workaround due to issue is critical for our project
>

When the user reloads the page the old WebSocket connection is closed and a
new one is created.
request.getSession(true) should never return null, because even if there is
no HttpSession the parameter says that a new one should be created.
Try with Tomcat 8.5.11.
I'll try to reproduce it later today.


>
> On Tue, Jan 31, 2017 at 3:09 PM, Maxim Solodovnik 
> wrote:
> > Thanks a lot Martin,
> >
> > I can send the stacktrace if it will help ...
> > Will try to find reproducible easy steps ...
> >
> > On Tue, Jan 31, 2017 at 2:52 PM, Martin Grigorov 
> wrote:
> >> Hi Maxim,
> >>
> >> I'll try to reproduce it.
> >>
> >> Martin Grigorov
> >> Wicket Training and Consulting
> >> https://twitter.com/mtgrigorov
> >>
> >> On Mon, Jan 30, 2017 at 6:16 PM, Maxim Solodovnik  >
> >> wrote:
> >>
> >>> Forgot versions:
> >>>
> >>> Tomcat 8.5.9
> >>> Wicket 7.6.0
> >>> Chrome latest
> >>> Ubuntu 16.10 latest
> >>>
> >>>
> >>> On Tue, Jan 31, 2017 at 12:06 AM, Maxim Solodovnik <
> solomax...@gmail.com>
> >>> wrote:
> >>> > Hello All,
> >>> >
> >>> > I'm observing weird behavior:
> >>> > I'm displaying wicket page in iframe
> >>> > For some unknown reason I'm getting NPE in [1] if page is being
> >>> > reloaded both F5 and Shift+F5
> >>> > Every second time I got NPE
> >>> >
> >>> > The method is being called from [2], every second time
> >>> > (HttpSession) userProperties.get("session") == NULL
> >>> >
> >>> > maybe you know what can be done here?
> >>> >
> >>> > [1] https://github.com/apache/wicket/blob/wicket-7.x/wicket-
> >>> native-websocket/wicket-native-websocket-core/src/
> >>> main/java/org/apache/wicket/protocol/ws/api/
> AbstractWebSocketProcessor.
> >>> java#L104
> >>> > [2] https://github.com/apache/wicket/blob/wicket-7.x/wicket-
> >>> native-websocket/wicket-native-websocket-javax/src/
> >>> main/java/org/apache/wicket/protocol/ws/javax/
> >>> JavaxUpgradeHttpRequest.java#L74
> >>> >
> >>> > --
> >>> > WBR
> >>> > Maxim aka solomax
> >>>
> >>>
> >>>
> >>> --
> >>> WBR
> >>> Maxim aka solomax
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>>
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
>
>
>
> --
> WBR
> Maxim aka solomax
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: NPE in constructor of AbstractWebSocketProcessor

2017-01-31 Thread Maxim Solodovnik
Also reproducible using FF on Ubuntu 16.10 ...
Unfortunately it is not reproducible using simpler config :(
I would appreciate any workaround due to issue is critical for our project

On Tue, Jan 31, 2017 at 3:09 PM, Maxim Solodovnik  wrote:
> Thanks a lot Martin,
>
> I can send the stacktrace if it will help ...
> Will try to find reproducible easy steps ...
>
> On Tue, Jan 31, 2017 at 2:52 PM, Martin Grigorov  wrote:
>> Hi Maxim,
>>
>> I'll try to reproduce it.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Mon, Jan 30, 2017 at 6:16 PM, Maxim Solodovnik 
>> wrote:
>>
>>> Forgot versions:
>>>
>>> Tomcat 8.5.9
>>> Wicket 7.6.0
>>> Chrome latest
>>> Ubuntu 16.10 latest
>>>
>>>
>>> On Tue, Jan 31, 2017 at 12:06 AM, Maxim Solodovnik 
>>> wrote:
>>> > Hello All,
>>> >
>>> > I'm observing weird behavior:
>>> > I'm displaying wicket page in iframe
>>> > For some unknown reason I'm getting NPE in [1] if page is being
>>> > reloaded both F5 and Shift+F5
>>> > Every second time I got NPE
>>> >
>>> > The method is being called from [2], every second time
>>> > (HttpSession) userProperties.get("session") == NULL
>>> >
>>> > maybe you know what can be done here?
>>> >
>>> > [1] https://github.com/apache/wicket/blob/wicket-7.x/wicket-
>>> native-websocket/wicket-native-websocket-core/src/
>>> main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.
>>> java#L104
>>> > [2] https://github.com/apache/wicket/blob/wicket-7.x/wicket-
>>> native-websocket/wicket-native-websocket-javax/src/
>>> main/java/org/apache/wicket/protocol/ws/javax/
>>> JavaxUpgradeHttpRequest.java#L74
>>> >
>>> > --
>>> > WBR
>>> > Maxim aka solomax
>>>
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>
>
>
> --
> WBR
> Maxim aka solomax



-- 
WBR
Maxim aka solomax

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 7 guide - PDF still available?

2017-01-31 Thread Jan Lühr
Hello,

and fup2: https://issues.apache.org/jira/browse/WICKET-6314 for the
pom-dependeny-issue.

Greetz, jan

Am 01/30/2017 um 05:50 PM schrieb Jan Lühr:
> Hello,
> 
> Am 01/30/2017 um 04:16 PM schrieb Martin Grigorov:
>> On Mon, Jan 30, 2017 at 2:27 PM, Martin Grigorov 
>> wrote:
> 
> well... using 7.5 - since 7.6 has a reference issue, the profile does
> not exist.
> 
> Do you have any ideas?
> 
> Thanks,
> Jan
> 
> $ mvn install -Pguide -Dmaven.test.skip=true
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO]
> 
> [INFO] Building quickstart 1.0-SNAPSHOT
> [INFO]
> 
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
> myproject ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 1 resource
> [INFO] Copying 1 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
> myproject ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:testResources
> (default-testResources) @ myproject ---
> [INFO] Not copying test resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
> myproject ---
> [INFO] Not compiling test sources
> [INFO]
> [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ myproject ---
> [INFO] Tests are skipped.
> [INFO]
> [INFO] --- maven-war-plugin:2.2:war (default-war) @ myproject ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [myproject] in
> [/tmp/myproject/target/myproject-1.0-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp resources [/tmp/myproject/src/main/webapp]
> [INFO] Webapp assembled in [48 msecs]
> [INFO] Building war: /tmp/myproject/target/myproject-1.0-SNAPSHOT.war
> [INFO] WEB-INF/web.xml already added, skipping
> [INFO]
> [INFO] --- maven-install-plugin:2.4:install (default-install) @
> myproject ---
> [INFO] Installing /tmp/myproject/target/myproject-1.0-SNAPSHOT.war to
> /home/jan/.m2/repository/com/mycompany/myproject/1.0-SNAPSHOT/myproject-1.0-SNAPSHOT.war
> [INFO] Installing /tmp/myproject/pom.xml to
> /home/jan/.m2/repository/com/mycompany/myproject/1.0-SNAPSHOT/myproject-1.0-SNAPSHOT.pom
> [INFO]
> 
> [INFO] BUILD SUCCESS
> [INFO]
> 
> [INFO] Total time: 1.367s
> [INFO] Finished at: Mon Jan 30 17:49:00 CET 2017
> [INFO] Final Memory: 12M/145M
> [INFO]
> 
> [WARNING] The requested profile "guide" could not be activated because
> it does not exist.
> 
> 

-- 
There's a ripped off cord
To my TV screen
With a note saying:
"Im not afraid to dream"
-- Donkey Boy, Crazy Something Normal

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 7 guide - PDF still available?

2017-01-31 Thread Andrea Del Bene

Thank you. It's really strange the behavior for 7.x branch CI :-/


On 31/01/2017 11:04, Jan Lühr wrote:

Hello,


Am 01/30/2017 um 06:09 PM schrieb Jan Lühr:

Hello,


Am 01/30/2017 um 05:50 PM schrieb Jan Lühr:

Hello,

Am 01/30/2017 um 04:16 PM schrieb Martin Grigorov:

On Mon, Jan 30, 2017 at 2:27 PM, Martin Grigorov 
wrote:

Sorry - my mistake. It exists in the source-code, only.
btw. some images cannot be embedded. There are errors like:

asciidoctor: WARNING: could not embed image:
/tmp/wicket/wicket-user-guide/src/main/asciidoc/img/inmethod-grid2.png;
PNG uses unsupported interlace method

fup2 https://issues.apache.org/jira/browse/WICKET-6313 - I created a
ticket illustrating the issues.

Greetz, Jan




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 7 guide - PDF still available?

2017-01-31 Thread Jan Lühr
Hello,


Am 01/30/2017 um 06:09 PM schrieb Jan Lühr:
> Hello,
> 
> 
> Am 01/30/2017 um 05:50 PM schrieb Jan Lühr:
>> Hello,
>>
>> Am 01/30/2017 um 04:16 PM schrieb Martin Grigorov:
>>> On Mon, Jan 30, 2017 at 2:27 PM, Martin Grigorov 
>>> wrote:
> 
> Sorry - my mistake. It exists in the source-code, only.
> btw. some images cannot be embedded. There are errors like:
> 
> asciidoctor: WARNING: could not embed image:
> /tmp/wicket/wicket-user-guide/src/main/asciidoc/img/inmethod-grid2.png;
> PNG uses unsupported interlace method

fup2 https://issues.apache.org/jira/browse/WICKET-6313 - I created a
ticket illustrating the issues.

Greetz, Jan

-- 
There's a ripped off cord
To my TV screen
With a note saying:
"Im not afraid to dream"
-- Donkey Boy, Crazy Something Normal

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: NPE in constructor of AbstractWebSocketProcessor

2017-01-31 Thread Maxim Solodovnik
Thanks a lot Martin,

I can send the stacktrace if it will help ...
Will try to find reproducible easy steps ...

On Tue, Jan 31, 2017 at 2:52 PM, Martin Grigorov  wrote:
> Hi Maxim,
>
> I'll try to reproduce it.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Jan 30, 2017 at 6:16 PM, Maxim Solodovnik 
> wrote:
>
>> Forgot versions:
>>
>> Tomcat 8.5.9
>> Wicket 7.6.0
>> Chrome latest
>> Ubuntu 16.10 latest
>>
>>
>> On Tue, Jan 31, 2017 at 12:06 AM, Maxim Solodovnik 
>> wrote:
>> > Hello All,
>> >
>> > I'm observing weird behavior:
>> > I'm displaying wicket page in iframe
>> > For some unknown reason I'm getting NPE in [1] if page is being
>> > reloaded both F5 and Shift+F5
>> > Every second time I got NPE
>> >
>> > The method is being called from [2], every second time
>> > (HttpSession) userProperties.get("session") == NULL
>> >
>> > maybe you know what can be done here?
>> >
>> > [1] https://github.com/apache/wicket/blob/wicket-7.x/wicket-
>> native-websocket/wicket-native-websocket-core/src/
>> main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.
>> java#L104
>> > [2] https://github.com/apache/wicket/blob/wicket-7.x/wicket-
>> native-websocket/wicket-native-websocket-javax/src/
>> main/java/org/apache/wicket/protocol/ws/javax/
>> JavaxUpgradeHttpRequest.java#L74
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>



-- 
WBR
Maxim aka solomax

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org