Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III

[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
Labels (3)
1 Solution

Accepted Solutions
_AnonymousUser
Specialist III
Author

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

2 Replies
_AnonymousUser
Specialist III
Author

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
_AnonymousUser
Specialist III
Author

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