Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Today's Messages (on)  | Unanswered Messages (off)

Forum: Kura
 Topic: Can not connect Krua device to kapua server exception Not authorized to connect (5)
Can not connect Krua device to kapua server exception Not authorized to connect (5) [message #1787356] Thu, 24 May 2018 04:15
Hemant Sangle is currently offline Hemant SangleFriend
Messages: 3
Registered: January 2018
Junior Member
I haven't changed the setting of CloudServiceSetting in kura not even the client-id but still I get this error below is log of kura device
2018-05-23 14:27:17,894 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - Creating a new client instance
2018-05-23 14:27:17,895 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - Using memory persistence for in-flight messages
2018-05-23 14:27:17,897 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - # ------------------------------------------------------------
2018-05-23 14:27:17,898 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  Connection Properties
2018-05-23 14:27:17,898 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  broker    = tcp://35.173.87.174:1883
2018-05-23 14:27:17,899 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  clientId  = 51284
2018-05-23 14:27:17,899 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  username  = kapua-broker
2018-05-23 14:27:17,900 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  password  = XXXXXXXXXXXXXX
2018-05-23 14:27:17,900 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  keepAlive = 30
2018-05-23 14:27:17,900 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  timeout   = 20
2018-05-23 14:27:17,901 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  cleanSession    = true
2018-05-23 14:27:17,901 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  MQTT version    = 3.1.1
2018-05-23 14:27:17,901 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  willDestination = $EDC/kapua-sys/51284/MQTT/LWT
2018-05-23 14:27:17,902 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  willMessage     = 
2018-05-23 14:27:17,902 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #
2018-05-23 14:27:17,903 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - #  Connecting...
2018-05-23 14:27:17,903 [pool-9-thread-1] INFO  o.e.k.c.s.r.LogStatusRunnable - Notification LED fast blinking
2018-05-23 14:27:18,572 [qtp4810959-46] WARN  o.e.k.c.d.t.m.MqttDataTransport - xxxxx  Connect failed. Forcing disconnect. xxxxx {}
Not authorized to connect (5)
	at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:28)
	at org.eclipse.paho.client.mqttv3.internal.ClientState.notifyReceivedAck(ClientState.java:990)
	at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:118)
	at java.lang.Thread.run(Thread.java:745)
2018-05-23 14:27:18,574 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - Closing client...
2018-05-23 14:27:18,578 [qtp4810959-46] INFO  o.e.k.c.d.t.m.MqttDataTransport - Closed
2018-05-23 14:27:18,579 [pool-9-thread-1] INFO  o.e.k.c.s.r.LogStatusRunnable - Notification LED off
2018-05-23 14:27:18,579 [qtp4810959-46] WARN  o.e.k.w.s.GwtNetworkServiceImpl - Error connecting
org.eclipse.kura.KuraConnectException: "Connection failed. Cannot connect"
	at org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport.connect(MqttDataTransport.java:333)
	at org.eclipse.kura.core.data.DataServiceImpl.connect(DataServiceImpl.java:493)
	at org.eclipse.kura.web.server.GwtStatusServiceImpl.connectDataService(GwtStatusServiceImpl.java:93)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:587)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:333)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:303)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373)
	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at org.eclipse.kura.web.server.OsgiRemoteServiceServlet.service(OsgiRemoteServiceServlet.java:41)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.equinox.http.servlet.internal.HttpServiceRuntimeImpl$LegacyServlet.service(HttpServiceRuntimeImpl.java:1221)
	at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
	at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
	at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:132)
	at org.eclipse.equinox.http.servlet.internal.servlet.ProxyServlet.service(ProxyServlet.java:100)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:310)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
	at org.eclipse.jetty.server.Server.handle(Server.java:524)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
	at java.lang.Thread.run(Thread.java:745)
Caused by: Not authorized to connect (5)
	at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:28)
	at org.eclipse.paho.client.mqttv3.internal.ClientState.notifyReceivedAck(ClientState.java:990)
	at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:118)
	... 1 more


Forum: Commercial
 Topic: Live Webinar: How to create Automated GUI Tests for Java based Applications
Live Webinar: How to create Automated GUI Tests for Java based Applications [message #1787358] Thu, 24 May 2018 04:22
Reginald Stadlbauer is currently offline Reginald StadlbauerFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

Join us for a webinar to learn all about automating cross-platform GUI tests of Java SWT, RCP, AWT, Swing and JavaFx applications.

When: May 30, 2018 10:00am CEST
Duration: 45 minutes
Free registration: https://goo.gl/6c9gC4

More about the Squish GUI Tester: https://squish.froglogic.com.

Want to try Squish today? Get your free trial at https://www.froglogic.com/squish/free-trial/

Your Squish team
Forum: Newcomers
 Topic: Run Different Program?
Re: Run Different Program? [message #1787351 is a reply to message #1787343] Thu, 24 May 2018 02:52
Patrick Moran is currently offline Patrick MoranFriend
Messages: 38
Registered: March 2018
Member
Uncheck "launch the previously launched" box near the bottom. Alternatively, hit the button to restore initial parameters.
Re: Run Different Program? [message #1787352 is a reply to message #1787351] Thu, 24 May 2018 03:14
Bronwyn Archer is currently offline Bronwyn ArcherFriend
Messages: 5
Registered: May 2018
Junior Member
I'm already at the default parameters, so "launch the selected resource or active editor" is already selected. I've never changed any launching preferences before, so I'm not so sure this is the issue. Could uninstalling and reinstalling Eclipse help somehow?
Re: Run Different Program? [message #1787353 is a reply to message #1787352] Thu, 24 May 2018 03:19
Bronwyn Archer is currently offline Bronwyn ArcherFriend
Messages: 5
Registered: May 2018
Junior Member
If this is related in some way, there is another project I had stored on a flash drive from a different computer. Every time I try to run it, a box titled Run As comes up asking me to pick from two different kind of Ant Builds (I don't know what that means). Whichever one I pick, it gives an error saying "Build Failed. Reason: Unable to find an Ant build to run." I don't know if these two issues are connected, but if so, that's some more information to try and help solve it. Thank you so much.

[Updated on: Thu, 24 May 2018 03:20]

Report message to a moderator

 Topic: Editing Datatools plugin
Editing Datatools plugin [message #1787359] Thu, 24 May 2018 05:24
Somak Dalui is currently offline Somak DaluiFriend
Messages: 1
Registered: May 2018
Junior Member
I am trying to edit a text string in Datatools plugin which I found inside this jar - org.eclipse.datatools.enablement.ibm.db2.luw.dbdefinition_1.0.7.v201405302027. As I understand is the correct procedure, I imported the jar as "Plug-ins and Fragments", did the modification in plugin.properties, but after that when I am trying to export it as "Deployable plug-ins and fragments", it is not showing up in the 'Available Plugins' section in the wizard.

Do I need to import something else, or do I need to add/edit more files in order to export it as a deployable plugin ?
 Topic: Oxygen 4.7.3a Max OS location of eclipse.ini file...
Re: Oxygen 4.7.3a Max OS location of eclipse.ini file... [message #1787361 is a reply to message #1787336] Thu, 24 May 2018 05:52
Ed Merks is currently offline Ed MerksFriend
Messages: 29353
Registered: July 2009
Senior Member
You can bring up preferences from the editor's context menu. This will filter the preferences to show only those related to the editor's appearance. On Windows and Linux the preferences are also under the Windows menu; on the Mac they are on the standard system menu (though I forget exactly where that is, but its in the same way available as in all applications. You'll want to look in General -> Appearance -> Colors and Fonts. You could also type "font" in the preference dialog's filter to find these preferences. In the Structured Text Editors category you can change the font. The Java category also has a setting to change the font specifically for the Java Editor.
 Topic: System requirements
Re: System requirements [message #1787362 is a reply to message #1787334] Thu, 24 May 2018 05:53
Ed Merks is currently offline Ed MerksFriend
Messages: 29353
Registered: July 2009
Senior Member
I'm not sure there really are specific requirements. Of course the slower your machine and the smaller the memory the more limited you'll be. And of course you need enough disk space, but if you don't have enough for even that, you probably can't do much of anything on your machine.
 Topic: Build complete RCP product using command line only
Re: Build complete RCP product using command line only [message #1787365 is a reply to message #1786736] Thu, 24 May 2018 06:52
Rohit Patel is currently offline Rohit PatelFriend
Messages: 4
Registered: May 2016
Junior Member
Hi,
please suggest something....
Forum: Rich Client Platform (RCP)
 Topic: develop eclipse RCP app without eclipse IDE?
Re: develop eclipse RCP app without eclipse IDE? [message #1787366 is a reply to message #435328] Thu, 24 May 2018 07:03
Rohit Patel is currently offline Rohit PatelFriend
Messages: 4
Registered: May 2016
Junior Member
As I want to build my RCP application automatically by using Jenkins after each change that I will made in code.

How can I build it, automatically without using eclipse?

I have written an maven script to build my jars but not the exe. I think eclipse runs a assembly script for that (As shown by eclipse in progress box).
Forum: PHP Development Tools (PDT)
 Topic: How to establish a mixed project (HTML,CSS and PHP)
Re: How to establish a mixed project (HTML,CSS and PHP) [message #1787364 is a reply to message #1787350] Thu, 24 May 2018 06:51
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 228
Registered: March 2013
Senior Member
Static web project is for html/css only. Use php project.

 Topic: No variable declared,Need to indicate error
Re: No variable declared,Do not prompt for errors [message #1787369 is a reply to message #1787145] Thu, 24 May 2018 08:04
wei zhang is currently offline wei zhangFriend
Messages: 3
Registered: May 2018
Junior Member
thank you very much
Forum: TMF (Xtext)
 Topic: Multiple generators
Re: Multiple generators [message #1787355 is a reply to message #1787340] Thu, 24 May 2018 04:06
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11964
Registered: July 2009
Senior Member
Depending on your grammar (e.g. what kind of expressions you have) and your target you won't need an jvmmodelinferrer

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
 Topic: how to write (existing) java 8 lambda in xtend
Re: how to write (existing) java 8 lambda in xtend [message #1787367 is a reply to message #1787317] Thu, 24 May 2018 07:34
Christian Eugster is currently offline Christian EugsterFriend
Messages: 165
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
Hi

I tried this one

override Set<DescriptionAreaLink> getDescriptionAreaLinks(ElementState state)
{
	return this.descriptionAreaLinks.stream.filter[e | state.check(e.isDeleted())].collect(Collectors::toSet);
}


but the editor complains, that the return value of Set<JpaDescriptionAreaLink> does not match the expected Set<DescriptionAreaLink>. The set descriptionAreaLinks is a Set<JpaDescriptionAreaLinks> and JpaDescriptionAreaLink is a subclass of DescriptionAreaLink. In java there I have no problem with it as it seems that java handles this internally. How can I achieve this with lambdas in xtend?

I want to say that it is really a big pleasure to work with xtend. I like it very much. Congratulations for this work!

Christian

[Updated on: Thu, 24 May 2018 07:35]

Report message to a moderator

 Topic: Associating data with EMF model
Associating data with EMF model [message #1787372] Thu, 24 May 2018 08:22
Alexandros Karypidis is currently offline Alexandros KarypidisFriend
Messages: 79
Registered: March 2010
Member
Hello all,

Another one in my series of basic questions:

I understand that xtext generates a model based on my grammar (see model/generatoed/{x}.ecore

I would like to be able to associate extra data with some elements. For instance, the generated type for Field is:

  <eClassifiers xsi:type="ecore:EClass" name="Field">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="presence" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="fieldEncodingType" eType="#//TypeDeclaration"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="semanticType" eType="#//SemanitTypeModifier"
        containment="true"/>
  </eClassifiers>


Now, I want to add an integer called "offset"

    <eStructuralFeatures xsi:type="ecore:EAttribute" name="offset" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>


Is it possible to instruct xtext to do that during some post-processing of the model?

Please note that I understand the obvious: I could just change the grammar to include that attribute "(offset=INT)?", just wondering if there's a way to do this without cluttering the grammar: I really don't mean to give the option for a user of the grammar to type that extra integer as it makes no sense.
Re: Associating data with EMF model [message #1787373 is a reply to message #1787372] Thu, 24 May 2018 08:27
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 598
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Just do not generate the ecore model from your grammar, manually maintain it and import it in your grammar.

Additional state can be derived using the IDerivedStateComputer interface together with an DerivedStateAwareResource. Use the Guice modules to bind the customizations.
Forum: Papyrus
 Topic: Missing items in palette of activity diagram (SysML)
Re: Missing items in palette of activity diagram (SysML) [message #1787363 is a reply to message #1786960] Thu, 24 May 2018 06:21
Benedikt Bauer is currently offline Benedikt BauerFriend
Messages: 19
Registered: March 2017
Junior Member
Hmm... Updating Papyrus to 3.4 didn't change anything over here:

index.php/fa/32895/0/
index.php/fa/32896/0/

Or am I just too blind to see it?
Re: Missing items in palette of activity diagram (SysML) [message #1787368 is a reply to message #1787363] Thu, 24 May 2018 07:50
Benoit Maggi is currently offline Benoit MaggiFriend
Messages: 118
Registered: March 2013
Location: Bordeaux, France
Senior Member
Hi,

You should also install the 'Papyrus Toolsmith" feature (which contains all the tooling for customization)

Regards,
 Topic: The papyrus 3.4 is available
Re: The papyrus 3.4 is available [message #1787374 is a reply to message #1787220] Thu, 24 May 2018 08:35
Yoann Farré is currently offline Yoann FarréFriend
Messages: 37
Registered: November 2017
Member
Good news for sequence diagrams! Thank you!

Yoann.
Forum: C / C++ IDE (CDT)
 Topic: How to fix 'Path must include project and resource name'?
How to fix 'Path must include project and resource name'? [message #1787375] Thu, 24 May 2018 08:37
David Aldrich is currently offline David AldrichFriend
Messages: 13
Registered: July 2009
Junior Member
I have a Wind River Linux C++ application project that I am building with Workbench 4, which is based on Eclipse 4.6.3 and CDT 9.2.1.201703062208. I store the project in Subversion, check it out to a local directory and import it (link not copy) into my Eclipse workspace. This has always worked fine until I recently upgraded Workbench to the latest version. Now, when I attempt to build the project, I get error:

Errors occurred during the build.
Errors running builder 'Wind River Builder' on project 'LedaAP'.
Path must include project and resource name: /LedaAP

When I open the properties of the project I see:

Path: /LedaAP
Type: Project
Location: C:\SVNProj\<snip>\LedaAP_workbench

The location is correctly the location of the .project files.

Is the problem that 'Path' is prefixed by '/'? Or is it in some other way incorrect?

How could I fix it?

Best regards

David
Forum: Sirius
 Topic: Node with more than one label
Re: Node with more than one label [message #1787376 is a reply to message #1787291] Thu, 24 May 2018 09:09
Andreas Buchner is currently offline Andreas BuchnerFriend
Messages: 11
Registered: August 2017
Junior Member
Cool, thanks a lot :)



Current Time: Thu May 24 10:25:43 GMT 2018

Powered by FUDForum. Page generated in 0.03301 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top