<?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 Not able to connect to a database using context variables talend open studio for Big Data 6.3.1 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Not-able-to-connect-to-a-database-using-context-variables-talend/m-p/2200558#M2997</link>
    <description>&lt;P&gt;hello there&lt;/P&gt; 
&lt;P&gt;I'm using&amp;nbsp;talend open studio for Big Data and trying to connect to a DB using context variables. It fails with an exception. If I connect to the DB using the values instead of context variables then everything is fine.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;here is a screenshot of the OracleOutput component setup with context variables&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DB access component setup" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu9x.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142640i675D1675B0D736F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu9x.jpg" alt="0683p000009Lu9x.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;DB access component setup&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;if I click on the ... button (which is near the table field) - I will get the following error. It says that Network adapter could not create a connection. If I put values to all the fields but user name - then try to connect it will complain about wrong user name. Apparently the values of the context variables&amp;nbsp;are not placed correctly&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 536px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuA7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140885i092D989CC7D347B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuA7.png" alt="0683p000009LuA7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;my DB connection for Oracle with the context variables. If check the connection then I will connect&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DB connection in metadata" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ltr7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151855iA0BED2863F250750/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ltr7.png" alt="0683p000009Ltr7.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;DB connection in metadata&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;here is my context&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="context" style="width: 730px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136639i148FC10AA547F4AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuAC.png" alt="0683p000009LuAC.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;context&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I checked the generated sources and found the following&lt;/P&gt; 
&lt;P&gt;1. all my context variables were marked red (I underlined them)&lt;/P&gt; 
&lt;P&gt;2. the &lt;SPAN&gt;ContextProperties &lt;/SPAN&gt;class didn't have those variables (such as&amp;nbsp; &lt;U&gt;context.Ora_25_49_Login&lt;/U&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried the same set up in Open Studio for ESB and everything was fine there.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please help me to resove the issue&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;----------------------------------&lt;/P&gt; 
&lt;P&gt;url_tOracleOutput_1 = "jdbc&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;racle:thin:@(description=(address=(protocol=tcp)(host="&lt;BR /&gt;+ context.Ora_25_49_Server&lt;BR /&gt;+ ")(port="&lt;BR /&gt;+ context.Ora_25_49_Port&lt;BR /&gt;+ "))(connect_data=(service_name="&lt;BR /&gt;+ context.Ora_25_49_ServiceName + ")))";&lt;BR /&gt;String dbUser_tOracleOutput_1 =&lt;U&gt; context.Ora_25_49_Login&lt;/U&gt;;&lt;/P&gt; 
&lt;P&gt;final String decryptedPassword_tOracleOutput_1 = &lt;U&gt;context.Ora_25_49_Password&lt;/U&gt;;&lt;/P&gt; 
&lt;P&gt;String dbPwd_tOracleOutput_1 = decryptedPassword_tOracleOutput_1;&lt;BR /&gt;dbschema_tOracleOutput_1 = &lt;U&gt;context.Ora_25_49_Schema&lt;/U&gt;;&lt;/P&gt; 
&lt;P&gt;--------------------------------&lt;/P&gt; 
&lt;P&gt;public class ContextProperties extends java.util.Properties {&lt;/P&gt; 
&lt;P&gt;private static final long serialVersionUID = 1L;&lt;/P&gt; 
&lt;P&gt;public ContextProperties(java.util.Properties properties) {&lt;BR /&gt;super(properties);&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;public ContextProperties() {&lt;BR /&gt;super();&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;public void synchronizeContext() {&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt; 
&lt;P&gt;private ContextProperties context = new ContextProperties();&lt;/P&gt; 
&lt;P&gt;public ContextProperties getContext() {&lt;BR /&gt;return this.context;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:55:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:55:28Z</dc:date>
    <item>
      <title>Not able to connect to a database using context variables talend open studio for Big Data 6.3.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Not-able-to-connect-to-a-database-using-context-variables-talend/m-p/2200558#M2997</link>
      <description>&lt;P&gt;hello there&lt;/P&gt; 
&lt;P&gt;I'm using&amp;nbsp;talend open studio for Big Data and trying to connect to a DB using context variables. It fails with an exception. If I connect to the DB using the values instead of context variables then everything is fine.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;here is a screenshot of the OracleOutput component setup with context variables&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DB access component setup" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu9x.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142640i675D1675B0D736F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu9x.jpg" alt="0683p000009Lu9x.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;DB access component setup&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;if I click on the ... button (which is near the table field) - I will get the following error. It says that Network adapter could not create a connection. If I put values to all the fields but user name - then try to connect it will complain about wrong user name. Apparently the values of the context variables&amp;nbsp;are not placed correctly&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 536px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuA7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140885i092D989CC7D347B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuA7.png" alt="0683p000009LuA7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;my DB connection for Oracle with the context variables. If check the connection then I will connect&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DB connection in metadata" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ltr7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151855iA0BED2863F250750/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ltr7.png" alt="0683p000009Ltr7.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;DB connection in metadata&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;here is my context&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="context" style="width: 730px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136639i148FC10AA547F4AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuAC.png" alt="0683p000009LuAC.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;context&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I checked the generated sources and found the following&lt;/P&gt; 
&lt;P&gt;1. all my context variables were marked red (I underlined them)&lt;/P&gt; 
&lt;P&gt;2. the &lt;SPAN&gt;ContextProperties &lt;/SPAN&gt;class didn't have those variables (such as&amp;nbsp; &lt;U&gt;context.Ora_25_49_Login&lt;/U&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried the same set up in Open Studio for ESB and everything was fine there.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please help me to resove the issue&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;----------------------------------&lt;/P&gt; 
&lt;P&gt;url_tOracleOutput_1 = "jdbc&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;racle:thin:@(description=(address=(protocol=tcp)(host="&lt;BR /&gt;+ context.Ora_25_49_Server&lt;BR /&gt;+ ")(port="&lt;BR /&gt;+ context.Ora_25_49_Port&lt;BR /&gt;+ "))(connect_data=(service_name="&lt;BR /&gt;+ context.Ora_25_49_ServiceName + ")))";&lt;BR /&gt;String dbUser_tOracleOutput_1 =&lt;U&gt; context.Ora_25_49_Login&lt;/U&gt;;&lt;/P&gt; 
&lt;P&gt;final String decryptedPassword_tOracleOutput_1 = &lt;U&gt;context.Ora_25_49_Password&lt;/U&gt;;&lt;/P&gt; 
&lt;P&gt;String dbPwd_tOracleOutput_1 = decryptedPassword_tOracleOutput_1;&lt;BR /&gt;dbschema_tOracleOutput_1 = &lt;U&gt;context.Ora_25_49_Schema&lt;/U&gt;;&lt;/P&gt; 
&lt;P&gt;--------------------------------&lt;/P&gt; 
&lt;P&gt;public class ContextProperties extends java.util.Properties {&lt;/P&gt; 
&lt;P&gt;private static final long serialVersionUID = 1L;&lt;/P&gt; 
&lt;P&gt;public ContextProperties(java.util.Properties properties) {&lt;BR /&gt;super(properties);&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;public ContextProperties() {&lt;BR /&gt;super();&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;public void synchronizeContext() {&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt; 
&lt;P&gt;private ContextProperties context = new ContextProperties();&lt;/P&gt; 
&lt;P&gt;public ContextProperties getContext() {&lt;BR /&gt;return this.context;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Not-able-to-connect-to-a-database-using-context-variables-talend/m-p/2200558#M2997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect to a database using context variables talend open studio for Big Data 6.3.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Not-able-to-connect-to-a-database-using-context-variables-talend/m-p/2200559#M2998</link>
      <description>&lt;P&gt;Shouldn't the values for your String variables be wrapped in quotes?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 15:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Not-able-to-connect-to-a-database-using-context-variables-talend/m-p/2200559#M2998</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-04-12T15:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect to a database using context variables talend open studio for Big Data 6.3.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Not-able-to-connect-to-a-database-using-context-variables-talend/m-p/2200560#M2999</link>
      <description>&lt;P&gt;Are the context variables actually imported into your job? Check the "Contexts" tab and see if they exist within the job. It sounds like they may not. Can you give us a screenshot of your "Contexts" tab?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 21:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Not-able-to-connect-to-a-database-using-context-variables-talend/m-p/2200560#M2999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-12T21:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect to a database using context variables talend open studio for Big Data 6.3.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Not-able-to-connect-to-a-database-using-context-variables-talend/m-p/2200561#M3000</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have the same error. With the talend open studio the following error is created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Attached error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I try to connect to an oracle database using service name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need help&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LroL"&gt;error talend.txt&lt;/A&gt;</description>
      <pubDate>Fri, 09 Feb 2018 12:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Not-able-to-connect-to-a-database-using-context-variables-talend/m-p/2200561#M3000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-09T12:22:50Z</dc:date>
    </item>
  </channel>
</rss>

