Bonjour
C'est plus un désagrément qu'un réel problème, mais quand on débuggue, cela est génant.
J'utilise Netbeans 6 pour coder et construire un de mes projets en Java5 avec un fichier ant existant. Pas de problème à la compilation. Seulement, quand je veux tester mon application et qu'une exception se lance, j'obtiens ceci:
En effet, les Unknown Source sont génants car je ne peux pas savoir quelle ligne ne marche pas.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Exception in thread "main" java.lang.NumberFormatException: For input string: "6100.0" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:456) at java.lang.Integer.<init>(Integer.java:620) at com.database.Queries.setIntegerObject(Unknown Source) at com.database.MSGQueries.makeQuery(Unknown Source) at com.database.MSGQueries.getQuery(Unknown Source) at com.database.MSGQueries.analyzeRow(Unknown Source) at com.database.MSGQueries.parseAndStore(Unknown Source) at com.starter.mainEntry.parsingProcedure(Unknown Source) at com.starter.mainEntry.main(Unknown Source) Java Result: 1
Ai-je oublié quelque chose dans ma configuration Eclipse ou dans mon ant file ?
Merci d'avance de vos réponses.
@++
Partager