can't copy user

Note: please leave bug reports and feature requests on

can't copy user

Postby joselitux » Wed Jan 02, 2013 7:23 pm

Using linux (ubuntu) When tried to copy user, all seems to work except when arrived the last step: saving (persisting changes)

Save Failed
[Ljava.lang.Object; cannot be cast to [Lorg.jkiss.dbeaver.ext.IDatabasePersistAction;

steps to reproduce the issue:

1.- navigate trough tree panel to users
2.- select user - right click select "copy"
3.- right clickt on tree node users - select "paste"
4.- change fields you like to set for the new copied user (name, pass...)
5.- click persist changes....
joselitux
 
Posts: 43
Joined: Thu Oct 25, 2012 12:11 pm

Re: can't copy user

Postby Serge » Sun Jan 06, 2013 7:38 am

Hello,

could you post full log of this error? (it is available in Error Log view).
Serge
 
Posts: 1526
Joined: Sat Feb 26, 2011 8:24 pm
Location: SPb

Re: can't copy user

Postby bwajtr » Fri Jan 11, 2013 12:54 pm

I'm getting exact same error. And it even happens when creating new user.

Running on Ubuntu 12.10.
MySQL database: mysqld Ver 5.5.28-0ubuntu0.12.10.2 for debian-linux-gnu on x86_64 ((Ubuntu))
MySQL driver version: mysql-connector-java-5.1.22-bin.jar
DBeaver settings: All settings set to default values.


eclipse.buildId=unknown
java.version=1.7.0_07
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64


java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.jkiss.dbeaver.ext.IDatabasePersistAction;
at org.jkiss.dbeaver.model.DBUtils.generateScript(DBUtils.java:855)
at org.jkiss.dbeaver.ui.editors.entity.EntityEditor.showChanges(EntityEditor.java:349)
at org.jkiss.dbeaver.ui.editors.entity.EntityEditor.saveCommandContext(EntityEditor.java:233)
at org.jkiss.dbeaver.ui.editors.entity.EntityEditor.doSave(EntityEditor.java:224)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:151)
at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:274)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1675)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1672)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:282)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:261)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:156)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.doSave(CompatibilityPart.java:404)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:235)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:199)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:89)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.savePart(PartServiceImpl.java:1179)
at org.eclipse.ui.internal.WorkbenchPage.saveSaveable(WorkbenchPage.java:3469)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3487)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:76)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:276)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:494)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:545)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:366)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:313)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:82)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1483)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1275)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1300)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1285)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1312)
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:748)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3050)
at org.eclipse.swt.widgets.Text.gtk_key_press_event(Text.java:1705)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1758)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:5116)
at org.eclipse.swt.widgets.Text.windowProc(Text.java:2631)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4369)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8307)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2332)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3177)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.jkiss.dbeaver.core.application.DBeaverApplication.start(DBeaverApplication.java:77)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
bwajtr
 
Posts: 1
Joined: Fri Jan 11, 2013 12:50 pm

Re: can't copy user

Postby Serge » Fri Jan 11, 2013 2:14 pm

Hi,

It is a generic error in entity creation routines. Seems to be a bug of one of recent versions. It will be fixed in the next version.

Thanks for report and error log!
Serge
 
Posts: 1526
Joined: Sat Feb 26, 2011 8:24 pm
Location: SPb

Re: can't copy user

Postby rethus » Tue Jan 22, 2013 2:48 pm

How can i upgrade it now. Still have the same problem, and no upgrades are available over eclipse-updater
rethus
 
Posts: 38
Joined: Tue Jan 22, 2013 2:48 pm

Re: can't copy user

Postby Serge » Tue Jan 22, 2013 5:27 pm

If you use plugin versin 2.0.4 or earlier then automatic update check won't work. Since 2.0.5 version update site URL is http://dbeaver.jkiss.org/update/2.0/ as it is specified on download page and on Eclipse marketplace.
Please update it manually.
Serge
 
Posts: 1526
Joined: Sat Feb 26, 2011 8:24 pm
Location: SPb

Re: can't copy user

Postby rethus » Thu Mar 21, 2013 11:03 am

rethus
 
Posts: 38
Joined: Tue Jan 22, 2013 2:48 pm

Re: can't copy user

Postby Serge » Thu Mar 21, 2013 11:57 am

Serge
 
Posts: 1526
Joined: Sat Feb 26, 2011 8:24 pm
Location: SPb


Return to Support



Who is online

Users browsing this forum: No registered users and 8 guests