lvostinar:
/**
- Executes a method with methodname and arguments in the given context
- If context is a formname a form method is executed, if null a global method will be assumed.
- @return null if called with “true” for async flag, otherwise the method result is returned
*/
public Object executeMethod(String context, String methodname, Object arguments,boolean async) throws Exception;
if context is null global method, else it is taken as form name
Oops, sorry!
I never used the context argument before. That’s why ![Laughing :lol:]()
Thx again
I have managed to break it again!
I don’t really know how. I have modified a bit my bean code, but no configuration data.
Then I have tried to include this new bean version to a new solution (empty) in Developer and I get the same error as usual:
error accessing bean myPackage.FileDndBean
Here is what I get in the logs:
2009-03-10 13:40:02,325 ERROR [main] com.servoy.j2db.util.Debug - Throwable
java.lang.InstantiationException: com.assetguardian.FileDndBean
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.servoy.j2db.dataui.ComponentFactory.getBeanInstanceFromXML(ComponentFactory.java:37)
at com.servoy.j2db.dataui.ComponentFactory.createBean(ComponentFactory.java:78)
at com.servoy.j2db.dataui.ComponentFactory.createDesignComponent(ComponentFactory.java:284)
at com.servoy.eclipse.ui.property.PersistProperties.Zb(PersistProperties.java:674)
at com.servoy.eclipse.ui.property.PersistProperties.getPropertyDescriptors(PersistProperties.java:366)
at org.eclipse.ui.views.properties.PropertySheetEntry.computeMergedPropertyDescriptors(PropertySheetEntry.java:167)
at org.eclipse.ui.views.properties.PropertySheetEntry.refreshChildEntries(PropertySheetEntry.java:530)
at org.eclipse.ui.views.properties.PropertySheetEntry.setValues(PropertySheetEntry.java:760)
at org.eclipse.ui.views.properties.PropertySheetViewer.setInput(PropertySheetViewer.java:974)
at org.eclipse.ui.views.properties.PropertySheetPage.selectionChanged(PropertySheetPage.java:473)
at org.eclipse.ui.views.properties.PropertySheet.selectionChanged(PropertySheet.java:214)
at org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.java:156)
at org.eclipse.ui.internal.AbstractSelectionService$1.selectionChanged(AbstractSelectionService.java:62)
at org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:109)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:107)
at org.eclipse.ui.part.MultiPageSelectionProvider.fireSelectionChanged(MultiPageSelectionProvider.java:89)
at org.eclipse.ui.part.MultiPageEditorSite.handleSelectionChanged(MultiPageEditorSite.java:452)
at org.eclipse.ui.part.MultiPageEditorSite$2.selectionChanged(MultiPageEditorSite.java:368)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:243)
at com.servoy.eclipse.designer.editor.ModifiedScrollingGraphicalViewer.fireSelectionChanged(ModifiedScrollingGraphicalViewer.java:37)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer$1.run(AbstractEditPartViewer.java:129)
at org.eclipse.gef.SelectionManager.fireSelectionChanged(SelectionManager.java:115)
at org.eclipse.gef.SelectionManager.setSelection(SelectionManager.java:230)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:729)
at com.servoy.eclipse.designer.editor.commands.Zm.refresh(Zm.java:15)
at com.servoy.eclipse.designer.editor.commands.Zl.execute(Zl.java:10)
at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:149)
at com.servoy.eclipse.designer.actions.Za.run(Za.java:31)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:443)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
The bean if you want to check the code: [attachment=0]FileDndBean.jar[/attachment]
FileDndBean.jar (6.64 KB)
This error means that com.assetguardian.FileDndBean cannot be instantiated (is missing a constructor). A public constructor with no arguments should be added. Also, the factory should be instantiated there and not the bean, so probably you should put the factory in manifest.mf , name attribute, and not the component.
It’s working again ![Laughing :lol:]()
So now, I have the factory in the manifest, the factory in the bean info property class name. I have getters/setters for my bean parameters in both factory and FileDndBean. And I also have a default constructor in both factory and FileDndBean.
I still don’t really understand which class is used 1st by Servoy. But finally I was true in my previous post ?!
Thx for your help ![Wink :wink:]()