Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: Paul@DOC on June 23, 2010, 02:14:57 am

Title: "Error writing XML file" duriing svn check-in
Post by: Paul@DOC on June 23, 2010, 02:14:57 am
I am working with EA backed by Oracle and using SVN version control.

When trying to check in a model I am getting the error "Error writing XML file". I see no evidence of what this error is. I have the "Output" view open... nothing. I have checked the Events log for the workstation... nothing. I have configured the "Tools->Options->XML Specifications" setting for "Default XML Directory" , but to no avail.

Any ideas, hints, pointers?

Thanks,

Paul Hardin
Title: Generate code
Post by: sadikhsy on June 23, 2010, 02:40:33 am
[size=12]Hi

I want to generate my code after modeling the Digram classes! But I can't find again the file generated.
In the options of configuration I see directory option: $EAPDIR what to do to find this directory?
     Thank you[/size]
Title: Re: "Error writing XML file" duriing svn check-in
Post by: Geert Bellekens on June 23, 2010, 05:56:41 am
Paul,

The "error writing xml file" should probably better be "error writing xmi file".
As you probably know, when integrating with a VC system EA exports each controlled package to xmi and stores that xmi file in the VC system.
And since xmi is also xml....

As to the cause of the problem, and how to solve it... I'm guessing that somehow the checked-in/out status of your packages is out of synch between what SVN thinks and what EA thinks.
There is an option to re-synchronize the statuses of the controlled packages, have you tried that?

Either that, or you simply don't have the rights to write to the local working folder of your SVN. Check the VC configuration to figure out where EA stores the xmi files. (and no, it has nothing to do with the "default xml directory")

Geert
Title: Re: Generate code
Post by: Geert Bellekens on June 23, 2010, 05:57:37 am
Quote
[size=12]Hi

I want to generate my code after modeling the Digram classes! But I can't find again the file generated.
In the options of configuration I see directory option: $EAPDIR what to do to find this directory?
     Thank you[/size]
Sadikhsy,

I think you better create your own topic.

Geert
Title: Re: "Error writing XML file" duriing svn check-in
Post by: Paul@DOC on June 23, 2010, 06:16:22 am
Ok, I solved the issue... but I am not sure why the solution was necessary. I went to the directory where the svn check-out was done and moved the xml model representation that was there. This done I was able to check in the altered model.

Thanks for the help,

Paul H.
Title: Re: "Error writing XML file" duriing svn check-in
Post by: qwerty on May 05, 2011, 12:20:45 am
I had the same issue. The reason was simple: the according xml was r/o. Setting it to r/w fixed it.

BUT: why can't EA give a meaningful message like "Error writing ... File is read only" which by the way could be checked prior to writing it, not at the end of the export.

q.