Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Switching 3.1M4 to 3.1M5a and Exception Handling
Switching 3.1M4 to 3.1M5a and Exception Handling [message #451447] Wed, 02 March 2005 14:34
Andreas Martin is currently offline Andreas MartinFriend
Messages: 6
Registered: July 2009
Junior Member
Hello!

Yesterday I moved my SWT/JFace standalone Project from Eclipse 3.1M4 to
3.1M5a (WinXP SP2, Java 1.5).

I know that my application fails at a certain points and when I run the
application from Eclipse M4 and I reach such a point I get an Error
Message Box with the information "An error has occured. See error log
for more details."

In the console I can see for example the following exception message:

java.lang.IllegalArgumentException: Argument cannot be null
at org.eclipse.swt.SWT.error(SWT.java:2813)
at org.eclipse.swt.SWT.error(SWT.java:2752)
at org.eclipse.swt.SWT.error(SWT.java:2723)
at org.eclipse.swt.widgets.Widget.error(Widget.java:388)
at org.eclipse.swt.widgets.TableColumn.setText(TableColumn.java :449)
at
gui.forms.imports.Ereignisse2DetailsPage.updateData(Ereignis se2DetailsPage.java:857)
at
gui.forms.imports.Ereignisse2DetailsPage.access$1(Ereignisse 2DetailsPage.java:838)
at
gui.forms.imports.Ereignisse2DetailsPage$2.selectionChanged( Ereignisse2DetailsPage.java:373)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:161)
at ........


Running the same application from M5a, there is no message box and the
console shows me instead of the real exception:

Exception in thread "main" java.lang.NoSuchMethodError:
org.osgi.service.packageadmin.PackageAdmin.getBundle(Ljava/l ang/Class;)Lorg/osgi/framework/Bundle;
at
org.eclipse.core.internal.runtime.InternalPlatform.getBundle Id(InternalPlatform.java:307)
at
org.eclipse.core.internal.runtime.InternalPlatform.handleExc eption(InternalPlatform.java:679)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1017)
at org.eclipse.core.runtime.Platform.run(Platform.java:757)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:161)
at .........


It's very annoying not to see the real exception. I think this is not a
SWT explizit problem. But perhaps can somebody tell me on which list I
should post the problem instead.

Thanks
Andreas Martin
Previous Topic:SWT nklp linux
Next Topic:TableColumn reorder by drag and drop
Goto Forum:
  


Current Time: Sat Apr 27 04:03:38 GMT 2024

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

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

Back to the top