[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2026) Error importing or dragging repository resources from Guvnor to Eclipse using webDAV

Jonathan Ingold (JIRA) jira-events at lists.jboss.org
Fri Apr 24 10:22:48 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBRULES-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12464387#action_12464387 ] 

Jonathan Ingold commented on JBRULES-2026:
------------------------------------------

POSSIBLE TEMPORARY WORKAROUND:

Have encountered both these issues as well.  However, although I cannot seem to get around the drag and drop issue.  After tinkering for a while I can get the import to work.  Try using the guvnor perspective first and expand all packages by clicking on the elbows.  After that switch back to your drools perspective.  When choosing to import Resources from Guvnor.  You should be able to expand the repository select your desired resources and import them successfully.  You will notice a .guvnorinfo directory in the navigator that is hidden in the package explorer.  no directory is created under .metadata/...etc.

Good Luck,

Jon

> Error importing or dragging repository resources from Guvnor to Eclipse using webDAV
> ------------------------------------------------------------------------------------
>
>                 Key: JBRULES-2026
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2026
>             Project: JBoss Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-eclipse, drools-guvnor
>    Affects Versions: 5.0.0.CR1
>         Environment: Windows XP SP3 with Sun JDK 1.5.0_15. Eclipse Version: 3.4.1 Build id: M20080911-1700. Note that the Guvnor was running under JBoss AS 4.2.2, and on a different Windows XP  machine from Eclipse.
>            Reporter: Shahad Ahmed
>            Assignee: John Graham
>
> I've encountered a couple of problems with using the webdav feature to link the Guvnor to eclipse under Windows XP SP3.
> The Environment is Windows XP SP3 with Sun JDK 1.5.0_15. Eclipse Version: 3.4.1 Build id: M20080911-1700. Note that the Guvnor was running under JBoss AS 4.2.2 (Win XP), and on a different machine from Eclipse.
> 1. Dragging a file from the Guvnor Repositories view to the Eclipse Navigator view (i.e. to create a local copy linked to the Guvnor) throws an error indication that a directory could not be created. This directory name has colons in it (i.e. :), which will never be allowed under Windows XP.
> 2 Trying to use the "Resources from Guvnor" wizard also produces an error, and the wizard does not let you browse the Guvnor repository to choose resources to copy over to eclipse.
> The following describes both error in more detail and how I reproduced them. Steps prefixed with A are common to both, and steps prefixed with B and C, reproduce errors 1 and 2 respectively. I have also included two stacktraces from the eclipse log for both errors:
> The Setup:
> ===========
> A1. Start the Guvnor with a new empty repository (i.e. an empty repository directory).
> A2. Login to the Guvnor via web browser (username admin, password admin, although I guess this is unimportant)
> A3. A dialog appears asking if you want to install an example repository. Install the example (mortgage) repository.
> A4. I now logged out of the Guvnor.
> A5. Installed the drools eclipse 5.0.0 CR1 IDE plugins by unzipping the downloaded zip file into a clean Eclipse (3.4) installation directory.
> A6. Start eclipse and create a new workspace. Open the workbench and choose the Drools "Guvnor Repository Exploring" perspective, and then created an empty drools project.
> To Reproduce First Problem
> ============================
> B1. Link to the Guvnor by selecting the menu option to run the "Guvnor Repository Location" wizard: File, New, Other, Guvnor, Guvnor Repository Location.
> B2. My Guvnor is running on another machine (amber) so I set the following:
> Location: amber
> Port: 8080
> Repository: /drools-guvnor/org.drools.guvnor.Guvnor/webdav
> User Name: admin
> Password: admin
> Selected to save password
> Click Finish and the link is created successfully.
> (Incidentally, note that the default Repository location that appears seems to be incorrect: /jboss-brms/org.drools.guvnor.Guvnor/webdav. I have to change jboss-brms to drools-guvnor, to get it to work).
> B5. The following link appears in the Guvnor Repositories view in Eclipse:
> http://amber:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav
> I can click on this link and browse the example mortgage repository successfully, and open up the resources in this repository in eclipse.
> B6. However, if I attempt to drag a file over from the Guvnor Repositories view to the Navigator view then an error occurs. For example, when I drag the file "mortgages/Bankruptcy history.brl" over to the src/rules directory of the empty rules project created earlier in the Navigator view then the following error is reported:
> "Could not create directory C:\Projects\drools\drools5test\Eclipse34\workspaces\webdev\.metadata\.plugins\org.guvnor.tools\-3301fb2e:120383239f8:-7ffe"
> The problem appears to be the colons (:) used in the directory name. Both the Guvnor and Eclipse are running under Windows XP SP3, and Windows does not allow colons in directory or filenames.
> I've included the full stacktrace from the eclipse log at the end of this report
> To Reproduce Second Problem
> ============================
> C1. Run the "Resources from Guvnor" wizard by choosing the following menu options: File, New, Other, Guvnor, Resources from Guvnor.
> C2. I choose to use an existing repository, which was http://amber:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav. Click Next
> C3. In the next dialog "Select Resources", only the URL above is listed and clicking on it does not let you bourse the repository. Select this URL and then click next.
> C4. In the next dialog "" I selected the src/rules directory of the empty drools project I created earlier and then clicked Finish.
> An error is reported at this point: 
> "3 entries found for http://amber:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav"
> No files were copied over.
> Stack trace for error highlighted by steps labelled "B"
> ========================================================
> !ENTRY org.drools.guvnor 4 0 2009-03-24 11:48:01.562
> !MESSAGE Could not create directory C:\Projects\drools\drools5test\Eclipse34\wor
> kspaces\webdev\.metadata\.plugins\org.guvnor.tools\-3301fb2e:120383239f8:-7ffe
> !STACK 0
> java.lang.Exception: Could not create directory C:\Projects\drools\drools5test\E
> clipse34\workspaces\webdev\.metadata\.plugins\org.guvnor.tools\-3301fb2e:1203832
> 39f8:-7ffe
>         at org.guvnor.tools.views.RepositoryView.prepareFileTransfer(Unknown Sou
> rce)
>         at org.guvnor.tools.views.RepositoryView.access$1(Unknown Source)
>         at org.guvnor.tools.views.RepositoryView$2.dragSetData(Unknown Source)
>         at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:54)
>         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.Widget.sendEvent(Widget.java:1027)
>         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
>         at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
>         at org.eclipse.swt.dnd.DragSource.GetData(DragSource.java:456)
>         at org.eclipse.swt.dnd.DragSource.access$7(DragSource.java:435)
>         at org.eclipse.swt.dnd.DragSource$4.method3(DragSource.java:258)
>         at org.eclipse.swt.internal.ole.win32.COMObject.callback3(COMObject.java
> :92)
>         at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
>         at org.eclipse.swt.internal.ole.win32.IDataObject.GetData(IDataObject.ja
> va:25)
>         at org.eclipse.swt.dnd.Transfer.getData(Transfer.java:44)
>         at org.eclipse.swt.dnd.FileTransfer.nativeToJava(FileTransfer.java:120)
>         at org.eclipse.ui.views.navigator.NavigatorDropAdapter.validateTarget(Na
> vigatorDropAdapter.java:406)
>         at org.eclipse.ui.views.navigator.NavigatorDropAdapter.validateDrop(Navi
> gatorDropAdapter.java:368)
>         at org.eclipse.jface.viewers.ViewerDropAdapter.doDropValidation(ViewerDr
> opAdapter.java:181)
>         at org.eclipse.jface.viewers.ViewerDropAdapter.dragOver(ViewerDropAdapte
> r.java:227)
>         at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:80)
>         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.Widget.sendEvent(Widget.java:1027)
>         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
>         at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
>         at org.eclipse.swt.dnd.DropTarget.DragOver(DropTarget.java:365)
>         at org.eclipse.swt.dnd.DropTarget$3.method4(DropTarget.java:249)
>         at org.eclipse.swt.internal.ole.win32.COMObject.callback4(COMObject.java
> :101)
>         at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
>         at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:362)
>         at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:288)
>         at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:171)
>         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:3823)
>         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
>         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
>         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
>         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.ja
> va:288)
>         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
> a:488)
>         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEAppli
> cation.java:113)
>         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
> e.java:193)
>         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
> cation(EclipseAppLauncher.java:110)
>         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
> lipseAppLauncher.java:79)
>         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
> va:386)
>         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
> va: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:549)
>         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>         at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> Stack trace for error highlighted by steps labelled "C"
> ========================================================
> !ENTRY org.drools.guvnor 4 0 2009-03-24 12:48:02.406
> !MESSAGE 3 entries found for http://amber:8080/drools-guvnor/org.drools.guvnor.G
> uvnor/webdav
> !STACK 0
> java.lang.Exception: 3 entries found for http://amber:8080/drools-guvnor/org.dro
> ols.guvnor.Guvnor/webdav
>         at org.guvnor.tools.utils.webdav.WebDavClient.queryProperties(Unknown So
> urce)
>         at org.guvnor.tools.wizards.CheckoutWizard.performFinish(Unknown Source)
>         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java
> :742)
>         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java
> :373)
>         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
>         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
> 228)
>         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:3823)
>         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
>         at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
>         at org.eclipse.jface.window.Window.open(Window.java:801)
>         at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(Wiz
> ardHandler.java:253)
>         at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.
> java:273)
>         at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.ja
> va:281)
>         at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
>         at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(Para
> meterizedCommand.java:508)
>         at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(Handle
> rService.java:169)
>         at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(S
> laveHandlerService.java:247)
>         at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAct
> ion.java:157)
>         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
> (ActionContributionItem.java:583)
>         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContri
> butionItem.java:500)
>         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionC
> ontributionItem.java:411)
>         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:3823)
>         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
>         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
>         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
>         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.ja
> va:288)
>         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
> a:488)
>         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEAppli
> cation.java:113)
>         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
> e.java:193)
>         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
> cation(EclipseAppLauncher.java:110)
>         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
> lipseAppLauncher.java:79)
>         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
> va:386)
>         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
> va: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:549)
>         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>         at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list