NoSuchMethodError: calculateSecurityWarningPosition

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

NoSuchMethodError: calculateSecurityWarningPosition

Postby aschilling » Sun Sep 13, 2009 11:16 pm

hello!

since a few days we encounter the following error for any dialog or wizard page we try to open in windowbuilder:

Code: Select all
java.lang.NoSuchMethodError: calculateSecurityWarningPosition
   at java.awt.Window.initIDs(Native Method)
   at java.awt.Window.<clinit>(Unknown Source)
   at sun.misc.Unsafe.ensureClassInitialized(Native Method)
   at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)
   at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)
   at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)
   at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
   at java.lang.reflect.Field.get(Unknown Source)
   at sun.awt.SunToolkit$6.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.awt.SunToolkit.<clinit>(Unknown Source)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Unknown Source)
   at java.awt.Toolkit$2.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
   at javax.swing.UIManager.<clinit>(Unknown Source)
   at com.instantiations.utils.reflect.ProjectClassLoader.cleanUpJIDE(ProjectClassLoader.java:119)
   at com.instantiations.utils.reflect.ProjectClassLoader.<init>(ProjectClassLoader.java:149)
   at com.instantiations.utils.reflect.ProjectClassLoader.create(ProjectClassLoader.java:55)
   at com.instantiations.designer.rcp.parser.ParseFactory.initializeClassLoader(ParseFactory.java:373)
   at com.instantiations.designer.rcp.parser.ParseFactory.getRootContext(ParseFactory.java:99)
   at com.instantiations.designer.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:870)
   at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:184)
   at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:123)
   at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:384)
   at com.instantiations.designer.core.editor.DesignPage.access$600(DesignPage.java:57)
   at com.instantiations.designer.core.editor.DesignPage$6$1.run(DesignPage.java:297)
   at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
   at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
   at org.eclipse.swt.widgets.Display.syncExec(Display.java:4312)
   at com.instantiations.designer.core.editor.DesignPage$6.run(DesignPage.java:294)
   at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
   at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
   at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
   at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:315)
   at com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:421)
   at com.instantiations.designer.core.editor.UndoManager.activate(UndoManager.java:77)
   at com.instantiations.designer.core.editor.DesignPage.handleActiveState_True(DesignPage.java:224)
   at com.instantiations.designer.core.editor.DesignPage.handleActiveState(DesignPage.java:211)
   at com.instantiations.designer.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:80)
   at com.instantiations.designer.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:43)


full stacktrace attached.

btw, if I select "reparse" after that error occured, the following error is raised:
Code: Select all
java.lang.NoClassDefFoundError: Could not initialize class javax.swing.UIManager

full stacktrace attached as well.

any hints what might be the problem? strange thing is, it didn't happen like one week ago. unfortunately I can't really remember, what system changes (or eclipse installation changes) have been done in the meantime.
WB version is 7.0.0 running within eclipse 3.5 under windows xp 64.

best regards,

Andreas
Attachments
wb_noclassdeffound_error.txt
Stacktrace for NoClassDefFound error
(8.13 KiB) Downloaded 39 times
wb_nosuchmethod_error.txt
Stacktrace for NoSuchMethod error
(11.18 KiB) Downloaded 35 times
aschilling
 
Posts: 3
Joined: Thu Apr 16, 2009 10:20 pm

Re: NoSuchMethodError: calculateSecurityWarningPosition

Postby Eric Clayberg » Mon Sep 14, 2009 5:15 am

Looks like some problem with either your classpath or your actual Java installation.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: NoSuchMethodError: calculateSecurityWarningPosition

Postby aschilling » Wed Sep 23, 2009 11:00 pm

ok, resolved. It really was a problem with the Java installation, an update helped.
Strange error though :D (the first one I mean, not the one with the UIManager)

best regards,

Andreas
aschilling
 
Posts: 3
Joined: Thu Apr 16, 2009 10:20 pm

Re: NoSuchMethodError: calculateSecurityWarningPosition

Postby Eric Clayberg » Thu Sep 24, 2009 3:30 am

Both exceptions appear to be caused by problems with UIManager in the JVM you had loaded.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot] and 2 guests