Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: MB-996
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Susan Javurek
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
FUSE Message Broker

NullPointerException on websocket connection

Created: 24/Oct/11 04:19 PM   Updated: 25/Nov/11 04:03 PM
Component/s: None
Affects Version/s: 5.5.1-fuse-00-06
Fix Version/s: 5.6.0-fuse-00-00

File Attachments: 1. Zip Archive jmesnil-stomp-websocket-ace6be7.zip (205 kB)


External Issue URL: https://issues.apache.org/jira/browse/AMQ-3504


 Description  « Hide

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Susan Javurek added a comment - 28/Oct/11 04:42 PM
To reproduce this error, please complete the following steps:

1. Download the attached unix tarball (downloaded from: https://github.com/jmesnil/stomp-websocket)
2. Add a web socket transport to your broker:

<transportConnector name="ws" uri="ws://localhost:61618/stomp"/>

3. If you changed the IP in step 2, update config file:

jmesnil-stomp-websocket-ace6be7/test/unit/config.js

Accordingly. I used default username and password as well.

4. This test runs loads of tests but alls you really need to see is the simple connection to cause the error. As such, I commented most of them out in the attached tar file:

jmesnil-stomp-websocket-ace6be7/test/index.html

<!-- check connection/disconnection -->
  <!-- FAILS -->
  <script src="unit/connection.js"></script>

  <!-- check send/receive messages -->
  <!-- FAILS -->
  <!--script src="unit/message.js"></script-->
  <script src="unit/message.js"></script>

Rest of tests are commented out.

5. Using FireFox 7.0.1 or Google Chrome 15.0.874.106, open the file:

file:///Users/sjavurek/Fuse/SRs/cern/dev-3520/jmesnil-stomp-websocket-ace6be7/test/index.html

In the broker log, you will see the Null Pointer error.

6. Open the same file in Safari (Version 5.1 (6534.50)), no Null pointer.

I also spotted this stomple client https://github.com/krukow/stomple which uses hornetq. It has the same problems in these browsers.

Hope that helps. Please let me know if you need anything else.

Kindest regards,
Susan


Dave Stanley added a comment - 25/Nov/11 04:03 PM
Fixed in 5.6, we cannot backport as change is too disruptive to codebase.