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

Guess schema - Can't find component name Client

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    Description

      In the studio, I create a job: [tHTTPClient ---> tHTTPClient]

      In the second one I set 'Output key/value pairs' to 'true' and define 3 keys: headerAFromForm, qValue, code.

      When I click on 'Guess schema' button, I have this error:

      java.lang.Exception: [{"label":"headerAFromForm","nullable":true,"originalDbColumnName":"headerAFromForm","talendType":"id_String"},{"label":"qValue","nullable":true,"originalDbColumnName":"qValue","talendType":"id_String"},{"label":"code","nullable":true,"originalDbColumnName":"code","talendType":"id_String"}][WARN ] 15:33:56 org.talend.sdk.component.runtime.manager.service.api.ComponentInstantiator$ComponentNameFinder- Can't find component name Client
          at org.talend.sdk.component.studio.ui.guessschema.GuessSchemaSelectionAdapter.widgetSelected(GuessSchemaSelectionAdapter.java:153)
          at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
          at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5879)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1427)
          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5121)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4599)
          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:304)

       

      If the processor is placed as input, there is no issue, guess schema works as expected.

      I have to issue with a 8.0.1 studio 202302 patch using this HTTPClient connector: https://talend.box.com/s/pcm3hmcea8rhamcmmtkgqppq9lysvsf0
       

      [EDIT]

      The error is because of the warning:

      [WARN ] 15:33:56 org.talend.sdk.component.runtime.manager.service.api.ComponentInstantiator$ComponentNameFinder- Can't find component name Client

      that says that it can't find the component named 'Client'. Indeed the processor's name is 'Client' but it can be found since if I declare the schema manually, I can execute the job.

      Here is the source of the exception: https://github.com/Talend/component-runtime/blob/74ab5b7acc85063ed7a794d2be84018f820330dd/component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/service/api/ComponentInstantiator.java#L93

      [EDIT bis]
      Workaround to have the guess schema working:
      In 'studio/runAdvanced settings' check 'Use specific JVM arguments' and add - 'Dlog4j.configuration="file:/tmp/log4j.properties"'

      -Dlog4j.configurationFile=/tmp/log4j.properties
      

      Create the file '/tmp/log4j.properties' with:

      log4j.rootLogger=ERROR, FILE
      
      log4j.appender.FILE=org.apache.log4j.RollingFileAppender
      log4j.appender.FILE.File=./appl.log
      log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
      log4j.appender.FILE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
      log4j.appender.FILE.MaxFileSize=5MB
      log4j.appender.FILE.MaxBackupIndex=5
      log4j.appender.FILE.append=true
      

      or simply

      log4j.rootLogger=OFF
      

      [EDIT ter]
      It is related also to HTTPClient GA epic: https://jira.talendforge.org/browse/TDI-48354

      Attachments

        Activity

          People

            Unassigned Unassigned
            ypiel Yves Piel
            emmanuel gallois, Fabien Desiles
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: