Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I've tried differents enconding, still the same error.
Here's the log:
object is not an instance of declaring class Preview error. Some settings must be changed. Note: Preview errors are generally due to a wrong encoding setting. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:461) org.talend.designer.codegen.config.TalendJetEmitter.generate(TalendJetEmitter.java:684) org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:441) org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:432) org.talend.designer.codegen.proxy.JetProxy.generate(JetProxy.java:54) org.talend.designer.codegen.CodeGenerator.instantiateJetProxy(CodeGenerator.java:444) org.talend.designer.codegen.CodeGenerator.generateContextCode(CodeGenerator.java:361) org.talend.designer.core.runprocess.Processor.updateContextCode(Processor.java:637) org.talend.designer.runprocess.java.JavaProcessor.generateContextCode(JavaProcessor.java:1585) org.talend.designer.runprocess.ProcessorUtilities.generateContextInfo(ProcessorUtilities.java:693) org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:929) org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:741) org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1463) org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1432) org.talend.designer.core.runprocess.Processor.run(Processor.java:178) org.talend.designer.runprocess.java.AbstractJavaProcessor.run(AbstractJavaProcessor.java:272) org.talend.designer.core.runprocess.Processor.run(Processor.java:136) org.talend.designer.runprocess.shadow.ShadowProcess.runWithErrorOutputAsException(ShadowProcess.java:371) org.talend.designer.runprocess.shadow.ShadowFilePreview.preview(ShadowFilePreview.java:86) org.talend.metadata.managment.ui.utils.ShadowProcessHelper.getCsvArray(ShadowProcessHelper.java:383) org.talend.repository.ui.wizards.metadata.connection.files.excel.ExcelFileStep2Form$PreviewProcessor.nonUIProcessInThread(ExcelFileStep2Form.java:1042) org.talend.commons.ui.swt.thread.SWTUIThreadProcessor$1.run(SWTUIThreadProcessor.java:74)
I fixed by changing my .ini settings in the talend folder to:
-vmargs
-Xms512m
-Xmx1536m
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
I fixed by changing my .ini settings in the talend folder to:
-vmargs
-Xms512m
-Xmx1536m
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
Hello,
Great it is fixed. Thanks for sharing it with us.
Best regards
Sabrina
I had the same error, but my talend*.ini file looks exactly as your updated config..
-vmargs
-Xms512m
-Xmx1536m
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
Any idea? My version is 7.0.1
Hello,
Does this issue repro on all your excel files or a specific one? For v6 of Talend products JDKv1.8 is required instead of JRE.
Please try to add -vm path to java bin in the .ini file(example: Talend-Studio-win-x86_64.ini)
Example:
-vm C:\Program Files\Java\jdk1.8.0_65 \bin
Best regards
Sabrina
Xdshi
I updated my system with a JDK and updated the ini file:
-vmargs
-Xms512m
-Xmx1536m
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-vm C:\Program Files\Java\jdk1.8.0_181\bin
However, I am still running into the same issue.
Hi
Any ideas how I can trace this issue? I installed Talend in another laptop and it worked. However I need it fo work on my main laptop. I tried using a CSV file and also had the same error.
Hello,
What's OS are you using? Have you tried to re-install V 7.0.1 on your laptop to see if it works?
Best regards
Sabrina
Hi Sabrina
I am running Talend Open Studio in Windows 10 Pro 64 bit. I have reinstalled and the outcome is the same. I know it worked on another laptop but I need to make it work on the current laptop. Also, I need to know how to troubleshoot such issues.