# JMF exception after registering a plugin

**URL:** <https://boards.straightdope.com/t/jmf-exception-after-registering-a-plugin/556980>\
**Category:** Factual Questions\
**Created:** [October 13, 2010, 11:21am UTC](https://boards.straightdope.com/t/jmf-exception-after-registering-a-plugin/556980 "2010-10-13T11:21:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lobot](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@Lobot](https://boards.straightdope.com/u/Lobot)\
**Post date:** [October 13, 2010, 11:21am UTC](https://boards.straightdope.com/t/jmf-exception-after-registering-a-plugin/556980/1 "2010-10-13T11:21:05Z")

</div>

OK, so I’ve got another problem with the Java Media Framework.

I’m trying to register a custom Effect. The registration proceeds without throwing any exceptions, but then while executing a later statement as mundane as **setJMenuBar** , I’ll have **java.lang.reflect.InvocationTargetException** appear. Moving the registration calls only causes the exception to appear during similarly mundane statements.

If I remove the registration, no exceptions appear. Also, enclosing any offending statements in a try/catch block reveals no exceptions. I’m truly baffled.

Thoughts?
