Today's Messages (off)
| Unanswered Messages (on)
| Forum: OCL |
|---|
| Topic: How to read an OCL query and pass to an OCLExpression ? |
|---|
| How to read an OCL query and pass to an OCLExpression ? [message #1058635] |
Tue, 14 May 2013 11:10 |
Kosala Yapa Messages: 133 Registered: September 2010 |
Senior Member |
|
|
Hi,
I have an OCL query expression in an OCL file (R101.ocl).
Example of R101.ocl
context Device
inv maxModules: self.Modules->size()
How can I read R101.ocl file and assign this as an OCLExpression to queryExp in my java program ?
(OCLExpression<EClassifier> queryExp
Note:
// create OCL helper
OCLHelper<EClassifier, EOperation, EStructuralFeature, Constraint> helper = ocl
.createOCLHelper();
Can I bypass helper.createQuery() operation ? (This operation has a performance issue)
Thanks in advance.
K
[Updated on: Wed, 15 May 2013 03:17] Report message to a moderator
|
|
| | Forum: TMF (Xtext) |
|---|
| Topic: Add my var in Quick Reference |
|---|
| Add my var in Quick Reference [message #1059631] |
Mon, 20 May 2013 19:27 |
|
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 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 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: Referencing plug-in resources |
|---|
| Referencing plug-in resources [message #1059074] |
Thu, 16 May 2013 10:25 |
Roland S. Messages: 34 Registered: September 2009 |
Member |
|
|
Hi,
we developed a DSL with Xtext and created a product that ships with some documents in that language in a plug-in. If we turn on the pack flag so that the shipped plug-in is put into a jar file, we can add a dependency to that plug-in and reference elements inside the shipped documents. If the plug-in is unpacked after installation (the files are inside a folder in the plugins folder instead of a jar file), referencing the same elements does not work.
Do you have any hints how to avoid this limitation? Sadly we need to unpack some of the plug-ins.
Regards,
Roland
|
|
| | Topic: IUnitOfWork and undo |
|---|
| IUnitOfWork and undo [message #1058921] |
Wed, 15 May 2013 14:46 |
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
|
|
| | Topic: Integration of GMF and Xtext -> Problem with ResourceDescription |
|---|
| Integration of GMF and Xtext -> Problem with ResourceDescription [message #1058633] |
Tue, 14 May 2013 11:09 |
Phil H Messages: 63 Registered: November 2012 |
Member |
|
|
Hi,
I'm trying to integrate GMF and Xtext at the moment. First I want to outline what I want to have, before I explain my problem.
In the GMF Editor you are able to create nodes, which should be reused by the Xtext grammar. In order to specify some constraints for the model, you can click on a specific node label which opens a xtext based cell editor.
To achieve this, the Xtext grammar reuse the existing ecore from the EMF/GMF project. Furthermore I created a custom Resource Description with an acording manager and service provider. The Resource Description filters the necessary objects, as you can see below:
protected List<IEObjectDescription> computeExportedObjects() {
List<IEObjectDescription> exportedObjects = new ArrayList<IEObjectDescription>();
Map<String, String> userData = new HashMap<String, String>();
for (TreeIterator<EObject> iterator = resource.getAllContents(); iterator.hasNext();) {
EObject eObject = iterator.next();
if (eObject instanceof Feature) {
String qualifiedName = ((Feature) eObject).getName();
if (qualifiedName != null) {
exportedObjects.add(new EObjectDescription(qualifiedNameConverter.toQualifiedName(qualifiedName), eObject,userData));
}
....
In the GMF Editor, I implemented the IXtextAwareEditPart interface in the corresponding edit part, which uses an XtextDirectEditManager and I also created a new DirectEditPolicy.
When I run the editor now, and reference the Objects in the xtext cell editor it seems to work. But when I add new model elements to my diagram, xtext dont get the reference to them. I need to save the whole diagram first in order that the computeExportedObjects() method is called again and the content assitant offers me the newly added elements.
Is there a way to get the exportedObjects updated every time when there a changes happen in the diagram (for example adding or deleting elements) ?? Because I've not much knowledge about xtext, it's hard for me to find a hook.
Cheers,
Phil
|
|
| | Forum: Koneki |
|---|
| Topic: Windows Koneki and Corona first steps setup |
|---|
| Windows Koneki and Corona first steps setup [message #1059131] |
Thu, 16 May 2013 17:59 |
Linus Janson Messages: 2 Registered: May 2013 |
Junior Member |
|
|
Hi 
I want to debug or at least edit and run Android apps in the Corona Simulator, from Eclipse.
I saw Benjamin's youtube video (can't link) of using Koneki once it is installed. Benjamin's version is Mac though and looks a little different.
I have XP 32-bit and Corona Simulator works fine. I will have to use just a text editor until I get Eclipse working.
I downloaded Koneki LDT standalone 1.0, created new project and tried run as Lua Application, but I get Exception in thread Main.
And code hinting doesn't work even for Lua, when I type "for" I get no suggestions.
1. What to download?
2. How to tell Corona Simulator and Eclipse so they can find each other?
3. What to install/set up to get Corona API look up code hinting in Eclipse?
Android Developer
Free Thought Games
freethoughtgames.wordpress.com
[Updated on: Fri, 17 May 2013 08:08] Report message to a moderator
|
|
| | Forum: Newcomers |
|---|
| Topic: editor questions |
|---|
| editor questions [message #1059568] |
Mon, 20 May 2013 10:05 |
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: 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 _____ 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 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)
|
|
| | Topic: Missing Marketplace |
|---|
| Missing Marketplace [message #1058757] |
Tue, 14 May 2013 18:40 |
Keith Spriggs Messages: 3 Registered: April 2013 |
Junior Member |
|
|
Hi guys, I'm running kepler, but I would like to add in some applications, however it seem that the marketplace is missing.
How would I go about installing it?
Thanks in advance
|
|
| | Forum: Jubula |
|---|
| Topic: Drag and drop not scrolling in Jubula |
|---|
| Drag and drop not scrolling in Jubula [message #1059611] |
Mon, 20 May 2013 15:46 |
latha n Messages: 3 Registered: May 2013 |
Junior Member |
|
|
Hi,
I am trying jubula to test an eclipse RCP application. I need to open an image on canvas and need to draw rectangles at specific coordinates on the canvas. But the problem I have is Jubula is only taking the visible area as 100%. If I change the image size to 100% my image is bigger than the visible canvas size and scroll bars appear. But Jubula is not looking at the entire image and treating only the visible area as 100% and drawing at the wrong location. If I reduce the image size to fit the screen and adjust the coordinates accordingly it's slightly off from one monitor to the other(Probably depends on resolution). Is there a way to tell jubula to take the entire image space including the scrolled part as 100% size. I have verified that the auto scroll is set to true.
Thanks
|
|
| | Topic: Jubula 2.0 to VNC on Linux |
|---|
| Jubula 2.0 to VNC on Linux [message #1059604] |
Mon, 20 May 2013 14:39 |
Brian Watt Messages: 17 Registered: February 2012 |
Junior Member |
|
|
I am running Jubula 2.0.00148 on Linux RH 6.4 on a remote machine which I am viewing using VNC. Let's call this machine jubula. Jubula seems alive and well and I am able to manually control it through VNC without any problems. This machine is not the problem.
However I am having problems running a test case from the jubula machine to my AUT on Linux RHEL 6.2. Let's call this machine autlinux. Because the autlinux machine is remote I am using VNC to view its "display". The AUT is Eclipse, and jubula can start it up correctly. When it tries to run the first test step in the test case which selects 'File'/'Exit' the test fails. This is because it tries to select ***the VNC menu*** and not the AUT's menu.
Note: If I run that same test to my AUT on Windows XP SP 3 it runs successfully. Let's call this machine autwindows. In other words, the test case drives the AUT and the I see the mouse move, the File & Exit menus get selected, etc. all of which I am viewing on my local Windows display (not through VNC).
Is there any known problems using VNC on AUT machines? Or do you have any suggestions for running remote AUT machines such as Linux?
[Updated on: Mon, 20 May 2013 14:46] Report message to a moderator
|
|
| | Topic: Coordinates on GEF Canvas |
|---|
| Coordinates on GEF Canvas [message #1059462] |
Sun, 19 May 2013 00:11 |
latha n Messages: 3 Registered: May 2013 |
Junior Member |
|
|
I am trying Jubula for an Eclipse RCP project. It has a GEF canvas and I need to choose a tool and drag on the canvas to make a rectangle. Every time I run the test, it has to draw exactly at the same location. I am using the canvas drag and drop with coordinates. But how do I find the coordinates on the canvas? Is there a way in jubula to do that or is there any other tool I can use to do that?
Thank you
|
|
| | Topic: Unique index or primary key violation |
|---|
| | Topic: Problem with executing external command on remote machine with 'Local' parameter set on false |
|---|
| Problem with executing external command on remote machine with 'Local' parameter set on false [message #1058838] |
Wed, 15 May 2013 07:26 |
Miroslav Jankovic Messages: 7 Registered: June 2012 |
Junior Member |
|
|
I'm trying to execute script on remote machine with external command. It is about powershell script which write to excel file.
In case when is 'Local' parameter set to false (script and file are on remote machine where is agent to), error occurred: "Timeout received before confirming the posted event".
It is important to mention, that the job will be well done, script would write desirable result in file, but test step will be failed (and test to)!
In case that parameter is set to 'true', everything work fine, test step pass.
|
|
| | Forum: ATL |
|---|
| Topic: toString helper |
|---|
| toString helper [message #1059487] |
Sun, 19 May 2013 13:04 |
Basma Moukhtar Messages: 21 Registered: June 2010 |
Junior Member |
|
|
Dears,
I have a helper that's defined as this:
helper context MyPackage!MyClass def: toString() : String = 'Self To String;'
But I need to set a boolean attribute in self (MyPackage!MyClass) to true when the "toString" function is called.
I can't write self.myAttibute=true because my helper returns string.
How can I do this?
|
|
| | Topic: Resolved: Uml2Uml: dynamic packagedElement Creation |
|---|
| Resolved: Uml2Uml: dynamic packagedElement Creation [message #1059003] |
Thu, 16 May 2013 03:49 |
Stefan L Messages: 5 Registered: July 2012 |
Junior Member |
|
|
Hi,
I'm desperately trying to generate packagedElements in my target model via my model rule for each class elements of my source model.
A simple code I found works with static code:
rule Model {
from s : UML2!"uml::Model"
to t : UML2!"uml::Model" (
name <- s.name,
packagedElement <- OrderedSet {services, information, processes}
),
services: UML2!"uml::Class" (
name <- 'asdf'
),
information: UML2!"uml::Class" (
name <- 'information view'
),
processes: UML2!"uml::Class" (
name <- 'services view'
)
}
But actually I want to do something like this, to generate multiple classes as packagedElements within the model scope:
rule Model {
from s : UML2!"uml::Model"
to t : UML2!"uml::Model" (
name <- s.name,
packagedElement <- OrderedSet {UML2!"uml::Class".allInstances()}
)
}
This gives me the following error:
Exception in thread "main" org.eclipse.m2m.atl.emftvm.util.VMException: java.lang.ClassCastException: org.eclipse.m2m.atl.emftvm.util.LazyList$UnionList cannot be cast to org.eclipse.emf.ecore.EObject
at rule Model@applier#12(../AtlTransform/test/test.atl#[65:3-65:70])
Local variables: [__trace__: TRACE!TraceLink = 25ea22df:TRACE!TraceLink, s: UML2!uml::Model = model:UML2!Model, t: UML2!uml::Model = model:UML2!Model]
at static EMFTVM!ExecEnv::main() : Object(../AtlTransform/test/test.atl)
Local variables: []
at org.eclipse.m2m.atl.emftvm.impl.CodeBlockImpl.internalExecute(CodeBlockImpl.java:989)
...
Whereas the static try works just fine. I don't know how i should interpret this EObject thingy.
Nevertheless, I would appreciate some hint/help here. Thanks.
Stefan
EDIT: ohmygod, now i actually have seen the error 
rule Model {
from s : UML2!"uml::Model"
to t : UML2!"uml::Model" (
name <- s.name,
packagedElement <- UML2!"uml::Class".allInstances()
)
}
I just removed the OrderedSet.
[Updated on: Thu, 16 May 2013 03:55] Report message to a moderator
|
|
| | Forum: NatTable |
|---|
| Topic: ColumnReorderEvent values incorrect |
|---|
| ColumnReorderEvent values incorrect [message #1059606] |
Mon, 20 May 2013 15:14 |
Mark Proe Messages: 17 Registered: July 2009 |
Junior Member |
|
|
Hello,
I am using a ColumnReorderLayer in my NatTable. I have added a listener to that layer so I can be notified when a ColumnReorderEvent happened.
For the most part, the TO COLUMN and FROM COLUMN values from the ColumnReorderEvent appear to be what I'd expect. However, when I drag a column to the end of my table, things go wrong. I am seeing an invalid TO COLUMN value. (For example, if I have 7 columns in my table...When I drag a column to the right of Column 7, I would expect to see a TO COLUMN of 7. But instead, I see a value of 5?)
Thanks,
Mark
|
|
| | Forum: scout |
|---|
| Topic: Logout fails |
|---|
| Logout fails [message #1059376] |
Fri, 17 May 2013 14:38 |
Boy D'Poy Messages: 27 Registered: October 2011 |
Junior Member |
|
|
Hi All,
I'm trying to evaluate the Bahbah project I downloaded from github (https://github.com/BSI-Business-Systems-Integration-AG/org.eclipsescout.demo.git)
First of all as the examples that I write myself, the disconnection appears to fail, one's immediately reconnected after clicking "Logout" from the menu, by cons when we put a breakpoint in the method "AbstractClientSession#stopSession (int)", a step-by-step run leads to some effective logout but an exception is thrown as this:
!ENTRY org.eclipse.scout.rt.client 1 0 2013-05-17 20:17:03.921
!MESSAGE org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:374) logout on server
!STACK 0
java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy16.logout(Unknown Source)
at org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:370)
at org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:344)
at org.eclipse.scout.bahbah.client.ui.desktop.Desktop$LogoutMenu.execAction(Desktop.java:86)
at org.eclipse.scout.rt.client.ui.action.AbstractAction.doAction(AbstractAction.java:292)
at org.eclipse.scout.rt.client.ui.action.AbstractAction$P_UIFacade.fireActionFromUI(AbstractAction.java:629)
at org.eclipse.scout.rt.ui.rap.action.AbstractRwtMenuAction$2.run(AbstractRwtMenuAction.java:220)
at org.eclipse.scout.rt.ui.rap.concurrency.RwtScoutSynchronizer$1.runVoid(RwtScoutSynchronizer.java:61)
at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:189)
at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:172)
at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:159)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: ProcessingException[ProcessingStatus[ERROR code=0 Calling ILogoutService.logout() java.lang.InterruptedException: Annulé par l'utilisateur]]
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:163)
at org.eclipse.scout.rt.client.servicetunnel.http.internal.InternalHttpServiceTunnel.invokeService(InternalHttpServiceTunnel.java:175)
at org.eclipse.scout.rt.client.servicetunnel.http.HttpServiceTunnel.invokeService(HttpServiceTunnel.java:115)
at org.eclipse.scout.rt.client.servicetunnel.ServiceTunnelInvocationHandler.invoke(ServiceTunnelInvocationHandler.java:47)
at com.sun.proxy.$Proxy16.logout(Unknown Source)
at org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:370)
at org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:344)
at org.eclipse.scout.bahbah.client.ui.desktop.Desktop$LogoutMenu.execAction(Desktop.java:86)
at org.eclipse.scout.rt.client.ui.action.AbstractAction.doAction(AbstractAction.java:292)
at org.eclipse.scout.rt.client.ui.action.AbstractAction$P_UIFacade.fireActionFromUI(AbstractAction.java:629)
at org.eclipse.scout.rt.ui.rap.action.AbstractRwtMenuAction$2.run(AbstractRwtMenuAction.java:220)
at org.eclipse.scout.rt.ui.rap.concurrency.RwtScoutSynchronizer$1.runVoid(RwtScoutSynchronizer.java:61)
at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:189)
at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:172)
at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:159)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:167)
at org.eclipse.scout.rt.client.servicetunnel.http.internal.InternalHttpServiceTunnel.invokeService(InternalHttpServiceTunnel.java:175)
at org.eclipse.scout.rt.client.servicetunnel.http.HttpServiceTunnel.invokeService(HttpServiceTunnel.java:115)
at org.eclipse.scout.rt.client.servicetunnel.ServiceTunnelInvocationHandler.invoke(ServiceTunnelInvocationHandler.java:47)
... 12 more
Caused by: java.lang.InterruptedException: Annulé par l'utilisateur
at org.eclipse.scout.rt.client.servicetunnel.http.internal.InternalHttpServiceTunnel.tunnelOnline(InternalHttpServiceTunnel.java:181)
at org.eclipse.scout.rt.client.servicetunnel.http.HttpServiceTunnel.tunnelOnline(HttpServiceTunnel.java:122)
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.tunnel(AbstractServiceTunnel.java:194)
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:125)
... 15 more
!ENTRY org.eclipse.scout.rt.client 1 0 2013-05-17 20:17:08.738
!MESSAGE org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:378) end session event loop
So what's really happening?
Is the session properly closed and resources freed at "Logout" click?
If not, what are the best practices to adopt, especially in this case where It seems to me that the processing of notifications prevents clients' disconnection.
Thanks!
Attachment: bahbah.zip
(Size: 280.66KB, Downloaded 2 times)
|
|
| | Topic: BrowserField on Mac OS X |
|---|
| BrowserField on Mac OS X [message #1059113] |
Thu, 16 May 2013 15:53 |
Aqua Macboy Messages: 7 Registered: February 2013 |
Junior Member |
|
|
Did anyone manage to get the BrowserField running on Mac OS X? I always get the following error:
Exception in thread "SWT HTML Display Dispatcher" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at org.eclipse.scout.rt.ui.swing.form.fields.browserfield.internal.SwingScoutBrowserField$StaticDisplayDispatcher.run(SwingScoutBrowserField.java:368)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 1 more
I am using Java 7 on OS X Snow Leopard. I have the SWT Bundle and Fragment included in my product and I am following this thread (http://www.eclipse.org/forums/index.php/t/452511/) to launch my client. Is it possible to use the BrowserField on OS X?
|
|
| | Forum: M2T (model-to-text transformation) |
|---|
| Topic: What is genBuildAcceleo |
|---|
| What is genBuildAcceleo [message #1059599] |
Mon, 20 May 2013 13:38 |
Ed Willink Messages: 3153 Registered: July 2009 |
Senior Member |
|
|
HI
Using M7 I see a new kind of Acceleo error.
What is genBuildAcceleo ?
Has an API changed?
org.eclipse.acceleo.engine.AcceleoEvaluationException: Could not find
public template genBuildAcceleo in module buildAcceleo.
at
org.eclipse.acceleo.engine.service.AcceleoService.findTemplates(AcceleoService.java:1099)
at
org.eclipse.acceleo.engine.service.AcceleoService.doGenerate(AcceleoService.java:425)
at
org.eclipse.acceleo.internal.ide.ui.generators.AcceleoUIGenerator.generate(AcceleoUIGenerator.java:479)
at
org.eclipse.acceleo.internal.ide.ui.generators.AcceleoUIGenerator.generateBuildAcceleo(AcceleoUIGenerator.java:223)
at
org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.generateAcceleoBuildFile(AcceleoBuilder.java:630)
at
org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.build(AcceleoBuilder.java:245)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
Regards
Ed Willink
|
|
| | Topic: XML2XML |
|---|
| XML2XML [message #1059469] |
Sun, 19 May 2013 06:21 |
samar sousou Messages: 43 Registered: March 2013 |
Member |
|
|
Hi every body,
I have a problem when i want to transform an XML to another XML in ATL.
When i want to translate a root vers the other root, i have this error "Cannot set feature children to value [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@106c28e (eClass: org.eclipse.emf.ecore.impl.EClassImpl@45a13b (name: Attribute) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@22610b (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@cf16e8 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@e25e24 (name: Element) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1112380 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@122d2ad (eClass: org.eclipse.emf.ecore.impl.EClassImpl@e25e24 (name: Element) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@31d83c (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1a71ca6 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@e25e24 (name: Element) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@6b5372 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false))], inter-model references are forbidden. Configure launching options to allow them."
I didn't understand this error.
So, i need your help and this is my Root rule.
rule ROOT {
from
i : XMLS!Root
to
o: XMLC!Root (
name <- 'donneesMUDU',
startLine <- i.startLine,
startColumn <- i.startColumn,
endLine <- i.endLine,
endColumn <- i.endColumn,
children <- i.children
)
}
what should i do!
Thank you,
Samar
|
|
| | Topic: [Acceleo] NullPointerException during Tycho Build |
|---|
| [Acceleo] NullPointerException during Tycho Build [message #1059249] |
Thu, 16 May 2013 11:13 |
|
Hey everyone,
I have a multi project tycho project.
After some of my MTL-files are compiled to EMTL(about half of them), the
build stops with following error message/stack trace:
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with
exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.eclipse.acceleo:maven:3.2.1:acceleo-compile (acceleo-compile) on
project
de.fraunhofer.fokus.testing.fokusmbt.service.testcodegeneration.impl.ttcn3pio:
Execution acceleo-compile of goal
org.eclipse.acceleo:maven:3.2.1:acceleo-compile failed.
[DEBUG] Closing connection to remote
[ERROR] Failed to execute goal
org.eclipse.acceleo:maven:3.2.1:acceleo-compile (acceleo-compile) on project
de.fraunhofer.fokus.testing.fokusmbt.service.testcodegeneration.impl.ttcn3pio:
Execution acceleo-compile of goal
org.eclipse.acceleo:maven:3.2.1:acceleo-compile failed.
NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.eclipse.acceleo:maven:3.2.1:acceleo-compile (acceleo-compile) on
project
de.fraunhofer.fokus.testing.fokusmbt.service.testcodegeneration.impl.ttcn3pio:
Execution acceleo-compile of goal
org.eclipse.acceleo:maven:3.2.1:acceleo-compile failed.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
acceleo-compile of goal org.eclipse.acceleo:maven:3.2.1:acceleo-compile
failed.
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at
org.eclipse.acceleo.parser.AcceleoParserProblem.equals(AcceleoParserProblem.java:118)
at java.util.HashMap.put(HashMap.java:376)
at java.util.HashSet.add(HashSet.java:200)
at
org.eclipse.acceleo.parser.AcceleoParserProblems.addProblem(AcceleoParserProblems.java:54)
at
org.eclipse.acceleo.parser.AcceleoSourceBuffer.logProblem(AcceleoSourceBuffer.java:390)
at
org.eclipse.acceleo.internal.parser.ast.ASTFactory.logProblem(ASTFactory.java:598)
at
org.eclipse.acceleo.internal.parser.ast.ASTFactory.getOrCreateOCLExpression(ASTFactory.java:309)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:777)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:1399)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolveBody(CST2ASTConverterWithResolver.java:1802)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:1467)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolveBody(CST2ASTConverterWithResolver.java:1804)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:546)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolveOwnedModuleElement(CST2ASTConverterWithResolver.java:1768)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:198)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.resolveAST(CST2ASTConverterWithResolver.java:136)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.resolveAST(CST2ASTConverterWithResolver.java:115)
at
org.eclipse.acceleo.parser.AcceleoSourceBuffer.resolveAST(AcceleoSourceBuffer.java:336)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.doBuild(AcceleoParser.java:605)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:421)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildImpactedModules(AcceleoParser.java:726)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:426)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildImpactedModules(AcceleoParser.java:726)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:426)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:310)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.computeModuleFileDependency(AcceleoParser.java:458)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:389)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildImpactedModules(AcceleoParser.java:726)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:426)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:310)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.computeModuleFileDependency(AcceleoParser.java:458)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:389)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildAll(AcceleoParser.java:254)
at
org.eclipse.acceleo.maven.AcceleoParserMojo.execute(AcceleoParserMojo.java:348)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more
Can anybody help me and fix this? I can provide pom configuration, but I
figured because some are already compiled, it must be correct.
Or could this be a problem with the MTL-files?
Regards,
Luis Reisewitz
|
|
| | Forum: Nebula |
|---|
| Topic: Children relationship lines in GridTreeViewer |
|---|
| | Forum: CDT |
|---|
| Topic: Another Managed Make/Targets question |
|---|
| Another Managed Make/Targets question [message #1059386] |
Fri, 17 May 2013 16:48 |
Scott Neugroschl Messages: 1 Registered: May 2013 |
Junior Member |
|
|
Using Indigo....
I've looked around for an answer to this.
I'm got a Managed Make with multiple targets project. I can add the build targets, and have successfuly created a "makefile.targets".
I can build each target individually, no problem. My problem is, I'm trying to figure out how to build all targets at once.
I tried adding
all: target1 target2
to makefile.targets, but when I did a "build project", it tried to build {project}.exe, which failed abysmally (2 main() programs).
So what I'm looking for, is a way to tell it not to build {project}.exe, and to build target1 and target2 when I try to build the project.
Or will I need to use a Standard makefile instead?
|
|
| | Topic: Cannot include asset_manager_jni.h!!! |
|---|
| Cannot include asset_manager_jni.h!!! [message #1059380] |
Fri, 17 May 2013 15:00 |
Devon Yoo Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I strongly think this is a bug on Eclipse.
The problem I have is explained in the image I attached so please take a look.
I think I did the all settings correctly.
I keep having "No such file" error when I try to include <android/asset_manager_jni.h>.
The funny thing is #include <android/log.h> doesn't give me any error msg even though both files are in the same folder.
The weird thing is that AAssetManager class becomes available even though it gives me "No such file" error.
Can someone please tell me what is going on??
|
|
| | Topic: gdb problem when debugging std::shared_ptr |
|---|
| gdb problem when debugging std::shared_ptr [message #1059202] |
Fri, 17 May 2013 05:28 |
Paolo Laffranchini Messages: 1 Registered: May 2013 |
Junior Member |
|
|
Hi everybody,
It is actually the first time i post on this forum, so i will try to explain my issues the best way i can...
i'm having a problem when debugging a multithreaded application...
Basically, the program crashes because of a segmentation fault, so i was trying to debug it using eclipse 3.8 CDT on Ubuntu 12.10
My app uses std::shared:ptr<T> and yesterday, during debugging, i found out that the problem came up when trying to access the object stored in the shared_ptr, but the raw pointer had value "0x0" (obviously causing the segfault).
So, today, i tried to put around my code some conditional breakpoints with condition of the form:
obj.get()==0x0 (obj is a shared_ptr instance)
what is actually happening during the debugging is that the program crashes with the following error (from the gdb trace):
Error in testing breakpoint condition:
The program stopped in another thread while making a function call from GDB.
Evaluation of the expression containing the function
(std::__shared_ptr<Packet, (__gnu_cxx::_Lock_policy)2>::get() const) will be abandoned.
When the function is done executing, GDB will silently stop.
/build/buildd/gdb-7.5/gdb/infrun.c:6076: internal-error: normal_stop: Assertion `get_frame_type (frame) == DUMMY_FRAME' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
I really do not understand what is happening here, since the problem does not show up if i disable the breakpoints (still the program crashes due to the segfault, obviously).
Any help will be extremly appreciated...Thank you in advance...
|
|
| | Topic: Eclipse CDT Indigo VS Kepler |
|---|
| Eclipse CDT Indigo VS Kepler [message #1058947] |
Wed, 15 May 2013 17:45 |
John Doe Messages: 2 Registered: May 2013 |
Junior Member |
|
|
Hello,
I am programming in C and using CDT Indigo (I purposely skipped Eclipse Juno).
Soon I will switch to C++ projects, and I've thought of also upgrading to Eclipse Kepler CDT, which should come out next month.
Are there any noticeable improvements for the non-professional programmer in Kepler?
Is Kepler more stable with C++ than its predecessors?
Thanks in advance =]
|
|
| | Topic: How Can I Get the Progress Bar Back? |
|---|
| How Can I Get the Progress Bar Back? [message #1058867] |
Wed, 15 May 2013 09:16 |
Brandon Mising name Messages: 12 Registered: June 2011 Location: Florida |
Junior Member |
|
|
|
Until yesterday, whenever I build my project, I got a pop-up with a progress bar in it. I found it a convenient, prominent indication of how the compile was going. This was a little window that just floated in mid-screen and then disappeared. How do I get it back? Thanks.
|
|
| | Topic: Symbol error when I use boost.unerdered_set in my project |
|---|
| Symbol error when I use boost.unerdered_set in my project [message #1058787] |
Wed, 15 May 2013 02:29 |
Joseph Cho Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I want to use the container boost.unordered_set in my project.
I have already set the include path, and included the header file <boost/unordered_set.hpp> in my source file, and use the namespace boost;
when I build my project, it tells me "Symbol 'unordered_set' could not be resolved".
and When I type "." I can't get the method from the object of unordered_set.
But it can generate the execution file.
in order to make sure what,s wrong, I new a test project with my Eclipse, in this project I also use boost.unordered_set when I build this project , it can make it successfully without any error message.
I don't know what' wrong with my project. I need some one can give me some help, thanks very much.
|
|
| | Forum: BIRT |
|---|
| Topic: BIRT DE with POJO and ODA (not a Scripted Source) |
|---|
| BIRT DE with POJO and ODA (not a Scripted Source) [message #1059384] |
Fri, 17 May 2013 15:30 |
Donavan Anderson Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I have scoured the web and applied some good trial-and-error coding for the last four days in search of an answer to the following, which I hope someone may be able to assist with (and I thank you in advance).
I have successfully created a BIRT Design Engine columnar report with a source database (all internal DE, no Eclipse IDE required). Now I would like to use a POJO as the data source with an ODA and not a scripted source. I have created a POJO based report using an ODA with the Eclipse IDE but I am pursuing performing this creation using just the BIRT Design Engine so that I can create dynamic reports.
I am starting with just a simple data object (customerlist.Customer) and a simple service object (customerlist.CustomerDataset) that returns some static sample data as a list.
I wanted to start with a known working POJO ODA so I am currently using Actuate's version "com.actuate.data.oda.pojo_22.0.0.v20130129.jar", which is what I used to create a POJO report using the Eclipse IDE.
I am stuck on the following:
• How to set the query text for a POJO (I know how to set this for a database source and an XML source, but I have not found an example for a POJO).
• How to map the table columns to the POJO.
• Other missing properties for the data source?
Here is the XML source for the "queryText" as generated by the IDE. I can see that the name, type, and method need to be mapped, but how??...
<xml-property name="queryText"><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<PojoQuery appContextKey="APP_CONTEXT_KEY_DATA SET" dataSetClass="customerlist.CustomerDataset" version="1.0">
<ColumnMapping index="1" name="City" odaDataType="String">
<Method name="getCity"/>
</ColumnMapping>
<ColumnMapping index="2" name="Country" odaDataType="String">
<Method name="getCountry"/>
</ColumnMapping>
<ColumnMapping index="3" name="CustomerName" odaDataType="String">
<Method name="getCustomerName"/>
</ColumnMapping>
<ColumnMapping index="4" name="CustomerNumber" odaDataType="Integer">
<Method name="getCustomerNumber"/>
</ColumnMapping>
<ColumnMapping index="5" name="State" odaDataType="String">
<Method name="getState"/>
</ColumnMapping>
</PojoQuery>
Here are the methods for creating the data source and data set...
private void createDataSource() throws SemanticException {
OdaDataSourceHandle dataSourceHandle = elementFactory.newOdaDataSource("Data Source", "com.actuate.data.oda.pojo");
dataSourceHandle.setProperty("pojoDataSetClassPath", " customerlist.CustomerDataset" );
// TODO: Any missing properties??
reportDesignHandle.getDataSources().add(dataSourceHandle);
}
private void createDataSet() throws SemanticException {
OdaDataSetHandle dataSetHandle = elementFactory.newOdaDataSet("ds", "com.actuate.data.oda.pojo.dataSet");
dataSetHandle.setDataSource("Data Source");
dataSetHandle.setQueryText(); // TODO: What to put here??
reportDesignHandle.getDataSets().add(dataSetHandle);
}
And to create the table...
private TableHandle createTable() {
TableHandle table = elementFactory.newTableItem("reportTable", columnReport.getTotalColumns());
table.setDataSet(reportDesignHandle.findDataSet("ds"));
PropertyHandle computedSet = table.getColumnBindings();
ComputedColumn tableColumn = null;
for (int i = 0; i < tableColumnNames.size(); i++) {
tableColumn = StructureFactory.createComputedColumn();
tableColumn.setName((String) tableColumnNames.get(i));
tableColumn.setExpression("dataSetRow[\"" + (String) tableColumnNames.get(i) + "\"]");
computedSet.addItem(tableColumn);
}
...
DataItemHandle dataItem = elementFactory.newDataItem(tableColumnNames.get(i));
dataItem.setResultSetColumn((String) tableColumnNames.get(i));
cell.getContent().add(dataItem);
...
}
It just occurred to me to try using the getter method in "setResultSetColumn" instead of the column name, but I am still stuck without the appropriate setQueryText string.
Please let me know if you need any additional information.
Thank you for any assistance you can provide.
Donavan
|
|
| | Topic: org.eclipse.birt.report.service.api.ReportServiceException |
|---|
| org.eclipse.birt.report.service.api.ReportServiceException [message #1059369] |
Fri, 17 May 2013 13:08 |
jason jj Messages: 2 Registered: May 2013 |
Junior Member |
|
|
Estoy recibiendo el siguiente error al desplegar un reporte birt en IE. Alguna ayuda gracias
Exception
Close
org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report; nested exception is: java.lang.NullPointerException
Show Exception Stack Trace
Hide Exception Stack Trace
Stack Trace:
org.eclipse.birt.report.engine.ir.Report.getReportItemByID(Report.java:195)
org.eclipse.birt.report.engine.internal.document.v4.MasterPageExecutor.execute(MasterPageExecutor.java:80)
org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:45)
org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:33)
org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeMasterPage(ReportExecutorUtil.java:66)
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.start(HTMLPageLM.java:143)
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:84)
org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:106)
org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:583)
org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:267)
org.eclipse.birt.report.service.ReportEngineService.renderReport(Unknown Source)
org.eclipse.birt.report.service.ReportEngineService.renderReport(Unknown Source)
org.eclipse.birt.report.service.BirtViewerReportService.getPage(Unknown Source)
org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.doExecution(Unknown Source)
org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.__execute(Unknown Source)
org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(Unknown Source)
org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(Unknown Source)
org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(Unknown Source)
org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPage(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:618)
org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(Unknown Source)
org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:618)
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
org.eclipse.birt.report.filter.ViewerFilter.doFilter(Unknown Source)
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:848)
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:691)
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:588)
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
|
|
| | Forum: Eclipse 4 |
|---|
| Topic: "Install new software" window not showing properly in Debian 7 |
|---|
| | 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 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: GMF (Graphical Modeling Framework) |
|---|
| Topic: Property Constraints |
|---|
| Property Constraints [message #1059575] |
Mon, 20 May 2013 10:40 |
serhat gezgin Messages: 122 Registered: January 2013 Location: Izmir |
Senior Member |
|
|
Hi
I have this metamodel;
(i only showing releations)
abstract Field
LookUp extends Field
contentType -> 1..1 ContentType (referance)
showField -> 1..1 Field (reference)
Content Type
ownedField -> 0..* Field(containment)
here i just want when user select showfield feature from properties section of LookUp Field, GMF must show only its referenced ContentType element Field's. But when i generate GMF it shows all created Field. How can i constraint this ? anyone can help me ?
(Example attached as a picture)
on example LookUp defined and cnn2 ContentType set as its ContentType referance feature. But when i click showField from properties section i must have only 'no' Number Field. But it gives me all fields. But i need only no Number field. How can i do this anyone can help me ?
Regards
Attachment: LookUp.png
(Size: 162.24KB, Downloaded 2 times)
[Updated on: Mon, 20 May 2013 10:44] Report message to a moderator
|
|
| | Topic: Remove bottom padding from rectangle |
|---|
| Remove bottom padding from rectangle [message #1059479] |
Sun, 19 May 2013 08:47 |
jack reacher Messages: 3 Registered: May 2013 |
Junior Member |
|
|
Hi
I am trying to create visuals like EClass and EAttribute in my model. I can create compartments and add attributes inside classes. But I can't get rid of the extra bottom padding from the attributes. I am attaching a screenshot of the visual and graph definition.
Also since the EMF book is dated 2009, it doesn't include new graph, tool and map element definitions. Is there a reference document where I can get information on these new elements?
Thank you in advance.
Attachment: comp.png
(Size: 17.24KB, Downloaded 5 times)
|
|
| | Topic: Connector Labels (Polyline Connection) |
|---|
| Connector Labels (Polyline Connection) [message #1059231] |
Fri, 17 May 2013 08:18 |
|
Hi,
In one diagram I have a figure element that is the representation of a Polyline and for it I attached a label with a text. The Label is the one that you can show/hide in the diagram view by Show/Hide Connector Labels. When the text that goes to the Label becomes long, I need to make it multiple line or have it multiple line from the beginning. I tried to change the type from a Label to a Custom Figure and set the CustomAttribute textWrap to true , but not possible to see this happening the moment the Label is displayed in the Diagram Editor.
Any idea is welcome.
|
|
| | Topic: Create Commands Of Elements |
|---|
| Create Commands Of Elements [message #1059182] |
Fri, 17 May 2013 03:18 |
serhat gezgin Messages: 122 Registered: January 2013 Location: Izmir |
Senior Member |
|
|
Hi all,
on attached picture. I show creation command section of Diagram for List element.
But i dont want to show this buttons. So i go to COmmands package and creation class
and modify
public boolean canExecute() {
return false;
}
but when i done this this creation buttons just disabled but they are visible as
before. I just want to dont show this buttons so how can i done this anyone can help
me ?
Regards
|
|
|
Pages (3): [1 ]
Current Time: Mon May 20 20:57:23 EDT 2013
Powered by FUDForum. Page generated in 0.13273 seconds
|