Menu

Welcome to Help

Help
2006-03-28
2013-04-29
  • Nobody/Anonymous

    Welcome to Help

     
    • Salim

      Salim - 2006-09-21

      Hello there.

      First, I am very happy to see that there is a UML 2.0 implementation for C#. Good work.

      I have been testing NUml, with mixed results. I was able to programatically create models and manipulate them. however, when I try to deserialize the following exception is raised

      {"Couldn't find a serializer for namespace 'http://schema.omg.org/spec/UML/2.1'"}

      The xmi file was created using Enterprise Architect 6.5.

      I am going to assume that it is something I have done or an anomaly betgween the EA xmi format and the one used by NUml. Any pointers?

      I am planning to use NUml in a couple of opensource projects that I am working on mainly to create and maintain the domain model. As part of the preparation, I am creating a VS2005 project for NUml, and if it completes before anyone else does it, I will post the project.

      regards

       
      • Rodolfo Campero

        Rodolfo Campero - 2006-09-21

        Hello,

        Thanks for your interest in nUML.

        The error message {"Couldn't find a serializer for namespace 'http://schema.omg.org/spec/UML/2.1'"} indicates that the file contains a UML 2.1 model; the library currently handles models from UML 2.0.

        If you're building your own binaries, try modifying the file src/Uml2/Serialization/Serializer.cs, adding
        "http://schema.omg.org/spec/UML/2.1"
        to the list of strings in the array named ACCEPTED_XMLNS (it's at the bottom of the file). Please use the last version checked out from SVN.

        This will force the UML serializer to accept said namespace, and (hopefully) you'll be able to load the XMI file.

        Alternatively, you can modify the XMI file to use "http://schema.omg.org/spec/UML/2.0" instead (this will likely take way less time).

        I would like to see the file (if that's possible) in order to check that everything goes fine; you can send me the file via email.

        As a side note, I'm currently working (in my spare time, which is not much) on a library for UML version 2.1 - actually, I'm working on a code generator to create a full featured library automatically.

        Best regards,
        Rodolfo

         
    • Salim

      Salim - 2006-09-21

      Rodolfo,

      Great, I was not expecting such a fast response. This actually takes away another apprehension I had from seeing the rather silent forums of the project :-)

      Yes, I was thinking of changing the accepted_xmlns, but was not sure if i was digging my own grave there :D I was trying to postpne building it in vs2005 as well...

      I will try this change after getting the latest drop, build and see if that loads the file. I will create a small model in EA and post the XMI if something goes wrong. In anycase, will keep you posted.

      Glad to hear that you are working on the 2.1 compatibility. Keep up the great work, and I will post my findings/fixes etc.

      Salim

       

Log in to post a comment.

MongoDB Logo MongoDB