You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by "Jeff Mesnil (JIRA)" <ji...@apache.org> on 2012/07/08 18:13:33 UTC
[jira] [Created] (APLO-220) Websocket example is not working
Jeff Mesnil created APLO-220:
--------------------------------
Summary: Websocket example is not working
Key: APLO-220
URL: https://issues.apache.org/jira/browse/APLO-220
Project: ActiveMQ Apollo
Issue Type: Bug
Affects Versions: 1.3
Environment: mac os x
tested on safari Version 5.1.7 (7534.57.2)
and chrome Version 20.0.1132.47 beta
Reporter: Jeff Mesnil
the websocket example from Apollo 1.3 is not working.
I created a broker and opened the examples/websocket/ example.
On the web browser , the debug log displays:
Opening Web Socket...
Web Socket Opened...
>>> CONNECT
login:admin
passcode:password
Whoops! Lost connection to ws://localhost:61623
Looking at apollo console, I see that a NPE occured:
WARN | java.lang.NullPointerException
but there is not a lot more information in the apollo.log:
2012-07-08 18:03:09,437 | WARN | java.lang.NullPointerException | org.apache.activemq.apollo.broker.Broker | hawtdispatch-DEFAULT-1
fwiw, last time I checked apollo when I was working on stomp-websocket (for APLO-199), the example was running fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (APLO-220) Websocket example is not working
Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/APLO-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hiram Chirino resolved APLO-220.
--------------------------------
Resolution: Fixed
Assignee: Hiram Chirino
Issue was resolved in the 1.4 release.
> Websocket example is not working
> --------------------------------
>
> Key: APLO-220
> URL: https://issues.apache.org/jira/browse/APLO-220
> Project: ActiveMQ Apollo
> Issue Type: Bug
> Components: apollo-stomp
> Affects Versions: 1.3
> Environment: mac os x
> tested on safari Version 5.1.7 (7534.57.2)
> and chrome Version 20.0.1132.47 beta
> Reporter: Jeff Mesnil
> Assignee: Hiram Chirino
> Fix For: 1.4
>
>
> the websocket example from Apollo 1.3 is not working.
> I created a broker and opened the examples/websocket/ example.
> On the web browser , the debug log displays:
> Opening Web Socket...
> Web Socket Opened...
> >>> CONNECT
> login:admin
> passcode:password
> Whoops! Lost connection to ws://localhost:61623
> Looking at apollo console, I see that a NPE occured:
> WARN | java.lang.NullPointerException
> but there is not a lot more information in the apollo.log:
> 2012-07-08 18:03:09,437 | WARN | java.lang.NullPointerException | org.apache.activemq.apollo.broker.Broker | hawtdispatch-DEFAULT-1
> fwiw, last time I checked apollo when I was working on stomp-websocket (for APLO-199), the example was running fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (APLO-220) Websocket example is not working
Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/APLO-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hiram Chirino updated APLO-220:
-------------------------------
Component/s: apollo-stomp
Fix Version/s: 1.4
> Websocket example is not working
> --------------------------------
>
> Key: APLO-220
> URL: https://issues.apache.org/jira/browse/APLO-220
> Project: ActiveMQ Apollo
> Issue Type: Bug
> Components: apollo-stomp
> Affects Versions: 1.3
> Environment: mac os x
> tested on safari Version 5.1.7 (7534.57.2)
> and chrome Version 20.0.1132.47 beta
> Reporter: Jeff Mesnil
> Fix For: 1.4
>
>
> the websocket example from Apollo 1.3 is not working.
> I created a broker and opened the examples/websocket/ example.
> On the web browser , the debug log displays:
> Opening Web Socket...
> Web Socket Opened...
> >>> CONNECT
> login:admin
> passcode:password
> Whoops! Lost connection to ws://localhost:61623
> Looking at apollo console, I see that a NPE occured:
> WARN | java.lang.NullPointerException
> but there is not a lot more information in the apollo.log:
> 2012-07-08 18:03:09,437 | WARN | java.lang.NullPointerException | org.apache.activemq.apollo.broker.Broker | hawtdispatch-DEFAULT-1
> fwiw, last time I checked apollo when I was working on stomp-websocket (for APLO-199), the example was running fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (APLO-220) Websocket example is not working
Posted by "Christian Posta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/APLO-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413062#comment-13413062 ]
Christian Posta commented on APLO-220:
--------------------------------------
This has been fixed in the trunk with revision 1337180:
WebSocketTransport.setProtocolCodec:
def setProtocolCodec(protocolCodec: ProtocolCodec) = {
this.protocolCodec = protocolCodec
if( this.protocolCodec!=null ) {
this.protocolCodec.setReadableByteChannel(this)
this.protocolCodec.setWritableByteChannel(this)
this.protocolCodec match {
case protocolCodec:TransportAware => protocolCodec.setTransport(this);
case _ =>
}
}
}
> Websocket example is not working
> --------------------------------
>
> Key: APLO-220
> URL: https://issues.apache.org/jira/browse/APLO-220
> Project: ActiveMQ Apollo
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: mac os x
> tested on safari Version 5.1.7 (7534.57.2)
> and chrome Version 20.0.1132.47 beta
> Reporter: Jeff Mesnil
>
> the websocket example from Apollo 1.3 is not working.
> I created a broker and opened the examples/websocket/ example.
> On the web browser , the debug log displays:
> Opening Web Socket...
> Web Socket Opened...
> >>> CONNECT
> login:admin
> passcode:password
> Whoops! Lost connection to ws://localhost:61623
> Looking at apollo console, I see that a NPE occured:
> WARN | java.lang.NullPointerException
> but there is not a lot more information in the apollo.log:
> 2012-07-08 18:03:09,437 | WARN | java.lang.NullPointerException | org.apache.activemq.apollo.broker.Broker | hawtdispatch-DEFAULT-1
> fwiw, last time I checked apollo when I was working on stomp-websocket (for APLO-199), the example was running fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (APLO-220) Websocket example is not working
Posted by "Christian Posta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/APLO-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424802#comment-13424802 ]
Christian Posta commented on APLO-220:
--------------------------------------
Jeff, can you test the latest builds to verify this is indeed fixed?
> Websocket example is not working
> --------------------------------
>
> Key: APLO-220
> URL: https://issues.apache.org/jira/browse/APLO-220
> Project: ActiveMQ Apollo
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: mac os x
> tested on safari Version 5.1.7 (7534.57.2)
> and chrome Version 20.0.1132.47 beta
> Reporter: Jeff Mesnil
>
> the websocket example from Apollo 1.3 is not working.
> I created a broker and opened the examples/websocket/ example.
> On the web browser , the debug log displays:
> Opening Web Socket...
> Web Socket Opened...
> >>> CONNECT
> login:admin
> passcode:password
> Whoops! Lost connection to ws://localhost:61623
> Looking at apollo console, I see that a NPE occured:
> WARN | java.lang.NullPointerException
> but there is not a lot more information in the apollo.log:
> 2012-07-08 18:03:09,437 | WARN | java.lang.NullPointerException | org.apache.activemq.apollo.broker.Broker | hawtdispatch-DEFAULT-1
> fwiw, last time I checked apollo when I was working on stomp-websocket (for APLO-199), the example was running fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (APLO-220) Websocket example is not working
Posted by "Jeff Mesnil (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/APLO-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425596#comment-13425596 ]
Jeff Mesnil commented on APLO-220:
----------------------------------
I have checked that the issue is fixed (in 20120731.032506 snapshot build).
I let you resolve and close the issue.
Thanks christian!
> Websocket example is not working
> --------------------------------
>
> Key: APLO-220
> URL: https://issues.apache.org/jira/browse/APLO-220
> Project: ActiveMQ Apollo
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: mac os x
> tested on safari Version 5.1.7 (7534.57.2)
> and chrome Version 20.0.1132.47 beta
> Reporter: Jeff Mesnil
>
> the websocket example from Apollo 1.3 is not working.
> I created a broker and opened the examples/websocket/ example.
> On the web browser , the debug log displays:
> Opening Web Socket...
> Web Socket Opened...
> >>> CONNECT
> login:admin
> passcode:password
> Whoops! Lost connection to ws://localhost:61623
> Looking at apollo console, I see that a NPE occured:
> WARN | java.lang.NullPointerException
> but there is not a lot more information in the apollo.log:
> 2012-07-08 18:03:09,437 | WARN | java.lang.NullPointerException | org.apache.activemq.apollo.broker.Broker | hawtdispatch-DEFAULT-1
> fwiw, last time I checked apollo when I was working on stomp-websocket (for APLO-199), the example was running fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (APLO-220) Websocket example is not working
Posted by "Christian Posta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/APLO-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413001#comment-13413001 ]
Christian Posta commented on APLO-220:
--------------------------------------
With DEBUG enabled, I see this stack trace... looking into it...
2012-07-12 13:45:59,520 | WARN | java.lang.NullPointerException | org.apache.activemq.apollo.broker.Broker | hawtdispatch-DEFAULT-2
2012-07-12 13:45:59,520 | DEBUG | java.lang.NullPointerException | org.apache.activemq.apollo.broker.Broker | hawtdispatch-DEFAULT-2
java.lang.NullPointerException
at org.apache.activemq.apollo.broker.protocol.AnyProtocolCodec$$anonfun$read$1.apply(AnyProtocol.scala:115)
at org.apache.activemq.apollo.broker.protocol.AnyProtocolCodec$$anonfun$read$1.apply(AnyProtocol.scala:112)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:34)
at scala.collection.mutable.ArrayOps.foreach(ArrayOps.scala:38)
at org.apache.activemq.apollo.broker.protocol.AnyProtocolCodec.read(AnyProtocol.scala:112)
at org.apache.activemq.apollo.broker.jetty.WebSocketTransportFactory$WebSocketTransport.drain_inbound(WebSocketTransportFactory.scala:395)
at org.apache.activemq.apollo.broker.jetty.WebSocketTransportFactory$WebSocketTransport$$anonfun$onMessage$1.apply$mcV$sp(WebSocketTransportFactory.scala:326)
at org.fusesource.hawtdispatch.package$$anon$3.run(hawtdispatch.scala:357)
at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:96)
at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:96)
at org.fusesource.hawtdispatch.internal.pool.SimpleThread.run(SimpleThread.java:77)
2012-07-12 13:46:02,962 | DEBUG | close SCEP@42145315{l(/0:0:0:0:0:0:0:1%0:57909)<->r(/0:0:0:0:0:0:0:1%0:61623),d=false,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}-{WebSocketServletConnectionD00@1c341b90} | org.eclipse.jetty.io.nio.ChannelEndPoint | Apollo Task
2012-07-12 13:46:02,962 | DEBUG | destroyEndPoint SCEP@42145315{l(null)<->r(/0:0:0:0:0:0:0:1%0:61623),d=false,open=false,ishut=true,oshut=true,rb=false,wb=false,w=true,i=1!}-{WebSocketServletConnectionD00@1c341b90} | org.eclipse.jetty.io.nio | Apollo Task Selector0
> Websocket example is not working
> --------------------------------
>
> Key: APLO-220
> URL: https://issues.apache.org/jira/browse/APLO-220
> Project: ActiveMQ Apollo
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: mac os x
> tested on safari Version 5.1.7 (7534.57.2)
> and chrome Version 20.0.1132.47 beta
> Reporter: Jeff Mesnil
>
> the websocket example from Apollo 1.3 is not working.
> I created a broker and opened the examples/websocket/ example.
> On the web browser , the debug log displays:
> Opening Web Socket...
> Web Socket Opened...
> >>> CONNECT
> login:admin
> passcode:password
> Whoops! Lost connection to ws://localhost:61623
> Looking at apollo console, I see that a NPE occured:
> WARN | java.lang.NullPointerException
> but there is not a lot more information in the apollo.log:
> 2012-07-08 18:03:09,437 | WARN | java.lang.NullPointerException | org.apache.activemq.apollo.broker.Broker | hawtdispatch-DEFAULT-1
> fwiw, last time I checked apollo when I was working on stomp-websocket (for APLO-199), the example was running fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira