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 :
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
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)
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.
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>
Je suis bloqué, Merci par avance.
Partager