Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I was trying to run a talend job, for which the following warning has occurred. I'm not able to find solution for this. Anyone please explain.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.serial.io.JBossObjectOutputStream (file:/C:/TOS_BD-20190620_1446-V7.2.1/configuration/.m2/repository/org/talend/libraries/jboss-serialization/6.0.0/jboss-serialization-6.0.0.jar) to field java.io.ObjectOutputStream.enableReplace
WARNING: Please consider reporting this to the maintainers of org.jboss.serial.io.JBossObjectOutputStream
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Hi, I'm facing the same issue here.
My job is using tMap with store on temp data option "true". I've already fill the temp data directory path with a full path.
When running the job on Talend 7.3, it works but a warning appears as shown below:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.serial.io.JBossObjectOutputStream (file:/D:/Installer/Talend/configuration/.m2/repository/org/talend/libraries/jboss-serialization/6.0.0/jboss-serialization-6.0.0.jar) to field java.io.ObjectOutputStream.enableReplace
WARNING: Please consider reporting this to the maintainers of org.jboss.serial.io.JBossObjectOutputStream
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
But when running the job.sh on crontab linux (ubuntu), the job won't run and an error appears as below:
[statistics] disconnected
[statistics] disconnected
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.talend.designer.components.lookup.persistent.PersistentSortedLookupManager.writeBuffer(PersistentSortedLookupManager.java:366)
at org.talend.designer.components.lookup.persistent.PersistentSortedLookupManager.endPut(PersistentSortedLookupManager.java:344)
at a.b.c.tDBInput_3Process(c.java:18553)
at a.b.c.tDBInput_2Process(c.java:5682)
at a.b.c.runJobInTOS(c.java:26808)
at a.b.c.main(c.java:26640)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private boolean java.io.ObjectOutputStream.enableReplace accessible: module java.base does not "opens java.io" to unnamed module @6fa4fbe3
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:180)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:174)
at org.jboss.serial.io.JBossObjectOutputStream.<clinit>(JBossObjectOutputStream.java:57)
... 6 more
The job was made on Talend Open Studio 7.3 with java version 11
And the cron job is running on linux ubuntu (version 22) with openjdk version 18
Please help, thank you.
#[v7.x]