[resolved] Tutorial Data Mapper for Java object mapping

Highlighted
Not applicable

[resolved] Tutorial Data Mapper for Java object mapping

Hi,
I'm watching this tutorial:
https://www.youtube.com/watch?v=S1MhbYaaF5o
At 1:07 minute, we have to add an external jar odtapi-3.3.0.jar (I think the one that contains package com.mycompany.odt that is declared in some java class but missing). I don't have such a jar and I think it is normal, because it was renamed since this video. But I cannot find a jar that would contain the package com.mycompany.odt...
Where can I find this jar ?
Thanks for your help.
Eric

Accepted Solutions
Highlighted
Not applicable

Re: [resolved] Tutorial Data Mapper for Java object mapping

I didn't use the right api jar file... The right one is tdm-api-<version>.jar or tdm-camel-<version>.jar (According to the version). 
With the right one it works fine.
Eric

View solution in original post


All Replies
Highlighted
Not applicable

Re: [resolved] Tutorial Data Mapper for Java object mapping

I found the relevant jar... It is now org.talend.transform.runtime.api_*.jar
But I run into a new problem... At minute 5:42, we run the class file AddJavaObjectSample.java to create a test invoice java file, but I get this error and have no idea how to fix that:
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
at sun.security.util.SignatureFileVerifier.process(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarFile.initializeVerifier(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at sun.misc.URLClassPath$JarLoader$2.getInputStream(Unknown Source)
at sun.misc.Resource.cachedInputStream(Unknown Source)
at sun.misc.Resource.getByteBuffer(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.mycompany.odt.AddJavaObjectSample.main(AddJavaObjectSample.java:34)
Should I adjust something in a manifest file ?
Any suggestion ?
I uploaded the class file.

Eric
AddJavaObjectSample.java.txt.txt
Highlighted
Not applicable

Re: [resolved] Tutorial Data Mapper for Java object mapping

I didn't use the right api jar file... The right one is tdm-api-<version>.jar or tdm-camel-<version>.jar (According to the version). 
With the right one it works fine.
Eric

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog