|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
Bonjour;
Je suis débutante avec talend. Ma première manipulation consiste à se connecter à une base de donnée mysql , et charger des données à partir d'un fichier excel.Pour ce , j'ai suivi les étapes suivantes 1=>création d'un job. 2=>Création d'un fichier excel(metadata) 3=>Création d'une connexion à base de donnée Mysql. 4=>Ajout du composant Tmap. Jusqu’à présent tout marche bien.Mais quand je fait exécuter le job j'ai le message suivant: émarrage du job Chagemen_ms_tx_power a 10:50 28/11/2011. [statistics] connecting to socket on port 3862 [statistics] connected For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" For input string: "Null" [statistics] disconnected Job Chagemen_ms_tx_power terminé à 10:50 28/11/2011. [Code sortie=0] Et du coût les données ne sont pas insérée au niveau de la base. Merci d'avoir votre aide , je suis vraiment bloqué. |
|
|
00
|
|
|
#2 |
|
Membre Expert
![]() ![]() Mustapha EL HASSAKIngénieur développement logiciels Inscription : août 2009 Messages : 627 ![]() |
Essai de relier ton fichierexcel à un tLogRow tout d'abord pour voir si les données sont bien récupérés depuis le fichier excel.
Si c'est ok, essai de voir si le nombre de ligne récupéré avec Talend correspond au nombre de ligne du fichier Excel, peut être que tu récupères des lignes vides, si c'est le cas supprime les depuis Excel.
__________________
Le savant qui enseigne le bien aux gens et ne le met pas en pratique, est semblable à la torche qui éclaire en se brûlant. "Mohammed le Messager d’Allah" (que la paix et le salut d'Allah soient sur lui) Mes articles publiés |
|
|
00
|
|
|
#3 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
J'ai fait comme ce que vous m'avez indiqué.Mais j'ai j'ai toujours ce message
Démarrage du job essaye a 11:59 28/11/2011. [statistics] connecting to socket on port 3893 [statistics] connected For input string: "31,75" For input string: "90,94" For input string: "19,76" [statistics] disconnected Job essaye terminé à 11:59 28/11/2011. [Code sortie=0] Les données("31,75", ....) existe bien au niveau de mon fichier Excel, et au niveau de la base il sont de type double Merci d'avoir votre aide. |
|
|
00
|
|
|
#4 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
Merci d'avoir eu votre aide.
ça marche. ![]() ![]() J'ai changer juste le type de la colone qui donnais l'erreur (37.12) en string au niveau du chargement du fichier excel. |
|
|
00
|
|
|
#5 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
Salut.
Mais j'ai toujours un petit souci au niveau de l'ajout des valeurs (37.12). Quand je donne un type string au niveau du chargement du fichier Excel, l’exécution marche à merveille. mais au niveau de la base de donnée j'ai une valeur de 0 pour cette colonne Merci d'avoir votre aide. |
|
|
00
|
|
|
#6 |
|
Membre Expert
![]() ![]() Mustapha EL HASSAKIngénieur développement logiciels Inscription : août 2009 Messages : 627 ![]() |
Salut,
Comme ta colonne au niveau de la base est de type double, tu as deux choix : Soit tu récupères ta colonne depuis Excel comme étant un String puis tu fais une conversion en double avec le tMap. Soit tu récupères ta colonne depuis Excel comme étant un Double, dans ce cas, et je pense que c'est de là que viens ton problème, c'est qu'il faut modifier le séparateur de décimal, dans ton Excel c'est la virgule "," alors Talend n'arrive pas à faire la conversion, essai de modifier le séparateur de décimal dans les propriétés de ton tFileInputExcel. Bonne chance. Si ça ne marche toujours pas, envoi des captures de ton Job, (design global, schéma du Excel, schéma de la base, l'intérieur du tMap)
__________________
Le savant qui enseigne le bien aux gens et ne le met pas en pratique, est semblable à la torche qui éclaire en se brûlant. "Mohammed le Messager d’Allah" (que la paix et le salut d'Allah soient sur lui) Mes articles publiés |
|
|
00
|
|
|
#7 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
En essayant de changer les types des cellules excel,j'ai changer le séparateur "," par un séparateur "." , Lors du chargement je reçoit le message suivant.
Sortie non générée Erreur dans l'aperçu. Des paramètres doivent être modifiés. Note : Les erreurs d'aperçu sont généralement dûes à un mauvais encodage. org.talend.designer.runprocess.shadow.ShadowFilePreview.preview(ShadowFilePreview.java:90) org.talend.repository.ui.utils.ShadowProcessHelper.getCsvArray(ShadowProcessHelper.java:385) org.talend.repository.ui.wizards.metadata.connection.files.excel.ExcelFileStep2Form$PreviewProcessor.nonUIProcessInThread(ExcelFileStep2Form.java:969) org.talend.commons.ui.swt.thread.SWTUIThreadProcessor$1.run(SWTUIThreadProcessor.java:74) Merci d'avoir votre aide. |
|
|
00
|
|
|
#8 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
Je reçoit aussi ce message
Démarrage du job Job_1 a 16:05 28/11/2011. Error occurred during initialization of VM Could not reserve enough space for object heap Job Job_1 terminé à 16:05 28/11/2011. [Code sortie=1] Je suis vraiment perdu Merci d'avoir votre aide |
|
|
00
|
|
|
#9 |
|
Membre Expert
![]() ![]() Mustapha EL HASSAKIngénieur développement logiciels Inscription : août 2009 Messages : 627 ![]() |
Essai de poster les copies d'écran dont je t'ai parlé dans mon ancien post.
__________________
Le savant qui enseigne le bien aux gens et ne le met pas en pratique, est semblable à la torche qui éclaire en se brûlant. "Mohammed le Messager d’Allah" (que la paix et le salut d'Allah soient sur lui) Mes articles publiés |
|
|
00
|
|
|
#10 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
Salam;
Vous trouverze ci- aprés les capture d'ecran de mon travail. ==>Chargement du fihier excel [IMG]C:\Documents and Settings\s.bekkali\Mes documents\Mes images\Chargement_Fichier_Excel.jpg [/IMG] ==>tMAP [IMG]C:\Documents and Settings\s.bekkali\Mes documents\Mes images\Tmap.jpg [/IMG] ==>Job Fichier Excel==>Tmap==>Base de donnée Les données à partir du fichier excel sont bien chargé, j'arrive à les voir via un Tlogrow, mais qu'on je donne comme sortie la base de données , j'ai l'erreur suivante :Exception in component tMap_2 java.lang.NullPointerException at job_connexion_bd.separateur_0_1.Separateur.tFileInputExcel_3Process(Separateur.java:3478) at job_connexion_bd.separateur_0_1.Separateur.runJobInTOS(Separateur.java:3983) at job_connexion_bd.separateur_0_1.Separateur.main(Separateur.java:3825) Merci d'avoir votre aide. |
|
|
00
|
|
|
#11 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
Salam;
J'ai chercher sur pas mal de forum, et j'ai trouvez la solution suivante; new Float(row1.mstxpower.replace(',','.')), cette expression je l'ai écrite au niveau de var ==>Expresssion sur Tmap. Mais toujours pas de changement. |
|
|
00
|
|
|
#12 |
|
Membre Expert
![]() ![]() Mustapha EL HASSAKIngénieur développement logiciels Inscription : août 2009 Messages : 627 ![]() |
Les captures d'écrans ne sont pas affichées !
__________________
Le savant qui enseigne le bien aux gens et ne le met pas en pratique, est semblable à la torche qui éclaire en se brûlant. "Mohammed le Messager d’Allah" (que la paix et le salut d'Allah soient sur lui) Mes articles publiés |
|
|
00
|
|
|
#13 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
Je sais pas comment vous joindre tout mon job sur le forum???:S
|
|
|
00
|
|
|
#14 |
|
Membre Expert
![]() ![]() Mustapha EL HASSAKIngénieur développement logiciels Inscription : août 2009 Messages : 627 ![]() |
En attendant que tu postes les captures, il faut savoir que l'exception nullPointerException est peut être dû au fait que tu fais une opération sur un objet null, par exemple tu as un objet toto de type MonObjet null et tu fais toto.MaFonction().
Essai de repérer le problème au niveau du code JAVA. D'après le log c'est la ligne 3478 de ta classe Separateur.java.
__________________
Le savant qui enseigne le bien aux gens et ne le met pas en pratique, est semblable à la torche qui éclaire en se brûlant. "Mohammed le Messager d’Allah" (que la paix et le salut d'Allah soient sur lui) Mes articles publiés |
|
|
00
|
|
|
#15 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
Salam;
Avec l'utilisation de cette expression j'ai pas de message d'erreur .Le chargement des données au niveau de la base se fait,mais au niveau de la base de donnée j'ai toujours la valeur 0 pour le champs de type double. Cordialement. |
|
|
00
|
|
|
#16 |
|
Membre Expert
![]() ![]() Mustapha EL HASSAKIngénieur développement logiciels Inscription : août 2009 Messages : 627 ![]() |
Il s'agit sûrement d'un problème de conversion, sans les captures c'est difficile de t'aider.
Essaie de nous envoyer un exemple de ton Excel ainsi que le schéma de ton MySql .
__________________
Le savant qui enseigne le bien aux gens et ne le met pas en pratique, est semblable à la torche qui éclaire en se brûlant. "Mohammed le Messager d’Allah" (que la paix et le salut d'Allah soient sur lui) Mes articles publiés |
|
|
00
|
|
|
#17 |
|
Invité de passage
![]() Ingénieur développement logiciels Inscription : octobre 2011 Messages : 46 ![]() |
Je vous ai envoyer mon job ainsi que mon fichier excel dans une nouvelle discussion.
Merci d'avoir votre aide. |
|
|
00
|
Copyright © 2000-2012 - www.developpez.com