Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Error: Model content will not be shown(When I load the model I created, it appears to be empty.)
Error: Model content will not be shown [message #1715300] Sat, 21 November 2015 10:51 Go to next message
Adrian LastName is currently offline Adrian LastNameFriend
Messages: 9
Registered: March 2015
Junior Member
Hello everyone,

I got kind of a problem here... I created a SysML-model using Eclipse Mars. I worked on that over quite some time, saving, exiting and loading as normal. But now, when I try to open that model, the Model Explorer claims the model is empty. All the files (.di, .project, .uml, ...) seem to be in place. The last thing I did with that model was exporting diagrams as .png I think (which I did before as well, and which shouldn't matter anyways).

I also tried opening it on Eclipse Luna (which I still have installed, without using it), but as to the same effect (only that the model explorer will show me the imported ModelLibraries (Ecore Primitive Types, UML Primitive Types), but I don't think those are model specific).

Anyone got any idea what to do? I am running a Windows 7 machine, could follow up with hardware specs if that would help any...

Thanks a lot!
Adrian.
Re: Error: Model content will not be shown [message #1715393 is a reply to message #1715300] Mon, 23 November 2015 09:37 Go to previous messageGo to next message
Eclipse UserFriend
Hi Adrian,
To check whether your model is actually empty or not open the .UML model
with the UML Editor (or any XML editor) and see what is there.
To do so, right-click the .UML file, choose Open With and select the
editor you prefer.
If the contents of your model are not there, there isn't much to do
unless you have a backup.

Best,

Víctor López-Jaquero

El 21/11/2015 a las 11:51, Adrian LastName escribió:
> Hello everyone,
>
> I got kind of a problem here... I created a SysML-model using Eclipse
> Mars. I worked on that over quite some time, saving, exiting and loading
> as normal. But now, when I try to open that model, the Model Explorer
> claims the model is empty. All the files (.di, .project, .uml, ...) seem
> to be in place. The last thing I did with that model was exporting
> diagrams as .png I think (which I did before as well, and which
> shouldn't matter anyways).
> I also tried opening it on Eclipse Luna (which I still have installed,
> without using it), but as to the same effect (only that the model
> explorer will show me the imported ModelLibraries (Ecore Primitive
> Types, UML Primitive Types), but I don't think those are model specific).
>
> Anyone got any idea what to do? I am running a Windows 7 machine, could
> follow up with hardware specs if that would help any...
>
> Thanks a lot!
> Adrian.
Re: Error: Model content will not be shown [message #1715396 is a reply to message #1715300] Mon, 23 November 2015 09:47 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 926
Registered: February 2011
Senior Member
Hi Adrian,

Is it possible for you to share the model directly? Or at least a screenshot of what the issue looks like? Maybe a copy of your Error Log view?

Regards,
Camille


Camille Letavernier
Re: Error: Model content will not be shown [message #1715402 is a reply to message #1715393] Mon, 23 November 2015 10:37 Go to previous messageGo to next message
Adrian LastName is currently offline Adrian LastNameFriend
Messages: 9
Registered: March 2015
Junior Member
Here, in reply to both:

I checked the .uml, it does seem as if there was no model information in there, but only information about the applied profiles:

<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_HgKlEIq9EeWZI59c2CcvRw" name="RootElement">
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_HqflwIq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HqiCAIq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#/"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_TZ_nULU5EduiKqCzJMWbGw"/>
  </profileApplication>
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_HqlFUIq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HqlsYIq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//modelelements"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_Gx8MgLX7EduFmqQsrNB9lw"/>
  </profileApplication>
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_HqrzAIq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HqrzAYq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//blocks"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_fSw28LX7EduFmqQsrNB9lw"/>
  </profileApplication>
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_HqsaEIq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HqtBIIq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//portandflows"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_rpx28LX7EduFmqQsrNB9lw"/>
  </profileApplication>
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_HqtoMIq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HquPQIq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//constraints"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_5WYJ0LX7EduFmqQsrNB9lw"/>
  </profileApplication>
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_Hqu2UIq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HqvdYIq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//activities"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_C2zXMLX8EduFmqQsrNB9lw"/>
  </profileApplication>
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_HqwEcIq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HqwrgIq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//allocations"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_NxdG4LX8EduFmqQsrNB9lw"/>
  </profileApplication>
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_HqxSkIq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HqxSkYq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
  </profileApplication>
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_Hqx5oIq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Hqx5oYq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//interactions"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_meOioLX8EduFmqQsrNB9lw"/>
  </profileApplication>
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_HqygsIq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HqygsYq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//statemachines"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_nAF5kLX8EduFmqQsrNB9lw"/>
  </profileApplication>
  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_Hqygsoq9EeWZI59c2CcvRw">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HqzHwIq9EeWZI59c2CcvRw" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//usecases"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_neZmMLX8EduFmqQsrNB9lw"/>
  </profileApplication>
</uml:Model>

I compared to another model I have, which looks very differnt. So, I am loosing hope here? Did not backup my files, as of course I should have done.... Argh! Any idea on what could have happened?

Attached is a screenshot of what it looks like. There is no error log, as Papyrus opens the model without complaing; only problem is, that it seems to be empty.

So, rebuild and backup more frequently? At least I have the exported .png's to guide me, so I will just take the whole issue as a warning...

Thanks for the help,
Adrian.
  • Attachment: screen.PNG
    (Size: 191.83KB, Downloaded 139 times)

[Updated on: Mon, 23 November 2015 10:38]

Report message to a moderator

Re: Error: Model content will not be shown [message #1715416 is a reply to message #1715402] Mon, 23 November 2015 12:44 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 926
Registered: February 2011
Senior Member
Hi,

Indeed, this is an empty model. It would be interesting to know how you got there.

Anyway, you can try the Eclipse's Local History to get a backup of your model. Right click on your *.uml file > Replace with... > Local history

You may have to do the same thing with the *.notation file

Eclipse cleans the Local History from time to time, so no guarantee that it's going to work

HTH,
Camille


Camille Letavernier
Re: Error: Model content will not be shown [message #1715456 is a reply to message #1715416] Mon, 23 November 2015 18:13 Go to previous messageGo to next message
Adrian LastName is currently offline Adrian LastNameFriend
Messages: 9
Registered: March 2015
Junior Member
Hi,

yeah, that would be interesting to know... If there is anything like a log file I'd be happy to upload? Sadly, the local history is empty, so there goes that.

Thanks for the help anyways,
Adrian.
Re: Error: Model content will not be shown [message #1715517 is a reply to message #1715456] Tue, 24 November 2015 09:01 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 926
Registered: February 2011
Senior Member
Hi Adrian,

Quote:
If there is anything like a log file I'd be happy to upload?


The error log file is in ~workspace/.metadata/.log (Or .bak_N.log)

Note that it contains all the exceptions that were logged into Eclipse for a long period, so this log file may contain sensitive information

Regards,
Camille


Camille Letavernier
Re: Error: Model content will not be shown [message #1715808 is a reply to message #1715517] Thu, 26 November 2015 12:00 Go to previous message
Adrian LastName is currently offline Adrian LastNameFriend
Messages: 9
Registered: March 2015
Junior Member
Hi,


here comes the .log file. I deleted a bit of its history, everything relevant should be included though. I modified the model last on November 14th. I am not exactly sure on when it first came up emtpy, but I guess it must have been some time after then. I hope this helps (possibly not me now, but maybe others or future me).

Regards,
Adrian.
  • Attachment: .log
    (Size: 137.10KB, Downloaded 90 times)
Previous Topic:How to extend OCL standard library in Papyrus
Next Topic:Class Diagram cannot survive import
Goto Forum:
  


Current Time: Wed Jul 08 05:53:40 GMT 2020

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

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

Back to the top