Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problem with persistence....
Problem with persistence.... [message #1022830] Fri, 22 March 2013 11:54 Go to next message
Milan Djukic is currently offline Milan Djukic
Messages: 8
Registered: March 2013
Junior Member
Hi!

I have a problem in persistin an emf model. The code is:

ResourceSet resourceSet=new ResourceSetImpl();
URI file=URI.createFileURI(new File("test.xmi").getAbsolutePath());

resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("xmi", 
				new XMIResourceFactoryImpl());
		
Resource resource = resourceSet.createResource(file);
resource.getContents().add(object_to_persist);


Program crashes when come to resource.getContents().add(). Can anyone tell me what is a problem?
Re: Problem with persistence.... [message #1022895 is a reply to message #1022830] Fri, 22 March 2013 14:36 Go to previous messageGo to next message
Milan Djukic is currently offline Milan Djukic
Messages: 8
Registered: March 2013
Junior Member
problem is in EcorePackage.Literals.EATTRIBUTE. Value is null.
Why is null?

This attribute is requested while trying to add object in list.
resource.getContents() is OK. but resource.getContents().add NOT OK.

[Updated on: Fri, 22 March 2013 15:49]

Report message to a moderator

Re: Problem with persistence.... [message #1022996 is a reply to message #1022895] Fri, 22 March 2013 20:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

So did you answer your own question or you still have a question? Please
include stack traces...


On 22/03/2013 7:36 PM, Milan Djukic wrote:
> problem is in epackage in method geteAttribute. value is null.
Re: Problem with persistence.... [message #1023103 is a reply to message #1022830] Sat, 23 March 2013 04:47 Go to previous messageGo to next message
Milan Djukic is currently offline Milan Djukic
Messages: 8
Registered: March 2013
Junior Member
Yes i still have a question.I can't figure out where is an error.

Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
	at org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
	at org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
	at org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
	at org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
	at org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
	at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
	at org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
	at org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
	at org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
	at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
	at org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
	at pokusaj.impl.PokusajPackageImpl.<init>(PokusajPackageImpl.java:58)
	at pokusaj.impl.PokusajPackageImpl.init(PokusajPackageImpl.java:84)
	at pokusaj.PokusajPackage.<clinit>(PokusajPackage.java:55)
	at pokusaj.PokusajPackage$Literals.<clinit>(PokusajPackage.java:235)
	at pokusaj.impl.AImpl.eStaticClass(AImpl.java:70)
	at org.eclipse.emf.ecore.impl.EObjectImpl.eClass(EObjectImpl.java:263)
	at org.eclipse.emf.ecore.util.EContentsEList.createEContentsEList(EContentsEList.java:49)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eContents(BasicEObjectImpl.java:815)
	at org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
	at org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
	at org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
	at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
	at test.Test.main(Test.java:39)
Caused by: java.lang.NullPointerException
	at org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
	... 31 more
Re: Problem with persistence.... [message #1023143 is a reply to message #1023103] Sat, 23 March 2013 07:39 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4008
Registered: July 2009
Senior Member
Hi

ExceptionInInitializerError problems are usually much further up the
stack, and often end up telling you that you didn't do a rebuild.

Right at the end of your list

Caused by: java.lang.NullPointerException
at
org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)

... 31 more

is clearly very smelly, and very unlikely to be the true problem.

Run under the debugger with at least NPE, CCE, IOE AIOOBE caught, and
beware that the debugger normally steps over hidden class initialization
which is where your trouble is.

Regards

Ed Willink

On 23/03/2013 08:47, Milan Djukic wrote:
> Yes i still have a question.I can't figure out where is an error.
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at pokusaj.impl.PokusajPackageImpl.<init>(PokusajPackageImpl.java:58)
> at pokusaj.impl.PokusajPackageImpl.init(PokusajPackageImpl.java:84)
> at pokusaj.PokusajPackage.<clinit>(PokusajPackage.java:55)
> at pokusaj.PokusajPackage$Literals.<clinit>(PokusajPackage.java:235)
> at pokusaj.impl.AImpl.eStaticClass(AImpl.java:70)
> at
> org.eclipse.emf.ecore.impl.EObjectImpl.eClass(EObjectImpl.java:263)
> at
> org.eclipse.emf.ecore.util.EContentsEList.createEContentsEList(EContentsEList.java:49)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eContents(BasicEObjectImpl.java:815)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at test.Test.main(Test.java:39)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 31 more
Re: Problem with persistence.... [message #1023149 is a reply to message #1023143] Sat, 23 March 2013 07:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Given it's a stand alone test case and that package initialization is
generally delayed as long as possible, it's likely that the delayed
package initializing itself is causing a problem. Likely doing
PokusajPackage.eINSTANCE.eClass() to force initialization at the start
of main would avoid this, and this is also necessary in other scenarios,
e.g., when the first thing you do is load an instance file, the package
needs to be registered, and the suggested idiom does that as a side effect.


On 23/03/2013 7:39 AM, Ed Willink wrote:
> Hi
>
> ExceptionInInitializerError problems are usually much further up the
> stack, and often end up telling you that you didn't do a rebuild.
>
> Right at the end of your list
>
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
>
> ... 31 more
>
> is clearly very smelly, and very unlikely to be the true problem.
>
> Run under the debugger with at least NPE, CCE, IOE AIOOBE caught, and
> beware that the debugger normally steps over hidden class
> initialization which is where your trouble is.
>
> Regards
>
> Ed Willink
>
> On 23/03/2013 08:47, Milan Djukic wrote:
>> Yes i still have a question.I can't figure out where is an error.
>>
>> Exception in thread "main" java.lang.ExceptionInInitializerError
>> at
>> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
>> at
>> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
>> at
>> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
>> at
>> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
>> at
>> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
>> at
>> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
>> at
>> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
>> at
>> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
>> at
>> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
>> at
>> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
>> at
>> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
>> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
>> at
>> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
>> at
>> pokusaj.impl.PokusajPackageImpl.<init>(PokusajPackageImpl.java:58)
>> at pokusaj.impl.PokusajPackageImpl.init(PokusajPackageImpl.java:84)
>> at pokusaj.PokusajPackage.<clinit>(PokusajPackage.java:55)
>> at pokusaj.PokusajPackage$Literals.<clinit>(PokusajPackage.java:235)
>> at pokusaj.impl.AImpl.eStaticClass(AImpl.java:70)
>> at
>> org.eclipse.emf.ecore.impl.EObjectImpl.eClass(EObjectImpl.java:263)
>> at
>> org.eclipse.emf.ecore.util.EContentsEList.createEContentsEList(EContentsEList.java:49)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eContents(BasicEObjectImpl.java:815)
>> at
>> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
>> at
>> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
>> at
>> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
>> at
>> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
>> at
>> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
>> at test.Test.main(Test.java:39)
>> Caused by: java.lang.NullPointerException
>> at
>> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
>> ... 31 more
>
Re: Problem with persistence.... [message #1023164 is a reply to message #1023149] Sat, 23 March 2013 09:00 Go to previous messageGo to next message
Milan Djukic is currently offline Milan Djukic
Messages: 8
Registered: March 2013
Junior Member
@Ed Willink

I don't understand you. What is NPE, CCE, IOE AIOOBE?

@Ed Merks

Tried that. It's the same exception...
Re: Problem with persistence.... [message #1023169 is a reply to message #1023164] Sat, 23 March 2013 09:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Comments below.

On 23/03/2013 9:00 AM, Milan Djukic wrote:
> @Ed Willink
>
> I don't understand you. What is NPE, CCE, IOE AIOOBE?
NullPointerException, ClassCastException, IndexOfBoundsException,
ArrayIndexOutOfBoundsException.

I doubt these other things are the cause though. Your stack trace is
quite complete all the way down to main...
>
> @Ed Merks
>
> Tried that. It's the same exception...
But does the exception happen during that new call? I.e., is the stack
trace the same? Try EcorePackage.eINSTANCE.eClass() as the first thing
then, i.e., before you initialize your package. If you have problems,
please show the stack trace.
Re: Problem with persistence.... [message #1023179 is a reply to message #1023169] Sat, 23 March 2013 10:04 Go to previous messageGo to next message
Milan Djukic is currently offline Milan Djukic
Messages: 8
Registered: March 2013
Junior Member
Hm.. Now problem is in EcorePackage.eINSTANCE.eClass() or PokusajPackage.eINSTANCE.eClass(); What ever i put throws the same exception.

But when i try to debug this line, debugger do nothing. If i press F5 or F6 debugger just do nothing...
Like before value EcorePackage.Literals.EATTRIBUTE is null. When i run program here crashes.

Here stack trace in case PokusajPackage.eINSTANCE.eClass();
Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
	at org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
	at org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
	at org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
	at org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
	at org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
	at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
	at org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
	at org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
	at org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
	at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
	at org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
	at pokusaj.impl.PokusajPackageImpl.<init>(PokusajPackageImpl.java:58)
	at pokusaj.impl.PokusajPackageImpl.init(PokusajPackageImpl.java:84)
	at pokusaj.PokusajPackage.<clinit>(PokusajPackage.java:55)
	at test.Test.main(Test.java:27)
Caused by: java.lang.NullPointerException
	at org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
	... 19 more


Here stack trace in case EcorePackage.eINSTANCE.eClass();
Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
	at org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
	at org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
	at org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
	at org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
	at org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
	at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
	at org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
	at org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
	at org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
	at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
	at test.Test.main(Test.java:28)
Caused by: java.lang.NullPointerException
	at org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
	... 15 more
Re: Problem with persistence.... [message #1023249 is a reply to message #1023179] Sat, 23 March 2013 15:03 Go to previous messageGo to next message
Milan Djukic is currently offline Milan Djukic
Messages: 8
Registered: March 2013
Junior Member
Here's whole eclipse project. It's simple. So if someone have a little time to try to find where is an error.

Class names are different then above.
  • Attachment: Test.rar
    (Size: 157.06KB, Downloaded 38 times)

[Updated on: Sat, 23 March 2013 15:04]

Report message to a moderator

Re: Problem with persistence.... [message #1023310 is a reply to message #1023249] Sat, 23 March 2013 19:10 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

There's no .project file in there. Try invoking Generate Test Code and
running the XyzExample.java.

On 23/03/2013 3:03 PM, Milan Djukic wrote:
> Here's whole eclipse project. It's simple. So if someone have a little time to try to find where is an error.
Re: Problem with persistence.... [message #1023347 is a reply to message #1023310] Sat, 23 March 2013 21:54 Go to previous messageGo to next message
Milan Djukic is currently offline Milan Djukic
Messages: 8
Registered: March 2013
Junior Member
How? There is .project file.

Neither that working Sad. I invoke generate test code and run TestExample.java:

Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
	at org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
	at org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
	at org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
	at org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
	at org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
	at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
	at org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
	at org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
	at org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
	at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
	at org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
	at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
	at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
	at test.TestPackage.<clinit>(TestPackage.java:56)
	at test.tests.TestExample.main(TestExample.java:55)
Caused by: java.lang.NullPointerException
	at org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
	... 19 more


Who is crazy here Smile

Maybe i need to set something in framework....

[Updated on: Sat, 23 March 2013 21:56]

Report message to a moderator

Re: Problem with persistence.... [message #1023384 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023386 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023388 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023390 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023392 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023394 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023396 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023398 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023400 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023402 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023404 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023406 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023408 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023410 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023412 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023414 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023416 is a reply to message #1023347] Sun, 24 March 2013 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25925
Registered: July 2009
Senior Member
Milan,

Sorry but Eclipse says no projects found in this file. I'm not sure
what's wrong with it. Are you able to import it yourself?


On 23/03/2013 9:54 PM, Milan Djukic wrote:
> How? There is .project file.
>
> Neither that working :(. I invoke generate test code and exception:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackageImpl.java:236)
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl.eClass(MinimalEObjectImpl.java:678)
> at
> org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(ENamedElementImpl.java:224)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init>(EcoreUtil.java:1289)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil.java:1200)
> at
> org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.hasNext(EcoreUtil.java:1451)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(ResourceImpl.java:852)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsEList.inverseAdd(ResourceImpl.java:408)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:312)
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:301)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPackageImpl.java:748)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackageContents(EcorePackageImpl.java:2810)
> at
> org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackageImpl.java:485)
> at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:67)
> at
> org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:185)
> at test.impl.TestPackageImpl.<init>(TestPackageImpl.java:54)
> at test.impl.TestPackageImpl.init(TestPackageImpl.java:80)
> at test.TestPackage.<clinit>(TestPackage.java:56)
> at test.tests.TestExample.main(TestExample.java:55)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.EcorePackage$Literals.<clinit>(EcorePackage.java:5107)
> ... 19 more
>
> Who is crazy here :)
Re: Problem with persistence.... [message #1023459 is a reply to message #1023416] Sun, 24 March 2013 05:23 Go to previous message
Milan Djukic is currently offline Milan Djukic
Messages: 8
Registered: March 2013
Junior Member
Wow how many duplicate posts Very Happy

I did it!!!! I make a new project with just one class and one attribute, and now working Very Happy. Maybe problem is in model. Now i will see.

Thanks for everithing!
Previous Topic:Abstract item provider class
Next Topic:[xcore] xcore Editor crashes with xText 2.4
Goto Forum:
  


Current Time: Mon Jul 28 08:39:01 EDT 2014

Powered by FUDForum. Page generated in 0.04426 seconds