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: 
Virginie2
Contributor
Contributor

java.lang.ClassNotFoundException: routines.system.BundleUtils

Hello

I have created jobs in TOS DI 7.1

They are used in a Jenkins environnement, and it works fine

I'm trying to migrate to TOS DI 8

In a local environnement, it still works fine

But when I deploy, I have this error

Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/BundleUtils

[...]

Caused by: java.lang.ClassNotFoundException: routines.system.BundleUtils

  at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)

  at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)

  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)

... 2 more

I use Talend Open Studio for Data Integration Version: 8.0.1

I build like that

0695b00000mQV0uAAG.png

What can I do?

Thanks

Regards

Virginie

Labels (2)
3 Replies
Anonymous
Not applicable

Hello,

It seems to be a missing class issue.

Did you import the routines code BundleUtils (Code --> Global Routines) to the TOS DI 8? if no, please import the routines code to TOS DI 8 and make sure it's working the same as that in TOS DI 7.1

In addition to that, before you export the job script, right click on the job name, and select 'set up dependencies routine' option, and see if the user routine is imported.

Best regards

Sabrina

 

Virginie2
Contributor
Contributor
Author

Hello

Thanks for answer

No, I have not imported the routines code BundleUtils

0695b00000mQeElAAK.png 

I have found a file BundleUtils.java in the folder plugins/org.talend.librariesmanager_8.0.1.20211103_1602/resources/java/routines/system/

But it is a java file, and I can't import it, an item file is requested

 

So, where can I find BundleUtils.item or like that?

Or should I create a custom routine, and copy-paste the code of BundleUtils.java?

 

Thanks

Regards

Anonymous
Not applicable

Hello,

In the Talend Open Studio, Go to menu File -> Edit Project properties

 In project Settings go to:

Build -> Maven -> Default -> Project

And click OK to see if it works from your side?

Best regards

Sabrina