WindowBuilder internal error - Swing in Eclipse 3.5

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

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

WindowBuilder internal error - Swing in Eclipse 3.5

Postby thavali » Sun Oct 18, 2009 8:05 pm

I use Eclipse 3.5 with JDK 1.6 and Swing in WindowBuilder 7.2. When I drag and drop the "Button" in Swing component to the frame, then WindowBuilder puted a error following:

============================
WindowBuilder encountered unexpected internal error. Please contact support.

java.lang.SecurityException: class "org.eclipse.jdt.core.dom.AnonymousTypeDeclaration2"'s signer information does not match signer information of other classes in the same package

Stack trace:
java.lang.SecurityException: class "org.eclipse.jdt.core.dom.AnonymousTypeDeclaration2"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(Unknown Source)
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:183)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:576)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:546)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:486)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:465)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:445)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:454)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.instantiations.designer.core.utils.ast.ASTEditor$4.postVisit(ASTEditor.java:687)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2483)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2528)
at org.eclipse.jdt.core.dom.PackageDeclaration.accept0(PackageDeclaration.java:231)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2528)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:217)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
at com.instantiations.designer.core.utils.ast.ASTEditor.replaceSubstring(ASTEditor.java:696)
at com.instantiations.designer.core.utils.ast.ASTEditor.replaceExpressionString(ASTEditor.java:885)
at com.instantiations.designer.core.utils.ast.ASTEditor.replaceExpression(ASTEditor.java:838)
at com.instantiations.designer.swing.model.component.top.Swing_TopBoundsSupport.setSizeInts(Swing_TopBoundsSupport.java:187)
at com.instantiations.designer.swing.model.component.top.Swing_TopBoundsSupport.setSize(Swing_TopBoundsSupport.java:73)
at com.instantiations.designer.core.gef.policy.selection.TopSelectionEditPolicy$1.executeEdit(TopSelectionEditPolicy.java:94)
at com.instantiations.designer.core.gef.command.EditCommand$1.run(EditCommand.java:35)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:240)
at com.instantiations.designer.core.gef.command.EditCommand.execute(EditCommand.java:33)
at com.instantiations.gef.core.EditDomain.executeCommand(EditDomain.java:38)
at com.instantiations.gef.core.tools.Tool.executeCommand(Tool.java:184)
at com.instantiations.gef.graphical.tools.ResizeTracker.handleButtonUp(ResizeTracker.java:121)
at com.instantiations.gef.core.tools.Tool.mouseUp(Tool.java:352)
at com.instantiations.gef.graphical.tools.SelectionTool.mouseUp(SelectionTool.java:223)
at com.instantiations.gef.core.EditDomain.mouseUp(EditDomain.java:196)
at com.instantiations.gef.graphical.EditEventManager.mouseUp(EditEventManager.java:131)
at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.instantiations.draw2d.EventManager$8.invoke(EventManager.java:288)
at $Proxy1.mouseUp(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:207)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
thavali
 
Posts: 3
Joined: Sun Oct 18, 2009 7:55 pm

Re: WindowBuilder internal error - Swing in Eclipse 3.5

Postby Eric Clayberg » Mon Oct 19, 2009 1:10 pm

thavali wrote:java.lang.SecurityException: class "org.eclipse.jdt.core.dom.AnonymousTypeDeclaration2"'s signer information does not match signer information of other classes in the same package

While the above is certainly true (and even expected), it should not result in any exception or cause any problem in Eclipse.

Have you modified any security settings in Eclipse or in the JVM? Have you modified the default eclipse.ini file? What exact JVM are you using?

Please send us your "Installation Details > Configuration" from the Eclipse About dialog.
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: WindowBuilder internal error - Swing in Eclipse 3.5

Postby thavali » Tue Oct 20, 2009 5:36 am

Thanks Eric Clayberg,

I modified eclipse.ini file as follow:
from "--launcher.XXMaxPermSize 512m" to "--launcher.XXMaxPermSize 256m"

this is full information of eclipse.ini file:

--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx400m

========================
my OS is XP sp3 32bit, RAM 512M. JDK 6 update 16. Eclipse EE 3.5

Thanks,
thavali
Attachments
Swing error.JPG
Swing error.JPG (51.17 KiB) Viewed 1034 times
Configuration.zip
(50.07 KiB) Downloaded 84 times
thavali
 
Posts: 3
Joined: Sun Oct 18, 2009 7:55 pm

Re: WindowBuilder internal error - Swing in Eclipse 3.5

Postby Eric Clayberg » Tue Oct 20, 2009 1:30 pm

Your configuration shows the following:

osgi.support.signature.verify=true

I am guessing that is the problem.

Try removing that line from $ECLIPSE_HOME\configuration\config.ini (assuming that is where it is). The default config for Eclipse does not set that flag.
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: WindowBuilder internal error - Swing in Eclipse 3.5

Postby thavali » Wed Oct 21, 2009 7:31 am

thanks so much Eric Clayberg

after remove the line: "osgi.support.signature.verify=true"
then everything seem to be very nice.

Thanks,
thavali
thavali
 
Posts: 3
Joined: Sun Oct 18, 2009 7:55 pm

Re: WindowBuilder internal error - Swing in Eclipse 3.5

Postby Eric Clayberg » Wed Oct 21, 2009 5:41 pm

Glad that worked for you.
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 Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest