compiling error in gwt

1 view
Skip to first unread message

Ken

unread,
Jun 20, 2008, 3:12:39 AM6/20/08
to Google Web Toolkit
hi all,
i'm using gwt 1.5rc1 with Cypal Studio plugin in eclipse, and got
this error when compiling, anyone can help?

[ERROR] Errors in file:/D:/Soft/Development/Eclipse/Eclipse3.3.1/
workspace/networkmanager/src/app.gwt/client/NModule.java'
[ERROR] Line 62: No source code is available for type
app.common.db.po.Staffnetconfig; did you forget to inherit a required
module?


Staffnetconfig.java

public abstract class Staffnetconfig implements IsSerializable {
private Integer id;
private String staffNo;
private String staffName;
private Date updateDt;
..........

NModule.java

NServiceAsync nservice = NService.Util.getInstance();
nservice.getUserNetInfo(curIP, new AsyncCallback() {
public void onFailure(Throwable caught) {

}
public void onSuccess(Object result) {
Staffnetconfig staff = (Staffnetconfig) result;
name.setText(staff.getStaffName());
}

Thanks for any help !

Sumit Chandel

unread,
Jun 24, 2008, 2:22:04 PM6/24/08
to Google-We...@googlegroups.com
Hi Ken,

Did you remember to add the <source path="mypath" /> in your module XML file to include the package containing the Staffnetconfig source? GWT picks up anything in the 'client' package in the same package as the module XML file, but any additional source not living in the client package must have their package explicitly included in the module XML file via the <source> tag.

Hope that helps,
-Sumit Chandel

Ken Inside

unread,
Jun 27, 2008, 5:13:42 AM6/27/08
to Google-We...@googlegroups.com
Thanks for your reply, Sumit.
i fixed it, but got a exception :
i put the hibernate initialization code in a static block on the server
side, it works well without hibernate4gwt ,  but in gwt , the code
doesn't run at all.

java.lang.NullPointerException: No Hibernate Session Factory defined !
   at
net.sf.hibernate4gwt.core.hibernate.HibernateUtil.isPersistentClass(HibernateUtil.java:233)
   at
net.sf.hibernate4gwt.core.HibernateBeanManager.mergePojo(HibernateBeanManager.java:442)
   at
net.sf.hibernate4gwt.core.HibernateBeanManager.merge(HibernateBeanManager.java:282)
   at
net.sf.hibernate4gwt.gwt.HibernateRPCHelper.parseInputParameters(HibernateRPCHelper.java:80)
   at
net.sf.hibernate4gwt.gwt.HibernateRemoteService.processCall(HibernateRemoteService.java:164)
   at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:85)
........

Ken
kenbe...@gmail.com
Reply all
Reply to author
Forward
0 new messages