Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » No Such Method Error(CodeAssistConfigurationBlock<init> throwing NoSuchMethodError)
No Such Method Error [message #1152909] Thu, 24 October 2013 08:49 Go to next message
Kevin Hagel is currently offline Kevin HagelFriend
Messages: 26
Registered: December 2012
Junior Member
I my extension of org.eclipse.dltk.ui.preferences.CodeAssistConfigurationBlock I'm seeing
Error
Thu Oct 24 11:35:20 EEST 2013
Problems occurred when invoking code from plug-in: "org.eclipse.jface".

java.lang.NoSuchMethodError: org.eclipse.dltk.ui.preferences.CodeAssistConfigurationBlock.<init>(Lorg/eclipse/jface/preference/PreferencePage;Lorg/eclipse/dltk/ui/preferences/OverlayPreferenceStore;)V
....


It's occuring in my call to super.
public class MyContentAssistConfigurationBlock extends
    CodeAssistConfigurationBlock
{

    /**
     * @param mainPreferencePage
     * @param store
     */
    public MyContentAssistConfigurationBlock(PreferencePage mainPreferencePage,
                                                OverlayPreferenceStore store)
    {
        super(mainPreferencePage,
              store);
    }

}

Our plugin is being built with the latest from the update site at http://download.eclipse.org/technology/dltk/updates-dev/5.0/

This is dltk 5 on Eclipse Kepler. This problem is not occurring on Juno.
I'm seeing it on windows xp, windows 7, mac os, and ubuntu 12.04
Brand new installs of eclipse kepler with our plugin and also existing kepler installs with our plugin being updated.


Re: No Such Method Error [message #1154427 is a reply to message #1152909] Fri, 25 October 2013 07:30 Go to previous messageGo to next message
Kevin Hagel is currently offline Kevin HagelFriend
Messages: 26
Registered: December 2012
Junior Member
I filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=420269 on this issue.

In case anybody else runs into this ...

Our developers have to develop on Juno for other reasons outside this issue. Our customers are more likely to get Kepler than Juno these days, so this is a real problem for us. But not all our customers, so we have to deal with Juno.

We are building with maven tycho, developing and testing in Juno ...

CodeAssistConfigurationBlock's constructor in DLTK 4 is different than in DLTK 5

Juno's release url does not have dltk 5.
Kepler's release url does not have dlk 4.
so we can't get around this problem by adding some 'magic' in our feature project.


We had to stop using the CodeAssistConfigurationBlock ancestor and move up the hierarchy ourselves directly to AbstractConfigurationBlock. We had to take over the behavior that CodeAssistConfigurationBlock was providing.

This got us around *this* problem. So far our customers are not finding any other such compatibility problems ... yet.

Is there a chance the DLTK folks will make dltk 5 available on the juno release site, or dltk 4 available on the kepler release site?

Re: No Such Method Error [message #1157920 is a reply to message #1154427] Sun, 27 October 2013 15:19 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
On 10/25/2013 02:30 PM, Kevin Hagel wrote:
> Is there a chance the DLTK folks will make dltk 5 available on the juno
> release site, or dltk 4 available on the kepler release site?

That's not possible, as
- only one version from the project is expected to be there
- both simultaneous releases already happened (however for Kepler some
updates would be possible in SR2 in February 2014).

What is possible is installing DLTK 5.0 in Juno (or DLTK 4.0 in Kepler)
as part of your product installation, if DLTK update site is referenced
as associated site from your product update site and plugin dependencies
are specified with version numbers.
Re: No Such Method Error [message #1158848 is a reply to message #1157920] Mon, 28 October 2013 06:12 Go to previous message
Kevin Hagel is currently offline Kevin HagelFriend
Messages: 26
Registered: December 2012
Junior Member
I was able to add the kepler update site to our maven tycho build as one of the maven repos to use.
It seems Juno can run with DLTK 5, so we can build with it, package with it etc, our customers still using Juno are able to run, when they update plugins they get our product with dltk 5.
Inside Eclipse I removed the dltk 4 update site, replacing it with the dltk 5 update site.
Previous Topic:DLTK 5 update site
Next Topic:DLTK Indexing working for PHP project files, but not PHP built-ins.
Goto Forum:
  


Current Time: Thu Apr 25 02:24:05 GMT 2024

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

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

Back to the top