Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-121

Throw ClassNotFoundException when invoke Properties.fromSerialized() method

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Bug
    • Resolution: Is not a Bug
    • Critical
    • None
    • None
    • None
    • None
    • All
    • Hide

      Must use the jar ends with "-bundle"

      Show
      Must use the jar ends with "-bundle"
    • Small

    Description

      When invoke the method Properties.fromSerialized() in studio, it throws the exception below:

      com.cedarsoftware.util.io.JsonIoException: Unable to create class: java.lang.Object
      Last read: },"returns":null,"org.talend.daikon.properties.Properties.name":"connection","forms":{"@type":"java.util.ArrayList"},"validationResult":{"status":{"name":"OK","ordinal":0},"number":0,"message":null}}9
      line: 1, col: 19392
      	at com.cedarsoftware.util.io.JsonReader.convertParsedMapsToJava(JsonReader.java:588)
      	at com.cedarsoftware.util.io.JsonReader.readObject(JsonReader.java:529)
      	at com.cedarsoftware.util.io.JsonReader.jsonToJava(JsonReader.java:276)
      	at com.cedarsoftware.util.io.JsonReader.jsonToJava(JsonReader.java:249)
      	at org.talend.daikon.properties.Properties.fromSerialized(Properties.java:164)
      	at org.talend.repository.generic.ui.GenericConnWizard.addPages(GenericConnWizard.java:185)
      	at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:619)
      	at org.eclipse.jface.window.Window.create(Window.java:435)
      	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1101)
      	at org.talend.repository.generic.action.CreateGenericConnectionAction.doRun(CreateGenericConnectionAction.java:50)
      	at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:632)
      	at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:99)
      	at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:258)
      	at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3218)
      	at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:2023)
      	at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:641)
      	at org.talend.repository.viewer.action.RepoDoubleClickAction.run(RepoDoubleClickAction.java:113)
      	at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:229)
      	at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
      	at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
      	at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:853)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
      	at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:850)
      	at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1142)
      	at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
      	at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1249)
      	at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)
      	at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)
      	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.talend.rcp.intro.Application.start(Application.java:197)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	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:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
      Caused by: com.cedarsoftware.util.io.JsonIoException: Unable to create class: java.lang.Object
      	at com.cedarsoftware.util.io.Resolver.createJavaObjectInstance(Resolver.java:280)
      	at com.cedarsoftware.util.io.JsonReader.convertParsedMapsToJava(JsonReader.java:573)
      	... 57 more
      Caused by: com.cedarsoftware.util.io.JsonIoException: Unable to create class: org.talend.components.salesforce.SalesforceConnectionProperties
      	at com.cedarsoftware.util.io.MetaUtils.classForName(MetaUtils.java:302)
      	at com.cedarsoftware.util.io.Resolver.createJavaObjectInstance(Resolver.java:267)
      	... 58 more
      Caused by: com.cedarsoftware.util.io.JsonIoException: Class not found: org.talend.components.salesforce.SalesforceConnectionProperties
      	at com.cedarsoftware.util.io.MetaUtils.classForName(MetaUtils.java:297)
      	... 59 more
      Caused by: java.lang.ClassNotFoundException: org.talend.components.salesforce.SalesforceConnectionProperties cannot be found by org.talend.daikon_0.4.0.BUILD-SNAPSHOT
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
      	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at com.cedarsoftware.util.io.MetaUtils.loadClass(MetaUtils.java:366)
      	at com.cedarsoftware.util.io.MetaUtils.classForName(MetaUtils.java:293)
      

      Attachments

        Activity

          People

            nrousseau Nicolas Rousseau
            ycbai yucheng bai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: