[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [buckminster-dev] Problems importing the BOM
|
Hi Filip,
I'm not surprised that the Exported BOM contains CR/NL. It's supposed to since it is
produced using "pretty printing" with indents and all. That cannot be your problem now.
This is what should happen:
Each entry in the exported BOM has an associated UUID. This id is produced from the *raw*
XML image of the entry (see org.eclipse.buckminster.sax.Utils.getImage()), i.e. it's not
produced using the nicely indented image with CR/NL's that you find in the exported BOM.
When the entry is imported, new *raw* images are created and stored in the meta-data of the
receiving workspace. The error you see indicates that the ID of the new image does not
correspond with its original ID.
Perhaps incorrect entries was created while you had the code with the compilation error in
place? Did you try a new fresh workspace at both locations after you fixed that? Normally
Buckminster will detect changes in meta-data format based on sequence numbers but this is a
bit different since the code was partially broken.
Kind Regards,
Thomas Hallgren
Filip Hrbek wrote:
Hi again,
org.eclipse.buckminster.core.common.model.Documentation.java at line 146
was my mistake (I used an unfresh version of incidentally
org.eclipse.buckminster.sax.Utils).
The rest is still a problem.
Regards
Filip
----- Original Message ----- From: "Filip Hrbek"
<filip.hrbek@xxxxxxxxxxxxxx>
To: "Buckminster developer discussions" <buckminster-dev@xxxxxxxxxxx>
Sent: Thursday, January 11, 2007 11:02 PM
Subject: [buckminster-dev] Problems importing the BOM
Hi,
I have problems with exporting/importing BOMs.
The exported BOM is included (exported on a Windows platform). When
trying
to import the BOM (on a Linux platform), I get following exception:
Caused by:
org.eclipse.buckminster.core.metadata.model.ElementNotFoundException: No
element with id 49de501f-d7af-3065-aa11-5776fe9cf440 was found in storage
cspec
at
org.eclipse.buckminster.core.metadata.FileStorage.getRequiredElement(FileStorage.java:166)
at
org.eclipse.buckminster.core.metadata.model.Resolution.getCSpec(Resolution.java:284)
at
org.eclipse.buckminster.core.metadata.model.Resolution.store(Resolution.java:457)
at
org.eclipse.buckminster.core.metadata.model.BillOfMaterials.importGraph(BillOfMaterials.java:79)
I'm using the latest version from CVS.
Note:
There is also a compile error in
org.eclipse.buckminster.core.common.model.Documentation.java
at line 146:
ContentHandler serializer = Utils.newSerializer(null, out, "UTF-8", -1,
true);
Severity and Description Path Resource Location Creation Time Id
The method newSerializer(File, OutputStream, String, int) in the type
Utils
is not applicable for the arguments (null, ByteArrayOutputStream, String,
int, boolean)
org.eclipse.buckminster.core/src/java/org/eclipse/buckminster/core/common/model
Documentation.java line 146 1168552816367 59461
Can someone help, please?
Regards
Filip Hrbek
--------------------------------------------------------------------------------
_______________________________________________
buckminster-dev mailing list
buckminster-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/buckminster-dev