Login | Register
My pages Projects Community openCollabNet

Discussions > users > [argouml-users] Strange error on exporting diagram images

argouml
Discussion topic

Back to topic list

[argouml-users] Strange error on exporting diagram images

Author Nathaniel Kofalt <kofal002 at umn dot edu>
Full name Nathaniel Kofalt <kofal002 at umn dot edu>
Date 2010-04-25 23:52:14 PDT
Message Hello all!

     We use a custom ArgoUML build (currently of 0.28.1) - essentially
just a minor change by "thn" (revision 17025, see link below) that makes
it possible to save all graphics from the command-line. Combined with a
simple commit script, and now we have a SVN repository of ArgoUML
projects that automatically generate pictures of themselves into a
folder, which gets served over Apache. This allows us to have a
browser-viewable set of images always showing the latest revision of the
UML. This is very convenient for our team, and our main reason for using
ArgoUML.

     The command we use is pretty vanilla, just open the project and
export all in batch mode (put in your own locations at the ... marks):
     java -jar ...argouml.jar -batch -command
"org.argouml.uml.ui.​ActionOpenProject=..​..example.zargo" -command
"org.argouml.uml.ui.​ActionSaveAllGraphic​s=..../exampleEmptyF​older"

     And this works perfectly in most cases. However, any project with a
Sequence diagram causes this exception:
     org.argouml.persiste​nce.OpenException:
java.lang.ClassNotFo​undException:
org.argouml.sequence​2.diagram.UMLSequenc​eDiagram
     (plus a lengthy stack traced, attached to this email).

     Replicating this error is pretty easy:
         svn checkout
http://argouml.tigri​s.org/svn/argouml/re​leases/VERSION_0_28_​1/src
argouml/src --username guest
         svn checkout
http://argouml.tigri​s.org/svn/argouml/re​leases/VERSION_0_28_​1/tools
argouml/tools --username guest
         Apply the diff linked below (one file), easy enough to do manually
         Build project with "argouml\src\argou​ml-build\build.sh" or
similar "build.bat"
         Newly-built project appears in "argouml\src\argou​ml-build\build"
         Use the java command above on any ArgoUML project without a
Sequence diagram to see it generate PNG images for each diagram
         Use the java command above on any ArgoUML project with a
Sequence diagram to see it fail

     The diff link:
http://argouml.tigri​s.org/source/browse/​argouml/trunk/src/ar​gouml-app/src/org/ar​gouml/uml/ui/ActionS​aveAllGraphics.java?​view=diff&r1=170​24&r2=17025&​pathrev=17025&di​ff_format=l

     This seems strange, since presumably the only difference from the
official releases is that tiny feature added (like 30 lines). To confuse
matters, the class source it can't find
(org.argouml.sequenc​e2.diagram.UMLSequen​ceDiagram) clearly exists in the
checkouts we build from (in the
"argouml\src\argou​ml-core-diagrams-seq​uence2\src\org\ar​gouml\sequence2\di​agram"
folder).

     For convenience I also attached the exact modified file,
"argouml\src\argou​ml-app\src\org\ar​gouml\uml\ui\Acti​onSaveAllGraphics.ja​va"
so you don't have to apply the diff manually. I am familiar with Java,
but I'm confused since opening the project in GUI mode produces the same
error, yet in the official builds I can open the project just fine. Am I
doing some portion of the build process wrong?

     Any help is appreciated!

Nathaniel Kofalt
Attachments

« Previous message in topic | 1 of 13 | Next message in topic »

Messages

Show all messages in topic

[argouml-users] Strange error on exporting diagram images Nathaniel Kofalt <kofal002 at umn dot edu> Nathaniel Kofalt <kofal002 at umn dot edu> 2010-04-25 23:52:14 PDT
     Re: [argouml-users] Strange error on exporting diagram images bobtarling Bob Tarling 2010-04-27 10:36:59 PDT
         Re: [argouml-users] Strange error on exporting diagram images bobtarling Bob Tarling 2010-04-27 11:07:57 PDT
             Re: [argouml-users] Strange error on exporting diagram images bobtarling Bob Tarling 2010-04-27 11:26:56 PDT
                 Re: [argouml-users] Strange error on exporting diagram images bobtarling Bob Tarling 2010-04-27 14:45:36 PDT
                     Re: [argouml-users] Strange error on exporting diagram images kofal002 at umn dot edu kofal002 at umn dot edu 2010-04-27 17:55:49 PDT
     Re: [argouml-users] Strange error on exporting diagram images linus Linus Tolke 2010-04-29 14:48:42 PDT
         Re: [argouml-users] Strange error on exporting diagram images Nathaniel Kofalt <kofal002 at umn dot edu> Nathaniel Kofalt <kofal002 at umn dot edu> 2010-05-05 15:01:48 PDT
             Re: [argouml-users] Strange error on exporting diagram images linus Linus Tolke 2010-05-05 22:12:06 PDT
                 Re: [argouml-users] Strange error on exporting diagram images Nathaniel Kofalt <kofal002 at umn dot edu> Nathaniel Kofalt <kofal002 at umn dot edu> 2010-05-06 02:38:11 PDT
                     Re: [argouml-users] Strange error on exporting diagram images Nathaniel Kofalt <kofal002 at umn dot edu> Nathaniel Kofalt <kofal002 at umn dot edu> 2010-05-06 03:17:21 PDT
                         Re: [argouml-users] Strange error on exporting diagram images bobtarling Bob Tarling 2010-05-06 03:31:29 PDT
                             Re: [argouml-users] Strange error on exporting diagram images linus Linus Tolke 2010-05-06 08:15:59 PDT
Messages per page: