tXMLMap - NullPointerException

tXMLMap - NullPointerException

Hello,
When I try to import an XML schema from Metadata I get a window with the message "Import from repository fail, please check the repository connection!".
The stack trace is:
Import from repository fail, please check the repository connection!
  java.lang.NullPointerException
  java.io.File.<init>(File.java:277)
  org.talend.designer.xmlmap.editor.actions.ImportTreeFromRepository.prepareEmfTreeFromXml(ImportTreeFromRepository.java:227)
  org.talend.designer.xmlmap.editor.actions.ImportTreeFromRepository.run(ImportTreeFromRepository.java:159)
  org.eclipse.jface.action.Action.runWithEvent(Action.java:519)
  org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
  org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
  org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
  org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
  org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
  org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
  org.talend.designer.xmlmap.XmlMapComponent.open(XmlMapComponent.java:108)
  org.talend.designer.xmlmap.XmlMapComponent.open(XmlMapComponent.java:125)
  org.talend.designer.core.ui.editor.nodes.NodePart.performRequest(NodePart.java:571)
  org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:194)
  org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:137)
  org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:1069)
  org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:527)
  org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:231)
  org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:291)
  org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:518)
  org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:196)
  org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
  org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
  org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
  org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  org.talend.rcp.intro.Application.start(Application.java:208)
  org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  java.lang.reflect.Method.invoke(Method.java:498)
  org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  org.eclipse.equinox.launcher.Main.main(Main.java:1438)
I'm running TOS 6.2.1.20160704_1411 on Ubuntu 16.04 with Oracle JDK 8. 
To reproduce:
1. Create simple output File XML mapping in Metadata
2. Create a new job and place a tXMLMap.
3. In component configuration create a new output with one column of type Document.
4. Right click column and select "Import from repository"
I would be grateful for any ideas on this issue - am i using the component correctly?
Thanks!
Moderator

Re: tXMLMap - NullPointerException

Hi,
What does your xml file look like?
Does this issue repro on all your xml files or a specific one?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.