uDIG
  1. uDIG
  2. UDIG-1677

export function doesn't work

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: UDIG 1.2.RC3
    • Fix Version/s: None
    • Component/s: application
    • Labels:
      None

      Description

      The project export function doesn't work. In fact it doesn't export all of the project's information.
      for example the map file is not exported.

      Export occurrs in net.refractions.udig.project.ui.wizard.export.project.ExportProjectWizard

      This should be solved for the 1.2 release or if not, the menu entry should be removed.

        Activity

        Hide
        Andrea Antonello added a comment -
        Hmmm, the export seems to put everything into a single file, maps included. It also worked for me now when debugging through it.

        Show
        Andrea Antonello added a comment - Hmmm, the export seems to put everything into a single file, maps included. It also worked for me now when debugging through it.
        Hide
        Jody Garnett added a comment -
        Do you have any logs from when it failed? For a while I had a failure when exporting out a project that contained a page (because the page did not have a name). I added code to check for that at the time ...
        Show
        Jody Garnett added a comment - Do you have any logs from when it failed? For a while I had a failure when exporting out a project that contained a page (because the page did not have a name). I added code to check for that at the time ...
        Hide
        Andrea Antonello added a comment -
        Alright, one first bug i can reproduce:
        1) load shapes and one WMS into a new map
        2) export the project
        3) remove the project and remove also the data from the catalog
        4) open the exported project

        you will get;
        java.lang.ClassCastException: net.refractions.udig.project.internal.impl.MapImpl cannot be cast to net.refractions.udig.project.internal.Project
        at net.refractions.udig.project.internal.impl.ProjectRegistryImpl.getProject(ProjectRegistryImpl.java:212)
        at net.refractions.udig.project.internal.impl.ProjectRegistryImpl.getProject(ProjectRegistryImpl.java:294)
        at net.refractions.udig.project.ui.internal.actions.OpenProject$1.run(OpenProject.java:94)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
        Show
        Andrea Antonello added a comment - Alright, one first bug i can reproduce: 1) load shapes and one WMS into a new map 2) export the project 3) remove the project and remove also the data from the catalog 4) open the exported project you will get; java.lang.ClassCastException: net.refractions.udig.project.internal.impl.MapImpl cannot be cast to net.refractions.udig.project.internal.Project at net.refractions.udig.project.internal.impl.ProjectRegistryImpl.getProject(ProjectRegistryImpl.java:212) at net.refractions.udig.project.internal.impl.ProjectRegistryImpl.getProject(ProjectRegistryImpl.java:294) at net.refractions.udig.project.ui.internal.actions.OpenProject$1.run(OpenProject.java:94) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
        Hide
        Andrea Antonello added a comment -
        Ok, latest code review and fixes seem to have made things more stable. Still leaving that open, since sometime (can't reproduce) an exception is trhown.

        Let's keep an eye on this.
        Show
        Andrea Antonello added a comment - Ok, latest code review and fixes seem to have made things more stable. Still leaving that open, since sometime (can't reproduce) an exception is trhown. Let's keep an eye on this.

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrea Antonello
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: