[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Error on RCP product export, when OCL validation is used

Hi Ed,

actually i'm still learning on Eclipse, the .log in the workspace shows only

<LOG-CONTENTS>
!SESSION 2009-06-11 14:10:54.921 -----------------------------------------------
eclipse.buildId=I20090605-1444
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86 -consoleLog -debug


!ENTRY org.eclipse.pde.core 4 0 2009-06-11 14:12:15.500
!MESSAGE Cannot complete the install because one or more required items could not be found.


!SUBENTRY 1 org.eclipse.pde.core 4 0 2009-06-11 14:12:15.500
!MESSAGE Software being installed: System diagram modeler 1.0.0 (DiagrammerProductID 1.0.0)


!SUBENTRY 1 org.eclipse.pde.core 4 0 2009-06-11 14:12:15.500
!MESSAGE Missing requirement: System diagram modeler 1.0.0 (DiagrammerProductID 1.0.0) requires 'net.sourceforge.lpg.lpgjavaruntime [1.0.0.v200803061811]' but it could not be found


!ENTRY org.eclipse.pde.core 4 0 2009-06-11 14:16:11.265
!MESSAGE Cannot complete the install because one or more required items could not be found.


!SUBENTRY 1 org.eclipse.pde.core 4 0 2009-06-11 14:16:11.265
!MESSAGE Software being installed: System diagram modeler 1.0.0 (DiagrammerProductID 1.0.0)


!SUBENTRY 1 org.eclipse.pde.core 4 0 2009-06-11 14:16:11.265
!MESSAGE Missing requirement: System diagram modeler 1.0.0 (DiagrammerProductID 1.0.0) requires 'net.sourceforge.lpg.lpgjavaruntime [1.0.0.v200803061811]' but it could not be found
</LOG-CONTENTS>


so I guess, that does not help further. I can't see the PDE Runtime >> Error log in my Eclipse.

When i doubleclick on the lpgjavaruntime in the <dependency tab> of the product, it states the right version being 1.1.0.
But product export only succeeds when i additionally define the version properties in the <dependency tab> of the product as 1.1.0.v200803061910.


I think my debugging power in/around Eclipse is quite weak. As i'm often not sure how Eclipse should behave, i am also unable to state a proper bug report. But this conversation can be found googling anyway, which will also help others.

best regards,
Marco Stein


Ed Willink wrote:
Hi Marco

It seems that either:

RCP export specified an incorrect dependency

or:

RCP export failed to warn of an under-specified dependency

Whichever, RCP export was unhelpful and so you should raise a
Bugzilla. I'm sure you will not be the only person to have this
problem.

Have you checked the (PDE Runtime) Error Log to see if there
was a secret NPE or equivalent error message?

    Regards

        Ed Willink

Marco Stein wrote:
Hello again,

well, i finally found a solution.

I do not know why Eclipse tries to include the lpgjavaruntime1.0.0.
When adding the exact required version (1.1.0.v200803061910) in the products' dependencies, the product export finally succeeded.


Thanks Ed for leading me in the right direction.

best regards,
Marco Stein


Marco Stein wrote:
Hi Ed,

i have had another look at the plug-in dependencies.
Plug-in dependencies of the diagram editor plugin as well as other plugins shows lpgjavaruntime1.1.0 dependency, but not on 1.0.0.


The launch configuration also makes use of 1.1.0 runtime, although the 1.0.0 runtime is also available.
I can also launch the product without problem, but i can't export it.


How can i find out what/who exactly requires this plugin when i do an export? Where would be the dangling references, in which config files?

best regards,
Marco



Ed Willink wrote:
Hi Marco

The message complains that lpgjavaruntime 1.0.0 could not be found.
This is not surprising since OCL and probably everything else uses
1.1.0. (IMP uses 2.xx). Have you got some old configuration files
that reference earlier releases?

    Regards

        Ed Willink

Marco Stein wrote:
Hi there,

i have just downloaded and installed GMF2.2.0RC4 and all build dependencies and suppose to have a clean installation.

My diagram modeler works wonderfully. Big thanks to the GMF people :-)
I am also able to export the RCP diagram modeler as a product.

Now that the diagram modeler works fine, I want to add constraints using OCL. I add the constraints to the gmfmap model, recreate the gmfgen-model (all OK) , and set the gmfgen-models properties for validation support:
Live Validation UI Feedback true
Validation Decorators true
Validation Enabled true
Validation Decorator Provider Priority Medium


After recreation of the diagram editor, it works fine when run as eclipse application. Validation works fine as expected.

But now the addition of OCL has broken my ProductExport, which quits with the attached message. There is some error with the
net.sourceforge.lpg.lpgjavaruntime


What could be the possible cause of this problem? Any hints?

best regards,
Marco Stein

------------------------------------------------------------------------



GIF image