Hi Tom,
In my log file it says:

2011-02-05 16:57:44,821 ERROR: Could not load module from class
org.argouml.ui.argoprint.ArgoPrintMenuPlugin (ModuleLoader2.java:462)
2011-02-05 16:57:49,686 ERROR: Last chance error handler in AWT thread
caught (AwtExceptionHandler.java:57)
java.lang.NullPointerException
at
org.argoprint.ui.TemplateTableModel.getValueAt(TemplateTableModel.java:115)
at javax.swing.JTable.getValueAt(JTable.java:2719)
 at javax.swing.JTable.prepareRenderer(JTable.java:5719)
at javax.swing.plaf.synth.SynthTableUI.paintCell(SynthTableUI.java:636)

I fixed the NPE that was occurring, and checked in the code, and an updated
build file.  I tried your approach to building argouml; however, when I
attempt to run it your way, I get this exception:

Caused by: java.lang.ClassNotFoundException:
org.apache.log4j.PropertyConfigurator

I've tried putting the argoprint.jar file and its dependencies in the ext
directory of different argouml versions (specifically 0.29.2, and 0.30.2),
and the resources are  still not bound properly.

Let me know if these fixes work for you.

Mark



On Sat, Feb 5, 2011 at 3:22 PM, Tom Morris <[email protected]> wrote:

> On Sat, Feb 5, 2011 at 11:27 AM, Mark Fortner <[email protected]> wrote:
>
> > I modified the ant build to create the JAR and this didn't make any
> difference.  Most of the modules are either translations, or support for
> other languages, and there's not much translation being done in either.
>
> Thanks for fixing the build.  With a few tweaks, I was able to build
> the module and it appears to work fine for me.  What I did was:
>
> cd argouml-build
> ant clean package
> cd ../argoprint
> ant clean run
>
> When I do this and click Tools->ArgoPrint, I see the ArgoPrint dialog
> with all of the correct button labels.  There's something wrong with
> the default templates, so it gives me an error ("unabled to load
> specified template) when I click Generate, but the UI looks fine.
>
> > I also found this in the log: java.lang.ClassNotFoundException:
> org/argoprint/persistence/TemplateMetaFile
> > which would indicate that it's not really loading the entire JAR at all,
> since this class is definitely in the JAR.  Oddly enough, it loads the
> ArgoPrintDialog class which is in the same JAR.
>
> What's the rest of the message?  When does it occur?
>
> What gets logged at startup?  Do you see  the equivalent of these
> messages that I posted before?
>
> 36699  INFO [main] Loading module
> org.argouml.ui.argoprint.ArgoPrintMenuPlugin (ModuleLoader2.java:705)
> 36831 DEBUG [main] Loading org.argouml.i18n.argoprint (Translator.java:267)
>
> If you don't see both, your module isn't correctly loaded.  One of the
> things that modules are susceptible to is version skew because none of
> the APIs are versioned.  Are testing your module with the same version
> ArgoUML that it was built against?  If your module loading is failing
> due to this, you should get a message in the log because I added a
> bunch of logging for the various failure modes (wrong Java version,
> missing dependencies, etc)
>
> Because the classes in the JAR are processed sequentially, it wouldn't
> be unusual to have only some of the classes loaded if there was a
> failure loading one of the later classes.  Since the classpath gets
> added to the Translator after all the classes get loaded, the symptom
> you're seeing of resources not being available would fit with this
> error scenario.
>
> Tom
>
>

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2702477

To unsubscribe from this discussion, e-mail: 
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email: 
[[email protected]]

Reply via email to