Skip to main content



      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 11:51 Go to next message
Eclipse UserFriend
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 15:41 Go to previous messageGo to next message
Eclipse UserFriend
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 15:56] by Moderator

Re: NoClassDefFoundError when adding AutoCompleteField [message #1074222 is a reply to message #1073935] Fri, 26 July 2013 06:03 Go to previous messageGo to next message
Eclipse UserFriend
> 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 14:38 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 14:59:51 EDT 2025

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

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

Back to the top