One Star

Perl - Component tMap doesn't work - code disappeared

Hi,
I've searched on this forum but I found nothing.
My problem is related to tMap component.
When I use it in order to make an inner join, it just doesn't work (when execute job) and entire code is deleted.
First I thought I was wrong about the use of tMap component. So I loaded the projectDemoPerl and the job "tMap_4_InnerJoin_And_Reject".
Same problems occur ... Job isn't executed and entire code disappear.
If I remove tMap component, code is reloaded ...
I use TOS 4.2.0 r59885 on debian 5.0.8 with java 1.6 (openJDK).
EDIT : post in bugtracker
http://www.talendforge.org/bugs/view.php?id=22127
EDIT 2 :
In addition, same job in talendDemoJava works perfectly Smiley Wink
Tags (1)
6 REPLIES
One Star

Re: Perl - Component tMap doesn't work - code disappeared

If it may help, following messages are displayed in my command line terminal :
ERROR: 
java.lang.NullPointerException
at org.talend.designer.core.model.process.DataProcess.checkFlowRefLink(Unknown Source)
at org.talend.designer.core.model.process.DataProcess.buildFromGraphicalProcess(Unknown Source)
at org.talend.designer.core.ui.editor.process.Process.getGeneratingNodes(Unknown Source)
at org.talend.designer.core.ui.views.CodeView.refresh(Unknown Source)
at org.talend.designer.core.ui.editor.cmd.ExternalNodeChangeCommand.refreshCodeView(Unknown Source)
at org.talend.designer.core.ui.editor.cmd.ExternalNodeChangeCommand.execute(Unknown Source)
at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:197)
at org.talend.designer.mapper.managers.UIManager.closeMapper(Unknown Source)
at org.talend.designer.mapper.ui.footer.FooterComposite$1.widgetSelected(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
at org.talend.designer.mapper.MapperComponent.open(Unknown Source)
at org.talend.designer.mapper.MapperComponent.open(Unknown Source)
at org.talend.designer.core.ui.editor.nodes.NodePart.performRequest(Unknown Source)
at org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:194)
at org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:137)
at org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:1069)
at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:525)
at org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:231)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:291)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:518)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:189)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.talend.rcp.intro.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
ERROR:
java.lang.NullPointerException
at org.talend.designer.core.model.process.DataProcess.checkFlowRefLink(Unknown Source)
at org.talend.designer.core.model.process.DataProcess.buildFromGraphicalProcess(Unknown Source)
at org.talend.designer.core.ui.editor.process.Process.getGeneratingNodes(Unknown Source)
at org.talend.designer.core.utils.JavaProcessUtil.getNeededLibraries(Unknown Source)
at org.talend.designer.core.utils.JavaProcessUtil.getNeededLibraries(Unknown Source)
at org.talend.designer.core.ui.editor.process.Process.getNeededLibraries(Unknown Source)
at org.talend.librariesmanager.model.ModulesNeededProvider.resetCurrentJobNeededModuleList(Unknown Source)
at org.talend.librariesmanager.model.service.AbstractLibrariesService.updateModulesNeededForCurrentJob(Unknown Source)
at org.talend.librariesmanager.model.service.LibrariesService.updateModulesNeededForCurrentJob(Unknown Source)
at org.talend.designer.core.ui.editor.AbstractTalendEditor.doSave(Unknown Source)
at org.talend.designer.core.ui.AbstractMultiPageTalendEditor.doSave(Unknown Source)
at org.talend.designer.core.ui.MultiPageTalendEditor.doSave(Unknown Source)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:151)
at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:277)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2600)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:285)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:264)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:156)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1369)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3334)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3347)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:76)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1525)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1257)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1294)
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:730)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2839)
at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4794)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4372)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8163)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1239)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2224)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3169)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.talend.rcp.intro.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
One Star

Re: Perl - Component tMap doesn't work - code disappeared

Hi,
I've just tested an other version of TOS (4.1.2 r 53616)
I loaded the TalendDemoPerl project and tMap_4_Innerjoin_And_reject.
It works !
I'll use this version so Smiley Wink

Re: Perl - Component tMap doesn't work - code disappeared

careful with Perl projects. Perl is (sadly) being discontinued.
One Star

Re: Perl - Component tMap doesn't work - code disappeared

What am I reading? Perl is being discontinued???
I have 4 years worth of code developed with TOS Perl!
Mind you, it certainly explains why there are so many bugs in the latest TOS Perl versions but it doesn't quite help me with going forward if Perl is being discontinued.
Community Manager

Re: Perl - Component tMap doesn't work - code disappeared

Hi
Perl project is hidden by default since v4.2, you can active it if you want it. There is a file called Perl_readme.txt under the TOS studio installation directory, read the file to know how to active Perl project.
Perl project is not developed by Talend anymore in the future, but we still provide technical support to existing customers who are still using Perl.
In order to get best assistance from Talend community, we recommend you to create Java projects.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Perl - Component tMap doesn't work - code disappeared

Right, I understand better. Thanks a lot Shong!
My team (and myself) are primarily Perl developers so it won't be possible to switch to Java any time soon.
... one more things to put in the 'roadblocks' pile. Smiley Sad