Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
on a new installation of Talend, when I add a TSalesforceConnection component (or any Salesforce component) in my job, then save and close the job, I get an error :
An error has occurred. See error log for more details. Class listed in @type [org.talend.components.api.properties.ComponentReferenceProperties$ReferenceType] is not found
My vm is
C:\Program Files\Java\jdk-17.0.2\bin\server\jvm.dll
I checked the JAVA_HOME env
JAVA_HOME=C:\Program Files\Java\jdk-17.0.2
I tried to switch to java 11 (zulu) and to install in c:\TOS, no change 😞
Tried to install on another computer, installed zulu 11 then TOS, same behaviour...
Is that a known issue ? Can I find somewhere an older version of Talend ?
Thanks for your help
Hi,
I'm the author of the initial post.
I never solved the issue, instead I took a virtual windows server on the net and installed TOS on it.
It worked perfectly fine until today.
Then today, I tried to import some jobs from a customer, and I got the same error again.
Then I tried to add a tSalesforceInput to one of my jobs, save it, close it, reopen it... it worked.
So my guess is there are several versions of the tSalesforceInput component and one of them is either buggy or not compatible with other versions.
Here is what I find in the item file :
{
"@type":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties",
"__version":2,
"queryMode":{
"@type":"org.talend.daikon.properties.property.EnumProperty",
"flags":null,
"storedValue":{
"@type":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties$QueryMode",
"name":"Query"
},
"storedDefaultValue":null,
"children":{
"@type":"java.util.ArrayList"
},
"taggedValues":{
"@type":"java.util.HashMap",
"SUPPORT_CONTEXT":false,
"IS_DYNAMIC":false
},
"size":-1,
"occurMinTimes":0,
"occurMaxTimes":0,
"precision":0,
"pattern":null,
"nullable":false,
"possibleValues":{
"@type":"java.util.ArrayList",
"@items":[
{
"@type":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties$QueryMode",
"name":"Query"
},
{
"@type":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties$QueryMode",
"name":"Bulk"
},
{
"@type":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties$QueryMode",
"name":"BulkV2"
}
]
},
"currentType":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties.QueryMode",
"name":"queryMode",
"tags":null
},...
and here is what I have in the working job :
{
"@type":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties",
"__version":1,
"queryMode":{
"@type":"org.talend.daikon.properties.property.EnumProperty",
"flags":null,
"storedValue":{
"@type":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties$QueryMode",
"name":"Query"
},
"storedDefaultValue":null,
"children":{
"@type":"java.util.ArrayList"
},
"taggedValues":{
"@type":"java.util.HashMap",
"SUPPORT_CONTEXT":true,
"IS_DYNAMIC":false,
"REPOSITORY_VALUE":null
},
"size":-1,
"occurMinTimes":0,
"occurMaxTimes":0,
"precision":0,
"pattern":null,
"nullable":false,
"possibleValues":{
"@type":"java.util.ArrayList",
"@items":[
{
"@type":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties$QueryMode",
"name":"Query"
},
{
"@type":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties$QueryMode",
"name":"Bulk"
}
]
},
"currentType":"org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties.QueryMode",
"name":"queryMode",
"tags":null
},
Let's look at a diff :
I would bet on the 3rd red block, let's try to remove it...
I use git bash cause I'm on windows :
>> sed -i.bak 's/,{[^}]*BulkV2"}//g' myjob.item
Then let's reimport the job with this file instead of the original (I had to close Talend and remove the files from the workspace first because of a lock).
And let's try to reopen the job ... tadaaaaah ! it works !
To be safe I'll also set the version to 1 in the file with
>> sed -i.bak2 's/TSalesforceInputProperties"\,"__version"\:2/TSalesforceInputProperties","__version":1/g' myjob.item...
If that helps anyone to solve definitely the issue without having to hack the xml files, that would be perfect !
Note : for those who prefer to use VSCode for fix the replacements to do are :
TSalesforceInputProperties","__version":2 => TSalesforceInputProperties","__version":1
and
,\{[^}]*BulkV2"\} => empty string
Hi
Which studio version?
Regards
Shong
@Emmanuel Bruno can you also show us what is contained in the error log?
Here is the error I get trying opening a job containing a TSalesforceConnection item :
!ENTRY org.eclipse.jface 4 2 2022-02-09 14:24:16.802
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
com.cedarsoftware.util.io.JsonIoException: Class listed in @type [org.talend.components.api.properties.ComponentReferenceProperties$ReferenceType] is not found
at com.cedarsoftware.util.io.ObjectResolver.readIfMatching(ObjectResolver.java:629)
at com.cedarsoftware.util.io.ObjectResolver.traverseCollection(ObjectResolver.java:379)
at com.cedarsoftware.util.io.Resolver.convertMapsToObjects(Resolver.java:169)
at com.cedarsoftware.util.io.JsonReader.convertParsedMapsToJava(JsonReader.java:747)
at com.cedarsoftware.util.io.JsonReader.readObject(JsonReader.java:694)
at com.cedarsoftware.util.io.JsonReader.jsonToJava(JsonReader.java:426)
at org.talend.daikon.serialize.SerializerDeserializer.fromSerialized(SerializerDeserializer.java:171)
at org.talend.daikon.serialize.SerializerDeserializer.fromSerialized(SerializerDeserializer.java:135)
at org.talend.daikon.properties.Properties$Helper.fromSerializedPersistent(Properties.java:277)
at org.talend.designer.core.generic.model.Component.initNodePropertiesFromSerialized(Component.java:1573)
at org.talend.designer.core.ui.editor.process.Process.loadElementParameters(Process.java:1328)
at org.talend.designer.core.ui.editor.process.Process.loadElementParameters(Process.java:1302)
at org.talend.designer.core.ui.editor.process.Process.loadNode(Process.java:2512)
at org.talend.designer.core.ui.editor.process.Process.loadNode(Process.java:2491)
at org.talend.designer.core.ui.editor.process.Process.loadNodes(Process.java:2416)
at org.talend.designer.core.ui.editor.process.Process.loadXmlFile(Process.java:2178)
at org.talend.core.ui.editor.JobEditorInput.loadProcess(JobEditorInput.java:119)
at org.talend.core.ui.editor.JobEditorInput.checkInit(JobEditorInput.java:76)
at org.talend.core.ui.editor.JobEditorInput.<init>(JobEditorInput.java:68)
at org.talend.designer.core.ui.editor.ProcessEditorInput.<init>(ProcessEditorInput.java:39)
at org.talend.designer.core.ui.editor.ProcessEditorInput.<init>(ProcessEditorInput.java:34)
at org.talend.designer.core.ui.action.EditProcess.getEditorInput(EditProcess.java:166)
at org.talend.designer.core.ui.action.EditProcess.doRun(EditProcess.java:145)
at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:675)
at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:103)
at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:259)
at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3767)
at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:2679)
at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:688)
at org.talend.repository.viewer.action.RepoDoubleClickAction.executeAction(RepoDoubleClickAction.java:251)
at org.talend.repository.viewer.action.RepoDoubleClickAction.run(RepoDoubleClickAction.java:138)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:215)
at org.eclipse.ui.navigator.CommonNavigatorManager$1.open(CommonNavigatorManager.java:183)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:802)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:799)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1118)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:454)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:270)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:310)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4209)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1043)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4026)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3626)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
at org.talend.rcp.intro.Application.start(Application.java:303)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
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:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:654)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
Caused by: java.lang.NullPointerException: Name is null
at java.base/java.lang.Enum.valueOf(Enum.java:271)
at com.cedarsoftware.util.io.Resolver.getEnum(Resolver.java:515)
at com.cedarsoftware.util.io.Resolver.createJavaObjectInstance(Resolver.java:380)
at com.cedarsoftware.util.io.ObjectResolver.readIfMatching(ObjectResolver.java:625)
... 68 more
Hi shong,
here is some version information :
org.talend.studio.tos.di.product 8.0.1
Tos branding feature 8.0.1.20211105_1205
Tos feature 8.0.1.20211103_1602
Regards
or from studioInfo.log :
********Studio Information********
-----Branding Details-----
Product Name: Talend Open Studio for Data Integration
Product Version: 8.0.1.20211109_1610
What is the installation path of your Talend Studio? You said in a previous message that you had installed to c:\TOS but I am not sure if you were talking about Talend or your new JDK. Can you clarify please?
I installed Talend Studio in c:\TOS (for Talend Open Studio).
The JDK is now in JAVA_HOME=C:\Program Files\Zulu\zulu-11\
I'm afraid I have not seen this reported by anybody else and I certainly haven't experienced this (however, I am user a Mac). The only other thing I can think of that might cause this across two different machines *might* be virus software that is present on both machines. Do they have virus software running that actively monitors the filesystem? If so, you could try ring-fencing the folder that contains the Talend install and the workspace folder.
Also, have you tried downloading the Studio again before installing? This shouldn't be the cause of this, but it is something to try. One last question, are you using a standard zip program to unzip the installation?
Hi, thanks for your answer, no there's nothing like that, it just doesn't work... 😞