Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

First time user issues - Java compile errors and JVM config

I'm really wanting to get on board with this tool for many reasons, but early on it is somewhat frustrating.  I understand that the installed JVM and configuration are important to a smooth experience.  What exact version is required or are there specific versions to avoid?  I'm having issue with running the demo code and get the issue below.  I am simply trying to run the code at the bottom of this post which is supposed to tell me what version of the JVM I have installed - my way of troubleshooting.

 

For starters I installed the most current java runtime and had issues - studio wouldn't run - java error 13.  Then I installed the most recent JDK SE and fixed the path issues myself.  Open Studio seems to work fine.  The code for the jobs seems to fail now.  Any help is greatly appreciated.

 

Long term I want to build jobs and deploy on ubuntu to etl data from SQL server to a production MySQL instance.  If anyone reading this can offer advice I'm all ears.  Thanks!

 

Job compile errors

 

The method convertToJSONText(..........refers to the missing type List

 

Make sure your JVM setup is similar to the studio????  Any help here would be great!

org.talend.designer.runprocess.ProcessorException: Job compile errors
At least job "OnBoardingDemoJob" has a compile errors, please fix and export again.
Error Line: 244
Detail Message: Incompatible conditional operand types Exception and TDieException
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.
at org.talend.designer.runprocess.JobErrorsChecker.checkLastGenerationHasCompilationError(JobErrorsChecker.java:338)
at org.talend.designer.runprocess.DefaultRunProcessService.checkLastGenerationHasCompilationError(DefaultRunProcessService.java:533)
at org.talend.designer.runprocess.RunProcessService.checkLastGenerationHasCompilationError(RunProcessService.java:316)
at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities.java:826)
at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:609)
at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1951)
at org.talend.designer.runprocess.RunProcessContext$1.run(RunProcessContext.java:601)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:440)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:356)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:474)
at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:240)
at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:966)
at org.talend.designer.runprocess.RunProcessContext.exec(RunProcessContext.java:548)
at org.talend.designer.runprocess.ui.ProcessComposite.exec(ProcessComposite.java:1444)
at org.talend.designer.runprocess.ui.views.ProcessView$RunAction.run(ProcessView.java:700)
at org.talend.designer.runprocess.ui.actions.RunProcessAction.run(RunProcessAction.java:58)
at org.talend.designer.core.debug.JobLaunchConfigurationDelegate$1.run(JobLaunchConfigurationDelegate.java:85)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3919)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3550)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
at org.talend.rcp.intro.Application.start(Application.java:277)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)

 

Create  a tJava component and use the following:

Advanced Settings:

import java.util.Map;
import java.util.Properties;
import java.util.Enumeration;
import java.lang.management.RuntimeMXBean;
import java.lang.management.ManagementFactory;
import java.lang.management.OperatingSystemMXBean;

 

Basic Settings:

 

Date date = new Date();
System.out.println(date);

System.out.println("\n---------- Environment Variables");
Map<String, String> env = System.getenv();
for (String envName : env.keySet()) {
System.out.format("%s=%s%n", envName, env.get(envName));
}

System.out.println("\n---------- JVM Properties");
Properties props = System.getProperties();
// props.list truncate at 40 charcaters ....
// props.list(System.out);
for (Enumeration k = props.keys() ; k.hasMoreElements() 0683p000009MA9p.png {
for (Enumeration e = props.elements() ; e.hasMoreElements() 0683p000009MA9p.png {
System.out.println(k.nextElement() + " = " + e.nextElement());
}
}

System.out.println("\n---------- runtimeMXBean Properties");
RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean();
OperatingSystemMXBean operatingSystemMXBean =
java.lang.management.ManagementFactory.getOperatingSystemMXBean();

System.out.println(runtimeMXBean.getName());

List<String> aList = runtimeMXBean.getInputArguments();
String parameters = "";
for (int i = 0; i < aList.size(); i++) {
parameters = parameters + " " + aList.get(i);
System.out.println (aList.get(i));
}

System.out.println("\n---------- runtimeMXBean Properties");
int cores = Runtime.getRuntime().availableProcessors();
long freeMemory = Runtime.getRuntime().freeMemory();
long totalMemory = Runtime.getRuntime().totalMemory();
String osArch = operatingSystemMXBean.getArch();
String osName = operatingSystemMXBean.getName();
String osVersion = operatingSystemMXBean.getVersion();
double loadAvg = operatingSystemMXBean.getSystemLoadAverage();

System.out.println ("Number of cores : " + cores);
// System.out.println ("Total Physical memory : " + operatingSystemMXBean.getTotalPhysicalMemorySize());
System.out.println ("Free memory : " + freeMemory);
System.out.println ("Total memory : " + totalMemory);
System.out.println ("OS Arch : " + osArch);
System.out.println ("OS Name : " + osName);
System.out.println ("OS Version : " + osVersion);
System.out.println ("Load Average : " + loadAvg);

// Thread.sleep(1000);
Date date2 = new Date();
System.out.println("\n" + date2);

 

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

 

    Could you please use Java 8 and try to run the job again?

 

     In case you are having multiple JRE versions, please go to Windows-> Preferences and tag the correct JRE version to Talend Studio as shown below.

0683p000009M85k.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

 

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi,

 

    Could you please use Java 8 and try to run the job again?

 

     In case you are having multiple JRE versions, please go to Windows-> Preferences and tag the correct JRE version to Talend Studio as shown below.

0683p000009M85k.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

 

Anonymous
Not applicable
Author

Thanks for the help.  The solution was to install the latest 64 bit version of the JRE and change the settings as recommended.  This fixes the compile errors.  Thank you!