Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Anyway to get the detail connection error from paho-mqtt-client0.40

thanks

I tried with your updated info and the following pom

<repositories>
   <repository>
      <id>Eclipse Paho Repo</id>
      <url>https://repo.eclipse.org/content/repositories/paho-releases</url>
   </repository>
</repositories>

...

<dependencies>
   <dependency>
      <groupId>org.eclipse.paho</groupId>
      <artifactId>org.eclipse.paho.client.mqttv3</artifactId>
      <version>1.0.0</version>
   </dependency>
</dependencies>

But with the following error


Downloading: https://repo.eclipse.org/content/repositories/paho-releases/org/eclipse/paho/java-parent/${paho.version}/java-parent-${paho.version}.pom
[INFO] Unable to find resource 'org.eclipse.paho:java-parent:pom:${paho.version}' in repository Eclipse Paho Repo (https://repo.eclipse.org/content/repositories/paho-releases)
Downloading: http://repo1.maven.org/maven2/org/eclipse/paho/java-parent/${paho.version}/java-parent-${paho.version}.pom [INFO] Unable to find resource 'org.eclipse.paho:java-parent:pom:${paho.version}' in repository central (http://repo1.maven.org/maven2)

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: null:org.eclipse.paho.client.mqttv3:eclipse-plugin:null
Reason: Cannot find parent: org.eclipse.paho:java-parent for project: null:org.eclipse.paho.client.mqttv3:eclipse-plugin:null for project null:org.eclipse.paho.client.mqttv3:eclipse-plugin:null

I remember one of your emails regarding the usage of $(paho.version) in pom (I quoted here below). I see that they are still used in the main repository and not in the snapshot ones.
How can I use stable releases in my maven project? Do I have to wait for a stable 1.0.1?


On Wed, Jul 16, 2014 at 9:05 PM, Al Stockdill-Mander <asm@xxxxxxxx> wrote:
mingfai,

In the develop branch (and 1.0.1-SNAPSHOTS artifacts) I have removed the variables for version numbers in the pom files.
https://repo.eclipse.org/content/repositories/paho-snapshots/org/eclipse/paho/org.eclipse.paho.client.mqttv3/1.0.1-SNAPSHOT/

Thanks,

On 10/14/2014 04:04 PM, Al Stockdill-Mander wrote:
I've also just realised why this is happening and have updated the doc page to use the correct artifact id

Al

On 14/10/14 14:54, Sergio Torassa wrote:
just to be sure I didn't miss a message, is there a 1.0 version
available via maven?
in
https://repo.eclipse.org/content/repositories/paho-releases/org/eclipse/paho/mqtt-client/
(the repo mentioned in http://www.eclipse.org/paho/clients/java/) I
still see only version 0.4.0


     sergio


On 10/14/2014 02:55 PM, Andy Piper wrote:
You should definitely upgrade to version 1.0+ of the library as 0.4 is
pre-release and not actively maintained.

You should be able to get the information you need from the
MqttException object:
http://www.eclipse.org/paho/files/javadoc/org/eclipse/paho/client/mqttv3/MqttException.html



On Tue, Oct 14, 2014 at 10:34 AM, wisper <tph85666031@xxxxxxx
<mailto:tph85666031@xxxxxxx>> wrote:

    Hi all:

    Sorry to boring you.

    For paho-mqtt-client0.4, is there any way to get the detail
    connection error while doing a mqtt connection like
    mqttclient.connec()?

    Sometimes I need to know if the connection was rejected either y
    server cause of the incorrect username or password or by the
    unstable network connection.

    BTW, I also wanna if “connecionlost” API can provide the detail
    lost reason, like “clientid login in other place, connection
    closed” or something else.


    Thanks!

    --wisper


    _______________________________________________
    paho-dev mailing list
    paho-dev@xxxxxxxxxxx <mailto:paho-dev@xxxxxxxxxxx>
    To change your delivery options, retrieve your password, or
    unsubscribe from this list, visit
    https://dev.eclipse.org/mailman/listinfo/paho-dev




--
Andy Piper | Kingston upon Thames, London (UK)
blog: http://andypiper.co.uk   |   skype: andypiperuk
twitter: @andypiper  |  images: http://www.flickr.com/photos/andypiper


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev


Back to the top