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

GWT et Vaadin Java Discussion :

Erreur lors de la Compilation d'une Application Smart GWT


Sujet :

GWT et Vaadin Java

  1. #1
    Membre à l'essai
    Inscrit en
    Avril 2007
    Messages
    25
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations forums :
    Inscription : Avril 2007
    Messages : 25
    Points : 17
    Points
    17
    Par défaut Erreur lors de la Compilation d'une Application Smart GWT
    Bonjour, je suis débutant dans la technologie GWT, j'ai eu un problème répété autant de fois ( [ERROR] Line 38: No source code is available for type com.smartgwt.client.widgets.form.fields.TextItem;did you forget to inherit a required module? ...) mais j'ai pas su résoudre l'erreur générée pour mon cas.

    Voici le message d'erreur en faite :
    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
     
    Compiling module com.hraccess.wt.cl.WTWebClient
       Validating newly compiled units
          Ignored 6 units with compilation errors in first pass.
    Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
       Finding entry point classes
          [ERROR] Errors in 'file:/C:/myWorkspace/WTWebClient/src/main/java/com/hraccess/wt/cl/client/WTWebClient.java'
             [ERROR] Line 38: No source code is available for type com.smartgwt.client.widgets.form.fields.TextItem; did you forget to inherit a required module?
             [ERROR] Line 49: No source code is available for type com.smartgwt.client.widgets.form.fields.FormItem; did you forget to inherit a required module?
             [ERROR] Line 86: No source code is available for type com.smartgwt.client.widgets.Label; did you forget to inherit a required module?
             [ERROR] Line 100: No source code is available for type com.smartgwt.client.widgets.form.fields.SelectItem; did you forget to inherit a required module?
             [ERROR] Line 105: No source code is available for type com.smartgwt.client.widgets.form.fields.events.ChangedHandler; did you forget to inherit a required module?
             [ERROR] Line 108: No source code is available for type com.smartgwt.client.widgets.form.fields.events.ChangedEvent; did you forget to inherit a required module?
             [ERROR] Line 137: No source code is available for type com.smartgwt.client.widgets.layout.HLayout; did you forget to inherit a required module?
             [ERROR] Line 138: No source code is available for type com.smartgwt.client.data.DataSource; did you forget to inherit a required module?
             [ERROR] Line 139: No source code is available for type com.smartgwt.client.widgets.form.DynamicForm; did you forget to inherit a required module?
             [ERROR] Line 140: No source code is available for type com.smartgwt.client.widgets.grid.ListGrid; did you forget to inherit a required module?
             [ERROR] Line 142: No source code is available for type com.smartgwt.client.widgets.IButton; did you forget to inherit a required module?
             [ERROR] Line 155: No source code is available for type com.smartgwt.client.types.Alignment; did you forget to inherit a required module?
             [ERROR] Line 156: No source code is available for type com.smartgwt.client.widgets.events.ClickHandler; did you forget to inherit a required module?
             [ERROR] Line 157: No source code is available for type com.smartgwt.client.widgets.events.ClickEvent; did you forget to inherit a required module?
             [ERROR] Line 168: No source code is available for type com.smartgwt.client.widgets.layout.VLayout; did you forget to inherit a required module?
             [ERROR] Line 178: No source code is available for type com.smartgwt.client.widgets.grid.events.RecordClickHandler; did you forget to inherit a required module?
             [ERROR] Line 179: No source code is available for type com.smartgwt.client.widgets.grid.events.RecordClickEvent; did you forget to inherit a required module?
          [ERROR] Unable to find type 'com.hraccess.wt.cl.client.WTWebClient'
             [ERROR] Hint: Previous compiler errors may have made this type unavailable
             [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
    Exception in thread "UnitWriteThread" java.lang.NullPointerException
    	at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:182)
    	at com.google.gwt.dev.util.DiskCacheToken.writeObject(DiskCacheToken.java:91)
    	at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
    	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
    	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
    	at com.google.gwt.dev.javac.PersistentUnitCache$UnitWriter.run(PersistentUnitCache.java:226)
    voici le code du fichier de WtWebClient.gwt.xml
    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <module rename-to='wtwebclient'>
      <!-- Inherit the core Web Toolkit stuff.                        -->
      <inherits name='com.google.gwt.user.User'/>
     
      <inherits name='com.google.gwt.user.theme.clean.Clean'/>
     
      <!-- Specify the app entry point class.                         -->
      <entry-point class='com.wt.cl.client.WTWebClient'/>
     
      <!-- Specify the paths for translatable code                    -->
      <source path='client'/>
      <source path='client/data'/>
      <source path='shared'/>  
    </module>
    la classe WTWebClient est dans le package com.wt.cl.client et fait des appels au classes sous ce package com.wt.cl.client.data.

    Je suis bloqué, Merci par avance.

  2. #2
    Membre à l'essai
    Inscrit en
    Avril 2007
    Messages
    25
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations forums :
    Inscription : Avril 2007
    Messages : 25
    Points : 17
    Points
    17
    Par défaut
    problème résolu, Il faut rajouter le <inherits name="com.smartgwt.SmartGwt" />

  3. #3
    Membre actif
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    165
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2006
    Messages : 165
    Points : 248
    Points
    248
    Par défaut
    did you forget to inherit a required module
    cf: http://www.developpez.net/forums/d11...rtgwt-eclipse/

    Le post n'est pas très loin en dessous du tien^^

Discussions similaires

  1. Erreur lors du Run & Debug d'une application
    Par hadler dans le forum NetBeans
    Réponses: 2
    Dernier message: 26/04/2009, 12h37
  2. Réponses: 16
    Dernier message: 07/12/2007, 12h11
  3. Erreur lors de l'installation d'une application VB
    Par akesjv dans le forum Installation, Déploiement et Sécurité
    Réponses: 1
    Dernier message: 27/03/2007, 11h41
  4. [.NET 2.0] Erreur lors de l'utilisation d'une application .NET
    Par Jérôme Lambert dans le forum Framework .NET
    Réponses: 6
    Dernier message: 21/11/2006, 15h45
  5. Erreur lors de l'installation d'une application
    Par omlip dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 16/11/2006, 12h21

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