Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » A Recent Source of the "Could not create action delegate" Error
A Recent Source of the "Could not create action delegate" Error [message #190811] Fri, 06 February 2004 17:46 Go to next message
Eclipse UserFriend
When I upgraded to a recent Eclipse integration build, my plugin stopped
working. When I tried to invoke a plugin-supplied action, I got "The chosen
operation is not currently available" at the user interface and "Could not
create action delegate for..." and "...unable to load class..." in the error
log.

After poking around for quite awhile, I found the problem. My plugin
declared the contructor MyPlugin(IPluginDescriptor), but the latest builds
require an argumentless constructor, MyPlugin(), as well. Eclipse couldn't
load my action delegate class because it couldn't instantiate my plugin
class.

I hope this explanation helps someone else with the same problem. /Jim White
Re: A Recent Source of the "Could not create action delegate" Error [message #212590 is a reply to message #190811] Wed, 17 March 2004 17:19 Go to previous messageGo to next message
Eclipse UserFriend
I have been stuck for one bloody week because of this error (from M4 to
M7). It is amazing. I have a default contructor in my plug in class
(only that one in fact)
However I still get the following error even when it is willing to run

Could not create action delegate for id: spec.actions.SyncSpecAction2
Reason:
Internal plug-in action delegate error on creation.


What's pissing me off is that sometimes the action delegate is created,
and sometimes not (when I put a try catch statement in the run(IAction
action) method

The action class is something like this

public class SyncSpec2 implements IEditorActionDelegate

Am I supposed to use IActionDelegate2?


Jim White wrote:
> When I upgraded to a recent Eclipse integration build, my plugin stopped
> working. When I tried to invoke a plugin-supplied action, I got "The chosen
> operation is not currently available" at the user interface and "Could not
> create action delegate for..." and "...unable to load class..." in the error
> log.
>
> After poking around for quite awhile, I found the problem. My plugin
> declared the contructor MyPlugin(IPluginDescriptor), but the latest builds
> require an argumentless constructor, MyPlugin(), as well. Eclipse couldn't
> load my action delegate class because it couldn't instantiate my plugin
> class.
>
> I hope this explanation helps someone else with the same problem. /Jim White
>
>
Re: A Recent Source of the "Could not create action delegate" Error [message #212599 is a reply to message #212590] Wed, 17 March 2004 17:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jim,

in fact whenever I do a

if(something instanceof IClass)

I get this error

Unhandled event loop exception
Reason:
org/eclipse/ui/IClass

any idea why M7 acts like that?

Charles

Charles-Philip Bentley wrote:

> I have been stuck for one bloody week because of this error (from M4 to
> M7). It is amazing. I have a default contructor in my plug in class
> (only that one in fact)
> However I still get the following error even when it is willing to run
>
> Could not create action delegate for id: spec.actions.SyncSpecAction2
> Reason:
> Internal plug-in action delegate error on creation.
>
>
> What's pissing me off is that sometimes the action delegate is created,
> and sometimes not (when I put a try catch statement in the run(IAction
> action) method
>
> The action class is something like this
>
> public class SyncSpec2 implements IEditorActionDelegate
>
> Am I supposed to use IActionDelegate2?
>
>
> Jim White wrote:
>
>> When I upgraded to a recent Eclipse integration build, my plugin stopped
>> working. When I tried to invoke a plugin-supplied action, I got "The
>> chosen
>> operation is not currently available" at the user interface and "Could
>> not
>> create action delegate for..." and "...unable to load class..." in the
>> error
>> log.
>>
>> After poking around for quite awhile, I found the problem. My plugin
>> declared the contructor MyPlugin(IPluginDescriptor), but the latest
>> builds
>> require an argumentless constructor, MyPlugin(), as well. Eclipse
>> couldn't
>> load my action delegate class because it couldn't instantiate my plugin
>> class.
>>
>> I hope this explanation helps someone else with the same problem. /Jim
>> White
>>
>>
>
Re: A Recent Source of the "Could not create action delegate" Error [message #212965 is a reply to message #212599] Thu, 18 March 2004 10:59 Go to previous message
Eclipse UserFriend
the problem disappeared when I recreated a project without OSGi support

Charles-Philip Bentley wrote:
> Hi Jim,
>
> in fact whenever I do a
>
> if(something instanceof IClass)
>
> I get this error
>
> Unhandled event loop exception
> Reason:
> org/eclipse/ui/IClass
>
> any idea why M7 acts like that?
>
> Charles
>
> Charles-Philip Bentley wrote:
>
>> I have been stuck for one bloody week because of this error (from M4
>> to M7). It is amazing. I have a default contructor in my plug in class
>> (only that one in fact)
>> However I still get the following error even when it is willing to run
>>
>> Could not create action delegate for id: spec.actions.SyncSpecAction2
>> Reason:
>> Internal plug-in action delegate error on creation.
>>
>>
>> What's pissing me off is that sometimes the action delegate is
>> created, and sometimes not (when I put a try catch statement in the
>> run(IAction action) method
>>
>> The action class is something like this
>>
>> public class SyncSpec2 implements IEditorActionDelegate
>>
>> Am I supposed to use IActionDelegate2?
>>
>>
>> Jim White wrote:
>>
>>> When I upgraded to a recent Eclipse integration build, my plugin stopped
>>> working. When I tried to invoke a plugin-supplied action, I got "The
>>> chosen
>>> operation is not currently available" at the user interface and
>>> "Could not
>>> create action delegate for..." and "...unable to load class..." in
>>> the error
>>> log.
>>>
>>> After poking around for quite awhile, I found the problem. My plugin
>>> declared the contructor MyPlugin(IPluginDescriptor), but the latest
>>> builds
>>> require an argumentless constructor, MyPlugin(), as well. Eclipse
>>> couldn't
>>> load my action delegate class because it couldn't instantiate my plugin
>>> class.
>>>
>>> I hope this explanation helps someone else with the same problem.
>>> /Jim White
>>>
>>>
>>
>
Previous Topic:Team Sync:Way to not view added files?
Next Topic:Collapsible Views possible?
Goto Forum:
  


Current Time: Wed Nov 05 21:20:04 EST 2025

Powered by FUDForum. Page generated in 0.04337 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top