Home » Modeling » EMF » Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1018404] |
Wed, 13 March 2013 15:29  |
Eclipse User |
|
|
|
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)
|
|
| |
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1018924 is a reply to message #1018563] |
Thu, 14 March 2013 13:41   |
Eclipse User |
|
|
|
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.
|
|
|
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1018939 is a reply to message #1018924] |
Thu, 14 March 2013 14:22   |
Eclipse User |
|
|
|
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.
|
|
| |
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1018982 is a reply to message #1018939] |
Thu, 14 March 2013 16:49   |
Eclipse User |
|
|
|
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>
|
|
|
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1019156 is a reply to message #1018982] |
Fri, 15 March 2013 02:18   |
Eclipse User |
|
|
|
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>
|
|
|
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1019414 is a reply to message #1019156] |
Fri, 15 March 2013 12:18   |
Eclipse User |
|
|
|
On 3/15/2013 12:18 AM, Ed Merks wrote:
> 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).
|
|
|
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1020752 is a reply to message #1019414] |
Mon, 18 March 2013 17:26  |
Eclipse User |
|
|
|
John, Ed,
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
|
|
|
Goto Forum:
Current Time: Mon Jul 14 21:48:09 EDT 2025
Powered by FUDForum. Page generated in 0.13314 seconds
|