Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to subscribe to any topic #49

Closed
lupixch opened this issue Oct 5, 2015 · 13 comments
Closed

Unable to subscribe to any topic #49

lupixch opened this issue Oct 5, 2015 · 13 comments

Comments

@lupixch
Copy link

lupixch commented Oct 5, 2015

Every time I try to subscribe to a topic, I get the error message "Cannot subscribe to an empty topic". I can use as topic whatever I want, the behavior remains the same
I use version 0.3.0, in version 2.xx this worked without problems.
In mqtt-spy.log I see no errors or warnings.
subscribe-problem-0 3 0

@kamilfb
Copy link
Owner

kamilfb commented Oct 5, 2015

Hi. Thanks for raising this. I've managed to reproduce it. In the meantime, please use the Enter key to subscribe rather than clicking on the Subscribe button. I'll try to fix it ASAP. Cheers

@lupixch
Copy link
Author

lupixch commented Oct 5, 2015

Hi
Thanks for the information, I will try it.

On 05.10.2015 17:36, Kamil Baczkowicz wrote:

Hi. Thanks for raising this. I've managed to reproduce it. In the meantime,
please use the Enter key to subscribe rather than clicking on the Subscribe
button. I'll try to fix it ASAP. Cheers


Reply to this email directly or view it on GitHub
#49 (comment).

@kamilfb
Copy link
Owner

kamilfb commented Oct 6, 2015

It turns out this is a bug in Oracle's JRE/JDK. See Issue 50 (#50) for more detail.

@kamilfb
Copy link
Owner

kamilfb commented Oct 21, 2015

This should have been fixed in JRE/JDK 8 Update 66. Could you try it please?

@kamilfb
Copy link
Owner

kamilfb commented Oct 21, 2015

It's JRE/JDK 8 Update 65/66.

@lupixch
Copy link
Author

lupixch commented Nov 2, 2015

It does still not work correctly. Actually I have the following strange
behaviour using Java(TM) SE Runtime Environment (build 1.8.0_65-b17):

  1. Type '#' in subscription topic field, click "Subscribe" -> Message box
    "Cannot subscribe to an empty topic"
  2. Press Enter (with focus in subscription topic field) -> Subscription of '#'
    is done and works
  3. Unsubscribe and close tab
  4. Type 'foo' in subscription topic field, click "Subscribe" -> Subscription of
    '#' is done (and works), 'foo' is not used

The click on "Subscribe" uses always the last topic that was entered using Enter
and not the one, that is present in the input field.

@kamilfb
Copy link
Owner

kamilfb commented Nov 5, 2015

Sorry - you are right - there problem is till there - my fault! Just checked the Oracle website and it looks like this fix is going to make it to JRE/JDK 8 Update 72.

@scargill
Copy link

I've just spotted this one now... yes, same thing happening to me - I'm so glad someone reported it - I'm back in the UK setting up a computer, loaded the latest MQTT-SPY and could not subscribe to anything... at least now I know why.. do we know when this update is coming out?

@kamilfb
Copy link
Owner

kamilfb commented Nov 14, 2015

JRE/JDK 8 Update 72 is scheduled for January. In the meantime, you can either press the Enter key after typing the subscription topic or go back to Update 51.

@kamilfb
Copy link
Owner

kamilfb commented Nov 15, 2015

0.3.1 beta build 24 contains a workaround for the JRE bug - please let me know if that resolves the problem.

@scargill
Copy link

YUP that does it – thanks for your continued efforts – still the best out there.

From: Kamil Baczkowicz [mailto:notifications@github.com]
Sent: 15 November 2015 23:27
To: kamilfb/mqtt-spy mqtt-spy@noreply.github.com
Cc: Peter Scargill pete@scargill.org
Subject: Re: [mqtt-spy] Unable to subscribe to any topic (#49)

0.3.1 beta build 24 contains a workaround for the JRE bug - please let me know if that resolves the problem.


Reply to this email directly or view it on GitHub #49 (comment) . https://github.com/notifications/beacon/ABzUg07A9odCjkB7Fjkpwp0DJ8gag7f-ks5pGQxTgaJpZM4GJD8L.gif

@lupixch
Copy link
Author

lupixch commented Nov 16, 2015

Yes, it works! Perfect! Thank you very much.

@kamilfb kamilfb added this to the 0.3.1 milestone Nov 16, 2015
@kamilfb kamilfb self-assigned this Nov 16, 2015
@kamilfb
Copy link
Owner

kamilfb commented Nov 30, 2015

Fixed in 0.3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants