Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCLStdLib extension
OCLStdLib extension [message #1065516] Wed, 26 June 2013 09:34 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

I want to extend StdLib and for that purpose i am looking OCLstdlibTests.java for help.

In testImport method :
String testFile =
"import 'minimal.oclstdlib';\n"+
"import 'minimal.oclstdlib';\n"+
"library lib : lib = 'http://minimal.oclstdlib'{\n"+
" type OclAny : AnyType {\n"+
" operation a(elem : Boolean) : Boolean {\n"+
" post a: result = elem;\n"+
" }\n"+
" }\n"+
"}\n";

why import statemnet is saying 'minimal.oclstdlib' and also 'library lib : lib = 'http://minimal.oclstdlib'? It feels importing itself?

I would like to import .oclstdlib which is currently being utilized so my import statement should be saying some thing like

import 'http://www.eclipse.org/ocl/3.1.0/OCL.oclstdlib' ???

I want add an operation and want to use "=>" to sepecify class (class residing in my own plugin) which can resolve operation and i want to make sure my new oclstdlib is loaded. Can i specify the class from my own plugin?

Regards,


Re: OCLStdLib extension [message #1065521 is a reply to message #1065516] Wed, 26 June 2013 10:01 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Test code sometimes exercises bad ways of doing things. cf the double
import.

The import imports. The library declares and in this case declares an
'overlay'.

You should be able to import the standard library, and provided you
export your Java code on the classpath, you should be able to reference
them using =>

Regards

Ed Willink


On 26/06/2013 10:34, ModelGeek Mising name wrote:
> Hi,
>
> I want to extend StdLib and for that purpose i am looking
> OCLstdlibTests.java for help.
>
> In testImport method :
> String testFile =
> "import 'minimal.oclstdlib';\n"+
> "import 'minimal.oclstdlib';\n"+
> "library lib : lib = 'http://minimal.oclstdlib'{\n"+
> " type OclAny : AnyType {\n"+
> " operation a(elem : Boolean) : Boolean {\n"+
> " post a: result = elem;\n"+
> " }\n"+
> " }\n"+
> "}\n";
>
> why import statemnet is saying 'minimal.oclstdlib' and also 'library
> lib : lib = 'http://minimal.oclstdlib'? It feels importing itself?
>
> I would like to import .oclstdlib which is currently being utilized so
> my import statement should be saying some thing like
> import 'http://www.eclipse.org/ocl/3.1.0/OCL.oclstdlib' ???
>
> I want add an operation and want to use "=>" to sepecify class (class
> residing in my own plugin) which can resolve operation and i want to
> make sure my new oclstdlib is loaded. Can i specify the class from my
> own plugin?
>
> Regards,
>
>
>
Re: OCLStdLib extension [message #1065531 is a reply to message #1065521] Wed, 26 June 2013 11:32 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

I have tried to execute this example and i have altered code like

String testFile =
"import 'http://www.eclipse.org/ocl/3.1.0/OCL.oclstdlib';\n"+
"library lib : lib = 'http://minimal.oclstdlib'{\n"+
" type OclAny : AnyType {\n"+
" operation a(elem : Boolean) : Boolean {\n"+
" post a: result = elem;\n"+
" }\n"+
" }\n"+
"}\n";

and now i am getting exception, i think import path is problematic...

any idea?

org.eclipse.ocl.examples.pivot.utilities.IllegalLibraryException: No 'Bag' type in the OCL Standard Library
at org.eclipse.ocl.examples.pivot.manager.PivotStandardLibrary.getRequiredLibraryType(PivotStandardLibrary.java:281)
at org.eclipse.ocl.examples.pivot.manager.PivotStandardLibrary.resolveRequiredTemplateableType(PivotStandardLibrary.java:389)
at org.eclipse.ocl.examples.pivot.manager.PivotStandardLibrary.getBagType(PivotStandardLibrary.java:119)
at org.eclipse.ocl.examples.pivot.model.OCLMetaModel$Contents.<init>(OCLMetaModel.java:81)
at org.eclipse.ocl.examples.pivot.model.OCLMetaModel.create(OCLMetaModel.java:59)
at org.eclipse.ocl.examples.pivot.manager.MetaModelManager.loadPivotMetaModel(MetaModelManager.java:2495)
at org.eclipse.ocl.examples.pivot.manager.MetaModelManager.getPivotMetaModel(MetaModelManager.java:1800)
at org.eclipse.ocl.examples.pivot.manager.MetaModelManager.getTypeServer(MetaModelManager.java:2216)
at org.eclipse.ocl.examples.pivot.manager.MetaModelManager.getPrimaryType(MetaModelManager.java:1969)



Re: OCLStdLib extension [message #1065565 is a reply to message #1065516] Wed, 26 June 2013 14:13 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

i have fixed import problem.

thanks!

Re: OCLStdLib extension [message #1065585 is a reply to message #1065521] Wed, 26 June 2013 15:08 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

I have written following code. Loading of new oclstdlib and parsing for OCL query goes fine but evaluation of query gives

following execption : org.eclipse.ocl.examples.domain.values.impl.InvalidValueException: Failed to evaluate lib::Boolean.a(Boolean) : Boolean
at org.eclipse.ocl.examples.pivot.evaluation.EvaluationVisitorImpl.visitOperationCallExp(EvaluationVisitorImpl.java:729)
at org.eclipse.ocl.examples.pivot.internal.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:462)
at org.eclipse.ocl.examples.pivot.evaluation.EvaluationVisitorImpl.visitLetExp(EvaluationVisitorImpl.java:572)


Code :


String testFile =
"import 'http://www.eclipse.org/ocl/3.1.0/OCL.oclstdlib';\n"+
"library lib : lib = 'http://www.eclipse.org/ocl/3.1.0/OCL.oclstdlib'{\n"+
" type Boolean : PrimitiveType conformsTo OclAny {\n"+
" operation a(elem : Boolean) : Boolean {\n"+
" post a: result = elem;\n"+
" }\n"+
" }\n"+
" type Boolean : PrimitiveType conformsTo OclAny {\n"+
" operation b(elem : Boolean) : Boolean {\n"+
" post b: result = elem;\n"+
" }\n"+
" }\n"+

"}\n";
Resource pivotResource;
try {
pivotResource = doLoadFromString("string.oclstdlib", testFile);
MetaModelManager metaModelManager = MetaModelManager.getAdapter(pivotResource.getResourceSet());
PrimitiveType oclAnyType = metaModelManager.getBooleanType();
Iterable<? extends DomainOperation> ownedOperations = metaModelManager.getAllOperations(oclAnyType, false);
//assertEquals(2, Iterables.size(ownedOperations)); // one from OclAny::=
System.out.println("methods = " + Iterables.size(ownedOperations));
//org.eclipse.ocl.examples.pivot.OCL ocl = org.eclipse.ocl.examples.pivot.OCL.newInstance(new PivotEnvironmentFactory());
org.eclipse.ocl.examples.pivot.OCL ocl = org.eclipse.ocl.examples.pivot.OCL.newInstance(new PivotEnvironmentFactory(pivotResource.getResourceSet().getPackageRegistry(), metaModelManager), pivotResource);
OCLHelper helper = ocl.createOCLHelper();
ExpressionInOCL exp = helper.createQuery("let x : Boolean = true in x.a(true)");
Query q = ocl.createQuery(exp);
System.out.println("result = " + q.evaluate());// here comes the exception if i comment query then every thing works fine

metaModelManager.dispose();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

any idea?

Regards,
Re: OCLStdLib extension [message #1065642 is a reply to message #1065585] Wed, 26 June 2013 20:50 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I do not like studying partial examples; it is a waste of my time. Zip
up a demonstration project.

Your code looks quite mad. Why are you using postconditions? Where are
your Java operations?

Regards

Ed Willink




On 26/06/2013 16:08, ModelGeek Mising name wrote:
> Hi,
>
> I have written following code. Loading of new oclstdlib and parsing
> for OCL query goes fine but evaluation of query gives
>
> following execption :
> org.eclipse.ocl.examples.domain.values.impl.InvalidValueException:
> Failed to evaluate lib::Boolean.a(Boolean) : Boolean
> at
> org.eclipse.ocl.examples.pivot.evaluation.EvaluationVisitorImpl.visitOperationCallExp(EvaluationVisitorImpl.java:729)
> at
> org.eclipse.ocl.examples.pivot.internal.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:462)
> at
> org.eclipse.ocl.examples.pivot.evaluation.EvaluationVisitorImpl.visitLetExp(EvaluationVisitorImpl.java:572)
>
>
> Code :
>
>
> String testFile =
> "import
> 'http://www.eclipse.org/ocl/3.1.0/OCL.oclstdlib';\n"+
> "library lib : lib =
> 'http://www.eclipse.org/ocl/3.1.0/OCL.oclstdlib'{\n"+
> " type Boolean : PrimitiveType conformsTo OclAny {\n"+
> " operation a(elem : Boolean) : Boolean {\n"+
> " post a: result = elem;\n"+
> " }\n"+
> " }\n"+
> " type Boolean : PrimitiveType conformsTo OclAny {\n"+
> " operation b(elem : Boolean) : Boolean {\n"+
> " post b: result = elem;\n"+
> " }\n"+
> " }\n"+
>
> "}\n";
> Resource pivotResource;
> try {
> pivotResource = doLoadFromString("string.oclstdlib",
> testFile);
> MetaModelManager metaModelManager =
> MetaModelManager.getAdapter(pivotResource.getResourceSet());
> PrimitiveType oclAnyType =
> metaModelManager.getBooleanType();
> Iterable<? extends DomainOperation> ownedOperations =
> metaModelManager.getAllOperations(oclAnyType, false);
> //assertEquals(2,
> Iterables.size(ownedOperations)); // one from OclAny::=
> System.out.println("methods = " +
> Iterables.size(ownedOperations));
> //org.eclipse.ocl.examples.pivot.OCL ocl =
> org.eclipse.ocl.examples.pivot.OCL.newInstance(new
> PivotEnvironmentFactory());
> org.eclipse.ocl.examples.pivot.OCL ocl =
> org.eclipse.ocl.examples.pivot.OCL.newInstance(new
> PivotEnvironmentFactory(pivotResource.getResourceSet().getPackageRegistry(),
> metaModelManager), pivotResource);
> OCLHelper helper = ocl.createOCLHelper();
> ExpressionInOCL exp = helper.createQuery("let x : Boolean = true in
> x.a(true)");
> Query q = ocl.createQuery(exp);
> System.out.println("result = " + q.evaluate());// here
> comes the exception if i comment query then every thing works fine
>
> metaModelManager.dispose();
> } catch (Exception e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>
> any idea?
>
> Regards,
Re: OCLStdLib extension [message #1065739 is a reply to message #1065642] Thu, 27 June 2013 10:40 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

I attached zip. I have also used java operations. I am still getting the same exception.
Attached code is simple plugin with one view and on view load i am instantiating OCLStdLibTest class.

thanks for your support.

Regards,
Re: OCLStdLib extension [message #1065744 is a reply to message #1065739] Thu, 27 June 2013 11:11 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

And what am I supposed to do with it?

There is no *.oclstdlib file.

The Test class looks like ione of my tests but is not runable as a test
or standalone.

The embedded library snippet references
ics.eaat.abstractmodeller.model.TestNumericOperation but the project
contains oclstdlibplugin.model.TestNumericOperation.

I've no idea what the View has to do with it.

Regards

Ed Willink




On 27/06/2013 11:40, ModelGeek Mising name wrote:
> Hi,
>
> I attached zip. I have also used java operations. I am still getting the same exception.
> Attached code is simple plugin with one view and on view load i am instantiating OCLStdLibTest class.
>
> thanks for your support.
>
> Regards,
Re: OCLStdLib extension [message #1073355 is a reply to message #1065744] Wed, 24 July 2013 15:26 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

I have used kepler and have downloaded org.eclipse.ocl kepler EGIT repository. I have extended stdlib and have ran .mwe2 file successfully. Now i want to export feature so i can use it in Indigo build as my application is using 3.x RCP and it already contains 3.3.0 version for ocl.examples plugins

In org.eclipse.ocl there are many feature plugin. Can you please guide me which one i should use to export?

thanks!

Cheers,
Re: OCLStdLib extension [message #1073757 is a reply to message #1073355] Thu, 25 July 2013 12:39 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
HI

You may use an Indigo platform, but you will need to use Kepler EMF,
Xtext, (UML), OCL.

Regards

Ed Willink


On 24/07/2013 16:26, ModelGeek Mising name wrote:
> Hi,
>
> I have used kepler and have downloaded org.eclipse.ocl kepler EGIT
> repository. I have extended stdlib and have ran .mwe2 file
> successfully. Now i want to export feature so i can use it in Indigo
> build as my application is using 3.x RCP and it already contains 3.3.0
> version for ocl.examples plugins
>
> In org.eclipse.ocl there are many feature plugin. Can you please guide
> me which one i should use to export?
>
> thanks!
>
> Cheers,
Re: OCLStdLib extension [message #1074173 is a reply to message #1073757] Fri, 26 July 2013 08:19 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
thanks!

In my org.eclipse.ocl kepler EGIT repository, i am getting compliation error
"The hierarchy of the type OCLContentProposer is inconsistent" in org.eclipse.ocl.examples.editor.ocl.ui plugin. Same error is there in many classes in same package.

The second compilation error i am facing is (org.eclipse.ocl.examples.editor.ocl.ui.ecore)

The return types are incompatible for the inherited methods ICreationFactory.createNodeLocator(ICSTRootEnvironment<?,?,?,?,?,?,?,?,?,?,?,?>), AbstractCreationFactory.createNodeLocator(ICSTRootEnvironment<?,?,?,?,?,?,?,?,?,?,?,?>)


Third compilation error is in class OCLinEcoreGenModelGeneratorAdapter (org.eclipse.ocl.examples.codegen.oclinecore)

Null type mismatch: required '@NonNull Ecore2Pivot' but the provided value is inferred as @Nullable
at
for (@SuppressWarnings("null")@NonNull EOperation eOperation : eClass.getEOperations()) {
installOperation(ecore2pivot, eOperation, results);}

Can you please help me fixing these compilation errors in repository

Regards,

[Updated on: Fri, 26 July 2013 08:53]

Report message to a moderator

Re: OCLStdLib extension [message #1074198 is a reply to message #1074173] Fri, 26 July 2013 09:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Given the <?,?,?,?,?,?,?,?,?,?,?,?> in your example you are clearly
using the Class OCL. These template arguments are very painful and one
of the reasons for the new Pivot-basedc OCL.

The OCL StdLib is very difficult to extend; another reason. The new
approach is defined by a model.

The errors are standardl Java errors so you need to correct your Java
code, though sometimes a Clean and Rebuild All is sufficient.

Regards

Ed Willink


On 26/07/2013 09:19, ModelGeek Mising name wrote:
> thanks!
>
> In my org.eclipse.ocl kepler EGIT repository, i am getting compliation
> error "The hierarchy of the type OCLContentProposer is inconsistent"
> in org.eclipse.ocl.examples.editor.ocl.ui plugin. Same error is there
> in many classes in same package.
>
> The other compilation error i am facing is
> (org.eclipse.ocl.examples.editor.ocl.ui.ecore)
>
> The return types are incompatible for the inherited methods
> ICreationFactory.createNodeLocator(ICSTRootEnvironment<?,?,?,?,?,?,?,?,?,?,?,?>),
> AbstractCreationFactory.createNodeLocator(ICSTRootEnvironment<?,?,?,?,?,?,?,?,?,?,?,?>)
>
>
> Can you please help me fixing these compilation errors in repository
>
> Regards,
Re: OCLStdLib extension [message #1074293 is a reply to message #1074198] Fri, 26 July 2013 12:44 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Thanks!

I am getting "The import org.eclipse.ocl.ecore.internal.TupleFactory cannot be resolved" error and when i see the org.eclipse.ocl.ecore.internal in org.eclipse.ocl.ecore plugin, TupleFactory class does not exists....

please help me solving this issue.

regards,
Re: OCLStdLib extension [message #1074324 is a reply to message #1074293] Fri, 26 July 2013 14:02 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

With no clue as to how you get the error, I cannot help.

Regards

Ed Willink


On 26/07/2013 13:44, ModelGeek Mising name wrote:
> Thanks!
>
> I am getting "The import org.eclipse.ocl.ecore.internal.TupleFactory
> cannot be resolved" error and when i see the
> org.eclipse.ocl.ecore.internal in org.eclipse.ocl.ecore plugin,
> TupleFactory class does not exists....
>
> please help me solving this issue.
>
> regards,
Re: OCLStdLib extension [message #1074333 is a reply to message #1074324] Fri, 26 July 2013 14:18 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
EcoreTypeResolverImpl class in org.eclipse.ocl.examples.parser.environment.ecore package(org.eclipse.ocl.examples.parser plugin)
is using org.eclipse.ocl.ecore.internal.TupleFactory class but when i see the org.eclipse.ocl.ecore.internal package in org.eclipse.ocl.ecore plugin, TupleFactory class does not exist

regards,
Re: OCLStdLib extension [message #1074344 is a reply to message #1074333] Fri, 26 July 2013 14:44 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I don't recognize EcoreTypeResolverImpl

I don't recognize org.eclipse.ocl.examples.parser.environment.ecore

I don't recognize org.eclipse.ocl.examples.parser

TupleFactory was eliminated by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350493 on 4-May-2012 for Juno.

After further searching I found org.eclipse.ocl.examples.parser in the
GIT archive section. It was the IMP-based editor that we were planning
to release in Helios, but which ran into release difficulties with a
mature project deopeneding on an unreleased incubator project.
Fortunately Xtext came along just in time and so Helios had the first
version of the Xtext-based editors.

org.eclipse.ocl.examples.parser has never formed part of an Eclipse OCL
distribution. Don't use it.

Where did you find it? surely the
archive/org.eclipse.ocl.examples.parser in GIT is a very big clue?

Regards

Ed Willink


On 26/07/2013 15:18, ModelGeek Mising name wrote:
> EcoreTypeResolverImpl class in
> org.eclipse.ocl.examples.parser.environment.ecore
> package(org.eclipse.ocl.examples.parser plugin)
> is using org.eclipse.ocl.ecore.internal.TupleFactory class but when i
> see the org.eclipse.ocl.ecore.internal package in
> org.eclipse.ocl.ecore plugin, TupleFactory class does not exist
>
> regards,
>
Re: OCLStdLib extension [message #1074351 is a reply to message #1074344] Fri, 26 July 2013 14:57 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
I have cloned GIT https://git.eclipse.org/c/mdt/org.eclipse.ocl.git and branch is Kepler_SR0. This contains org.eclipse.ocl.examples.parser. Should i download any other branch? if yes then which one?
Re: OCLStdLib extension [message #1074358 is a reply to message #1074351] Fri, 26 July 2013 15:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

GIT unfortunately contains everything ever.

The top level folders partition by utility. "archive" is obsolete stuff.

The attached PSF file used to be advertised on the OCL project page,
unfortunately the new look doesn't show it. It probably gets pretty
close to what you want.

Regards

Ed Willink

On 26/07/2013 15:57, ModelGeek Mising name wrote:
> I have cloned GIT https://git.eclipse.org/c/mdt/org.eclipse.ocl.git
> and branch is Kepler_SR0. This contains
> org.eclipse.ocl.examples.parser. Should i download any other branch?
> if yes then which one?
  • Attachment: ocl.psf
    (Size: 20.40KB, Downloaded 246 times)
Re: OCLStdLib extension [message #1074375 is a reply to message #1074358] Fri, 26 July 2013 15:47 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
I am not able to open the attached file. Can you please provide the file in any other format(jpg, doc etc)

i will be very thankful to you.

regards
Re: OCLStdLib extension [message #1074381 is a reply to message #1074375] Fri, 26 July 2013 16:05 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
I have tried many different software but i think there is some problem in the file. Please provide me the file in any other format i will be very thankful..

Regards,
Re: OCLStdLib extension [message #1074414 is a reply to message #1074381] Fri, 26 July 2013 18:02 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

It's an XML text file. Save it to disk and use a texrt editor.

Regards

Ed Willink


On 26/07/2013 17:05, ModelGeek Mising name wrote:
> I have tried many different software but i think there is some problem
> in the file. Please provide me the file in any other format i will be
> very thankful..
>
> Regards,
Re: OCLStdLib extension [message #1075433 is a reply to message #1074414] Mon, 29 July 2013 12:28 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

I have exported "org.eclipse.ocl.examples" feature and i have updated my indigo build. But when i try to evaluate simple OCL statement then i get following exception...

org.osgi.framework.BundleException: Exception in org.eclipse.ocl.examples.pivot.util.PivotPlugin$Implementation.start() of bundle org.eclipse.ocl.examples.pivot.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at oclstdlibplugin.model.OCLStdLibTest.<init>(OCLStdLibTest.java:57)
at oclstdlibplugin.View.createPartControl(View.java:71)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:534)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:643)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:570)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:272)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:981)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2714)
at org.eclipse.ui.internal.WorkbenchWindow$28.run(WorkbenchWindow.java:3030)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:3011)
at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:799)
at org.eclipse.ui.internal.Workbench$23.runWithException(Workbench.java:1229)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at oclstdlibplugin.Application.start(Application.java:20)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.Error: Unresolved compilation problems:
NonNull cannot be resolved to a type
Nullable cannot be resolved to a type

at org.eclipse.ocl.examples.domain.utilities.DomainUtil.nonNullEMF(DomainUtil.java:422)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver$Factory.getEPackage(PivotSaver.java:72)
at org.eclipse.ocl.examples.pivot.utilities.AbstractPivotSaver.addFactory(AbstractPivotSaver.java:46)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver$Factory.<init>(PivotSaver.java:60)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver$Factory.<init>(PivotSaver.java:59)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver.<clinit>(PivotSaver.java:76)
at org.eclipse.ocl.examples.pivot.PivotStandaloneSetup.init(PivotStandaloneSetup.java:57)
at org.eclipse.ocl.examples.pivot.PivotStandaloneSetup.createInjectorAndDoEMFRegistration(PivotStandaloneSetup.java:81)
at org.eclipse.ocl.examples.pivot.PivotStandaloneSetup.doSetup(PivotStandaloneSetup.java:44)
at org.eclipse.ocl.examples.pivot.util.PivotPlugin$Implementation.start(PivotPlugin.java:200)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 72 more
Root exception:
java.lang.Error: Unresolved compilation problems:
NonNull cannot be resolved to a type
Nullable cannot be resolved to a type

at org.eclipse.ocl.examples.domain.utilities.DomainUtil.nonNullEMF(DomainUtil.java:422)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver$Factory.getEPackage(PivotSaver.java:72)
at org.eclipse.ocl.examples.pivot.utilities.AbstractPivotSaver.addFactory(AbstractPivotSaver.java:46)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver$Factory.<init>(PivotSaver.java:60)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver$Factory.<init>(PivotSaver.java:59)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver.<clinit>(PivotSaver.java:76)
at org.eclipse.ocl.examples.pivot.PivotStandaloneSetup.init(PivotStandaloneSetup.java:57)
at org.eclipse.ocl.examples.pivot.PivotStandaloneSetup.createInjectorAndDoEMFRegistration(PivotStandaloneSetup.java:81)
at org.eclipse.ocl.examples.pivot.PivotStandaloneSetup.doSetup(PivotStandaloneSetup.java:44)
at org.eclipse.ocl.examples.pivot.util.PivotPlugin$Implementation.start(PivotPlugin.java:200)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at oclstdlibplugin.model.OCLStdLibTest.<init>(OCLStdLibTest.java:57)
at oclstdlibplugin.View.createPartControl(View.java:71)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:534)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:643)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:570)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:272)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:981)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2714)
at org.eclipse.ui.internal.WorkbenchWindow$28.run(WorkbenchWindow.java:3030)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:3011)
at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:799)
at org.eclipse.ui.internal.Workbench$23.runWithException(Workbench.java:1229)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at oclstdlibplugin.Application.start(Application.java:20)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

!ENTRY org.eclipse.ui.workbench 4 0 2013-07-29 14:23:57.262
!MESSAGE Unable to create view ID OCLSTDLibPlugin.view: org/eclipse/ocl/examples/pivot/OCL
!STACK 0
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.ocl.examples.pivot (451).
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at oclstdlibplugin.model.OCLStdLibTest.<init>(OCLStdLibTest.java:57)
at oclstdlibplugin.View.createPartControl(View.java:71)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:534)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:643)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:570)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:272)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:981)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2714)
at org.eclipse.ui.internal.WorkbenchWindow$28.run(WorkbenchWindow.java:3030)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:3011)
at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:799)
at org.eclipse.ui.internal.Workbench$23.runWithException(Workbench.java:1229)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at oclstdlibplugin.Application.start(Application.java:20)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.ocl.examples.pivot.util.PivotPlugin$Implementation.start() of bundle org.eclipse.ocl.examples.pivot.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
... 66 more
Caused by: java.lang.Error: Unresolved compilation problems:
NonNull cannot be resolved to a type
Nullable cannot be resolved to a type

at org.eclipse.ocl.examples.domain.utilities.DomainUtil.nonNullEMF(DomainUtil.java:422)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver$Factory.getEPackage(PivotSaver.java:72)
at org.eclipse.ocl.examples.pivot.utilities.AbstractPivotSaver.addFactory(AbstractPivotSaver.java:46)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver$Factory.<init>(PivotSaver.java:60)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver$Factory.<init>(PivotSaver.java:59)
at org.eclipse.ocl.examples.pivot.utilities.PivotSaver.<clinit>(PivotSaver.java:76)
at org.eclipse.ocl.examples.pivot.PivotStandaloneSetup.init(PivotStandaloneSetup.java:57)
at org.eclipse.ocl.examples.pivot.PivotStandaloneSetup.createInjectorAndDoEMFRegistration(PivotStandaloneSetup.java:81)
at org.eclipse.ocl.examples.pivot.PivotStandaloneSetup.doSetup(PivotStandaloneSetup.java:44)
at org.eclipse.ocl.examples.pivot.util.PivotPlugin$Implementation.start(PivotPlugin.java:200)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 72 more

Do you have any clue?

Regards,
Re: OCLStdLib extension [message #1075477 is a reply to message #1075433] Mon, 29 July 2013 13:49 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Problems are always a good clue. Programs that can't compile don't often
run.

On 29/07/2013 13:28, ModelGeek Mising name wrote:
> Caused by: java.lang.Error: Unresolved compilation problems:
> NonNull cannot be resolved to a type
> Nullable cannot be resolved to a type

Presumably you're not using Kepler, so you need to install the @NonNUll
annotation support. See http://wiki.eclipse.org/JDT_Core/Null_Analysis/Beta

Regards

Ed Willink
Re: OCLStdLib extension [message #1075486 is a reply to message #1075477] Mon, 29 July 2013 14:08 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
thanks!

The link you mentioned says, i have to have juno or newer build to instantall JDT but i have to use indigo as my application is developed in Eclipse RCP 3.x architecture.

Any idea how should i handle that?

Regards,
Re: OCLStdLib extension [message #1075517 is a reply to message #1075486] Mon, 29 July 2013 15:08 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

JDT Annotations are solely a compile time facility. So you could develop
on Juno/Kepler and run on Indigo.

They are only annotations, so you could provide dummy implementations to
pretend that they are there.

Regards

Ed Willink


On 29/07/2013 15:08, ModelGeek Mising name wrote:
> thanks!
>
> The link you mentioned says, i have to have juno or newer build to
> instantall JDT but i have to use indigo as my application is developed
> in Eclipse RCP 3.x architecture.
>
> Any idea how should i handle that?
>
> Regards,
Re: OCLStdLib extension [message #1075860 is a reply to message #1075517] Tue, 30 July 2013 08:05 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
I was using Juno's plugin related to ocl and pivot in Indigo and i did not get any problem, but now i am trying to use plugin from kepler's repository and geting the problem.

So it means i have to somehow configure plugins from kepler repository first and then i should export the feature and update it on indigo's build?

I have been googling and i have found that i have to configure complier's null analysis properties. But i am not sure about it.

Can you please give me some hints?

thanks!

Regards,

[Updated on: Tue, 30 July 2013 09:31]

Report message to a moderator

Re: OCLStdLib extension [message #1075904 is a reply to message #1075860] Tue, 30 July 2013 09:53 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I really don't know what you're doing.

You said you had to use Indigo, but now say you were using Juno ...

You don't say which problem you get on Kepler.

http://wiki.eclipse.org/JDT_Core/Null_Analysis/Beta explains it all.

Regards

Ed Willink


On 30/07/2013 09:05, ModelGeek Mising name wrote:
> I was using Juno's plugin related to ocl and pivot and i did not get
> any problem, but now i am trying to use plugin from kepler's
> repository and geting the problem.
>
> So it means i have to somehow configure plugins from kepler repository
> first and then i should export the feature and update it on indigo's
> build?
>
> I have been googling and i have found that i have to configure
> complier's null analysis properties. But i am not sure about it.
>
> Can you please give me some hints?
>
> thanks!
>
> Regards,
Re: OCLStdLib extension [message #1075910 is a reply to message #1075904] Tue, 30 July 2013 10:07 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Actually i am using indigo for the development of RCP application. In this indigo build i had updated OCL related component to latest plugin so i can use pivot.

Now i want to add operation in standard library so i downloaded Kepler and cloned OCL repositor using GIT in it. I updated standard library (in kepler) and my test code is working fine in Kepler. Now i want to export ocl features to indigo as my original rcp application is using RCP 3x. I have exported the features locally and have updated my indigo with it. Now when i run the same test code in indigo then i get the earlier shown exeption (in indigo).

Caused by: java.lang.Error: Unresolved compilation problems:
NonNull cannot be resolved to a type
Nullable cannot be resolved to a type

Now the link you mentioned says that i need to have juno or newer to use JDT-Annotation but i have to make it run in indigo.

Please give me some hints..

thanks!

Regards,

Re: OCLStdLib extension [message #1075912 is a reply to message #1075910] Tue, 30 July 2013 10:08 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Yopu must export the class files not the Java files to avoid the
compile-time dependency.

Regards

Ed Willink


On 30/07/2013 11:07, ModelGeek Mising name wrote:
> Actually i am using indigo for the development of RCP application. In
> this indigo build i had updated OCL related component to latest plugin
> so i can use pivot.
>
> Now i want to add operation in standard library so i downloaded Kepler
> and cloned OCL repositor using GIT in it. I updated standard library
> (in kepler) and my test code is working fine in Kepler. Now i want to
> export ocl features to indigo as my original rcp application is using
> RCP 3x. I have exported the features locally and have updated my
> indigo with it. Now when i run the same test code in indigo then i get
> the earlier shown exeption (in indigo).
>
> Caused by: java.lang.Error: Unresolved compilation problems:
> NonNull cannot be resolved to a type
> Nullable cannot be resolved to a type
>
> Now the link you mentioned says that i need to have juno or newer to
> use JDT-Annotation but i have to make it run in indigo.
>
> Please give me some hints..
>
> thanks!
>
> Regards,
>
>
Re: OCLStdLib extension [message #1075918 is a reply to message #1075912] Tue, 30 July 2013 10:21 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

Right now i am just using File->Export....->Deployable Features menu to export feature.

I have checked the build properties for plugins. "src" folder is not included in binary and source build.

In export dialog, export sources check box is also not selected.

Is there any way to mention not to export java files....?

Thanks for your support and help!

Regards,

[Updated on: Tue, 30 July 2013 10:39]

Report message to a moderator

Re: OCLStdLib extension [message #1075932 is a reply to message #1075912] Tue, 30 July 2013 10:54 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Thanks!

I found the option to export class files in export dialog. The annotation problem is solved but now i am getting following exception message

Couldn't find resource on classpath. URI was 'classpath:/org/eclipse/ocl/examples/xtext/essentialocl/EssentialOCL.xmi'


In my exported feature essentialocl was inluded.

Do you know why i am getting this?

thanks!

Exception trace :
Caused by: org.eclipse.xtext.resource.ClasspathUriResolutionException: java.lang.IllegalStateException: Couldn't find resource on classpath. URI was 'classpath:/org/eclipse/ocl/examples/xtext/essentialocl/EssentialOCL.xmi'
at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.resolve(ClassloaderClasspathUriResolver.java:48)
at org.eclipse.xtext.resource.XtextResourceSet.resolveClasspathURI(XtextResourceSet.java:126)
at org.eclipse.xtext.resource.XtextResourceSet.access$0(XtextResourceSet.java:125)
at org.eclipse.xtext.resource.XtextResourceSet$1.normalize(XtextResourceSet.java:182)
at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:144)
at org.eclipse.xtext.resource.SynchronizedXtextResourceSet.getResource(SynchronizedXtextResourceSet.java:26)
at org.eclipse.xtext.parser.BaseEPackageAccess.loadResource(BaseEPackageAccess.java:52)
... 114 more
Caused by: java.lang.IllegalStateException: Couldn't find resource on classpath. URI was 'classpath:/org/eclipse/ocl/examples/xtext/essentialocl/EssentialOCL.xmi'
at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.findResourceOnClasspath(ClassloaderClasspathUriResolver.java:60)
at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.resolve(ClassloaderClasspathUriResolver.java:45)
... 120 more

21) Error injecting constructor, org.eclipse.emf.common.util.WrappedException: org.eclipse.xtext.resource.ClasspathUriResolutionException: java.lang.IllegalStateException: Couldn't find resource on classpath. URI was 'classpath:/org/eclipse/ocl/examples/xtext/essentialocl/EssentialOCL.xmi'
at org.eclipse.ocl.examples.xtext.essentialocl.services.EssentialOCLGrammarAccess.<init>(Unknown Source)
at org.eclipse.ocl.examples.xtext.essentialocl.services.EssentialOCLGrammarAccess.class(Unknown Source)
while locating org.eclipse.ocl.examples.xtext.essentialocl.services.EssentialOCLGrammarAccess
while locating org.eclipse.xtext.IGrammarAccess
for parameter 0 at org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService.setGrammar(Unknown Source)
while locating org.eclipse.ocl.examples.xtext.essentialocl.services.EssentialOCLValueConverterService
while locating org.eclipse.xtext.conversion.IValueConverterService
for field at org.eclipse.xtext.parsetree.reconstr.impl.ValueSerializer.converter(Unknown Source)
while locating org.eclipse.xtext.parsetree.reconstr.impl.ValueSerializer
while locating org.eclipse.xtext.parsetree.reconstr.ITokenSerializer$IValueSerializer
for field at org.eclipse.xtext.validation.impl.AssignmentQuantityAllocator.valueSerializer(Unknown Source)
while locating org.eclipse.xtext.validation.impl.AssignmentQuantityAllocator
while locating org.eclipse.xtext.validation.IAssignmentQuantityAllocator
for field at org.eclipse.xtext.validation.impl.ConcreteSyntaxValidator.quantityProvider(Unknown Source)
while locating org.eclipse.xtext.validation.impl.ConcreteSyntaxValidator
while locating org.eclipse.xtext.validation.IConcreteSyntaxValidator
for field at org.eclipse.xtext.resource.XtextResource.validator(Unknown Source)
while locating org.eclipse.ocl.examples.xtext.essentialocl.utilities.EssentialOCLCSResource
while locating org.eclipse.xtext.resource.XtextResource

Regards,

[Updated on: Tue, 30 July 2013 10:59]

Report message to a moderator

Re: OCLStdLib extension [message #1075966 is a reply to message #1075932] Tue, 30 July 2013 12:14 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Oh dear. Xtext changed it's default generation policy between 2.4.1 and
2.4.2. 2.4.2 is the Kepler release.

The change switched from verbose *.xmi grammar files to compact binary
*.xmibin files.

So you must use Xtext 2.4.2.

Regards

Ed Willink


On 30/07/2013 11:54, ModelGeek Mising name wrote:
> Thanks!
>
> I found the option to export class files in export dialog. The
> annotation problem is solved but now i am getting following exception
> message
>
> Couldn't find resource on classpath. URI was
> 'classpath:/org/eclipse/ocl/examples/xtext/essentialocl/EssentialOCL.xmi'
>
> In my exported feature essentialocl was inluded.
>
> Do you know why i am getting this?
>
> thanks!
>
> Regards,
Re: OCLStdLib extension [message #1075973 is a reply to message #1075966] Tue, 30 July 2013 12:28 Go to previous message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
I have updated xtext and it ran perfectly.....

thanks alot for your assistance and help!

Regards,

Previous Topic:Transform OCL into PL/SQL
Next Topic:org.eclipse.ocl.examples.pivot.helper.OCLHelper syntax help
Goto Forum:
  


Current Time: Tue Apr 16 23:59:41 GMT 2024

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

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

Back to the top