IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Android Discussion :

problème avec logcat


Sujet :

Android

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Développeur Java
    Inscrit en
    Avril 2011
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Développeur Java

    Informations forums :
    Inscription : Avril 2011
    Messages : 29
    Points : 28
    Points
    28
    Par défaut problème avec logcat
    Salut,

    J'ai un problème avec une exception que voici :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
     
    05-14 21:45:42.977: ERROR/AndroidRuntime(770): Uncaught handler: thread main exiting due to uncaught exception
    05-14 21:45:42.998: ERROR/AndroidRuntime(770): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.formation.bd/com.formation.bd.main}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.app.ActivityThread.access$1800(ActivityThread.java:112)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.os.Handler.dispatchMessage(Handler.java:99)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.os.Looper.loop(Looper.java:123)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.app.ActivityThread.main(ActivityThread.java:3948)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at java.lang.reflect.Method.invokeNative(Native Method)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at java.lang.reflect.Method.invoke(Method.java:521)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at dalvik.system.NativeStart.main(Native Method)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.app.ListActivity.onContentChanged(ListActivity.java:236)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:312)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.app.Activity.setContentView(Activity.java:1626)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at com.formation.bd.main.onCreate(main.java:21)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
    05-14 21:45:42.998: ERROR/AndroidRuntime(770):     ... 11 more
    05-14 21:49:49.768: ERROR/AndroidRuntime(798): Uncaught handler: thread main exiting due to uncaught exception
    05-14 21:49:49.787: ERROR/AndroidRuntime(798): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.formation.bd/com.formation.bd.main}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.app.ActivityThread.access$1800(ActivityThread.java:112)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.os.Handler.dispatchMessage(Handler.java:99)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.os.Looper.loop(Looper.java:123)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.app.ActivityThread.main(ActivityThread.java:3948)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at java.lang.reflect.Method.invokeNative(Native Method)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at java.lang.reflect.Method.invoke(Method.java:521)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at dalvik.system.NativeStart.main(Native Method)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.app.ListActivity.onContentChanged(ListActivity.java:236)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:312)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.app.Activity.setContentView(Activity.java:1626)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at com.formation.bd.main.onCreate(main.java:19)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
    05-14 21:49:49.787: ERROR/AndroidRuntime(798):     ... 11 more
    05-14 21:50:54.427: ERROR/AndroidRuntime(826): Uncaught handler: thread main exiting due to uncaught exception
    05-14 21:50:54.447: ERROR/AndroidRuntime(826): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.formation.bd/com.formation.bd.Liste}: android.database.sqlite.SQLiteException: no such column: id: , while compiling: SELECT id, nom, prenom, adresse, gouvernerat, mail, telephone, fonction FROM correspondant
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.app.ActivityThread.access$1800(ActivityThread.java:112)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.os.Handler.dispatchMessage(Handler.java:99)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.os.Looper.loop(Looper.java:123)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.app.ActivityThread.main(ActivityThread.java:3948)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at java.lang.reflect.Method.invokeNative(Native Method)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at java.lang.reflect.Method.invoke(Method.java:521)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at dalvik.system.NativeStart.main(Native Method)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826): Caused by: android.database.sqlite.SQLiteException: no such column: id: , while compiling: SELECT id, nom, prenom, adresse, gouvernerat, mail, telephone, fonction FROM correspondant
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.database.sqlite.SQLiteProgram.native_compile(Native Method)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:110)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:49)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:49)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1118)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1006)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:964)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1041)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at com.formation.bd.DBAdapter.recupererLaListeDesCorrespondant(DBAdapter.java:90)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at com.formation.bd.Liste.DataBind(Liste.java:30)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at com.formation.bd.Liste.onCreate(Liste.java:19)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
    05-14 21:50:54.447: ERROR/AndroidRuntime(826):     ... 11 more
    05-14 21:55:14.067: ERROR/AndroidRuntime(865): Uncaught handler: thread main exiting due to uncaught exception
    05-14 21:55:14.097: ERROR/AndroidRuntime(865): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.formation.bd/com.formation.bd.Liste}: android.database.sqlite.SQLiteException: no such column: id: , while compiling: SELECT id, nom, prenom, adresse, gouvernerat, mail, telephone, fonction FROM correspondant
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.app.ActivityThread.access$1800(ActivityThread.java:112)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.os.Handler.dispatchMessage(Handler.java:99)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.os.Looper.loop(Looper.java:123)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.app.ActivityThread.main(ActivityThread.java:3948)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at java.lang.reflect.Method.invokeNative(Native Method)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at java.lang.reflect.Method.invoke(Method.java:521)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at dalvik.system.NativeStart.main(Native Method)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865): Caused by: android.database.sqlite.SQLiteException: no such column: id: , while compiling: SELECT id, nom, prenom, adresse, gouvernerat, mail, telephone, fonction FROM correspondant
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.database.sqlite.SQLiteProgram.native_compile(Native Method)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:110)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:49)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:49)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1118)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1006)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:964)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1041)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at com.formation.bd.DBAdapter.recupererLaListeDesCorrespondant(DBAdapter.java:90)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at com.formation.bd.Liste.DataBind(Liste.java:30)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at com.formation.bd.Liste.onCreate(Liste.java:19)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
    05-14 21:55:14.097: ERROR/AndroidRuntime(865):     ... 11 more

  2. #2
    Modérateur
    Avatar de Hizin
    Homme Profil pro
    Développeur mobile
    Inscrit en
    Février 2010
    Messages
    2 180
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur mobile

    Informations forums :
    Inscription : Février 2010
    Messages : 2 180
    Points : 5 072
    Points
    5 072
    Par défaut
    Quel est le problème ?
    Les messages sont plutôt clairs :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    05-14 21:55:14.097: ERROR/AndroidRuntime(865): Caused by: android.database.sqlite.SQLiteException: no such column: id: , while compiling: SELECT id, nom, prenom, adresse, gouvernerat, mail, telephone, fonction FROM correspondant
    05-14 21:49:49.787: ERROR/AndroidRuntime(798): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
    C'est Android, PAS Androïd, ou Androïde didiou !
    Le premier est un OS, le second est la mauvaise orthographe du troisième, un mot français désignant un robot à forme humaine.

    Membre du comité contre la phrase "ça marche PAS" en titre et/ou explication de problème.

    N'oubliez pas de consulter les FAQ Android et les cours et tutoriels Android

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Problème avec une exception logcat
    Par bounasri dans le forum Android
    Réponses: 12
    Dernier message: 10/05/2011, 15h06
  2. VC++ Direct3D8, problème avec LPD3DXFONT et LPD3DTEXTURE8
    Par Magus (Dave) dans le forum DirectX
    Réponses: 3
    Dernier message: 03/08/2002, 11h10
  3. Problème avec le type 'Corba::Any_out'
    Par Steven dans le forum CORBA
    Réponses: 2
    Dernier message: 14/07/2002, 18h48
  4. Problème avec la mémoire virtuelle
    Par Anonymous dans le forum CORBA
    Réponses: 13
    Dernier message: 16/04/2002, 16h10

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo