
Specialist III
2016-08-29
07:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[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
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
240 Views
1 Solution
Accepted Solutions

Specialist III
2016-09-03
04:33 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
With the right one it works fine.
Eric
240 Views
2 Replies

Specialist III
2016-08-29
10:59 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
240 Views

Specialist III
2016-09-03
04:33 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
With the right one it works fine.
Eric
241 Views
