Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCould not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
https://www.eclipse.org/forums/index.php/mv/msg/458949/1018404/#msg_1018404
(http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2 Classic,
with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components 2.8.0.
The Library app comes up and I can create a resource and objects under
that resource, but when I try to save the resource I get the following
exception:
SEVERE: javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.util.Map
org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
threw an unexpected exception: java.lang.NoClassDefFoundError: Could not
initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
....
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
org.eclipse.emf.server.ecore.resource.DatastoreUtil
at
org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)]]>John Yotka2013-03-13T19:29:41-00:00Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
https://www.eclipse.org/forums/index.php/mv/msg/458949/1018563/#msg_1018563
You need to have App Engine installed too in order to use the URIService
mechanism.
On 13/03/2013 8:29 PM, John Yotka wrote:
> I'm trying to run the library example under the EMF/GWT wiki
> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2 Classic,
> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
> 2.8.0.
>
> The Library app comes up and I can create a resource and objects under
> that resource, but when I try to save the resource I get the following
> exception:
>
> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
> incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract java.util.Map
> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
> not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
>
> ...
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
> org.eclipse.emf.server.ecore.resource.DatastoreUtil
> at
> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)]]>Ed Merks2013-03-14T04:30:51-00:00Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
https://www.eclipse.org/forums/index.php/mv/msg/458949/1018924/#msg_1018924
> John,
>
> You need to have App Engine installed too in order to use the URIService
> mechanism.
>
>
> On 13/03/2013 8:29 PM, John Yotka wrote:
>> I'm trying to run the library example under the EMF/GWT wiki
>> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2 Classic,
>> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
>> 2.8.0.
>>
>> The Library app comes up and I can create a resource and objects under
>> that resource, but when I try to save the resource I get the following
>> exception:
>>
>> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
>> incoming RPC call
>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>> 'public abstract java.util.Map
>> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
>> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
>> not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>
>> ...
>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>> at
>> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>
Ed, I have the Google App Engine Plugin installed in the workbench, is
there something else I need to do?
The org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar is in the Plug-in
Dependencies, which does have the org.eclipse.emf.server.ecore.resource
package and that package does have the DatastoreUtil class in it.]]>John Yotka2013-03-14T17:41:15-00:00Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
https://www.eclipse.org/forums/index.php/mv/msg/458949/1018939/#msg_1018939
What does your .project file look like?
On 14/03/2013 6:41 PM, John Yotka wrote:
> On 3/13/2013 10:30 PM, Ed Merks wrote:
>> John,
>>
>> You need to have App Engine installed too in order to use the URIService
>> mechanism.
>>
>>
>> On 13/03/2013 8:29 PM, John Yotka wrote:
>>> I'm trying to run the library example under the EMF/GWT wiki
>>> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2 Classic,
>>> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
>>> 2.8.0.
>>>
>>> The Library app comes up and I can create a resource and objects under
>>> that resource, but when I try to save the resource I get the following
>>> exception:
>>>
>>> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
>>> incoming RPC call
>>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>>> 'public abstract java.util.Map
>>> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
>>>
>>> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
>>> not initialize class
>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>
>>> ...
>>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>> at
>>> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
>>>
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>
> Ed, I have the Google App Engine Plugin installed in the workbench,
> is there something else I need to do?
>
> The org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar is in the
> Plug-in Dependencies, which does have the
> org.eclipse.emf.server.ecore.resource package and that package does
> have the DatastoreUtil class in it.]]>Ed Merks2013-03-14T18:22:30-00:00Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
https://www.eclipse.org/forums/index.php/mv/msg/458949/1018951/#msg_1018951
Did you find a solution?
Thanks]]>Anton Hughes2013-03-14T19:05:19-00:00Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
https://www.eclipse.org/forums/index.php/mv/msg/458949/1018982/#msg_1018982
> John,
>
> What does your .project file look like?
>
>
> On 14/03/2013 6:41 PM, John Yotka wrote:
>> On 3/13/2013 10:30 PM, Ed Merks wrote:
>>> John,
>>>
>>> You need to have App Engine installed too in order to use the URIService
>>> mechanism.
>>>
>>>
>>> On 13/03/2013 8:29 PM, John Yotka wrote:
>>>> I'm trying to run the library example under the EMF/GWT wiki
>>>> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2 Classic,
>>>> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
>>>> 2.8.0.
>>>>
>>>> The Library app comes up and I can create a resource and objects under
>>>> that resource, but when I try to save the resource I get the following
>>>> exception:
>>>>
>>>> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
>>>> incoming RPC call
>>>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>>>> 'public abstract java.util.Map
>>>> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
>>>>
>>>> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
>>>> not initialize class
>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>>
>>>> ...
>>>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>> at
>>>> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
>>>>
>>>>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>
>> Ed, I have the Google App Engine Plugin installed in the workbench,
>> is there something else I need to do?
>>
>> The org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar is in the
>> Plug-in Dependencies, which does have the
>> org.eclipse.emf.server.ecore.resource package and that package does
>> have the DatastoreUtil class in it.
>
Ed,
the .project for the .editor project is:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.eclipse.library.editor</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.emf.codegen.ecore.GWTBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.appengine.eclipse.core.gaeProjectChangeNotifier</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.appengine.eclipse.core.projectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>com.google.gwt.eclipse.core.gwtNature</nature>
<nature>com.google.appengine.eclipse.core.gaeNature</nature>
</natures>
</projectDescription>]]>John Yotka2013-03-14T20:49:58-00:00Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
https://www.eclipse.org/forums/index.php/mv/msg/458949/1019156/#msg_1019156
So it looks like the GAE builder and nature stuff is there...
Could you look to see if the .class file for the class it's complaining
about has been successfully copies to your project's build output folder?
On 14/03/2013 9:49 PM, John Yotka wrote:
> On 3/14/2013 12:22 PM, Ed Merks wrote:
>> John,
>>
>> What does your .project file look like?
>>
>>
>> On 14/03/2013 6:41 PM, John Yotka wrote:
>>> On 3/13/2013 10:30 PM, Ed Merks wrote:
>>>> John,
>>>>
>>>> You need to have App Engine installed too in order to use the
>>>> URIService
>>>> mechanism.
>>>>
>>>>
>>>> On 13/03/2013 8:29 PM, John Yotka wrote:
>>>>> I'm trying to run the library example under the EMF/GWT wiki
>>>>> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2
>>>>> Classic,
>>>>> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
>>>>> 2.8.0.
>>>>>
>>>>> The Library app comes up and I can create a resource and objects
>>>>> under
>>>>> that resource, but when I try to save the resource I get the
>>>>> following
>>>>> exception:
>>>>>
>>>>> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
>>>>> incoming RPC call
>>>>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>>>>> 'public abstract java.util.Map
>>>>> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
>>>>>
>>>>>
>>>>> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
>>>>> not initialize class
>>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>>>
>>>>> ...
>>>>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>>> at
>>>>> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
>>>>>
>>>>>
>>>>>
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>> Source)
>>>>
>>> Ed, I have the Google App Engine Plugin installed in the workbench,
>>> is there something else I need to do?
>>>
>>> The org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar is in the
>>> Plug-in Dependencies, which does have the
>>> org.eclipse.emf.server.ecore.resource package and that package does
>>> have the DatastoreUtil class in it.
>>
> Ed,
> the .project for the .editor project is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <projectDescription>
> <name>com.eclipse.library.editor</name>
> <comment></comment>
> <projects>
> </projects>
> <buildSpec>
> <buildCommand>
> <name>org.eclipse.jdt.core.javabuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>org.eclipse.emf.codegen.ecore.GWTBuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>com.google.appengine.eclipse.core.gaeProjectChangeNotifier</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>com.google.appengine.eclipse.core.projectValidator</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>org.eclipse.pde.ManifestBuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>org.eclipse.pde.SchemaBuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> </buildSpec>
> <natures>
> <nature>org.eclipse.jdt.core.javanature</nature>
> <nature>org.eclipse.pde.PluginNature</nature>
> <nature>com.google.gwt.eclipse.core.gwtNature</nature>
> <nature>com.google.appengine.eclipse.core.gaeNature</nature>
> </natures>
> </projectDescription>]]>Ed Merks2013-03-15T06:18:28-00:00Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
https://www.eclipse.org/forums/index.php/mv/msg/458949/1019414/#msg_1019414
> John,
>
> So it looks like the GAE builder and nature stuff is there...
>
> Could you look to see if the .class file for the class it's complaining
> about has been successfully copies to your project's build output folder?
>
>
> On 14/03/2013 9:49 PM, John Yotka wrote:
>> On 3/14/2013 12:22 PM, Ed Merks wrote:
>>> John,
>>>
>>> What does your .project file look like?
>>>
>>>
>>> On 14/03/2013 6:41 PM, John Yotka wrote:
>>>> On 3/13/2013 10:30 PM, Ed Merks wrote:
>>>>> John,
>>>>>
>>>>> You need to have App Engine installed too in order to use the
>>>>> URIService
>>>>> mechanism.
>>>>>
>>>>>
>>>>> On 13/03/2013 8:29 PM, John Yotka wrote:
>>>>>> I'm trying to run the library example under the EMF/GWT wiki
>>>>>> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2
>>>>>> Classic,
>>>>>> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
>>>>>> 2.8.0.
>>>>>>
>>>>>> The Library app comes up and I can create a resource and objects
>>>>>> under
>>>>>> that resource, but when I try to save the resource I get the
>>>>>> following
>>>>>> exception:
>>>>>>
>>>>>> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
>>>>>> incoming RPC call
>>>>>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>>>>>> 'public abstract java.util.Map
>>>>>> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
>>>>>>
>>>>>>
>>>>>> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
>>>>>> not initialize class
>>>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>>>>
>>>>>> ...
>>>>>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>>>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>>>> at
>>>>>> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>> Source)
>>>>>
>>>> Ed, I have the Google App Engine Plugin installed in the workbench,
>>>> is there something else I need to do?
>>>>
>>>> The org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar is in the
>>>> Plug-in Dependencies, which does have the
>>>> org.eclipse.emf.server.ecore.resource package and that package does
>>>> have the DatastoreUtil class in it.
>>>
>> Ed,
>> the .project for the .editor project is:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <projectDescription>
>> <name>com.eclipse.library.editor</name>
>> <comment></comment>
>> <projects>
>> </projects>
>> <buildSpec>
>> <buildCommand>
>> <name>org.eclipse.jdt.core.javabuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>org.eclipse.emf.codegen.ecore.GWTBuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>com.google.appengine.eclipse.core.gaeProjectChangeNotifier</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>com.google.appengine.eclipse.core.projectValidator</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>org.eclipse.pde.ManifestBuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>org.eclipse.pde.SchemaBuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> </buildSpec>
>> <natures>
>> <nature>org.eclipse.jdt.core.javanature</nature>
>> <nature>org.eclipse.pde.PluginNature</nature>
>> <nature>com.google.gwt.eclipse.core.gwtNature</nature>
>> <nature>com.google.appengine.eclipse.core.gaeNature</nature>
>> </natures>
>> </projectDescription>
>
Ed, the org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar file is in
the war/WEB-INF/lib folder, and that jar does contain the "missing"
..class file (org.eclipse.emf.server.ecore.resource.DatastoreUtil.class).]]>John Yotka2013-03-15T16:18:11-00:00Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
https://www.eclipse.org/forums/index.php/mv/msg/458949/1020752/#msg_1020752
I am experimenting similar issue and digging a little in the log I can see that kind of error coming first during the load :
SEVERE: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.Map org.eclipse.emf.ecore.resource.URIService.fetch(java.lang.String,java.util.Map)' threw an unexpected exception: java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge
I wonder if could be related to the issue mentioned in google web toolkit forum (id=7527)
I tried to use gwt 2.5.1 instead but it does not solve the issue.
Hope it can help
]]>Daniel Blanc2013-03-18T21:26:44-00:00