Can not find contructor for... error

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

Can not find contructor for... error

Postby ForceRs » Thu Aug 16, 2007 8:17 am

Hello, I am migrating from VE to WindowBuilder Pro.

I am getting this error in my error log when I open this component:

Code: Select all
java.lang.Exception: Can not find contructor for com.company.product.package.commonagent.AgentComboPanel$ComboBoxRenderer and arguments [Ljava.lang.Class;@1882908
   at com.swtdesigner.model.converter.ExpressionConverter.convertClassInstanceCreation(ExpressionConverter.java:715)
   at com.swtdesigner.model.converter.ExpressionConverter.toValue(ExpressionConverter.java:148)
   at com.swtdesigner.model.properties.ObjectCodeProperty$ObjectCodeConverter.toValue(ObjectCodeProperty.java:315)
   at com.swtdesigner.model.properties.GenericProperty.toValue(GenericProperty.java:196)
   at com.swtdesigner.model.properties.GenericProperty.getPropertyState(GenericProperty.java:515)
   at com.swtdesigner.model.properties.GenericProperty.getPropertyState(GenericProperty.java:501)
   at com.swtdesigner.model.properties.GenericProperty.getNonDefaultValue(GenericProperty.java:172)
   at com.swtdesigner.model.properties.GenericProperty.getValue(GenericProperty.java:165)
   at com.swtdesigner.model.properties.ObjectCodeProperty.getPropertyEditor(ObjectCodeProperty.java:160)
   at com.swtdesigner.properties.editors.PropertyEditorFactory.getEditorNoInit(PropertyEditorFactory.java:22)
   at com.swtdesigner.properties.editors.PropertyEditorFactory.getEditor(PropertyEditorFactory.java:14)
   at com.swtdesigner.properties.table.PropertyTable.getEditor(PropertyTable.java:505)
   at com.swtdesigner.properties.table.PropertyTable.isComplexProperty(PropertyTable.java:509)
   at com.swtdesigner.properties.table.PropertyTable.collectProperties(PropertyTable.java:483)
   at com.swtdesigner.properties.table.PropertyTable.getProperties(PropertyTable.java:473)
   at com.swtdesigner.properties.table.PropertyTable.getRowCount(PropertyTable.java:464)
   at com.swtdesigner.properties.table.PropertyTable.calculateConstants(PropertyTable.java:570)
   at com.swtdesigner.properties.table.PropertyTable.doPaint(PropertyTable.java:695)
   at com.swtdesigner.properties.table.PropertyTable$3.paintControl(PropertyTable.java:99)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:83)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
   at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1285)
   at org.eclipse.swt.widgets.Control.windowProc(Control.java:3299)
   at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
   at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
   at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
   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.core.launcher.Main.invokeFramework(Main.java:336)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
   at org.eclipse.core.launcher.Main.run(Main.java:977)
   at org.eclipse.core.launcher.Main.main(Main.java:952)


How do I track this down?

BTW, message "Can not find contructor" s/b "Can not find conStructor"
ForceRs
 
Posts: 15
Joined: Thu Jun 17, 2004 12:59 pm

Re: Can not find contructor for... error

Postby Eric Clayberg » Thu Aug 16, 2007 1:23 pm

Without seeing the actual code, I would guess that the constructor for the AgentComboPanel$ComboBoxRenderer class is private or otherwise not visible to Designer.

That exception is logged and ignored. In the latest build, it is simply ignored and no longer logged.
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