Re: WebSockets questions

2012-12-16 Thread Maxim Solodovnik
Today I tried to use wicket-native* 0.5-SNAPSHOT and it seems not working
at all :(
onConnect method of WebSocketBehavior never get called :(
instead of this onEvent getting called but event.getPayload() is not
instance of WebSocketPayload but instance of AjaxRequestHandler

Chrome reporting
Unexpected response code: 200 :5080:1 http://178.49.78.163:5080/
WebSocket is closed before the connection is established.
Firefox:

Firefox can't establish a connection to the server at
ws://localhost:8080/?pageId=0.

self.ws = new WebSocket(url);

I notice package names were changed, maybe anything else need to be updated
as well?




On Sun, Dec 16, 2012 at 2:29 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 Hello Martin,

 Are there any plans to release wicket-native-websocket?


 On Wed, Dec 12, 2012 at 4:47 AM, Maxim Solodovnik solomax...@gmail.comwrote:

 Hello Martin,

 just have added the patch for this issue.
 can you please take a look it and probably accept? :)

 I would really appreciate it since this issue blocks me
 Thanks in advance


 On Sat, Dec 8, 2012 at 10:23 PM, Maxim Solodovnik 
 solomax...@gmail.comwrote:

 Hello Martin,

 Thanks for the quick reply
 The issue is created with quickstart attached:
 https://issues.apache.org/jira/browse/WICKET-4917


 On Fri, Dec 7, 2012 at 3:26 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Maxim,

 Please create a quickstart and attach it to a ticket in Jira.
 Try to expose as many problems as you can with it.


 On Thu, Dec 6, 2012 at 6:14 PM, Maxim Solodovnik solomax...@gmail.com
 wrote:

  Hello,
 
  I'm trying to add WebSocketBehavior to our project (Apache
 Openmeetings
  Incubating)
 
  Unfortunately my first attempts were unsuccessful :(
 
  Configuration:
  1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
  Tomcat/7.0.32 embedded)
  2) Sun JDK 1.7.09
  3) Ubuntu 12.10
  4) Wicket 6.3.0
  5) Google Chrome 24.0.1312.32 beta
  6) One page architecture with custom HomePageMapper
 
 
 https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java
 
  What I did:
  1) set org.apache.wicket.protocol.http.Tomcat7WebSocketFilter
  2) add new WebSocketBehavior() to the page
 
  Errors:
  1) if the page is accessed via
  http://localhost:5080/openmeetings/html/#admin/configs URL I get
 URL has
  fragment component
  ws://localhost:5080/openmeetings/html/#admin/configspageId=8 error
 
  2) if the page is accessed via
 http://localhost:5080/openmeetings/html/ I
  get
  java.lang.IllegalStateException: Request parameter 'pageId' is
 required!
  in the error log
 
  I believe error 1) above is bug, I'm I right?
  Maybe anybody can suggest how to handle error 2) ?
 
  I would really appreciate any help :)
 
  --
  WBR
  Maxim aka solomax
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.com/




 --
 WBR
 Maxim aka solomax




 --
 WBR
 Maxim aka solomax




 --
 WBR
 Maxim aka solomax




-- 
WBR
Maxim aka solomax


Re: WebSockets questions

2012-12-16 Thread Martin Grigorov
Hi Maxim,

Wicket 6.4.0 is being voted. If all is OK it will be released early next
week,

I've tested websockets with
https://github.com/martin-g/blogs/tree/master/wicket6-websocket-broadcast after
the class names' changes. All seems to be OK.
Make sure you have updated the name of the Filter class in your web.xml


On Sun, Dec 16, 2012 at 1:28 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 Today I tried to use wicket-native* 0.5-SNAPSHOT and it seems not working
 at all :(
 onConnect method of WebSocketBehavior never get called :(
 instead of this onEvent getting called but event.getPayload() is not
 instance of WebSocketPayload but instance of AjaxRequestHandler

 Chrome reporting
 Unexpected response code: 200 :5080:1 http://178.49.78.163:5080/
  WebSocket is closed before the connection is established.
 Firefox:

 Firefox can't establish a connection to the server at 
 ws://localhost:8080/?pageId=0.

 self.ws = new WebSocket(url);

 I notice package names were changed, maybe anything else need to be
 updated as well?




 On Sun, Dec 16, 2012 at 2:29 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 Hello Martin,

 Are there any plans to release wicket-native-websocket?


 On Wed, Dec 12, 2012 at 4:47 AM, Maxim Solodovnik 
 solomax...@gmail.comwrote:

 Hello Martin,

 just have added the patch for this issue.
 can you please take a look it and probably accept? :)

 I would really appreciate it since this issue blocks me
 Thanks in advance


 On Sat, Dec 8, 2012 at 10:23 PM, Maxim Solodovnik 
 solomax...@gmail.comwrote:

 Hello Martin,

 Thanks for the quick reply
 The issue is created with quickstart attached:
 https://issues.apache.org/jira/browse/WICKET-4917


 On Fri, Dec 7, 2012 at 3:26 PM, Martin Grigorov 
 mgrigo...@apache.orgwrote:

 Hi Maxim,

 Please create a quickstart and attach it to a ticket in Jira.
 Try to expose as many problems as you can with it.


 On Thu, Dec 6, 2012 at 6:14 PM, Maxim Solodovnik solomax...@gmail.com
 wrote:

  Hello,
 
  I'm trying to add WebSocketBehavior to our project (Apache
 Openmeetings
  Incubating)
 
  Unfortunately my first attempts were unsuccessful :(
 
  Configuration:
  1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
  Tomcat/7.0.32 embedded)
  2) Sun JDK 1.7.09
  3) Ubuntu 12.10
  4) Wicket 6.3.0
  5) Google Chrome 24.0.1312.32 beta
  6) One page architecture with custom HomePageMapper
 
 
 https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java
 
  What I did:
  1) set org.apache.wicket.protocol.http.Tomcat7WebSocketFilter
  2) add new WebSocketBehavior() to the page
 
  Errors:
  1) if the page is accessed via
  http://localhost:5080/openmeetings/html/#admin/configs URL I get
 URL has
  fragment component
  ws://localhost:5080/openmeetings/html/#admin/configspageId=8 error
 
  2) if the page is accessed via
 http://localhost:5080/openmeetings/html/ I
  get
  java.lang.IllegalStateException: Request parameter 'pageId' is
 required!
  in the error log
 
  I believe error 1) above is bug, I'm I right?
  Maybe anybody can suggest how to handle error 2) ?
 
  I would really appreciate any help :)
 
  --
  WBR
  Maxim aka solomax
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.com/




 --
 WBR
 Maxim aka solomax




 --
 WBR
 Maxim aka solomax




 --
 WBR
 Maxim aka solomax




 --
 WBR
 Maxim aka solomax




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: WebSockets questions

2012-12-16 Thread Maxim Solodovnik
Sorry for panic too early :)
It seems Websockets 0.5-SNAPSHOT can be used only with 6.4.0-SNAPSHOT and
not compatible with 6.3.0.



On Sun, Dec 16, 2012 at 6:38 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Maxim,

 Wicket 6.4.0 is being voted. If all is OK it will be released early next
 week,

 I've tested websockets with
 https://github.com/martin-g/blogs/tree/master/wicket6-websocket-broadcast 
 after
 the class names' changes. All seems to be OK.
 Make sure you have updated the name of the Filter class in your web.xml


 On Sun, Dec 16, 2012 at 1:28 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 Today I tried to use wicket-native* 0.5-SNAPSHOT and it seems not working
 at all :(
 onConnect method of WebSocketBehavior never get called :(
 instead of this onEvent getting called but event.getPayload() is not
 instance of WebSocketPayload but instance of AjaxRequestHandler

 Chrome reporting
 Unexpected response code: 200 :5080:1 http://178.49.78.163:5080/
  WebSocket is closed before the connection is established.
 Firefox:

 Firefox can't establish a connection to the server at 
 ws://localhost:8080/?pageId=0.


 self.ws = new WebSocket(url);

 I notice package names were changed, maybe anything else need to be
 updated as well?




 On Sun, Dec 16, 2012 at 2:29 PM, Maxim Solodovnik 
 solomax...@gmail.comwrote:

 Hello Martin,

 Are there any plans to release wicket-native-websocket?


 On Wed, Dec 12, 2012 at 4:47 AM, Maxim Solodovnik 
 solomax...@gmail.comwrote:

 Hello Martin,

 just have added the patch for this issue.
 can you please take a look it and probably accept? :)

 I would really appreciate it since this issue blocks me
 Thanks in advance


 On Sat, Dec 8, 2012 at 10:23 PM, Maxim Solodovnik solomax...@gmail.com
  wrote:

 Hello Martin,

 Thanks for the quick reply
 The issue is created with quickstart attached:
 https://issues.apache.org/jira/browse/WICKET-4917


 On Fri, Dec 7, 2012 at 3:26 PM, Martin Grigorov 
 mgrigo...@apache.orgwrote:

 Hi Maxim,

 Please create a quickstart and attach it to a ticket in Jira.
 Try to expose as many problems as you can with it.


 On Thu, Dec 6, 2012 at 6:14 PM, Maxim Solodovnik 
 solomax...@gmail.comwrote:

  Hello,
 
  I'm trying to add WebSocketBehavior to our project (Apache
 Openmeetings
  Incubating)
 
  Unfortunately my first attempts were unsuccessful :(
 
  Configuration:
  1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
  Tomcat/7.0.32 embedded)
  2) Sun JDK 1.7.09
  3) Ubuntu 12.10
  4) Wicket 6.3.0
  5) Google Chrome 24.0.1312.32 beta
  6) One page architecture with custom HomePageMapper
 
 
 https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java
 
  What I did:
  1) set org.apache.wicket.protocol.http.Tomcat7WebSocketFilter
  2) add new WebSocketBehavior() to the page
 
  Errors:
  1) if the page is accessed via
  http://localhost:5080/openmeetings/html/#admin/configs URL I get
 URL has
  fragment component
  ws://localhost:5080/openmeetings/html/#admin/configspageId=8 error
 
  2) if the page is accessed via
 http://localhost:5080/openmeetings/html/ I
  get
  java.lang.IllegalStateException: Request parameter 'pageId' is
 required!
  in the error log
 
  I believe error 1) above is bug, I'm I right?
  Maybe anybody can suggest how to handle error 2) ?
 
  I would really appreciate any help :)
 
  --
  WBR
  Maxim aka solomax
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.com/




 --
 WBR
 Maxim aka solomax




 --
 WBR
 Maxim aka solomax




 --
 WBR
 Maxim aka solomax




 --
 WBR
 Maxim aka solomax




 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.com/




-- 
WBR
Maxim aka solomax


Re: WebSockets questions

2012-12-15 Thread Maxim Solodovnik
Hello Martin,

Are there any plans to release wicket-native-websocket?


On Wed, Dec 12, 2012 at 4:47 AM, Maxim Solodovnik solomax...@gmail.comwrote:

 Hello Martin,

 just have added the patch for this issue.
 can you please take a look it and probably accept? :)

 I would really appreciate it since this issue blocks me
 Thanks in advance


 On Sat, Dec 8, 2012 at 10:23 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 Hello Martin,

 Thanks for the quick reply
 The issue is created with quickstart attached:
 https://issues.apache.org/jira/browse/WICKET-4917


 On Fri, Dec 7, 2012 at 3:26 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Maxim,

 Please create a quickstart and attach it to a ticket in Jira.
 Try to expose as many problems as you can with it.


 On Thu, Dec 6, 2012 at 6:14 PM, Maxim Solodovnik solomax...@gmail.com
 wrote:

  Hello,
 
  I'm trying to add WebSocketBehavior to our project (Apache Openmeetings
  Incubating)
 
  Unfortunately my first attempts were unsuccessful :(
 
  Configuration:
  1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
  Tomcat/7.0.32 embedded)
  2) Sun JDK 1.7.09
  3) Ubuntu 12.10
  4) Wicket 6.3.0
  5) Google Chrome 24.0.1312.32 beta
  6) One page architecture with custom HomePageMapper
 
 
 https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java
 
  What I did:
  1) set org.apache.wicket.protocol.http.Tomcat7WebSocketFilter
  2) add new WebSocketBehavior() to the page
 
  Errors:
  1) if the page is accessed via
  http://localhost:5080/openmeetings/html/#admin/configs URL I get URL
 has
  fragment component
  ws://localhost:5080/openmeetings/html/#admin/configspageId=8 error
 
  2) if the page is accessed via
 http://localhost:5080/openmeetings/html/ I
  get
  java.lang.IllegalStateException: Request parameter 'pageId' is
 required!
  in the error log
 
  I believe error 1) above is bug, I'm I right?
  Maybe anybody can suggest how to handle error 2) ?
 
  I would really appreciate any help :)
 
  --
  WBR
  Maxim aka solomax
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.com/




 --
 WBR
 Maxim aka solomax




 --
 WBR
 Maxim aka solomax




-- 
WBR
Maxim aka solomax


Re: WebSockets questions

2012-12-11 Thread Maxim Solodovnik
Hello Martin,

just have added the patch for this issue.
can you please take a look it and probably accept? :)

I would really appreciate it since this issue blocks me
Thanks in advance

On Sat, Dec 8, 2012 at 10:23 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 Hello Martin,

 Thanks for the quick reply
 The issue is created with quickstart attached:
 https://issues.apache.org/jira/browse/WICKET-4917


 On Fri, Dec 7, 2012 at 3:26 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Maxim,

 Please create a quickstart and attach it to a ticket in Jira.
 Try to expose as many problems as you can with it.


 On Thu, Dec 6, 2012 at 6:14 PM, Maxim Solodovnik solomax...@gmail.com
 wrote:

  Hello,
 
  I'm trying to add WebSocketBehavior to our project (Apache Openmeetings
  Incubating)
 
  Unfortunately my first attempts were unsuccessful :(
 
  Configuration:
  1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
  Tomcat/7.0.32 embedded)
  2) Sun JDK 1.7.09
  3) Ubuntu 12.10
  4) Wicket 6.3.0
  5) Google Chrome 24.0.1312.32 beta
  6) One page architecture with custom HomePageMapper
 
 
 https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java
 
  What I did:
  1) set org.apache.wicket.protocol.http.Tomcat7WebSocketFilter
  2) add new WebSocketBehavior() to the page
 
  Errors:
  1) if the page is accessed via
  http://localhost:5080/openmeetings/html/#admin/configs URL I get URL
 has
  fragment component
  ws://localhost:5080/openmeetings/html/#admin/configspageId=8 error
 
  2) if the page is accessed via http://localhost:5080/openmeetings/html/I
  get
  java.lang.IllegalStateException: Request parameter 'pageId' is required!
  in the error log
 
  I believe error 1) above is bug, I'm I right?
  Maybe anybody can suggest how to handle error 2) ?
 
  I would really appreciate any help :)
 
  --
  WBR
  Maxim aka solomax
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.com/




 --
 WBR
 Maxim aka solomax




-- 
WBR
Maxim aka solomax


Re: WebSockets questions

2012-12-08 Thread Maxim Solodovnik
Hello Martin,

Thanks for the quick reply
The issue is created with quickstart attached:
https://issues.apache.org/jira/browse/WICKET-4917


On Fri, Dec 7, 2012 at 3:26 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Maxim,

 Please create a quickstart and attach it to a ticket in Jira.
 Try to expose as many problems as you can with it.


 On Thu, Dec 6, 2012 at 6:14 PM, Maxim Solodovnik solomax...@gmail.com
 wrote:

  Hello,
 
  I'm trying to add WebSocketBehavior to our project (Apache Openmeetings
  Incubating)
 
  Unfortunately my first attempts were unsuccessful :(
 
  Configuration:
  1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
  Tomcat/7.0.32 embedded)
  2) Sun JDK 1.7.09
  3) Ubuntu 12.10
  4) Wicket 6.3.0
  5) Google Chrome 24.0.1312.32 beta
  6) One page architecture with custom HomePageMapper
 
 
 https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java
 
  What I did:
  1) set org.apache.wicket.protocol.http.Tomcat7WebSocketFilter
  2) add new WebSocketBehavior() to the page
 
  Errors:
  1) if the page is accessed via
  http://localhost:5080/openmeetings/html/#admin/configs URL I get URL
 has
  fragment component
  ws://localhost:5080/openmeetings/html/#admin/configspageId=8 error
 
  2) if the page is accessed via http://localhost:5080/openmeetings/html/I
  get
  java.lang.IllegalStateException: Request parameter 'pageId' is required!
  in the error log
 
  I believe error 1) above is bug, I'm I right?
  Maybe anybody can suggest how to handle error 2) ?
 
  I would really appreciate any help :)
 
  --
  WBR
  Maxim aka solomax
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.com/




-- 
WBR
Maxim aka solomax


Re: WebSockets questions

2012-12-07 Thread Martin Grigorov
Hi Maxim,

Please create a quickstart and attach it to a ticket in Jira.
Try to expose as many problems as you can with it.


On Thu, Dec 6, 2012 at 6:14 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 Hello,

 I'm trying to add WebSocketBehavior to our project (Apache Openmeetings
 Incubating)

 Unfortunately my first attempts were unsuccessful :(

 Configuration:
 1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
 Tomcat/7.0.32 embedded)
 2) Sun JDK 1.7.09
 3) Ubuntu 12.10
 4) Wicket 6.3.0
 5) Google Chrome 24.0.1312.32 beta
 6) One page architecture with custom HomePageMapper

 https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java

 What I did:
 1) set org.apache.wicket.protocol.http.Tomcat7WebSocketFilter
 2) add new WebSocketBehavior() to the page

 Errors:
 1) if the page is accessed via
 http://localhost:5080/openmeetings/html/#admin/configs URL I get URL has
 fragment component
 ws://localhost:5080/openmeetings/html/#admin/configspageId=8 error

 2) if the page is accessed via http://localhost:5080/openmeetings/html/ I
 get
 java.lang.IllegalStateException: Request parameter 'pageId' is required!
 in the error log

 I believe error 1) above is bug, I'm I right?
 Maybe anybody can suggest how to handle error 2) ?

 I would really appreciate any help :)

 --
 WBR
 Maxim aka solomax




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


WebSockets questions

2012-12-06 Thread Maxim Solodovnik
Hello,

I'm trying to add WebSocketBehavior to our project (Apache Openmeetings
Incubating)

Unfortunately my first attempts were unsuccessful :(

Configuration:
1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
Tomcat/7.0.32 embedded)
2) Sun JDK 1.7.09
3) Ubuntu 12.10
4) Wicket 6.3.0
5) Google Chrome 24.0.1312.32 beta
6) One page architecture with custom HomePageMapper
https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java

What I did:
1) set org.apache.wicket.protocol.http.Tomcat7WebSocketFilter
2) add new WebSocketBehavior() to the page

Errors:
1) if the page is accessed via
http://localhost:5080/openmeetings/html/#admin/configs URL I get URL has
fragment component
ws://localhost:5080/openmeetings/html/#admin/configspageId=8 error

2) if the page is accessed via http://localhost:5080/openmeetings/html/ I
get
java.lang.IllegalStateException: Request parameter 'pageId' is required!
in the error log

I believe error 1) above is bug, I'm I right?
Maybe anybody can suggest how to handle error 2) ?

I would really appreciate any help :)

-- 
WBR
Maxim aka solomax