Hello,
I'm reporting this issue on behalf of a coworker of mine whose account here was recently registered and is currently awaiting approval. We seem to be having discrepancies with how FSDevTools is importing and syncing content. Everything is working for me, but she first sees this error when trying to import:
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'.
at de.espirit.firstspirit.store.access.nexport.operations.ImportOperationImpl.perform(ImportOperationImpl.java:117)
at com.espirit.moddev.cli.commands.ImportCommand.call(ImportCommand.java:106)
at com.espirit.moddev.cli.commands.ImportCommand.call(ImportCommand.java:48)
at com.espirit.moddev.cli.Cli.executeCommand(Cli.java:163)
at com.espirit.moddev.cli.Cli.execute(Cli.java:119)
at com.espirit.moddev.cli.Cli.main(Cli.java:77)
Caused by: com.espirit.moddev.core.LayerMappingException: Missing mapping for source layer 'null'! Please specify a layer mapping. For more information type 'fs-cli help import'.
at com.espirit.moddev.core.SchemaUidToNameBasedLayerMapper.getLayer(SchemaUidToNameBasedLayerMapper.java:53)
at de.espirit.firstspirit.store.access.nexport.operations.ImportOperationImpl$DelegatingLayerMapper.getMappedLayer(ImportOperationImpl.java:218)
at de.espirit.firstspirit.store.access.nexport.importer.SchemaImporter.targetImport(SchemaImporter.java:42)
at de.espirit.firstspirit.store.access.nexport.ImportUpdateInstaller.targetImport(ImportUpdateInstaller.java:549)
at de.espirit.firstspirit.store.access.feature.ExportEntryInstaller.doInstallUpdate(ExportEntryInstaller.java:372)
at de.espirit.firstspirit.store.access.feature.ExportEntryInstaller.doInstallUpdate(ExportEntryInstaller.java:375)
at de.espirit.firstspirit.store.access.feature.ExportEntryInstaller.installUpdateStoreElement(ExportEntryInstaller.java:319)
at de.espirit.firstspirit.store.access.feature.ExportEntryInstaller.installStoreElement(ExportEntryInstaller.java:245)
at de.espirit.firstspirit.store.access.nexport.ImportUpdateInstaller.installElement(ImportUpdateInstaller.java:407)
at de.espirit.firstspirit.store.access.nexport.ImportUpdateInstaller.installUpdate(ImportUpdateInstaller.java:304)
at de.espirit.firstspirit.store.access.nexport.ElementFileSystemSync.doImportUpdate(ElementFileSystemSync.java:400)
at de.espirit.firstspirit.store.access.nexport.operations.ImportOperationImpl.performImport(ImportOperationImpl.java:141)
at de.espirit.firstspirit.store.access.nexport.operations.ImportOperationImpl.perform(ImportOperationImpl.java:115)
... 5 more
That error generally seems to get resolved by retrying the import one or two more times, so I suspect it's not the main issue. However, an error appears later in SiteArchitect: after successfully importing, we generally have to recheck databases within ServerManager and delete/re-add the four queries we have for a database schema called PIDDB (otherwise, attempting to view the Results tab ends in another error message with code 20000). When she tries to do so, she gets the following error and cannot add a new schema:
FSVersion=FSVersion=5.2.717.75840#5623
null - java.lang.NullPointerException - Jul 11, 2017 5:32:20 PM
FSVersion=5.2.717.75840#5623;JDK=1.8.0_131 64bit Oracle Corporation;OS=Windows 10 10.0 amd64;Date=11.07.2017 17:32:20
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)
5200280189190587279 - Admin (Admin), session: 5200280189190587279, project: 26, ip: 10.211.55.3
(de.espirit.firstspirit.admin.AdminImpl): LayerDTO for layer 'PartnerManager' not found!
(de.espirit.firstspirit.admin.AdminImpl): LayerDTO for layer 'PartnerManager' not found! - Jul 11, 2017 5:32:20 PM
5200280189190587279 - Admin (Admin), session: 5200280189190587279, 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 11, 2017 5:32:21 PM
FSVersion=5.2.717.75840#5623;JDK=1.8.0_131 64bit Oracle Corporation;OS=Windows 10 10.0 amd64;Date=11.07.2017 17:32:21
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)
It looks as if something related to PartnerManager, another database schema that was recently added to the project, is causing the error. However, there's no reference nor dependency to PartnerManager in PIDDB, so the fact that a PartnerManager-related error appears when she tries to add a schema to PIDDB is confusing.
Is there anywhere we should be looking that might explain how to resolve this error so that she can re-add her schemata and continue the process toward exporting, or anything that would help explain what's going wrong? Please let me know if there's anything else we can provide to help troubleshoot as well.
Thank you in advance for your help.
Kurt Trowbridge
Front-End Developer, Gravity Works Design + Development