Geoff and Larry,

Do you have any suggestions on how we can handle these Exceptions in the
core differently to obtain the behavior you desire. If I am working on the
PlugInManager class anyways I can take a look at how we might implement your
suggestions.

Landon


On 2/27/07, Geoffrey G Roy <[EMAIL PROTECTED]> wrote:

I would like to support Larry's comment about exceptions that occur
during the initialization of a plugin.

If they are not caught and handled then you are left with a process
that must be killed from the task manager.  My recent experience was
with using the I18Nplug class for internationalization.  After adding
the necessary exception handling for "Missing Keys" then my
(JumpPrinter) plugin could complete its initialization with some error
messages that could then be worked on.

I appreciate that other sorts of errors may be deeper inside the Core,
but for plugin developers, an initialization error should not prevent
the GUI to appear so that the process can be killed cleanly.

Geoff

Larry Becker wrote:
> Sunburned,
>
>   Actually, I'd be happy if I got a stack trace, but most of the time
> it just hangs up and you have to kill it from the task manager.  You
> would think there would always be exception handling, but this seems
> to be one of the deeper class loader mysteries of which I am not an
> initiate.
>
> regards,
> Larry
>
> On 2/27/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
>
>> Larry,
>>
>> Over the course of the next few weeks I will see if I can get this
system
>> into OpenJUMP-Ex for some testing. If it is something other developers
think
>> they can use, we can talk about integrating it into OpenJUMP after I
have
>> had a couple of months to work out  the bugs.
>>
>> I didn't realize the other problem you were trying to solve with your
XML
>> file. I wonder if we could provide an error message in a text file that
can
>> be parsed by OpenJUMP and displayed to the user when a plug-in fails to
>> load. We could link the message to the plug-in by the plug-ins class
name.
>> Does this sound like something that you had in mind? It might be better
than
>> simply presenting the user with a stack trace.
>>
>> Let me know what you think.
>>
>> Landon
>>
>>
>> On 2/27/07, Larry Becker <[EMAIL PROTECTED]> wrote:
>>
>>> Hi Sunburned,
>>>
>>> Congratulations on your Plan "A" concept.  I see no theoretical
>>> reason why it couldn't be made to work.  However, there can always be
>>> many practical reasons that any plan might fail during implementation,
>>> and since your Catalog example seems to be the only plugin that
>>> currently needs this kind of runtime plugin to plugin extensibility,
>>> why don't you test it out on your experimental JUMP flavor and see how
>>> well it really does the job?
>>>
>>> By the way, the XML solution that I was proposing was mainly to
>>> solve an entirely different problem of plugins crashing JUMP on
>>> startup due to class not found errors.  This is mainly an annoyance
>>> that people have to deal with when mixing and matching different JUMP
>>> flavor plugins, but is usually readily solved by posting a question on
>>> this list.
>>>
>>> regards,
>>> Larry
>>>
>>> On 2/27/07, Sunburned Surveyor < [EMAIL PROTECTED]> wrote:
>>>
>>>> I spent an hour or so after work yesterday providing a more in-depth
>>>> explanation of how I thought plug-in dependency might be supported in
>>>> OpenJUMP. You can read that information on my OpenJUMP blog:
>>>>
>>>> http://openjump.blogspot.com/
>>>>
>>>> I think it would only take me a few hours to implement Plan "A" in
>>>>
>> OpenJUMP,
>>
>>>> if we decide to do that, and I believe it would really add a lot of
>>>> flexibility for plug-in developers.
>>>>
>>>> The Sunburned Surveyor
>>>>
>>>>
>>
-------------------------------------------------------------------------
>>
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
share
>>>>
>> your
>>
>>>> opinions on IT & business topics through brief surveys-and earn cash
>>>>
>>>>
>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>>>> _______________________________________________
>>>> Jump-pilot-devel mailing list
>>>> Jump-pilot-devel@lists.sourceforge.net
>>>>
>>>>
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>>>
>>> --
>>> http://amusingprogrammer.blogspot.com/
>>>
>>>
>>>
>>
-------------------------------------------------------------------------
>>
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to
share
>>>
>> your
>>
>>> opinions on IT & business topics through brief surveys-and earn cash
>>>
>>>
>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>>> _______________________________________________
>>> Jump-pilot-devel mailing list
>>> Jump-pilot-devel@lists.sourceforge.net
>>>
>>>
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>
-------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
>> opinions on IT & business topics through brief surveys-and earn cash
>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>
>>
>
>
>

--
Geoffrey G Roy
Cadplan
129 Gloster Street, Subiaco WA 6008
Tel: (08) 9381 4870  Fax: (08) 9382 4459
Email: [EMAIL PROTECTED]
http://www.cadplan.com.au


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to