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

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

org.talend.net.Object cannot be resolved to a type

Hi,

I installed Talend Data Integration. I ran my job successfully. Then I added a tDotNETInstantiate_1 component into my job. When I build the job,it has compile error.

org.talend.designer.runprocess.ProcessorException: Job compile errors
At least job "job_edm_master" has a compile errors, please fix and export again.
Error Line: 8354
Detail Message: org.talend.net.Object cannot be resolved to a type
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:1189)

at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:961)

at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1774)

at org.talend.repository.ui.wizards.exportjob.handler.BuildJobHandler.generateJobFiles(BuildJobHandler.java:181)

at org.talend.repository.ui.wizards.exportjob.handler.AbstractBuildJobHandler.prepare(AbstractBuildJobHandler.java:404)

at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJobs(BuildJobManager.java:160)

at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage.buildJobWithMaven(JobScriptsExportWizardPage.java:1561)

at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage$9.run(JobScriptsExportWizardPage.java:1446)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

 

Here are the machine info I have:

TOS: TOS_DI-20190620_1446-V7.2.1

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise>java -version

java version "1.8.0_241"

Java(TM) SE Runtime Environment (build 1.8.0_241-b07)

Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

 

Thank you!

 

Tao

Labels (2)
6 Replies
Anonymous
Not applicable
Author

I reinstall TOS, import the projects, remove the only one .DotNet related component tDotNETInstantiate_1 it ran fine. But if added tDotNETInstantiate_1,

0683p000009M9QU.jpg

it ran with error.


System.ArgumentNullException: Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Java_org_talend_net_Object_createInstanceLib(JNIEnv_* env, _jobject* _this, _jstring* className, _jobject* jAssembly, _jobjectArray* params, _jobjectArray* types)
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (0xe0434352), pid=28652, tid=0x0000000000005370
#
# JRE version: Java(TM) SE Runtime Environment (8.0_241-b07) (build 1.8.0_241-b07)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.241-b07 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [KERNELBASE.dll+0x3a388]

 

I debug it and it failed to create the .Net object here.

    public static Object createInstance(final String library, final String className) {

        Object tmp = new Object();

        Object theAssembly = loadAssem(library);

        return new Object(tmp.createInstanceLib(className, theAssembly,

                new java.lang.Object[]{}, new String[]{}));

    }

I checked the params for the library, className are correct.

 

Thank you!

 

Tao

Anonymous
Not applicable
Author

Hi Tao
I just made a tesing and can not reproduce the issue with v7.2.1 on Windows 10,
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

Open the Module view and check if the required jar file janet-java-1.1.jar is installed successfully.

Regards
Shong
Anonymous
Not applicable
Author

Hi Shong,

 

Thank you so much for your prompt help!

 

I found the janet dll at http://talendforge.org/wiki/doku.php?id=doc:dotnet (janet-win<32 or 64>.dll) here for .NET 3.5 or here for .NET 4.0. I use the one for .NET 4.0, but my .Net dll was using .NET Core 3.1, and I got the above error. Later I rebuilt my .Net dll using .NET Core 1.0. Now the job ran fine. Do you know if Talent job  could work with higher version of .NET Core? If so which version of janet dll  I should use and where to get it?

 

Thank you!

 

Tao

Anonymous
Not applicable
Author

I install the jar janet-java-1.1.jar automatically within studio. If you use the component for the first time, it will prompt that the required jar has not been installed. just click the install button on install it automatically.

Regards
Shong
Anonymous
Not applicable
Author

Hi Shong,

 

Thank you so much for your great help!

Yes I got the  "janet-java-1.1.jar" installed automatically. Sorry I might confused you. The one I am asking is the java to .NET bridge library (janet-win<32 or 64>.dll) in order to make the tDotNETInstantiate to work. The one I am using now is from 

http://talendforge.org/wiki/doku.php?id=doc:dotnet 

From above link  I got two links for the dlls here for .NET 3.5 or here for .NET 4.0 , I use the one for .NET 4.0, but my .Net object which the tDotNETInstantiate try to create was built using .NET Core 3.1, and I got the above error. Later I rebuilt my .Net object using .NET Core 1.0. Now the job ran fine. Do you know if Talent job  could work with higher version of .NET Core for building the custom .NET dlls? If so which version of java to .NET bridge library (janet-win<32 or 64>.dll) I should use and where to get it?

 

Thank you!

 

Tao

Anonymous
Not applicable
Author


@Tao wrote:

Hi Shong,

 

Thank you so much for your great help!

Yes I got the  "janet-java-1.1.jar" installed automatically. Sorry I might confused you. The one I am asking is the java to .NET bridge library (janet-win<32 or 64>.dll) in order to make the tDotNETInstantiate to work. The one I am using now is from  Prepaid Card Status

http://talendforge.org/wiki/doku.php?id=doc:dotnet 

From above link  I got two links for the dlls here for .NET 3.5 or here for .NET 4.0 , I use the one for .NET 4.0, but my .Net object which the tDotNETInstantiate try to create was built using .NET Core 3.1, and I got the above error. Later I rebuilt my .Net object using .NET Core 1.0. Now the job ran fine. Do you know if Talent job  could work with higher version of .NET Core for building the custom .NET dlls? If so which version of java to .NET bridge library (janet-win<32 or 64>.dll) I should use and where to get it?

 

Thank you!

 

Tao


 Exactly what I needed! You just saved me several hours. Thanks!