<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: @Code(&amp;quot;sql&amp;quot;) Field - Java Code generation fails in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2251999#M148530</link>
    <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I confirm that with the Talend TOS V7.4 the code generation does not fail this time when it comes to new lines in sql code. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;But I think that the version still unstable because when I execute my job the whole execution fails with at least 3 errors/ugly warnings types: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[statistics] connecting to socket on port 3682&lt;/P&gt;&lt;P&gt;[statistics] connected&lt;/P&gt;&lt;P&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;/P&gt;&lt;P&gt;SLF4J: Found binding in [jar:file:/home/user1/STUDIO_TALEND_CLOUD/TOS_DI-20210107_1111-V7.4.1M6/configuration/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.12.1/log4j-slf4j-impl-2.12.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/P&gt;&lt;P&gt;SLF4J: Found binding in [jar:file:/home/user1/STUDIO_TALEND_CLOUD/TOS_DI-20210107_1111-V7.4.1M6/configuration/.m2/repository/org/talend/sdk/component/slf4j-standard/1.29.0-SNAPSHOT/slf4j-standard-1.29.0-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/P&gt;&lt;P&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" alt="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.&lt;/P&gt;&lt;P&gt;SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]&lt;/P&gt;&lt;P&gt;WARNING: An illegal reflective access operation has occurred&lt;/P&gt;&lt;P&gt;WARNING: Illegal reflective access by org.talend.sdk.component.runtime.manager.asm.Unsafes (file:/home/user1/STUDIO_TALEND_CLOUD/TOS_DI-20210107_1111-V7.4.1M6/configuration/.m2/repository/org/talend/sdk/component/component-runtime-manager/1.29.0-SNAPSHOT/component-runtime-manager-1.29.0-SNAPSHOT.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)&lt;/P&gt;&lt;P&gt;WARNING: Please consider reporting this to the maintainers of org.talend.sdk.component.runtime.manager.asm.Unsafes&lt;/P&gt;&lt;P&gt;WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations&lt;/P&gt;&lt;P&gt;WARNING: All illegal access operations will be denied in a future release&lt;/P&gt;&lt;P&gt;[statistics] disconnected&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/DynamicMetadata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.Class.getDeclaredMethods0(Native Method)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.Class.getDeclaredMethod(Class.java:2473)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.talend.sdk.component.runtime.record.RecordConverters$MappingMeta.newInstance(RecordConverters.java:529)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.talend.sdk.component.runtime.record.RecordConverters.toType(RecordConverters.java:291)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at local_project.test_0_1.test.tSqlForFileInput_1Process(test.java:734)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at local_project.test_0_1.test.runJobInTOS(test.java:1268)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at local_project.test_0_1.test.main(test.java:1115)&lt;/P&gt;&lt;P&gt;Caused by: java.lang.ClassNotFoundException: routines.system.DynamicMetadata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;... 8 more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job test terminé à 15:31 08/03/2021. [Code de sortie&amp;nbsp;= 1] &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Safus&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 14:37:03 GMT</pubDate>
    <dc:creator>Safus</dc:creator>
    <dc:date>2021-03-08T14:37:03Z</dc:date>
    <item>
      <title>@Code("sql") Field - Java Code generation fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2251996#M148527</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm declaring a field in my configuration as "Sql" Code. This field is updated by an @updatable Method. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; The rendering in the UI is fine and new lines are visible : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C77tHAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147181iA02DA374B042EC67/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C77tHAAR.png" alt="0693p00000C77tHAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the generated java code has a bug. &lt;/P&gt;&lt;P&gt;&lt;B&gt;"String literal is not properly closed by a double-quote"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C77tRAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142464i1B569D4D4918B22E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C77tRAAR.png" alt="0693p00000C77tRAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried every thing to avoid this error. "\n", "\\n", "\r\n", "\\r\\n" System.getProperty("line.separator") , char(13) ... but nothing works. &lt;/P&gt;&lt;P&gt;stringBuilderFullQuery&lt;/P&gt;&lt;P&gt; .append("\"")&lt;/P&gt;&lt;P&gt; .append("SELECT ")&lt;/P&gt;&lt;P&gt;.append(" \n")&lt;/P&gt;&lt;P&gt; .append(stringBuilderColumns.toString())&lt;/P&gt;&lt;P&gt; .append(" FROM ")&lt;/P&gt;&lt;P&gt; .append(getValidNamedDBTable(arg1))&lt;/P&gt;&lt;P&gt; .append("\"");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS : @TextArea works fine, but it is not "user-friendly" when it comes to SQL code.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2251996#M148527</guid>
      <dc:creator>Safus</dc:creator>
      <dc:date>2026-01-02T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: @Code("sql") Field - Java Code generation fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2251997#M148528</link>
      <description>&lt;P&gt;Hi @safouane BEN MANSOUR​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This issue rings me a bell... &lt;/P&gt;&lt;P&gt;I fixed something like that in the studio but AFAIR it was for the MEMO_ type widget (so @Code("SQL") also)  ... Need to double check this...&lt;/P&gt;&lt;P&gt;What's your env? (ie Studio version and patches applied)&lt;/P&gt;&lt;P&gt;As a workaround, you can put your sql query on one unique line and not multi-lined...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the feedback! &lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 08:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2251997#M148528</guid>
      <dc:creator>undx</dc:creator>
      <dc:date>2021-03-08T08:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: @Code("sql") Field - Java Code generation fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2251998#M148529</link>
      <description>&lt;P&gt;Hi again, &lt;/P&gt;&lt;P&gt;I checked and this issue has been fixed in November 2020 and is available in our monthly patches since `R2020-10` for `maintenance/7.3` and is on `master` (7.4) also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- &lt;/P&gt;&lt;P&gt;Emmanuel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 09:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2251998#M148529</guid>
      <dc:creator>undx</dc:creator>
      <dc:date>2021-03-08T09:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: @Code("sql") Field - Java Code generation fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2251999#M148530</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I confirm that with the Talend TOS V7.4 the code generation does not fail this time when it comes to new lines in sql code. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;But I think that the version still unstable because when I execute my job the whole execution fails with at least 3 errors/ugly warnings types: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[statistics] connecting to socket on port 3682&lt;/P&gt;&lt;P&gt;[statistics] connected&lt;/P&gt;&lt;P&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;/P&gt;&lt;P&gt;SLF4J: Found binding in [jar:file:/home/user1/STUDIO_TALEND_CLOUD/TOS_DI-20210107_1111-V7.4.1M6/configuration/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.12.1/log4j-slf4j-impl-2.12.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/P&gt;&lt;P&gt;SLF4J: Found binding in [jar:file:/home/user1/STUDIO_TALEND_CLOUD/TOS_DI-20210107_1111-V7.4.1M6/configuration/.m2/repository/org/talend/sdk/component/slf4j-standard/1.29.0-SNAPSHOT/slf4j-standard-1.29.0-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/P&gt;&lt;P&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" alt="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.&lt;/P&gt;&lt;P&gt;SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]&lt;/P&gt;&lt;P&gt;WARNING: An illegal reflective access operation has occurred&lt;/P&gt;&lt;P&gt;WARNING: Illegal reflective access by org.talend.sdk.component.runtime.manager.asm.Unsafes (file:/home/user1/STUDIO_TALEND_CLOUD/TOS_DI-20210107_1111-V7.4.1M6/configuration/.m2/repository/org/talend/sdk/component/component-runtime-manager/1.29.0-SNAPSHOT/component-runtime-manager-1.29.0-SNAPSHOT.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)&lt;/P&gt;&lt;P&gt;WARNING: Please consider reporting this to the maintainers of org.talend.sdk.component.runtime.manager.asm.Unsafes&lt;/P&gt;&lt;P&gt;WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations&lt;/P&gt;&lt;P&gt;WARNING: All illegal access operations will be denied in a future release&lt;/P&gt;&lt;P&gt;[statistics] disconnected&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/DynamicMetadata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.Class.getDeclaredMethods0(Native Method)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.Class.getDeclaredMethod(Class.java:2473)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.talend.sdk.component.runtime.record.RecordConverters$MappingMeta.newInstance(RecordConverters.java:529)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.talend.sdk.component.runtime.record.RecordConverters.toType(RecordConverters.java:291)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at local_project.test_0_1.test.tSqlForFileInput_1Process(test.java:734)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at local_project.test_0_1.test.runJobInTOS(test.java:1268)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at local_project.test_0_1.test.main(test.java:1115)&lt;/P&gt;&lt;P&gt;Caused by: java.lang.ClassNotFoundException: routines.system.DynamicMetadata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;... 8 more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job test terminé à 15:31 08/03/2021. [Code de sortie&amp;nbsp;= 1] &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Safus&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 14:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2251999#M148530</guid>
      <dc:creator>Safus</dc:creator>
      <dc:date>2021-03-08T14:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: @Code("sql") Field - Java Code generation fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2252000#M148531</link>
      <description>&lt;P&gt;HI @safouane BEN MANSOUR​&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a known issue in TOS only products. The issue is not resolved yet but on timeline.&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 11:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2252000#M148531</guid>
      <dc:creator>undx</dc:creator>
      <dc:date>2021-03-09T11:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: @Code("sql") Field - Java Code generation fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2252001#M148532</link>
      <description>&lt;P&gt;Hi @Emmanuel GALLOIS​, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the info. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if it is possible to download a patched version of talend for test purposes ? &lt;/P&gt;&lt;P&gt;It is at the moment not possible to ask an update from the support team of talend because that means that my teammates also have to upgrade the product, and we are not ready for this at the moment. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Safus &lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 17:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2252001#M148532</guid>
      <dc:creator>Safus</dc:creator>
      <dc:date>2021-03-09T17:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: @Code("sql") Field - Java Code generation fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2252002#M148533</link>
      <description>&lt;P&gt;Hi @safouane BEN MANSOUR​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;simple workaround : replace @code by @TextArea -&amp;gt; works the same w/o syntax highlighting. For pathc download, contact your commercial talend contact.&lt;/P&gt;&lt;P&gt;Otherwise, you can patch it by yourself by updating `org.talend.sdk.component.studio-integration_7.3.1.20210120_1008-patch.jar!&lt;A href="https://github.com/Talend/tdi-studio-se/pull/5257/files#diff-b962d03f740161189eb6b5802573d34150f66000b411f8f3383c82dbafd6eba9" alt="https://github.com/Talend/tdi-studio-se/pull/5257/files#diff-b962d03f740161189eb6b5802573d34150f66000b411f8f3383c82dbafd6eba9" target="_blank"&gt;/jet_stub/generic/configuration.javajet&lt;/A&gt;`&amp;nbsp; with this diff https://github.com/Talend/tdi-studio-se/pull/5257/files &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 09:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Code-quot-sql-quot-Field-Java-Code-generation-fails/m-p/2252002#M148533</guid>
      <dc:creator>undx</dc:creator>
      <dc:date>2021-03-11T09:29:57Z</dc:date>
    </item>
  </channel>
</rss>

