Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » 'unable to instantiate' exception when loading wizardPage
'unable to instantiate' exception when loading wizardPage [message #250217] Fri, 14 December 2007 19:19 Go to next message
Eclipse UserFriend
Originally posted by: jeff_r2.verifone.com

Could not find a plugin newsgroup so here goes.

I added a wizardPage to extend the 'newProject' wizard, at this point very
simple, just stubs.
the pageClass extends WizardPage. and
the operationClass implements Runnable.

When executing a newProject I get the execption:

org.eclipse.cdt.managedbuilder.core.BuildException: Plug-in
"path.environment" was unable to instantiate class
"path.environment.wizardConfigFilePage".
NOTE: I replaced the full path to 'path' in the execption.

Creating the extension point and classes were straightforward but there
must be something fundamental going on here. Can someone point in to any
doc's or examples.

thanks.
Jeff
Re: 'unable to instantiate' exception when loading wizardPage [message #250225 is a reply to message #250217] Sat, 15 December 2007 15:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Jeff Reich wrote:
> Could not find a plugin newsgroup so here goes.
>
> I added a wizardPage to extend the 'newProject' wizard, at this point
> very simple, just stubs.
> the pageClass extends WizardPage. and
> the operationClass implements Runnable.
>
> When executing a newProject I get the execption:
>
> org.eclipse.cdt.managedbuilder.core.BuildException: Plug-in
> "path.environment" was unable to instantiate class
> "path.environment.wizardConfigFilePage".
> NOTE: I replaced the full path to 'path' in the execption.
>
> Creating the extension point and classes were straightforward but there
> must be something fundamental going on here. Can someone point in to any
> doc's or examples.
>
> thanks.
> Jeff
>
>
Check to make sure that your wizard page has the appropriate
constructors. Also check to make sure that it isn't throwing an
exception in the constructor.
Re: 'unable to instantiate' exception when loading wizardPage [message #250237 is a reply to message #250225] Mon, 17 December 2007 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeff_r2.verifone.com

I used the create class wizard and the ctor's looked good, I put a line of
code in each ctor so as to breakpoint, and the breakpoint is never hit
either on my line of code or the super() call. Looks like things are
bombing out before the ctor is called but if it was a path problem I would
expect to see a 'class not found' exception, instead of the 'unable to
instantiate'.
Here are the constructors:

public wizardConfigFilePage(String pageName) {
super(pageName);
int i = 0;

}

public wizardConfigFilePage(String pageName, String title,
ImageDescriptor titleImage) {
super(pageName, title, titleImage);
int i = 0;
}
Re: 'unable to instantiate' exception when loading wizardPage [message #250244 is a reply to message #250237] Mon, 17 December 2007 13:39 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_r2.verifone.com

Figured it out.
The class is constructed using a default ctor, which the class wizard did
not generate since the parent (WizardPage) class does not have a default
ctor.
thanks David.

Jeff Reich
Previous Topic:Accessing JavaApplicationLaunchShortcut.launch(...)
Next Topic:Consistency problems when custom builder uses ICompilationUnit for externally up
Goto Forum:
  


Current Time: Tue Apr 22 16:24:15 EDT 2025

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

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

Back to the top