<?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: Erreur tJDBCConnection : Instruction fermée: getMetaData in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304677#M76422</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;How did you add certification to JDK?&lt;/P&gt;
&lt;P&gt;Here is a related scenario about &lt;A title="TalendHelpCenter:Extracting customer information from a private WSDL file" href="https://help.talend.com/reader/JhJ04BHxFqoz4Qstp~0ltQ/nVbuaS~0JuOyMDUIKHIkUw" target="_self" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:Extracting customer information from a private WSDL file&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;to see if you need keystore files in your work flow?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 08:29:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-16T08:29:17Z</dc:date>
    <item>
      <title>Erreur tJDBCConnection : Instruction fermée: getMetaData</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304674#M76419</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I &lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;I encountered a problem&lt;/SPAN&gt;&lt;/SPAN&gt; with reading data from&amp;nbsp; hybris database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the start, the job execute the sql request without problem but after some time i get the error&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[FATAL]: tJDBCInput_21 java.sql.SQLException: Instruction fermée: getMetaData&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;I don't understand why i get the data in 5 or 6 minutes after that i get this error.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, there is a migration of hybris from 5.7 to 6.5, for the old version i used connection &lt;STRONG&gt;http&lt;/STRONG&gt; to hybris&lt;/P&gt;
&lt;P&gt;and for the new version i use &lt;STRONG&gt;https &lt;/STRONG&gt;but i get a error of certificat :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[ERROR]: java.sql.SQLException: java.security.cert.CertificateException: No subject alternative names present&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tJDBCConnection_1 java.sql.SQLException: java.security.cert.CertificateException: No subject alternative names present&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How i can add this certificate in Talend ??&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 10:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304674#M76419</guid>
      <dc:creator>rid_rj</dc:creator>
      <dc:date>2018-01-12T10:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Erreur tJDBCConnection : Instruction fermée: getMetaData</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304675#M76420</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Are you trying to import certification with the tSetKeyStore component to see if it works?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 03:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304675#M76420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T03:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Erreur tJDBCConnection : Instruction fermée: getMetaData</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304676#M76421</link>
      <description>&lt;P&gt;Thanks Sabrina.&lt;/P&gt; 
&lt;P&gt;I added the certification to JDK but the problem again exist &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 08:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304676#M76421</guid>
      <dc:creator>rid_rj</dc:creator>
      <dc:date>2018-01-15T08:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Erreur tJDBCConnection : Instruction fermée: getMetaData</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304677#M76422</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;How did you add certification to JDK?&lt;/P&gt;
&lt;P&gt;Here is a related scenario about &lt;A title="TalendHelpCenter:Extracting customer information from a private WSDL file" href="https://help.talend.com/reader/JhJ04BHxFqoz4Qstp~0ltQ/nVbuaS~0JuOyMDUIKHIkUw" target="_self" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:Extracting customer information from a private WSDL file&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;to see if you need keystore files in your work flow?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304677#M76422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-16T08:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Erreur tJDBCConnection : Instruction fermée: getMetaData</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304678#M76423</link>
      <description>&lt;P&gt;I added it by using this commande :&lt;/P&gt; 
&lt;PRE&gt;cd %JAVA_HOME%
bin\keytool -J-Duser.language=en -keystore jre\lib\security\cacerts -import -alias CERT_RECETTE -ext san=ip:'@IP' -file d:/certif.crt&lt;/PRE&gt; 
&lt;P&gt;But this not the solution.&lt;/P&gt; 
&lt;P&gt;I found another solution is to create this calss Java in routines to trust the certification&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;package routines;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSession;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;


public class TrustCertficate implements X509TrustManager  {

   
	public java.security.cert.X509Certificate[] getAcceptedIssuers() {
		   return null;
		}
	public void checkClientTrusted1(X509Certificate[] certs, String authType) {
	}

	public void checkServerTrusted1(X509Certificate[] certs, String authType) {
	}

	@Override
	 public void checkClientTrusted(java.security.cert.X509Certificate[]      paramArrayOfX509Certificate, String paramString)
	    throws CertificateException {
	  // TODO Auto-generated method stub

	}

	@Override
	public void checkServerTrusted(java.security.cert.X509Certificate[] paramArrayOfX509Certificate, String paramString)
	        throws CertificateException {
	    // TODO Auto-generated method stub
}
	
	public static void disableSSL() {
	      try {
	         TrustManager[] trustAllCerts = new TrustManager[] { new   TrustCertficate() };

	    // Install the all-trusting trust manager
	    SSLContext sc = SSLContext.getInstance("SSL");
	    sc.init(null, trustAllCerts, new java.security.SecureRandom());
	    HostnameVerifier allHostsValid = new HostnameVerifier() {
	        public boolean verify(String hostname, SSLSession session) {
	            return true;
	        }
	    };
	    HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);
	    HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
	} catch (Exception e) {
	    e.printStackTrace();
	}}
	
}


&lt;/PRE&gt; 
&lt;P&gt;just you need to call disableSSL in tjava component :&lt;/P&gt; 
&lt;PRE&gt;routines.TrustCertficate.disableSSL(); &lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304678#M76423</guid>
      <dc:creator>rid_rj</dc:creator>
      <dc:date>2018-01-16T08:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Erreur tJDBCConnection : Instruction fermée: getMetaData</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304679#M76424</link>
      <description>&lt;P&gt;Now, after solution of certification, i had the first problem :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tJDBCInput_21 java.sql.SQLException: Instruction fermée: getMetaData&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;so the problem is not in the certification, i can use the old method with http not https.&lt;/P&gt;
&lt;P&gt;The problem is the connection closure after 5 or 6 minutes after execution.&lt;/P&gt;
&lt;P&gt;I think it's a problem in hybris&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 09:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304679#M76424</guid>
      <dc:creator>rid_rj</dc:creator>
      <dc:date>2018-01-16T09:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Erreur tJDBCConnection : Instruction fermée: getMetaData</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304680#M76425</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;So far, we have no clue about your issue. Feel free to let us know if there is any further help we can give.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 03:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Erreur-tJDBCConnection-Instruction-ferm%C3%A9e-getMetaData/m-p/2304680#M76425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-17T03:52:32Z</dc:date>
    </item>
  </channel>
</rss>

