Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EMFStore NPE
EMFStore NPE [message #1393450] Thu, 03 July 2014 20:34 Go to next message
Scott Dybiec is currently offline Scott DybiecFriend
Messages: 148
Registered: July 2009
Senior Member
I've run into a snag and I'm hoping you can point in the right
direction. After successfully creating a local project, sharing the
project with the server and saving a model into the project, I attempt
to commit the project model to the server and get the NPE in the stack
trace included below.

In CreateDeleteOperationImpl.apply(IdEObjectCollection collection), I
traced the problem down using the debugger and found that line 123 fails
because

ModelElementId childId = ModelUtil.clone(getEObjectToIdMap().get(child));

returns a null childId, because

getEObjectToIdMap().get(child)

return null. 'child' is non-null and looks normal --- has a proper
eContainer, etc. As I stop at this breakpoint, it's clear that this
logic works for other objects, but fails on this particular object. For
some reason it didn't get put into the getEObjectToIdMap. How do objects
get into this Map?
}
Let me know how I can diagnose this problem further.

Here's the stack trace:

16:09:51 ERROR (XmlRpcErrorLogger.java:36) - Failed to invoke method
createVersion in class
org.eclipse.emf.emfstore.internal.server.connection.xmlrpc.XmlRpcEmfStoreImpl:
java.lang.NullPointerException
org.apache.xmlrpc.common.XmlRpcInvocationException: Failed to invoke
method createVersion in class
org.eclipse.emf.emfstore.internal.server.connection.xmlrpc.XmlRpcEmfStoreImpl:
java.lang.NullPointerException
at
org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.invoke(ReflectiveXmlRpcHandler.java:129)
at
org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.execute(ReflectiveXmlRpcHandler.java:106)
at
org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:46)
at org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:86)
at
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:200)
at org.apache.xmlrpc.webserver.Connection.run(Connection.java:220)
at org.apache.xmlrpc.util.ThreadPool$Poolable$1.run(ThreadPool.java:68)
Caused by: org.eclipse.emf.emfstore.server.exceptions.ESException:
java.lang.NullPointerException
at
org.eclipse.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface.execute(AbstractSubEmfstoreInterface.java:152)
at
org.eclipse.emf.emfstore.internal.server.core.EMFStoreImpl.invoke(EMFStoreImpl.java:160)
at com.sun.proxy.$Proxy4.createVersion(Unknown Source)
at
org.eclipse.emf.emfstore.internal.server.connection.xmlrpc.XmlRpcEmfStoreImpl.createVersion(XmlRpcEmfStoreImpl.java:122)
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.apache.xmlrpc.server.ReflectiveXmlRpcHandler.invoke(ReflectiveXmlRpcHandler.java:115)
... 6 more
Caused by: java.lang.NullPointerException
at
org.eclipse.emf.emfstore.internal.server.model.versioning.operations.impl.CreateDeleteOperationImpl.apply(CreateDeleteOperationImpl.java:123)
at
org.eclipse.emf.emfstore.internal.server.model.versioning.impl.ChangePackageImpl.apply(ChangePackageImpl.java:312)
at
org.eclipse.emf.emfstore.internal.server.model.versioning.impl.ChangePackageImpl.apply(ChangePackageImpl.java:300)
at
org.eclipse.emf.emfstore.internal.server.core.subinterfaces.VersionSubInterfaceImpl.createVersion(VersionSubInterfaceImpl.java:281)
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.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface.execute(AbstractSubEmfstoreInterface.java:136)
... 14 more
Caused by:
org.eclipse.emf.emfstore.server.exceptions.ESException:
java.lang.NullPointerException
at
org.eclipse.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface.execute(AbstractSubEmfstoreInterface.java:152)
at
org.eclipse.emf.emfstore.internal.server.core.EMFStoreImpl.invoke(EMFStoreImpl.java:160)
at com.sun.proxy.$Proxy4.createVersion(Unknown Source)
at
org.eclipse.emf.emfstore.internal.server.connection.xmlrpc.XmlRpcEmfStoreImpl.createVersion(XmlRpcEmfStoreImpl.java:122)
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.apache.xmlrpc.server.ReflectiveXmlRpcHandler.invoke(ReflectiveXmlRpcHandler.java:115)
at
org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.execute(ReflectiveXmlRpcHandler.java:106)
at
org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:46)
at org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:86)
at
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:200)
at org.apache.xmlrpc.webserver.Connection.run(Connection.java:220)
at org.apache.xmlrpc.util.ThreadPool$Poolable$1.run(ThreadPool.java:68)
Caused by: java.lang.NullPointerException
at
org.eclipse.emf.emfstore.internal.server.model.versioning.operations.impl.CreateDeleteOperationImpl.apply(CreateDeleteOperationImpl.java:123)
at
org.eclipse.emf.emfstore.internal.server.model.versioning.impl.ChangePackageImpl.apply(ChangePackageImpl.java:312)
at
org.eclipse.emf.emfstore.internal.server.model.versioning.impl.ChangePackageImpl.apply(ChangePackageImpl.java:300)
at
org.eclipse.emf.emfstore.internal.server.core.subinterfaces.VersionSubInterfaceImpl.createVersion(VersionSubInterfaceImpl.java:281)
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.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface.execute(AbstractSubEmfstoreInterface.java:136)
... 14 more

Thanks,

Scott
Re: EMFStore NPE [message #1395612 is a reply to message #1393450] Mon, 07 July 2014 06:18 Go to previous message
Edgar Mueller is currently offline Edgar MuellerFriend
Messages: 89
Registered: March 2011
Member
Hi Scott,

Objects are put into this map via
OperationRecorder#createCreateDeleteOperation.

Can you please check whether the object has an ID within the project
while the CreateDeleteOperation is created on the client?

Furhtermore, can you tell us the type of the object? Is is some special
type like a map entry or the like?

Cheers,

Edgar

--
Edgar Mueller

Get Professional Eclipse Support: http://eclipsesource.com/munich
Previous Topic:Ecore Diagram: Reactivate Attribute
Next Topic:[Texo] Generator java version issue
Goto Forum:
  


Current Time: Fri Apr 19 14:22:35 GMT 2024

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

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

Back to the top