Skip to main content


Eclipse Community Forums
Forum Search:

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

Forum: Newcomers
 Topic: Eclipse Che (SaaS Codenvy)
Eclipse Che (SaaS Codenvy) [message #1787389] Thu, 24 May 2018 14:20
Jonathan Turner is currently offline Jonathan TurnerFriend
Messages: 1
Registered: May 2018
Junior Member
When I go to upload a jar file, it loads and loads, this jar file is around 23 MB. I have 10 MB upload speed and I left it uploading 3 different times for over 3 hours. Any Idea why this is happening. I understand if I cant get help on this forum, I was just wondering :)
 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: Development tools for IOT application
Development tools for IOT application [message #1787224] Tue, 22 May 2018 10:32
Gavy Todd is currently offline Gavy ToddFriend
Messages: 1
Registered: May 2018
Junior Member
Hey Please suggest the application to design the dashboard for IOT application called temperature monitoring system for which I am using temperature sensor with arduino yun

I am using mesh based sensor and follow are the points which I need to design for my application

- Design Dashboards ( types strategic, operational and analytical) and different types graph presentation like (Line, Bars , Pie etc)

- Share the hourly notifications on email as well as on application
- Design critical warning notification via SMS as well as by email and connect sound clip with warning notification to make the people aware as soon as possible.
 Topic: The archive: XXXXX which is referenced by the classpath, does not exist.
The archive: XXXXX which is referenced by the classpath, does not exist. [message #1787209] Tue, 22 May 2018 07:25
Sven Schroeder is currently offline Sven SchroederFriend
Messages: 5
Registered: May 2017
Junior Member
When I try to run a simple Hello World app with Kotlin it doesn't work becuase of the following error:

The archive: /TestKotlin/kotlin_bin which is referenced by the classpath, does not exist.

If I run any Java Application it works fine.
I looked through every forum/tutorial I could find but haven't been able to solve this problem so far.

I appreciate any help. Thanks a lot
index.php/fa/32875/0/
index.php/fa/32876/0/
index.php/fa/32877/0/
index.php/fa/32878/0/
 Topic: Certificate Pinning in Android Paho Mqtt -Library [3.1.1.0 ] -issue
Certificate Pinning in Android Paho Mqtt -Library [3.1.1.0 ] -issue [message #1787179] Mon, 21 May 2018 11:16
Gokul R is currently offline Gokul RFriend
Messages: 1
Registered: May 2018
Junior Member
I have been able to perform mqtt connection without TLS/SSL certificate using paho{ mqttv3:1.1.0 } Service. However when I tried pinning SSL certificate in Android its not working. below explained the processes I performed for SSL pinning in Android, Please go through and let me know the issue. Attaching code for more insight.

Step 1: Certificate Conversion


Converted certificate.pem file to bouncy castle format and stored in raw folder in Android project.

D:\>"C:\Program Files\Java\jdk1.8.0_121\bin\keytool" -import -alias mqtt-broker -file C:\Users\gokul.r\Downloads\certificate.pem -keypass ***** -keystore raw_key_file -storetype BKS -storepass ***** -providerClass org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath C:\Users\gokul.r\Downloads\bcprov-jdk16-1.45.jar




Step 2: MQTT client Settings


if (null == mclientPublisher) {
try {
mclientPublisher = new MqttAndroidClient(context, mqttBrokerURL, PublisherClientID, new MemoryPersistence());

if (null != mclientPublisher) {

MqttConnectOptions options = null;
options = new MqttConnectOptions();
options.setMqttVersion(MqttConnectOptions.MQTT_VERSION_3_1_1);
options.setConnectionTimeout(60);
options.setKeepAliveInterval(120);
options.setAutomaticReconnect(true);
// SslUtility.newInstance(context);
options.setSocketFactory(SslUtility.getInstance().getSocketFactory(R.raw.raw_key_file,"****"));
options.setCleanSession(true);
}
} catch (NullPointerException ex) {
Log.e(TAG, "initPublisher method -inside catch block- Error is : " + ex.toString());
disconnect();
}
}



Step 3: SSL UTILITY CLASS


public class SslUtility {
private static SslUtility mInstance = null;
private Context mContext = null;
private HashMap<Integer, SSLSocketFactory> mSocketFactoryMap = new HashMap<Integer, SSLSocketFactory>();
public SslUtility(Context context) {
mContext = context;
}
public static SslUtility getInstance( ) {
if ( null == mInstance ) {
throw new RuntimeException("first call must be to SslUtility.newInstance(Context) ");
}
return mInstance;
}
public static SslUtility newInstance( Context context ) {
if ( null == mInstance ) {
mInstance = new SslUtility( context );
}
return mInstance;
}
public SSLSocketFactory getSocketFactory(int certificateId, String certificatePassword ) {
SSLSocketFactory result = mSocketFactoryMap.get(certificateId); // check to see if already created
if ( ( null == result) && ( null != mContext ) ) { // not cached so need to load server certificate
try {
KeyStore keystoreTrust = KeyStore.getInstance("BKS"); // Bouncy Castle
keystoreTrust.load(mContext.getResources().openRawResource(certificateId),
certificatePassword.toCharArray());
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
trustManagerFactory.init(keystoreTrust);
SSLContext sslContext = SSLContext.getInstance("TLS");
sslContext.init(null, trustManagerFactory.getTrustManagers(), new SecureRandom());
result = sslContext.getSocketFactory();
mSocketFactoryMap.put( certificateId, result); // cache for reuse
}
catch ( Exception ex ) {
// log exception
}
}
return result;
}



Error :
05-18 10:18:55.638 20810-20810/: disconnect method -inside catch block- Error is : java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.eclipse.paho.android.service.MqttAndroidClient.isConnected()' on a null object reference

It seems the MQTT client object is not created.

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
 Topic: Not able to link to project
Not able to link to project [message #1787314] Wed, 23 May 2018 14:49
Pdk kk is currently offline Pdk kkFriend
Messages: 16
Registered: July 2015
Junior Member
Hi ,

My project is located at:
/root/SVN_ROOT/Projects/branches/V3_Trunk

And executable is gets created at :
/root/SVN_ROOT/Projects/branches/V3_Trunk/src/out/x86

Now I try to create the softlink from where this executable is run. i.e I create the softlink to /usr/ran directory like this:
ln -s /root/SVN_ROOT/Projects/branches/V3_Trunk/src/out/x86/ran /usr/ran/ran

In the eclipse, I add the

1.Open eclipse, with the project to debug in the workspace
2.Make project (so that ran is created in ...src/out/x86)
3.Create symbolic link to ran (ln -s out/x86/ran ran)
4.Click on Run->Debug Configurations
5.Double click on C/C++ Application.
6.Click on Browse. Navigate to and select the symbolic link created above.
The name of the project will usually be '<Project Name> Default' - no need to change.
7.Click on Arguements tab. Unselect 'Use default' and use 'File System' tab to navigate to project 'src' directory (e.g. /root/SVN_ROOT/Projects/branches/V3_Trunk/src).
8.Click on Debugger tab. Unselect 'Stop on startup at: main'
Apply changes.
9.Set any required breakpoints, and run the debug configuration (little green bug icon).

But I am not seeing desired output, please help
 Topic: graph data on Eclipse console window to our computer
graph data on Eclipse console window to our computer [message #1787058] Fri, 18 May 2018 07:34
saurabh jain is currently offline saurabh jainFriend
Messages: 4
Registered: May 2018
Junior Member
Hello Dear Developers,


I am using Eclipse IDE for C/C++ Developers Version: Oxygen.3a. and programming in C++

I would be grateful if you please tell me if there is any plugin in eclipse which I can use to natively graph data on Eclipse console to our computer in real time. Something similar to Arduino Serial Plotter as shown in following link

http://www.instructables.com/id/Ultimate-Guide-to-Adruino-Serial-Plotter/



I want it because I want to plot data received from sensors in real time.



Thank you very much :)
Forum: BIRT
 Topic: Date Axis on GANTT Chart
Date Axis on GANTT Chart [message #1787400] Thu, 24 May 2018 17:31
Cesar Sasaki is currently offline Cesar SasakiFriend
Messages: 4
Registered: March 2018
Junior Member
Hi

I have created a Gantt Chart on a Birt Report but I can see that there is some blank spaces to the left of my chart. Is there a way to eliminate this?

I have marked in red the part I do not need and want to delete.
index.php/fa/32901/0/
Forum: TMF (Xtext)
 Topic: Release of Xtext and Xtend 2.14.0
Release of Xtext and Xtend 2.14.0 [message #1787316] Wed, 23 May 2018 15:05
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11967
Registered: July 2009
Senior Member
Hello Xtext Users,

I am pleased to announce the release of Xtext and Xtend 2.14.0.
You can find it on Maven Central and on the Xtext Update Site (http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/)
You can find an introductory blogpost at https://blogs.itemis.com/en/xtext-2-14-released
Release notes for Xtext are here and for Xtend here

I'd like to say a big thank you to all committers and contributors who have helped to make this possible.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Forum: Eclipse 4
 Topic: CSS tree selection issue on Linux only
CSS tree selection issue on Linux only [message #1787402] Thu, 24 May 2018 18:04
Page Wang is currently offline Page WangFriend
Messages: 19
Registered: July 2009
Junior Member
Hi,

We have a RCP application using CSS for styling. It works fine on win; but on Linux, the tree selection is messed up. The problem can be duplicated with the attached mail example.

When the application is started, it shows as in start.png; with some selection/expansion on the tree, it shows as in withSelection.png.

If I remove "swt-selection-background-color: #AFD7E1" from the default.css tree element, the problem goes away.

Tree {
color: #000000;
background-color: #ffffff;
swt-selection-background-color: #AFD7E1;
swt-hot-background-color: #DAECF0;
swt-selection-border-color: #AFD7E1;
swt-hot-border-color: #DAECF0;
}

I am wondering if this is a know issue? Or some setting on the linux machine (using CentOS) that might cause the issue? Any suggestions on how to solve it?

Appreciate much for the help!
Page
 Topic: Workspace launcher in E4Application
Workspace launcher in E4Application [message #1787391] Thu, 24 May 2018 15:02
Gary Long is currently offline Gary LongFriend
Messages: 15
Registered: August 2012
Junior Member
Hi :)

I created an E4 application with a plug-ins based .product file. it's configured to use the org.eclipse.e4.ui.workbench.swt.E4Application class.

When I export my product and start it, there is no workspace launcher like there is when I start my Eclipse IDE. The workspace is created by default in the eclipse folder of my exported product.

Is there's a way to include that workspace launcher in my application?

I also tried to create my own workspace selection dialog and display it in a lifecycle hook (@PostContextCreate annotated method) but if the location is already set, it can't be updated here...

Could it be a good idea to extend E4Application class to add a workspace selection dialog or is there a better way?

Thanks :)
Gary
Forum: PHP Development Tools (PDT)
 Topic: How to establish a mixed project (HTML,CSS and PHP)
How to establish a mixed project (HTML,CSS and PHP) [message #1787349] Wed, 23 May 2018 23:24
Till Kola is currently offline Till KolaFriend
Messages: 7
Registered: June 2017
Junior Member
Hello,
I want to create a project to make an orderform. Therefore I have the files orderform.html , orderform.css and orderform.php. I want to test all with XAMPP (Windows).

I'm a beginner and its for me not clear how I have to establish this project in Eclipse.
- Should I open a static web project or a php project. ?
- should all files are in C:\xampp\htdocs also the html and css files?

Thank you
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: Java Development Tools (JDT)
 Topic: builtin bug reporter: "server workload limit reached"
builtin bug reporter: "server workload limit reached" [message #1787342] Wed, 23 May 2018 21:07
J. Zufallig is currently offline J. ZufalligFriend
Messages: 16
Registered: May 2013
Junior Member
Dunno whether this is a bug with the server side or a problem with Oxygen.2 or what.

In the last month I've gotten a couple popups indicating an internal error with the Java editor/parser, and asking if I want to submit the error data. But if I click send/submit/etc, I then get an error popup saying something to the effect of "server workload limit reached, try again later". There's nothing further to click on that popup, so that's all the info I have. I also can't take a screenshot of the popup as it fades as soon as I move the mouse or press any keys.

The <workspace>/.metadata/.log file contains the stack trace of the original problem that it was trying to report, but nothing about the failure to submit the report.

I have no idea how to "try again later". Are these reports queued up somewhere in the workspace, that I can pull them up and trigger a re-submit attempt? The Help -> Report Bug menu is just assuming I'm starting from scratch and asking me to choose product components, so that didn't get very far.

[Updated on: Wed, 23 May 2018 21:08]

Report message to a moderator

 Topic: Compilation problem with exceptions
Compilation problem with exceptions [message #1787069] Fri, 18 May 2018 10:38
Oleg S. is currently offline Oleg S.Friend
Messages: 1
Registered: May 2018
Junior Member
Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200

1) there is code:

import java.io.IOException;
import java.sql.SQLException;

public class  MyClass1 {

	public static void main(String[] args){
		try {
			if(System.nanoTime() % 2 == 0) {
				throw new IOException();
			}else {
				throw new SQLException();
			}
		}catch(Exception e) {
			throw e;
		}		
	}
}


the compiler offers fix "Add throws declaration" as "throws Exception", but expected "throws SQLException, IOException".



2) there is code:

import java.io.IOException;
import java.sql.SQLException;

public class MyClass2 {
    public static void main(String[] args) {
        try{
            if(System.nanoTime() % 2 == 0){
                throw new IOException();
            }else{
                throw new SQLException();
            }
        }catch(IOException e){
        
        }catch(SQLException e){
        
        }
    }
}


expected fix with using multi-cacth sintax, but compiler offers nothing.

how can we fix this?
Forum: Eclipse Kapua
 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 #1787297] Wed, 23 May 2018 09:34
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


so can anyone guide me to solve this issue
Forum: Eclipse Titan
 Topic: Porting 3gpp test suites to Titan
Porting 3gpp test suites to Titan [message #1787059] Fri, 18 May 2018 07:55
Elemer Lelik is currently online Elemer LelikFriend
Messages: 736
Registered: January 2015
Senior Member
Dear all,

we will examine below the portability of 3gpp-published test suites to Titan.
But before getting started, let me reveal some problems one may encounter with certain Titan releases when
compiling test suites containing large ASN.1 files.

Roughly a year ago, post 6.1.0 release, code to support concatenation of templates was added to Titan:

Bug 512878 - Concatenation for templates
https://bugs.eclipse.org/bugs/show_bug.cgi?id=512878


Unfortunately this had the side effect of dramatically slowing down compilation of some ASN.1 files and this was not caught by our CI cycle.
Now 3gpp test suites are building upon such large files, one being especially large, the UTRAN_RRC_ASN1_Definitions.asn , of 1.46 Megabytes in source.
With this file the slowdown is particularly observable, probably grinding compilation to a halt.
Even if the slicing feature of the compiler ( -U 'number) ' is used, this file will cause problems.

The problem persisted throughout 6.2.0 and 6.3.0 but we caught it before releasing 6.4.0 so the latest source code and the to-be-released 6.4.0 already contain the fix for the problem.
For this exercise I have used a Titan built from the latest source, release candidate for 6.4.0.

The referring bug report is here:


Bug 534678 - Performance issues caused by template concatenation feature
https://bugs.eclipse.org/bugs/show_bug.cgi?id=534678

and the github commit , for those interested in details, here:

Changed handling of optional fields in template concatenation to improve performance (bug 534678)
https://github.com/eclipse/titan.core/commit/736c4bdaa0eaa2709e8292746e2456117d08efdf

The takeaway from this is that for 3gpp test suites one should use either 6.1.0 or , if he/she needs the latest features, 6.4.0 ,
and should avoid 6.2.0 and 6.3.0. However, given the presence of large ASN.1 files we keep recommending using slicing the files -as exemplified below-
so one can benefit from compiling in parallel a higher number of smaller files. This will also have a beneficial effect on memory consumption which will prove to be
a scarce resource when compiling these suites.

For other test suites this slowdown may or may not be observable , but will probably stay under the observation threshold.

All right then, now to the point.

3gpp published test suites are available here:

http://www.ttcn-3.org/index.php/downloads/publicts/publicts-3gpp

and today we will look into UTRA test suites:
http://www.ttcn-3.org/index.php/downloads/publicts/publicts-3gpp/78-3gpp-utra-ue-test-suite

The entire series is published here:
ftp://ftp.3gpp.org/Specs/archive/34_series/34.123-3/

and I have downloaded the latest one:
ftp://ftp.3gpp.org/Specs/archive/34_series/34.123-3/34123-3-e20.zip
dated 4/3/18

This package contains two independent suites, 34123-3-e20_TTCN3_UTRAN and 34123-3-e20_TTCN3_SSNITZ.


What can we expect based on our previous experience of porting ETSI test suites ?
(see posts in this forum)

Of course we will encounter the unholy trinity of: 1) test port declarations 2) codecs 3) external functions ,
that is unstandardised code that Titan expects to be supplied in form of external C++ code.

As before the aim is to make the test suite compilable and not executable.
Whoever wants to take this next step as well will have to add the external code mentioned before.


Let's start with 34123-3-e20_TTCN3_SSNITZ first ( see attached archive)


1. First we should generate a Makefile; here I recommend using Runtime 2 , the function test runtime, which , although is somewhat slower when compiling , is richer in features.
Also , code slicing is strongly recommended.

Here you have the significant lines in my Makefile:
# Flags for the C++ preprocessor (and makedepend as well):
CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)/include  -DTITAN_RUNTIME_2

# Flags for the TTCN-3 and ASN.1 compiler:
COMPILER_FLAGS = -L  -w  -R -U 8 -M -d

# Execution mode: (either ttcn3 or ttcn3-parallel)
TTCN3_LIB = ttcn3-rt2-parallel

with the meaning of switches:

 -M:             allow 'omit' in template value lists (legacy behavior)
 -d:             treat default fields as omit          
 -R:             use function test runtime (TITAN_RUNTIME_2)
 -L:             add source line info for logging
 -U none|type|'number':  select code splitting mode for the generated C++ code
 -w:             suppress warnings



Even if slicing is done in 8 parts, compilation can be done with less processors involved: make -j4 or even make -j2 or simply make.
Please bear in mind that if we engage a number of processors in parallel compilation , the amount of required memory will multiply as well , so make sure you have sufficient memory,
else you may end up with a surprise.



2. the next step we need to take is to add a dummy encoding instruction to the ComponentsType.ttcn:
  type set of Component  Components;     /* @status    APPROVED (POS, SSNITZ) */

  } // end of group SS_Asn_Entry

with {encode "Some_EncRule"};  //FIXME!!!

This dummy declaration and all other such with { encode "somethinghere"} declarations will have to be added substance later
by adding the appropriate external codecs.


3. All ports in all declarations will be turned internal ;

of course , eventually ports that are mapped to SUT will have to be re-qualified external and the pertinent test port code will have to be added.


4. External functions

I have replaced external function declarations with matching internal but dummy declarations:

CommonDefs.ttcn

 /* external */ function fx_KeyDerivationFunction(KDF_Type  p_KDF,
                                             bitstring p_Key, //@sic R5-155058 sic@
                                             octetstring p_String) return B256_Type {
                                             
                                             return '1111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000'B
                                             }; 
											 
											 
 /* external */ function fx_GetSystemTime(out Struct_tm_Type p_Struct_tm,    /* p_Struct_tm returns local system time;
                                                                         * C implementation:
                                                                         *         time_t v_Now = time(NULL);
                                                                         *         struct tm *v_Tm = localtime(&v_Now);
                                                                         */
                                     out integer p_TimezoneInfo)
                                     {};  											 




With these changes the suite will compile.


Let's move to 34123-3-e20_TTCN3_UTRAN then:


1. We can use the same Makefile settings:

# Flags for the C++ preprocessor (and makedepend as well):
CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)/include  -DTITAN_RUNTIME_2

# Flags for the TTCN-3 and ASN.1 compiler:
COMPILER_FLAGS = -L  -w  -R -U 8 -M -d

# Execution mode: (either ttcn3 or ttcn3-parallel)
TTCN3_LIB = ttcn3-rt2-parallel

2. Codecs will not give us a headache at this stage but of course will have to be added eventually.

3. All ports will have to be declared internal

4. External functions are to be replaced with dummies:

CommonDefs.ttcn

 /* external */ function fx_KeyDerivationFunction(KDF_Type  p_KDF,
                                             bitstring p_Key, //@sic R5-155058 sic@
                                             octetstring p_String) return B256_Type {
                                             
                                             return '1111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000'B
                                             }; 
											 
											 
 /* external */ function fx_GetSystemTime(out Struct_tm_Type p_Struct_tm,    /* p_Struct_tm returns local system time;
                                                                         * C implementation:
                                                                         *         time_t v_Now = time(NULL);
                                                                         *         struct tm *v_Tm = localtime(&v_Now);
                                                                         */
                                     out integer p_TimezoneInfo)
                                     {};  											 

									 

EUTRA_NB_CommonDefs.ttcn

 
  /*external*/  function fx_CalculateFCS32 (bitstring p_TMSI) return B32_Type {



return '11111111000000001111111100000000'B

};

EUTRA_NB_SecurityDefinitionsAndExternalFunctions.ttcn
 
/*  external */ function fx_NasIntegrityAlgorithm(octetstring   p_EncodedNasPdu,
                                             B3_Type       p_IntegrityAlgorithm,
                                             B128_Key_Type p_KNASint,
                                             NasCount_Type p_NasCount,
                                             B5_Type       p_BearerId,    /* @sic R5-101050: BearerId changed to 5 bits sic@ */
                                             MAC_Direction_Type p_Direction) return MessageAuthenticationCode 
{
return 'FF00FF00'O
};    /* @status    APPROVED (LTE) */

  /*external*/ function fx_NasCiphering(octetstring p_EncodedNasPdu,
                                    B3_Type       p_CipheringAlgorithm,
                                    B128_Key_Type p_KNASenc,
                                    NasCount_Type p_NasCount,
                                    B5_Type p_BearerId) return octetstring {  return ''O } ;                                       /* @sic R5-101050: BearerId changed to 5 bits sic@
                                                                                                                     @status    APPROVED (LTE) */

  /*external*/ function fx_NasDeciphering(octetstring p_CipheredNasMsg,
                                      B3_Type       p_CipheringAlgorithm,
                                      B128_Key_Type p_KNASenc,
                                      NasCount_Type p_NasCount,
                                      B5_Type p_BearerId) return octetstring  {  return ''O } ;                                     /*  @sic R5-101050: BearerId changed to 5 bits sic@
                                                                                                   




With this , the UTRAN suite will compile.





One may notice that lot less modifications are needed here that were for the ETSI suites. The reason is that 3gpp uses Titan, in parallel with other commercial
tools to validate their test suites during development.



Best regards
Elemer




[Updated on: Thu, 24 May 2018 16:13]

Report message to a moderator

Forum: GMF (Graphical Modeling Framework)
 Topic: Attach Other Figures/EditParts to a Connection
Attach Other Figures/EditParts to a Connection [message #1787233] Tue, 22 May 2018 14:39
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 146
Registered: February 2014
Senior Member
Hello,

Currently, labels are attached to the connections/edges, which allows the user to see a link when moving the label around (see below). Now, assume that I have a figure or editpart which I want to attach it to a connection. Is there any way to do that by either attaching the editpart to the connection or setting a figure as the label of the connection ?
index.php/fa/32879/0/

Thanks,
Parsa
  • Attachment: link.png
    (Size: 23.32KB, Downloaded 46 times)

[Updated on: Tue, 22 May 2018 14:40]

Report message to a moderator

Forum: Objectteams
 Topic: The archive: /TestKotlin/kotlin_bin which is referenced by the classpath, does not exist.
The archive: /TestKotlin/kotlin_bin which is referenced by the classpath, does not exist. [message #1787186] Mon, 21 May 2018 15:58
Sven Schroeder is currently offline Sven SchroederFriend
Messages: 5
Registered: May 2017
Junior Member
When I try to run a simple Hello World app with Kotlin it doesn't work becuase of the following error:

The archive: /TestKotlin/kotlin_bin which is referenced by the classpath, does not exist.

If I run any Java Application it works fine.
I looked through every forum/tutorial I could find but haven't been able to solve this problem so far.

I appreciate any help. Thanks a lot
index.php/fa/32865/0/
index.php/fa/32866/0/
index.php/fa/32867/0/
index.php/fa/32868/0/

[Updated on: Mon, 21 May 2018 16:02]

Report message to a moderator

Forum: Buckminster
 Topic: Circular Component Dependency Issue
Circular Component Dependency Issue [message #1787067] Fri, 18 May 2018 10:03
Megha Bansal is currently offline Megha BansalFriend
Messages: 6
Registered: May 2018
Junior Member
I am quite new to headless buckminster. I am currently trying to run headless buckminster from windows command prompt through ant script. My application is eclipse e4 application with JavaFx.

When I run my headless buckminster from build.xml (which resides in the project todo.mathexampl.app.releng), I get a "Circular component dependency detected" error.
[java] INFO:  import 'D:\GitRepos\MathappGit\todo.mathexampl.app.releng/buckminster-build.cquery'
[java] Circular component dependency detected. Chain is todo.mathexampl.app.releng -> todo.mathexampl.app.releng -> todo.mathexampl.p2.feature

The feature todo.mathexampl.app.releng is used to compose the p2 update site from which the p2 director can then build the product. It includes the features
>todo.mathexampl.app.feature (application plugins)
>todo.mathexampl.p2.feature (p2 plugins)
>org.eclipse.fx.runtime.e4x.feature (efxclipse runtime)
>org.eclipse.equinox.executable (needed by p2 director to create executable)

The feature todo.mathexampl.p2.feature itself holds the needed p2 plugins but has no dependency on any other feature and also not on todo.mathexampl.app.releng. I also noticed that, when I change order of features included in todo.mathexampl.app.releng, it always takes the first included feature in the circular dependency error. So I do not understand this error.

To resolve the error I included advisor nodes in a cquery with "Allow Circular Dependency" set to true. But now I get another error named "No component named org.eclipse.equinox.executable:eclipse.feature is known to buckminster" although this feature is included in the update site. (The build works when executed from inside Eclipse with the buckminster action "create.product").
[java] INFO:  perform 'todo.mathexampl.app.releng#create.product'
[java] No component named org.eclipse.equinox.executable:eclipse.feature is known to Buckminster.

Here is my cquery:
<?xml version="1.0" encoding="UTF-8"?><cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="target.platform.rmap">
    <cq:rootRequest name="todo.mathexampl.app.releng" componentType="eclipse.feature"/>
    <cq:advisorNode namePattern="todo.mathexampl.*" componentType="eclipse.feature" allowCircularDependency="true"/>
    <cq:advisorNode namePattern="org.eclipse.*" componentType="eclipse.feature" allowCircularDependency="true"/>
</cq:componentQuery>

I'm not sure why I would even need to allow "circular dependencies", because there should not be any.

Any pointers would be greatly appreciated!

Megha

[Updated on: Fri, 18 May 2018 10:12]

Report message to a moderator

Forum: ATL
 Topic: ATL how to Hide Tag?
ATL how to Hide Tag? [message #1787064] Fri, 18 May 2018 09:38
Li ChiaHsiu is currently offline Li ChiaHsiuFriend
Messages: 1
Registered: May 2018
Junior Member
Hello everyone. I have one question.
I have one rule like this:

rule State{
from
s : StateMachine!State
to
a: model!a(
b <- tob,
c <- toc,
e <- 'test'
),
tob: model!b(
d <- 'testd'
),
toc: model!c(
e <- toe
)
toe:model!e (
...
)

output will like this
<a e="test">
<b d="test">
<c>
<e>
</c>
</b>
</a>


if I want my output to hide <e>. how can I plus or fix this rule.

Sorry about my English not very well
Thank you for helping

Best Regards


Forum: Test
 Topic: Forum Posting Demo
Forum Posting Demo [message #1787060] Fri, 18 May 2018 07:57
Binh Duong Micro is currently offline Binh Duong MicroFriend
Messages: 1
Registered: May 2018
Junior Member
We try to post test forum



Current Time: Fri May 25 06:56:56 GMT 2018

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

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

Back to the top