Howto implement own serializiation format? [message #556621] |
Thu, 02 September 2010 03:04  |
Eclipse User |
|
|
|
Hi,
I've created a ecore model from a mdl file, created the corresponding gencore file and generated the code from the gencore file. While EMF has a own serialization mechanism based on XMI I want to support my project with a own serializiation mechanism. I've had a look on the EMF book as well as on the FAQ but I haven't found what I'm looking for. Maybe somebody can point me into the right direction or to the corresponding section in the documentation for my intents?
Thanks in advance!
Regards,
Michael
[Updated on: Thu, 02 September 2010 03:40] by Moderator
|
|
|
|
|
|
|
|
|
|
Re: Howto implement own serializiation format? [message #558829 is a reply to message #558825] |
Tue, 14 September 2010 10:52   |
Eclipse User |
|
|
|
Hi,
Ed Merks wrote on Tue, 14 September 2010 10:29 |
That sounds more like a classpath issue. Is the util folder listed in
the bundle manifests's packages?
l
|
The util folder/package is exported in the manifest file.
Ed Merks wrote on Tue, 14 September 2010 10:29 |
Look at the XyzExample. java in the *.owl.tests project.
l
|
There is no such file.
Ed Merks wrote on Tue, 14 September 2010 10:29 |
The editor isn't stand alone though so no need for that.
|
I've removed it.
Ed Merks wrote on Tue, 14 September 2010 10:29 |
> but I'm not really sure that this is the right place.
No.
|
I've thought so.
Ed Merks wrote on Tue, 14 September 2010 10:29 |
> If I run the code as eclipse application I get an NullPointerException.
What's null?
|
Okay. I've fixed that. The problem was that I've added the wrong class to the getExtensionToFactoryMap, so the exception is still a NoClassDefFoundError Exception and it still seems that the class OwlResourceImpl is not found.
Ed Merks wrote on Tue, 14 September 2010 10:29 |
> Maybe somebody knows what I'm missing? Thanks in advance!
Be sure the util package is an exported package.in the manifest.
|
The package is exported. So the stacktrace states the exception is caused while I'm calling the constructor of OwlResourceImpl in the createResource method of the OwlResourceFactoryImpl class. Which confuses me most is the fact that both classes reside in the same package. Suggestions how to debug that? I've added a breakpoint to the constructor call but the next step is obviously the NoClassDefFoundError.
Regards,
Michael
|
|
|
|
|
|
Re: Howto implement own serializiation format? [message #559213 is a reply to message #558979] |
Wed, 15 September 2010 22:28  |
Eclipse User |
|
|
|
Michael,
Comments below.
Michael Frey wrote:
> Hi,
>
> I've created a lib/ directory where I've put my library. The directory
> resides in my de.hs_rm.cs.vs.dsm.owl plugin. I've added the library to
> the build path (Project Properties -> Java Build Path)
Don't ever do that. Edit only the MANIFEST.MF.
> as well as to the bundle classpath (Manifest.mf) and to the
> bin.include section in the build.properties.
That part sounds good, but if you made a mistake, the direct build path
update would mask it as compile time only for it to come back at runtime.
> What exactley do you mean by runtime workbench?
When you launch a second Eclipse in order to run or debug it.
> If I'm writing code in my plugin everything seems to work fine
> (packages and classes of the library are resolved by eclipse).
At build time...
> If I run the plugins as eclipse application I get an
> NoClassesDefFoundError exception (and that's probably what you meant
> by runtime workbench).
Yes.
> I've had a look on my run configuration and set the "Clear
> configuration area before launching" to true, but nothing changes.
> I have no clue why it's not working.
From the context menu for the project, use PDE Tools -> Update
Classpath to ensure that the build path reflects exactly what's in the
MANIFEST. If you have compile problems, fix them by editing the
MANIFEST.MF.
> Regards,
> Michael
|
|
|
Powered by
FUDForum. Page generated in 0.06657 seconds