Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Freeze on reading corrupted file
Freeze on reading corrupted file [message #560215] Tue, 21 September 2010 15:09 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Hi there,

we have the problem, that EMF tends to freeze, when it reads corrupted
model (XMI) files. For example, someone accidently saved the contents of
a html page to a EMF model file (with the corresponding file extension).
When opening the file with the corresponding EMF editor, it hangs
forever without error message. Took some time to find out what was wrong.
Is this normal behavior? Not very user safe.

Cheers,
Hauke
Re: Freeze on reading corrupted file [message #572858 is a reply to message #560215] Tue, 21 September 2010 16:26 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6481
Registered: July 2009
Senior Member
Hi Hauke

EMF generally responds to this very quickly, or rather SAX blows up on
content in the prolog. The resulting Resource is empty. Are you sure
that your editor is correctly handling empty resources and checking the
content of resource.getErrors()?

Regards

Ed Willink

On 21/09/2010 16:09, Hauke Fuhrmann wrote:
> Hi there,
>
> we have the problem, that EMF tends to freeze, when it reads corrupted
> model (XMI) files. For example, someone accidently saved the contents of
> a html page to a EMF model file (with the corresponding file extension).
> When opening the file with the corresponding EMF editor, it hangs
> forever without error message. Took some time to find out what was wrong.
> Is this normal behavior? Not very user safe.
>
> Cheers,
> Hauke
Previous Topic:Opposite references in UML2 metamodel
Next Topic:Adding a custom property in the properties view
Goto Forum:
  


Current Time: Tue Oct 22 12:03:06 GMT 2019

Powered by FUDForum. Page generated in 0.01780 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top