Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » NoClassDefFoundError when adding AutoCompleteField(NoClassDefFoundError when adding AutoCompleteField)
NoClassDefFoundError when adding AutoCompleteField [message #1073843] Thu, 25 July 2013 15:51 Go to next message
Rohit Deshpande is currently offline Rohit DeshpandeFriend
Messages: 5
Registered: July 2013
Junior Member
Hi,
In createContents() method, i have just following lines of code.

@Override
protected void createContents(Composite parent)
{
Text textField = new Text(parent, SWT.BORDER);
new AutoCompleteField(textField, new TextContentAdapter(), new String[]
{"abc", "aef","rem","ret","jkl","jre"});

}

I am getting this error:

java.lang.NoClassDefFoundError: org/eclipse/core/runtime/ListenerList
at org.eclipse.jface.fieldassist.ContentProposalAdapter.<init>(ContentProposalAdapter.java:1215)
at org.eclipse.jface.fieldassist.AutoCompleteField.<init>(AutoCompleteField.java:49)
at com.logwebui.test.BasicEntryPoint.createContents(BasicEntryPoint.java:123)

Please help me in this regards.
Re: NoClassDefFoundError when adding AutoCompleteField [message #1073935 is a reply to message #1073843] Thu, 25 July 2013 19:41 Go to previous messageGo to next message
Rohit Deshpande is currently offline Rohit DeshpandeFriend
Messages: 5
Registered: July 2013
Junior Member
I was able to resolve the issue. I added jar org.eclipse.core as reference. But I am facing new issue. When I enter text in this autocomplete textfield, I get following excpetion:
java.lang.SecurityException: class "org.eclipse.jface.dialogs.Dialog"'s signer information does not match signer information of other classes in the same package

and

java.lang.ExceptionInInitializerError at org.eclipse.jface.fieldassist.ContentProposalAdapter.openProposalPopup(ContentProposalAdapter.java
I don't understand how to resolve this.

[Updated on: Thu, 25 July 2013 19:56]

Report message to a moderator

Re: NoClassDefFoundError when adding AutoCompleteField [message #1074222 is a reply to message #1073935] Fri, 26 July 2013 10:03 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

> java.lang.SecurityException: class "org.eclipse.jface.dialogs.Dialog"'s
> signer information does not match signer information of other classes in
> the same package

You get this exception when you mix signed and unsigned bundles that
export the same package, for example a (signed) rap release version and
an (unsigned) filedialog nightly build from the incubator.

HTH, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: NoClassDefFoundError when adding AutoCompleteField [message #1074422 is a reply to message #1074222] Fri, 26 July 2013 18:38 Go to previous message
Rohit Deshpande is currently offline Rohit DeshpandeFriend
Messages: 5
Registered: July 2013
Junior Member
Thanks Ralf.
I had two jface jars referenced in my application.
Your input helped me solve the problem.
Thanks! Very Happy
Previous Topic:Check if Browser is closed
Next Topic:error occurs occasionally when using MARKUP_ENABLED img tag
Goto Forum:
  


Current Time: Thu Apr 25 05:53:35 GMT 2024

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

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

Back to the top