Eclipse Community Forums
Forum Search:

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

Forum: Java Development Tools (JDT)
 Topic: I want my perspective button bar back
I want my perspective button bar back [message #1059825] Tue, 21 May 2013 14:15
Marc Ewert is currently offline Marc Ewert
Messages: 3
Registered: December 2012
Junior Member
Hi,

is there any chance that we can get back the perspective button bar from the pre 4.x eclipse versions? I know so many people that are still using the version 3.7 or 3.8 because of the unfinished refactoring of the perspective button bar.

Why was it changed in such an inconvenient and unfinshed way? It's like driving a perfect car until a new designer arrives, who decides to move the direction-indicator control somewhere on the door on the passenger's side.

Is it really only a minority which bothers about the usability of the new perspective buttons, or are there many people who wants the dedicated perspective button bar back?

 Topic: JSP is not opening in Eclipse Juno
JSP is not opening in Eclipse Juno [message #1059746] Tue, 21 May 2013 09:51
ram ram is currently offline ram ram
Messages: 1
Registered: May 2013
Junior Member
JSP is not opening in Eclipse Juno Service Release 2.getting below exception while opening JSP page which has JSTL tags.Please refer screenshot for error details.

java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "=c"
at java.net.URLDecoder.decode(Unknown Source)
at org.eclipse.jst.pagedesigner.utils.ProjectResolver.getLocationByURI(ProjectResolver.java:372)
 Topic: eclipse shortcuts
eclipse shortcuts [message #1059710] Tue, 21 May 2013 06:17
Wang Guohui is currently offline Wang Guohui
Messages: 1
Registered: May 2013
Junior Member
Hi, I am a JAVA developer from China.
I have used Eclipse for 2 years in Windows that OS's language is Chinese.I'm becoming acclimated to the default shortcuts of eclipse in Chinese Windows.
Now I am working in an American company.The OS's language is English. I decompressed the same eclipse.zip file into the computer. I found that the default shortcuts were different from before. This makes me very uncomfortable.I don't wanna modify the shortcuts one by one. Is there any better idea?

By the way, there is one thing confused me. Why the default shortcuts reference to the operation system's language?
 Topic: Debugger lose focus when stepping over
Debugger lose focus when stepping over [message #1059668] Tue, 21 May 2013 03:22
Paine Pan is currently offline Paine Pan
Messages: 2
Registered: July 2009
Junior Member
I implemented a debugger, it's a process editor debugger, the editor just likes BPEL editor, i can debug each activity step by step. The issue i encountered is when i run "step over", the current stack frame hasn't been selected. As you know, in Debug View, there's a stack tree to show the current stack frame, when running step over, the new stack frame should be selected, but it didn't, it always selects the thread (the parent of stack frame) but not the stack frame, anyone have the similar problem? thanks a lot.
 Topic: Eclipse JRE resets when I exit eclipse
icon5.gif  Eclipse JRE resets when I exit eclipse [message #1059456] Sat, 18 May 2013 16:09
David Brunkow is currently offline David Brunkow
Messages: 1
Registered: May 2013
Junior Member
I'm using
Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 2
Build id: 20120216-1857

When I exit eclipse and/or restart my computer, my jre see's to reset back to the installed default, actually the j2se 1.5 execution environment from jre 1.6

I would like to set this and have it stick or I would like to add a jdk that wouldn't disappear when I restart the IDE. Can anybody point me in the direction to fix or better undestand this?

Regards

Dave
 Topic: General
General [message #1059029] Thu, 16 May 2013 05:58
lisa edward is currently offline lisa edward
Messages: 1
Registered: May 2013
Junior Member
Hai everyone. I want to learn advanced concepts of java in a short duration. Can anyone suggest a best java training institute in chennai.
Forum: TMF (Xtext)
 Topic: XtextEditor manipulation
XtextEditor manipulation [message #1059996] Wed, 22 May 2013 09:30
Edwin Tuzar is currently offline Edwin Tuzar
Messages: 7
Registered: April 2013
Junior Member
Hello everyone,
could someone help me with the following problem, please:
I want to be able when I'm pressing in a view (like the outline) on a object from my model to be able to show in the editor only that element + subelements and the rest of the things in the editor I would like to have them collapsed or grayed.
Something like this:
View:
Red
Blue
Black

and if I click on Red in the editor should show me:
+myLanguage
Red name id 
 subelementOfRed name id
 subelement2OfRed id
+code
Red name id
 subelementOfRed name id
+code

the + is for collapse code

More info: now I have the XtextEditor and the IXtextDocument, I got also the model from : IXTextDocument.readOnly(new IUnitOfWork<Object, XtextResource>()).
But I'm a little stuck of how should I make this thing to collapse in between (I get the right elements from the model)


Thanks in advance!
 Topic: Applying (uml) stereotypes?
Applying (uml) stereotypes? [message #1059990] Wed, 22 May 2013 09:07
Dennis D. is currently offline Dennis D.
Messages: 9
Registered: April 2013
Junior Member
Hi,

as a more recent follow up of http://www.eclipse.org/forums/index.php/mv/msg/18749/60087/#msg_60087 I am interested in applying a stereotype to an xtext element.

Is there any progress here or any suggestions to do it with current versions?

I'd like to define elements in my dsl and use them from uml:

xtext:
MyElem returns my::mystereotype: 'MyElem' name=ID;

... and use/reference it in uml wherever my::mystereotype is expected. I can get it all working with "returns uml::class" instead of the stereotype, however I need to have stereotypes applied.

The link cited above is not of much help to me as further references there are broken urls.

thanks
dennis
 Topic: reload all elements from the XMFResource
reload all elements from the XMFResource [message #1059934] Wed, 22 May 2013 04:37
junior developer is currently offline junior developer
Messages: 139
Registered: January 2013
Senior Member
Hi all ,

I xant to reload all elements from the EMFResources.
My problem is EMFResource is different ,XtextResource is different.

How solved this problem ???

Best Regards,
 Topic: add a field Automatically
add a field Automatically [message #1059891] Wed, 22 May 2013 02:42
junior developer is currently offline junior developer
Messages: 139
Registered: January 2013
Senior Member
Hi all ,

When I create an element in the editor,default element must be added in the different element.I want to do this case.How can I do it in the Xtext.Which class is used for it

Best regrads,
 Topic: add a field Automatically
add a field Automatically [message #1059889] Wed, 22 May 2013 02:42
junior developer is currently offline junior developer
Messages: 139
Registered: January 2013
Senior Member
Hi all ,

When I create an element in the editor,default element must be added in the different element.I want to do this case.How can I do it in the Xtext.Which class is used for it

Best regrads,
 Topic: Change EMFResource
Change EMFResource [message #1059714] Tue, 21 May 2013 06:42
junior developer is currently offline junior developer
Messages: 139
Registered: January 2013
Senior Member
Hi all,

I do synchronization Xtext and GMF.and then I do changes in the GMF ,this change is not reflected in the Xtext Editor.so I want to reach EMFresources and then do changes in the model.Displayname field is in the grammar and every element's display name is shows in the outline.I load screenshot.

When I change display name in the editor and then this change is reflected in the element's name.I want to reach EMFresources and then change model in here.

Best regrads,

 Topic: Getting linking diagnostics from reconciler
Getting linking diagnostics from reconciler [message #1059704] Tue, 21 May 2013 05:47
Marco Naddeo is currently offline Marco Naddeo
Messages: 49
Registered: November 2012
Member
Hi

I've subclassed XtextDocumentReconcileStrategy because I want to do some processing on linking diagnostic, but I don't understand how I can obtain them from the reconcile method:

public class MyDSLDocumentReconcileStrategy extends XtextDocumentReconcileStrategy {

  @Override
  public void reconcile(IRegion region) {

    ...

  }

}


Class XtextResource has methods getErrors and getWarnings which return syntax errors and warnings, but how can I retrieve instead linking diagnostics?


Thanks in advance,
Marco
 Topic: Performing automatic corrections
Performing automatic corrections [message #1059692] Tue, 21 May 2013 04:58
Marco Naddeo is currently offline Marco Naddeo
Messages: 49
Registered: November 2012
Member
Hi Smile

The Java editor automatically corrects the code in some cases... For example, if I have a class B which extends a class A, I can declare an object myObject in this way:

A myObject = new B();


but now, supposing that myMethod is a method definied in the subclass B, if I try to call it directly on myObject (declared of type A):

myObject.myMethod()


the editor in some cases automatically adds a cast converting the code as following:

((B)myObject).myMethod()


Now, I have to implement some automatic corrections on user typing. Is there some Xtext or Eclipse support for implementing them?

Where can I hook to do this?


Thanks in advance,
Marco
 Topic: Add my var in Quick Reference
Add my var in Quick Reference [message #1059631] Mon, 20 May 2013 19:27
Yoandri Saavedra is currently offline Yoandri Saavedra
Messages: 21
Registered: February 2013
Junior Member


As I stated I can dynamically add variables to the Quick Reference???.. I read the Xtext Documentation in 9.4.1. Cross Reference Template Variable Resolver.. talk about variable and Quick Reference.. this is when I press Ctrl+Space???.. this is I need.. when I press Ctr+Space in my Xtext Editor the var declared show...If you do not understand my question, is that I do not speak English, but I try to learn more about this framework, sorry
 Topic: Getting IEditorInput in validator
Getting IEditorInput in validator [message #1059627] Mon, 20 May 2013 18:48
Roza Ghamari is currently offline Roza Ghamari
Messages: 22
Registered: January 2013
Junior Member
Hi all,

I need to do some validation on my grammar based on the association of the file with a specific object I called MyResource. The command for opening the xtext editor is handled when user is right clicking on MyResource, hence I extended the FileEditorInput (called it MyEditorInput) and store the Myresource instance for the editor input there. However, I cannot get the instance of MyEditorInput in the MyGrammarJavaEditor code. I tried using PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor().getEditorInput()

but this it throw NullPointerException. Do you know any ways to get the editor input in validator? Do you think my solution for associating an external object with the xtext editor/file/resource is correct? Any other suggestions?

Thank you very much in advance!
 Topic: xText: access on Java packages, classes and methods out from the ProposalProvider
xText: access on Java packages, classes and methods out from the ProposalProvider [message #1059234] Fri, 17 May 2013 08:40
thomas thomas is currently offline thomas thomas
Messages: 1
Registered: May 2013
Junior Member
I developed a DSL which I use together with standard java code. In my DSL I can write things like this:

package:  packagename;
method: void testMethod (int, double);


What I want to do is that the user of the DSL gets the package names and method signatures suggested by the ProposalProvider which are really existing in my project.

Example:
When my project only consists of one package e.g. "TestPackage", the user of the DSL should only get the "TestPackage" as a suggestion.

How can I access my Java project packages, classes or methods out from the complete{TypeName}_{FeatureName} method of the ProposalProvider?



 Topic: IUnitOfWork and undo
IUnitOfWork and undo [message #1058921] Wed, 15 May 2013 14:46
Pawel Pogorzelski is currently offline Pawel Pogorzelski
Messages: 14
Registered: July 2009
Junior Member
Is it possible to wrap all the modifications performed within IUnitOfWork into one so the undo command rolls back all of them?

Cheers,
Pawel
Forum: Newcomers
 Topic: Eclipse on 64-bit Windows 7 (plz help)
Eclipse on 64-bit Windows 7 (plz help) [message #1059978] Wed, 22 May 2013 08:23
sdsgdvgv vgvgvg is currently offline sdsgdvgv vgvgvg
Messages: 1
Registered: May 2013
Junior Member
index.php/fa/15010/0/Can somebody plz help with this error?
 Topic: hi there
hi there [message #1059931] Wed, 22 May 2013 04:34
chandra sekaran is currently offline chandra sekaran
Messages: 1
Registered: May 2013
Junior Member
Anyone help me to how cani start the eclipse???
 Topic: With Perl - An internal error occurred during: "Toggle Line Breakpoint (epic)"
With Perl - An internal error occurred during: "Toggle Line Breakpoint (epic)" [message #1059683] Tue, 21 May 2013 04:20
matan ostrovsky is currently offline matan ostrovsky
Messages: 1
Registered: May 2013
Junior Member
I installed:
1. win 7.
2. strawberry Perl.
3. Eclipse (classic) Version: 4.2.2
Build id: M20130204-1200
4. Update the last jave ver. 1.7.0_21
5. install Active Perl
6. copy epic package to C:\eclipse\plugins

in this order.

A. I open a perl file.
B. I try to toggle a break point and I go tthe above problem/excption

Can someone please help?!?!?

Thanks alot.
Matan
 Topic: Eclipse crashing
icon4.gif  Eclipse crashing [message #1059628] Mon, 20 May 2013 18:55
Alex Van Brunt is currently offline Alex Van Brunt
Messages: 1
Registered: May 2013
Junior Member
Problem signature:
Problem Event Name: APPCRASH
Application Name: javaw.exe
Application Version: 7.0.210.11
Application Timestamp: 515d999d
Fault Module Name: mshtml.dll
Fault Module Version: 10.0.9200.16576
Fault Module Timestamp: 515e3be5
Exception Code: c0000005
Exception Offset: 0000000000023dfb
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
Additional Information 1: 29f0
Additional Information 2: 29f09761187f6a0206ca96870540f58a
Additional Information 3: 07eb
Additional Information 4: 07eba0f767ae2e43448db75364b023c9

Every time I hover over a method or anything I get a white box and an error message saying Java(TM) Platform SE binary has stopped working along with this additional information. Any clues as to why this happens? The attachment is what eclipse says afterwards
 Topic: editor questions
editor questions [message #1059568] Mon, 20 May 2013 10:05
David Mising name is currently offline David Mising name
Messages: 2
Registered: October 2011
Junior Member
Hi,

I have a general question about the eclipse editor gutter (far left of editor view), is it possible to resize this either .css or via a method call?

I dont want to increase the size of the gutter dynamically, but just change it via a property which then would not get activated until a restart.
 Topic: Looking for a "NetCobol using fujitsu 4.1" Corporate Trainer
Looking for a "NetCobol using fujitsu 4.1" Corporate Trainer [message #1059523] Mon, 20 May 2013 05:29
Ashok Kumar is currently offline Ashok Kumar
Messages: 1
Registered: May 2013
Junior Member

Dear ,

we are looking out for a trainer for the below mentioned topics on COBOL.NET.
Please send across the your profile, duration and per day commercials to set up an evaluation to take this further.


Cobol Contents

Introduction to the COBOL Language

Concepts of the COBOL Language

COBOL Language Fundamentals/COBOL Program Structure

Introduction to Build & Group Definition

Identification Division, Environment Division

Data Division

COBOL Data Items, Elementary Group Data Items, Editing Characters

Data Division - File and Data Description

Data Division - Screen Section

COBOL handling of Numbers, Strings, Characters

Procedure Division

Procedure Division - Basic verbs

Procedure Division - Arithmetic

Procedure Division - Conditional expressions

Procedure Division

Procedure Division - PERFORMs

Arrays/Table handling

String Manipulations and Character handling

Searches

Date functions

File Handling (Sequential, relative and indexed)

Sorting and Merging

Sub-programs

Database linking and transactional handling

Report writing

Object COBOL Language Extensions

Compile and runtime directives

Debugging

net Cobol using fujitsu 4.1 (above topics also need to be covered using fujitsu4.1 )

Please reach us @ 09397999969 asap.

Training Location : HYDERABAD,INDIA
 Topic: plugin for Sybase Power Builder
plugin for Sybase Power Builder [message #1059447] Sat, 18 May 2013 12:46
Julius Sahat is currently offline Julius Sahat
Messages: 1
Registered: May 2013
Junior Member
Hi All,

is there Eclipse plugin for Sybase Power Builder?
if there is please let me know to download it


Thanks
 Topic: Search Results: How To Expand All Results In "List View"?
Search Results: How To Expand All Results In "List View"? [message #1059348] Fri, 17 May 2013 11:22
Steve _____ is currently offline Steve _____
Messages: 22
Registered: April 2012
Junior Member


Eclipse has a "Show As List" option for a ctrl+H search ( multi file ). You get this option by going to the far right corner of the Search View and clicking the triangle icon.

The list is composed of list the files where the desired string was found, stating the number of hits in each file:

HelloWorld.java com.acme.first (3 matches ) Utilities.java com.acme.first (4 matches ) SomeClass.java com.acme.first (2 matches )

Is there any way to get Eclipse to expand those results, while still showing it all in a list? For example, actually showing me each of the 3 matches, in the Search View, from HelloWorld.java?
 Topic: Application errororg.eclipse.swt.SWTException: Invalid thread access MAC java 7
Application errororg.eclipse.swt.SWTException: Invalid thread access MAC java 7 [message #1058935] Wed, 15 May 2013 16:08
lak kaz is currently offline lak kaz
Messages: 1
Registered: May 2013
Junior Member
I am getting Application errororg.eclipse.swt.SWTException: Invalid thread access exception while starting Jave application.I recently upgraded to Java 1.7 on MAC. It was working fine with java 1.6. But after upgrade, i am unable to launch the application.
It is working fine from windows environment even after upgrade.
I am able to luanch the application from eclipse IDE.
But it is not working if i am trying to do from SIT/local port. I added the following arguments to my VM args after googing the exception:

<resources> <j2se version="1.5+" java-vm-args="-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts"/> </resources>



Please find logs attached

WARNING: could NOT find SYSLOG for ETLOG
***WARNING: Display must be created on main thread due to Cocoa restrictions.
05/06/13 11:36:39 LogListener: WARN: One or more bundles are not resolved because the following root constraints are not resolved:
05/06/13 11:36:40 LogListener: WARN: The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
05/06/13 11:36:40 LogListener: ERROR: Application errororg.eclipse.swt.SWTException: Invalid thread access
05/06/13 11:36:40 LogListener: ERROR: >> org.eclipse.swt.SWTException: Invalid thread access
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.SWT.error(SWT.java:4282)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.SWT.error(SWT.java:4197)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.SWT.error(SWT.java:4168)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.widgets.Display.error(Display.java:1065)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.widgets.Display.createDisplay(Display.java:822)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.widgets.Display.create(Display.java:805)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.widgets.Display.<init>(Display.java:696)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.widgets.Display.<init>(Display.java:687)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:711)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
05/06/13 11:36:40 LogListener: ERROR: >> at com.etrade.tops.container.TopsContainerApplication.start(Unknown Source)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
05/06/13 11:36:40 LogListener: ERROR: >> at java.lang.reflect.Method.invoke(Method.java:601)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartMain.java:79)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain.java:57)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
05/06/13 11:36:40 LogListener: ERROR: >> at java.lang.reflect.Method.invoke(Method.java:601)
05/06/13 11:36:40 LogListener: ERROR: >> at com.sun.javaws.Launcher.executeApplication(Unknown Source)
05/06/13 11:36:40 LogListener: ERROR: >> at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
05/06/13 11:36:40 LogListener: ERROR: >> at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
05/06/13 11:36:40 LogListener: ERROR: >> at com.sun.javaws.Launcher.run(Unknown Source)
05/06/13 11:36:40 LogListener: ERROR: >> at java.lang.Thread.run(Thread.java:722)
Shutting down JMSConsumer Service Instance
  • Attachment: TXT.rtf
    (Size: 32.11KB, Downloaded 3 times)
Forum: Remote Application Platform (RAP)
 Topic: Infocenter as a WAR
Infocenter as a WAR [message #1059960] Wed, 22 May 2013 07:20
Phill Perryman is currently offline Phill Perryman
Messages: 201
Registered: July 2009
Senior Member
Can someone point me in the right direction to using the war product tooling to deploy an info centre. I am using Kepler.

I switched the target to the platform.

I started by opening the org.eclipse.help.infocenter-feature/feature.xml and trying to put the same plugins into the war product file but immediately hit org.apache.commons.el/org.apache.jasper which does not exist in the Kepler platform.

I assumed if I could get all the correct plugins in the war file then building it would create a war deployable info centre I could load into tomcat.
 Topic: Assembling RAP 1.5 application with Maven
Assembling RAP 1.5 application with Maven [message #1059671] Tue, 21 May 2013 03:35
Cristian Ionitoiu is currently offline Cristian Ionitoiu
Messages: 3
Registered: April 2013
Junior Member
Hello,

I'm working on a RAP 1.5 application using Eclipse 4.2 that can be assembled into a war file either via Ant or via Maven. The application uses the Google visualization bundles org.eclipse.rap.rwt.excanvas and org.eclipse.rap.rwt.visualization.google.
When the application is assembled to a war file all bundle dependencies have the same version with the exception of the above two bundles.

If the application is built via Ant, both bundles are fetched with the version 1.5.0.201305171114, as the following jars are placed into the plugins directory:
org.eclipse.rap.rwt.visualization.google_1.5.0.201305171114.jar and org.eclipse.rap.rwt.excanvas_1.5.0.201305171114.jar.

If the application is built via Maven, the fetched bundles have different versions: org.eclipse.rap.rwt.excanvas-1.5.0.20120220-1720.jar, and
org.eclipse.rap.rwt.visualization.google-1.5.0.20120220-1720.jar.

The end result of this comparison and different builds is that the Ant version of the war works fine including the histogram creation functionality that uses these packages. However, in the case of the Maven built war if one tries to use the histograms the application crashes with some Javascript error dumping all JSON on screen starting with:

Error: Error: Operation "call" on target "jsex" of type "[object Object]" failed:
this[b[e]] is not a function
Properties:


This error seems to be documented here but with the observation that application does use only org.eclipse.swt.widgets.Composite as suggested in comment 10 as an workaround. So, it is not clear to me why the error appears strictly related to the suggestions in the bug description.

It is clearly a strange versioning issue, because if I manually replace the two bundles in the Maven war with the corresponding (newer?) bundles from the Ant war and I change accordingly the feature.xml then the Maven war works fine including the graphics functionality.

I have tried to find 1.5.0.201305171114 version of the bundles via tycho/maven but I failed (even after using last built of the Orbit repository), because I would actually like to develop and configure the application via Maven NOT via Ant. Currently these are the repositories used in the parent pom:

  <repositories>  
  		<!-- add Juno repository to resolve dependencies -->  
  		<repository>  
   			<id>Juno</id>  
   			<layout>p2</layout>  
   			<url>http://download.eclipse.org/releases/juno/</url>
  		</repository>
  		       <repository>
      		       <id>orbit</id>
      		       <layout>p2</layout>
      		       <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20130517111416/repository/</url>
    	        </repository>
  		<repository>
  			<id>Rap 1.5 Incubator</id>
  			<layout>p2</layout>
  			<url>http://download.eclipse.org/rt/rap/1.5/incubator/</url> 
  		</repository>
  </repositories>


Any suggestion or help in solving this would be greatly appreciated. Thanks and please let me know if you need more information,

Cristian
 Topic: Hardware recommendations for RAP server
Hardware recommendations for RAP server [message #1059199] Fri, 17 May 2013 05:11
Ken Lee is currently offline Ken Lee
Messages: 58
Registered: March 2012
Member
Hi,

I'd like to know if there are any key data about hardware recommendations for a RAP server running a larger RAP application on a Tomcat or WebSphere webserver.

In particular, we have about 2000 users connecting concurrently to the RAP server. Do you have any experience or recommendations about the hardware regarding CPU and RAM for the following setups:


  • 1 RAP server, i.e. all 2000 users connect to this one and only RAP server.
  • 3 RAP server, i.e. 3 nodes in a cluster so that each server handles about 666 users.


I'm looking forward to getting feedback and experiences of other RAP developers.

Cheers,

Ken
Forum: Paho
 Topic: Puback not received
Puback not received [message #1059991] Wed, 22 May 2013 09:14
marco divita is currently offline marco divita
Messages: 2
Registered: May 2013
Junior Member
Hi,
I have a problem in my mqtt client.
The scenario is:
1) A client with id "macchina 1" is connected to broker with Keep Alive Timer = 0 and it's subscribed to topic c/1/+/sts (this client is based on Paho library)
2) Another client with id "3" connects to broker every 5 minutes and it publishes a message on topic c/1/3/sts

During it's working happens that the client with id "macchina 1" doesn't send anymore the puback and after some retring of publishing of the broker the socket gives an error for "macchina 1".
To recover I need to restar the application with client id "macchina 1" because the client's connection is put down.

Here it is the mosquitto's log:

1369208386: New connection from 95.240.30.96.
1369208386: New client connected from 95.240.30.96 as macchina1.
1369208386: Sending CONNACK to macchina1 (0)
1369208387: Received PINGREQ from macchina1
1369208387: Sending PINGRESP to macchina1

1369208400: New connection from 151.18.71.174.
1369208400: New client connected from 151.18.71.174 as 3.
1369208400: Sending CONNACK to 3 (0)
1369208407: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369208407: Sending PUBACK to 3 (Mid: 10)
1369208407: Sending PUBLISH to macchina1 (d0, q1, r0, m753, 'c/1/3/sts', ... (19 bytes))
1369208407: Received PUBACK from macchina1 (Mid: 753)
1369208413: Received DISCONNECT from 3

1369208697: New connection from 151.47.77.5.
1369208697: New client connected from 151.47.77.5 as 3.
1369208697: Sending CONNACK to 3 (0)
1369208706: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369208706: Sending PUBACK to 3 (Mid: 10)
1369208706: Sending PUBLISH to macchina1 (d0, q1, r0, m754, 'c/1/3/sts', ... (19 bytes))
1369208706: Received PUBACK from macchina1 (Mid: 754)
1369208712: Received DISCONNECT from 3

1369208995: New connection from 151.19.68.34.
1369208996: New client connected from 151.19.68.34 as 3.
1369208996: Sending CONNACK to 3 (0)
1369209002: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369209002: Sending PUBACK to 3 (Mid: 10)
1369209002: Sending PUBLISH to macchina1 (d0, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))

[color=red]There isn't PUBACK from macchina1[/color]

1369209009: Received DISCONNECT from 3
1369209023: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209044: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209065: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209086: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209107: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209109: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1369209128: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209149: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209170: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209191: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209212: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209233: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209254: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209275: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))

1369209292: New connection from 151.46.34.137.
1369209293: New client connected from 151.46.34.137 as 3.
1369209293: Sending CONNACK to 3 (0)
1369209296: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209299: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369209299: Sending PUBACK to 3 (Mid: 10)
1369209306: Received DISCONNECT from 3
1369209317: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209338: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209359: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209380: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209401: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209422: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209443: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209464: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209485: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209506: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209527: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209548: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209569: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))

1369209589: New connection from 151.31.161.144.
1369209589: New client connected from 151.31.161.144 as 3.
1369209589: Sending CONNACK to 3 (0)
1369209590: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209596: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369209596: Sending PUBACK to 3 (Mid: 10)
1369209602: Received DISCONNECT from 3
1369209611: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209632: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209653: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209674: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209695: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209716: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209737: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209758: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209779: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209800: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209821: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209842: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209863: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209884: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))

1369209886: New connection from 151.46.130.62.
1369209887: New client connected from 151.46.130.62 as 3.
1369209887: Sending CONNACK to 3 (0)
1369209893: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369209893: Sending PUBACK to 3 (Mid: 10)
1369209899: Received DISCONNECT from 3
1369209905: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209926: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209947: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
[color=red]1369209956: Socket read error on client macchina1, disconnecting.[/color]

[b][color=blue]Restart my application[/color][/b]

1369210135: New connection from 95.240.30.96.
1369210135: New client connected from 95.240.30.96 as macchina1.
1369210135: Sending CONNACK to macchina1 (0)
1369210135: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369210135: Received PINGREQ from macchina1
1369210135: Sending PINGRESP to macchina1
1369210136: Received PUBACK from macchina1 (Mid: 755)
1369210136: Sending PUBLISH to macchina1 (d0, q1, r0, m756, 'c/1/3/sts', ... (19 bytes))
1369210136: Received PUBACK from macchina1 (Mid: 756)
1369210136: Sending PUBLISH to macchina1 (d0, q1, r0, m757, 'c/1/3/sts', ... (19 bytes))
1369210137: Received PUBACK from macchina1 (Mid: 757)
1369210137: Sending PUBLISH to macchina1 (d0, q1, r0, m758, 'c/1/3/sts', ... (19 bytes))
1369210137: Received PUBACK from macchina1 (Mid: 758)
Forum: Eclipse Platform
 Topic: Asynchronuously write into workspace file
icon5.gif  Asynchronuously write into workspace file [message #1059989] Wed, 22 May 2013 09:06
Hendrik Renken is currently offline Hendrik Renken
Messages: 14
Registered: July 2009
Junior Member
Hi,

i'm (more than a little bit) confused about how to correctly write content into a file in the workspace using background processes.

At first, i used a simple thread which called IResource#setContent (and the like), however, that seemed to block the workspace and come with all sorts of downsizes.
Therefore, i've switched to the WorkspaceJob from the ResourcePlugin.


The content is streamed over the network into an instance of java.io.InputStream and i want to save this content into a specific file (defined by the given URI).
This process can take up to several minutes. Therefore, the write process should run asynchronuously in the background.

Here is my current code:
protected void writeToURI(final URI uri, final InputStream stream) throws IOException
{
  final IFile res = (IFile) WorkspaceTools.getResource(uri); //determine the IFile from the given URI
  final int hint = ... //determine correct write hint based on network request and actual resource state

  WorkspaceJob writeJob = new WorkspaceJob("Write content to " + uri)
  {

    public IStatus runInWorkspace(IProgressMonitor monitor)
    {
      try
      {
        if (!res.exists())
          ensureExists(res.getParent());
        switch (hint)
        {
           case CREATE:
             res.create(stream, true, monitor);
             break;
           case APPEND:
             res.appendContents(stream, true, false, monitor);
             break;
           case SET_CONTENT:
             res.setContents(stream, true, true, monitor);
        }
      } catch (CoreException e)
      {
        Close.close(stream);
        return new Status(IStatus.ERROR, "de.d3fact.server.net.interfaces", "Could not write to file " + uri, e);
      }
      return Status.OK_STATUS;
    }
  };

  writeJob.setRule(null);
  writeJob.schedule();
}


The problem with this code is, that it, regardless of the ISchedulingRule, it seems to block the workspace.
In my scenario, i'm writing to a simple text file "Test.txt" in a simple folder called "debug" in a java project. The content consists of simple lines of text.
Now, when i try to modify java files in the same project - while i receive data over the network and write it with said code into said file, everything locks up and i have to kill the eclipse instance.
I have tried different ISchedulingRules (the IFile, IResourceRuleFactory#createRule() and IResourceRuleFactory#modifyRule respectively and currently i'm using null to have maximum concurrency).

I'm running eclipse 4.3.0 RC1 on a Mac OSX system.


My last guess is, to use the java.io.file API and when streaming has finished to run an IResource#refreshLocal(). But before i implement that hack, i wanted to ask you how to correctly write content into a file without locking up the workspace.
 Topic: How to use menus extension to add popup to text editor only for files in projects w/ certain nature
How to use menus extension to add popup to text editor only for files in projects w/ certain nature [message #1059382] Fri, 17 May 2013 15:15
Jeremy Flicker is currently offline Jeremy Flicker
Messages: 1
Registered: May 2013
Junior Member
I would like to contribute actions to the menus of a text editor that are visible only when the file being edited is in a project with a certain nature. But I can't seem to figure out how to use the core expressions to do this through various experiments... Anyone have success doing this?
 Topic: PlatformObject.getAdapter(Class) returns null during start-up
PlatformObject.getAdapter(Class) returns null during start-up [message #1059104] Thu, 16 May 2013 13:36
Brian Vosburgh is currently offline Brian Vosburgh
Messages: 126
Registered: July 2009
Senior Member
We (Dali) adapt the platform interface IProject to the Dali interface ProjectResourceLocator.

This Dali interface and its sole implementation, SimpleProjectResourceLocator, are in the plug-in o.e.jpt.common.core. The IAdapterFactory that implements this "adaptation" is in the same plug-in. And plugin.xml defining the corresponding extension to the o.e.core.runtime.adapters extension point is also in the same plug-in.

The problem: Intermittently, during start-up, a call to IProject.getAdapter(ProjectResourceLocator.class) will return null with the first call but not null with subsequent calls. The adapter factory is implemented in such a way that it will never return null; so, apparently, the adapter factory is not invoked by the platform adapter manager. This seems to be a bug, as the plug-in must have been loaded for the class ProjectResourceLocator to be resolved. Unfortunately, in a test workspace where this happens with every start-up, it never happens when executing under the debugger (even with no breakpoints whatsoever).

Is this expected behavior (i.e. that even though a plug-in is loaded, its adapter factories are not necessarily loaded)? If not, can anyone offer any hints as to how we can investigate, sans the debugger, why the platform adapter manager does not invoke the appropriate adapter factory?
Forum: Equinox
 Topic: services console command filter problem
services console command filter problem [message #1059987] Wed, 22 May 2013 08:57
Cristiano Gaviao is currently offline Cristiano Gaviao
Messages: 246
Registered: July 2009
Senior Member
Hello,

I'm facing a problem with the services command at equinox kepler M7 that I would like some advice.

When I use: "osgi> services" without any parameter I got this:

{org.jbehave.osgi.interactive.services.StoryRunnerService}={service.pid=org.jbehave.osgi.interactive.components.StoryRunnerServiceComponent-1369225414834-0, serviceStoryClass=org.jbehave.osgi.examples.trader.it.embedder.TraderAnnotatedPathRunnerOsgi,
service.factoryPid=org.jbehave.osgi.interactive.components.StoryRunnerServiceComponent, service.id=61}

But when I tried to filter it using its properties I can't get the service:

osgi> services (serviceStoryClass=org.jbehave.osgi.examples.trader.it.embedder.TraderAnnotatedPathRunnerOsgi)
"No registered services."

Could someone point me what am I doing wrong ?

thanks

Cristiano

[Updated on: Wed, 22 May 2013 08:58]

Report message to a moderator

Forum: Virgo
 Topic: Virgo 3.6.2 Release
Virgo 3.6.2 Release [message #1059979] Wed, 22 May 2013 08:25
Violeta Georgieva is currently online Violeta Georgieva
Messages: 173
Registered: October 2010
Senior Member
Hi,

Virgo 3.6.2.RELEASE is available for download.

This release updates the versions of the enterprise components. The new Virgo Nano Web version comes with various performance improvements. The release also includes several bug fixes.

Please see the release notes for more details.

Regards
Violeta
Forum: Papyrus
 Topic: Node Interruptible Activity Region & Stereotype
Node Interruptible Activity Region & Stereotype [message #1058949] Wed, 15 May 2013 18:27
Noelia as is currently offline Noelia as
Messages: 13
Registered: June 2012
Junior Member
Hi,

My problem is that in an activity diagram when I apply a sterotype of a profile already defined over a node "Interrupible Activity Region", this sterotype does not appear in a visual mode in that node as in other nodes. Is there any method to do it?

Thanks and regards.
Forum: Eclipse 4
 Topic: The visibleWhen of toolbar does not work well on Eclipse 4.2
The visibleWhen of toolbar does not work well on Eclipse 4.2 [message #1059435] Sat, 18 May 2013 07:31
Matthew Liu is currently offline Matthew Liu
Messages: 2
Registered: March 2013
Junior Member
Hello all,

The following snippet works well for Eclipse 3.7.1, but fails to work on Eclipse 4.2.

Eclipse Modeling Tools
Version: Juno Service Release 2
Build id: 20130225-0426

Could anyone give a hint on this problem? Thanks!



<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar id="com.toolbarID">
<command commandId="com.check" icon="icons/check.gif" id="com.check"
style="push" tooltip="Check">
<visibleWhen checkEnabled="false">
<with variable="selection">
<iterate ifEmpty="false">
<and>
<instanceof value="org.eclipse.core.internal.resources.File">
</instanceof>
<test property="org.eclipse.core.resources.name" value="*.mydsl">
</test>
</and>
</iterate>
</with>
</visibleWhen>
</command>
</toolbar>
</menuContribution>
</extension>
Forum: OCL
 Topic: [Announce] Eclipse OCL 4.1.0 (Kepler) RC1 is now available.
[Announce] Eclipse OCL 4.1.0 (Kepler) RC1 is now available. [message #1059955] Wed, 22 May 2013 06:48
Adolfo Sanchez-Barbudo Herrera is currently offline Adolfo Sanchez-Barbudo Herrera
Messages: 239
Registered: July 2009
Senior Member
Update site: http://download.eclipse.org/modeling/mdt/ocl/updates/milestones
Downloadable zips:
http://www.eclipse.org/modeling/mdt/downloads/?project=ocl

Cheers,
Adolfo.
Forum: Rich Client Platform (RCP)
 Topic: Problem with SWT Browser in 3.8
Problem with SWT Browser in 3.8 [message #1059944] Wed, 22 May 2013 05:24
Guenther Mahr is currently offline Guenther Mahr
Messages: 5
Registered: September 2011
Junior Member
I have a problem with the SWT Browser widget when running on 3.8 (everything is fine on 3.7): during initialization execution stops in IDispatch.GetTypeInfo() and doesn't resume. We are running on XP.

Thanks for your help!
Günther
Pages (3): [1  2  3    »]


Current Time: Wed May 22 09:51:16 EDT 2013

Powered by FUDForum. Page generated in 0.03883 seconds