Skip to main content

Issues with FSDevTools import and SiteArchitect

Comments

5 comments

  • Zendesk API User
    Author: marza - 7/13/2017 9:13

    Hi Kurt,

    could you be so kind to post the command line of the fs-cli causing theerror log? The message

    ERROR - Import operation not successful

    de.espirit.firstspirit.store.access.nexport.exceptions.SyncOperationException: [ExternalSync - Import] failed: Missing mapping for source layer 'null'! Please specify a layer mapping. For more information type 'fs-cli help import'.

    indicates that either there are missing layer mapping options or maybe the sync files may be corrupt. How did you share the original export? by SVN? by Git? or directory share? Are there merge conflicts? FS can not handle broken or mis-merged content. Applying the same command multiple times is not a good idea because it can break the project. The initial import of non-existent project should be error free otherwise the project can cause further problems.

    So if I you have trouble with the layer mapping options, please have a look at the built-in online help:

    $ fs-cli help import

    ...

    Executing HelpCommand

    NAME

            fs-cli import - Imports a FirstSpirit project into a FirstSpirit Server.

    SYNOPSIS

            fs-cli [ {-a | --activateProjectIfDeactivated} ]

                    [ {-c | --conn-mode} <fsMode> ] [ --dont-create-sync-dir ] [ -e ]

                    [ {-h | --host} <host> ] [ {-p | --project} <project> ] [ -port <port> ]

                    [ {-pwd | --password} <password> ]

                    [ {-sd | --syncDir} <synchronizationDirectory> ]

                    [ {-u | --user} <user> ] import [ --dont-create-entities ]

                    [ --dont-create-project ] [ {-i | --import-comment} <importComment> ]

                    [ {-lm | --layerMapping} <layerMapping> ]

    OPTIONS

            -a, --activateProjectIfDeactivated

                Activates a project if deactivated for any reason

            -c <fsMode>, --conn-mode <fsMode>

                FirstSpirit connection mode. Default is HTTP.

                This options value is restricted to the following set of values:

                    HTTP

                    SOCKET

            --dont-create-entities

                Do not create entities when importing

            --dont-create-project

                Do not create project in FirstSpirit if it is missing

            --dont-create-sync-dir

                Do not create synchronisation directory if it is missing

            -e

                Error mode. Shows error stacktraces.

            -h <host>, --host <host>

                FirstSpirit host. Default is localhost.

            -i <importComment>, --import-comment <importComment>

                Import comment for FirstSpirit revision

            -lm <layerMapping>, --layerMapping <layerMapping>

                Defines how unknown layers should be mapped in the target;

                comma-separated key-value pairs by : or =; key is source schema UID;

                value is target layer name; see EXAMPLES for more information

            -p <project>, --project <project>

                Name of FirstSpirit project

            -port <port>

                FirstSpirit host's port. Default is 8000.

            -pwd <password>, --password <password>

                FirstSpirit user's password. Default is Admin.

            -sd <synchronizationDirectory>, --syncDir <synchronizationDirectory>

                The synchronization directory that is used for im- and export.

                Default is current directory

            -u <user>, --user <user>

                FirstSpirit user. Default is Admin.

    EXAMPLES

            fs-cli import -lm *:CREATE_NEW

                Import project and create for every unknown source schema a new

                target layer (use if uncertain)

            fs-cli import -lm my_schema:CREATE_NEW

                Import project and create for source schema 'my_schema' a new layer

            fs-cli import -lm *:derby_project14747_0

                Import project and redirect every unknown source schema into given

                target layer. The target layer must be attached to the project! (use

                with caution)

            fs-cli import -lm schema_a:derby_project14747_0,schema_b:derby_project14747_1

                Import project and use specified mapping for source schemas and

                existing target layers. The target layers must be attached to the

                project! (use with caution)

    Execution time: 0.03s

    Regards,

    Marian

    0
  • Zendesk API User
    Author: kurttrowbridge - 7/13/2017 21:21

    Thanks, Marian. The command she runs is <code>fs-cli -port 8000 -p "Global Templates" --dont-create-sync-dir -e -h localhost -pwd "Admin" -u "admin" -sd "C:\Code\guardian\FirstSpirit\Syncronization\Global Templates Project" import</code>. (Mine is the same, except I have mine on port 8001 and the folder is in a slightly different location on my machine.) The codebase is being stored on Bitbucket; there aren't any merge conflicts in her environment (she last imported about a month ago; others have made updates since then, but she hasn't, and she's now pulled down the latest changes and is attempting to import before she can work on QA changes to some of the templates).

    0
  • Zendesk API User
    Author: brueder - 7/14/2017 14:06

    Hi Kurt,

    as far as I can see from the posted command-line call, the layer mapping indeed is missing (parameter "-lm"). Can you add that one and retry? Maybe that already solves your problem. Please post back if it solves the issue or not.

    Cheers,

    Lena

    0
  • Zendesk API User
    Author: kurttrowbridge - 7/18/2017 17:49

    Thanks, Lena; that appears to have fixed the import error she was having. Now she's having trouble using Corporate Content:

    When initially trying to load missing references into Corporate Content, this error appears because she hasn't yet re-added the schema after import:

    Client Version: 5.2.717.75840

    Java Version: 1.8.0_131 Oracle Corporation

    FSVersion=5.2.717.75840#5623;JDK=1.8.0_131 64bit Oracle Corporation;OS=Windows 10 10.0 amd64;Date=18.07.2017 12:27:11

    java.lang.IllegalStateException: could not add 'PIDDB.manufacturingoptions' (ID=2496) to package 'GlobalTemplates' add schema 'PIDDB' (ID=2461) to package first

    at de.espirit.firstspirit.store.access.templatestore.SchemaLeafHelper.checkAddToPackage(SchemaLeafHelper.java:22)

    at de.espirit.firstspirit.store.access.templatestore.TableTemplateImpl._addToPackage(TableTemplateImpl.java:562)

    at de.espirit.firstspirit.store.access.DefaultStoreElement.addToPackage(DefaultStoreElement.java:2595)

    at de.espirit.firstspirit.store.access.DefaultStoreElement.addToPackage(DefaultStoreElement.java:2518)

    at de.espirit.firstspirit.client.gui.navigation.ppool.packages.PackagePoolHandler.handleAddToPackage(PackagePoolHandler.java:337)

    at de.espirit.firstspirit.client.gui.navigation.ppool.packages.PackagePoolHandler.getHandle(PackagePoolHandler.java:226)

    at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at de.espirit.common.gui.RunsInEDTProxyFactory$RunsInEDTInvocationHandler.invoke(RunsInEDTProxyFactory.java:143)

    at com.sun.proxy.$Proxy4.getHandle(Unknown Source)

    at de.espirit.common.base.control.AbstractActionProcessor$ActionProcessDelegate.handle(AbstractActionProcessor.java:1099)

    at de.espirit.common.base.control.AbstractActionProcessor$AbstractActionProcess.handle(AbstractActionProcessor.java:1283)

    at de.espirit.common.base.control.AbstractActionProcessor$InnerActionProcess.handle(AbstractActionProcessor.java:1575)

    at de.espirit.common.base.control.AbstractActionProcessor$InnerActionProcess$1.onGrant(AbstractActionProcessor.java:1558)

    at de.espirit.common.base.control.AbstractActionProcessor$ActionProcessDelegate.grant(AbstractActionProcessor.java:956)

    at de.espirit.common.base.control.AbstractActionProcessor$AbstractActionProcess.grant(AbstractActionProcessor.java:1278)

    at de.espirit.common.base.control.AbstractActionProcessor$InnerActionProcess.grant(AbstractActionProcessor.java:1555)

    at de.espirit.common.base.control.AbstractActionProcessor$InnerActionProcess.start(AbstractActionProcessor.java:1550)

    at de.espirit.common.base.control.AbstractActionProcessor.doProcess(AbstractActionProcessor.java:435)

    at de.espirit.common.base.control.AbstractActionProcessor.access$600(AbstractActionProcessor.java:37)

    at de.espirit.common.base.control.AbstractActionProcessor$2.execute(AbstractActionProcessor.java:588)

    at de.espirit.common.util.ExecutorScheduler$ExecuteCommand.run(ExecutorScheduler.java:123)

    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

    at java.util.concurrent.FutureTask.run(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

    But she's unable to recreate the schemata because of this error, which seems to reference a layer that doesn't exist. I and another developer have the same issue when adding a new schema, but we don't have anything as far as we can see with a layer number 3297:

    FSVersion=FSVersion=5.2.717.75840#5623 null - java.lang.NullPointerException - Jul 18, 2017 11:20:07 AM FSVersion=5.2.717.75840#5623;JDK=1.8.0_131 64bit Oracle Corporation;OS=Windows 10 10.0 amd64;Date=18.07.2017 11:20:07 java.lang.NullPointerException at de.espirit.firstspirit.client.gui.tree.store.templatestore.GuiSchemaFolder.addNewSchemaFromDB(GuiSchemaFolder.java:198) at de.espirit.firstspirit.ui.actions.create.CreateSchemaFromDbActionFactory$CreateSchemaFromDbAction.perform(CreateSchemaFromDbActionFactory.java:42) at de.espirit.firstspirit.ui.actions.swing.SwingAction.actionPerformed(SwingAction.java:150) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at de.espirit.firstspirit.client.AWTDispatchingEventQueue.defaultDispatchEvent(AWTDispatchingEventQueue.java:161) at de.espirit.firstspirit.client.AWTDispatchingEventQueue._dispatchEvent(AWTDispatchingEventQueue.java:138) at de.espirit.firstspirit.client.AWTDispatchingEventQueue.dispatchEvent(AWTDispatchingEventQueue.java:131) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)  3526581326464435471 - Admin (Admin), session: 3526581326464435471, project: 26, ip: 10.211.55.3 (de.espirit.firstspirit.admin.AdminImpl): LayerDTO for layer 'derby_project3297_0' not found! (de.espirit.firstspirit.admin.AdminImpl): LayerDTO for layer 'derby_project3297_0' not found! - Jul 18, 2017 11:20:07 AM  3526581326464435471 - Admin (Admin), session: 3526581326464435471, project: 26, ip: 10.211.55.3 (de.espirit.firstspirit.client.AbstractGuiHost): ExceptionHandler.uncaughtException() - java.lang.NullPointerException (de.espirit.firstspirit.client.AbstractGuiHost): ExceptionHandler.uncaughtException() - java.lang.NullPointerException - Jul 18, 2017 11:20:08 AM FSVersion=5.2.717.75840#5623;JDK=1.8.0_131 64bit Oracle Corporation;OS=Windows 10 10.0 amd64;Date=18.07.2017 11:20:08 java.lang.NullPointerException at de.espirit.firstspirit.client.gui.tree.store.templatestore.GuiSchemaFolder.addNewSchemaFromDB(GuiSchemaFolder.java:198) at de.espirit.firstspirit.ui.actions.create.CreateSchemaFromDbActionFactory$CreateSchemaFromDbAction.perform(CreateSchemaFromDbActionFactory.java:42) at de.espirit.firstspirit.ui.actions.swing.SwingAction.actionPerformed(SwingAction.java:150) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at de.espirit.firstspirit.client.AWTDispatchingEventQueue.defaultDispatchEvent(AWTDispatchingEventQueue.java:161) at de.espirit.firstspirit.client.AWTDispatchingEventQueue._dispatchEvent(AWTDispatchingEventQueue.java:138) at de.espirit.firstspirit.client.AWTDispatchingEventQueue.dispatchEvent(AWTDispatchingEventQueue.java:131) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) 

    Is there somewhere in the project where we'd be able to find why it's looking for layer 3297, or anything else that would explain this?

    Thanks again!

    0
  • Zendesk API User
    Author: tenter - 8/1/2017 15:07

    Hi @all,

    since said problems are related to features not yet publically available, the process is taken over by our technical support and our professional service.

    Thanks :smileyhappy:

    0

Please sign in to leave a comment.