java - "internal compiler exception occurred" while using gxt grid -
i using gwt 2.5.1 , gxt 2.2.5, bean using:
public class modelo extends basemodel { public modelo(string nombre,string noparte,string imagen){ this.set("nombre", nombre); this.set("noparte", noparte); this.set("path", imagen); } public string getnombre(){ return (string)get("nombre"); } public string getnoparte(){ return (string)get("noparte"); } public string getpath(){ return (string)this.get("path"); }
}
//// data m working with:
public class lista { public static list<modelo> getlist() { list<modelo> datos = new arraylist<modelo>(); datos.add(new modelo("bomba wp", "3234343","selyr.jpg")); datos.add(new modelo("bomba maytag", "343544323","selyr.jpg")); datos.add(new modelo("cople wp", "12323","selyr.jpg")); datos.add(new modelo("perros wp", "545563","selyr.jpg")); datos.add(new modelo("bobinas secadora wp","534532","selyr.jpg")); datos.add(new modelo("banda maytag","3123123","selyr.jpg")); return datos; }
}
////// window configuration
public class carrito extends window { public carrito(string nombre1) { this.setheading(nombre1); this.setwidth(900); this.setheight(600); this.setresizable(false); this.setvisible(true); this.setlayout(new fitlayout()); } @override protected void onrender(element parent, int pos) { super.onrender(parent, pos); list<columnconfig> configs = new arraylist<columnconfig>(); columnconfig column = new columnconfig(); column.setid("nombre"); column.setheader("nombre producto"); column.setwidth(200); configs.add(column); columnconfig column1 = new columnconfig(); column.setid("noparte"); column.setheader("# parte"); column.setwidth(200); configs.add(column1); columnconfig column2 = new columnconfig(); column.setid("path"); column.setheader("imagen"); column.setwidth(200); configs.add(column2); liststore<modelo> listapiezas = new liststore<modelo>(); listapiezas.add(lista.getlist()); columnmodel cm = new columnmodel(configs); grid<modelo> grid = new grid<modelo>(listapiezas, cm); //grid.setstyleattribute("bordertop", "none"); //grid.setautoexpandcolumn("name"); grid.setborders(true); grid.setstriperows(true); contentpanel cp = new contentpanel(); cp.setbodyborder(false); cp.setheading("carrito"); cp.setbuttonalign(horizontalalignment.center); cp.setlayout(new fitlayout()); cp.setsize(900, 600); cp.add(grid); this.add(cp); }
}
//// error getting:
[error] internal compiler exception occurred com.google.gwt.dev.jjs.internalcompilerexception: unexpected error during visit.
at com.google.gwt.dev.jjs.ast.jvisitor.translateexception(jvisitor.java:109) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:276) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:265) @ com.google.gwt.dev.jjs.ast.jvisitor.accept(jvisitor.java:116) @ com.google.gwt.dev.jjs.ast.jcastoperation.traverse(jcastoperation.java:65) @ com.google.gwt.dev.jjs.ast.jmodvisitor.traverse(jmodvisitor.java:361) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:273) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:265) @ com.google.gwt.dev.jjs.ast.jvisitor.accept(jvisitor.java:116) @ com.google.gwt.dev.jjs.ast.jbinaryoperation.traverse(jbinaryoperation.java:81) @ com.google.gwt.dev.jjs.ast.jmodvisitor.traverse(jmodvisitor.java:361) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:273) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:265) @ com.google.gwt.dev.jjs.ast.jvisitor.accept(jvisitor.java:116) @ >com.google.gwt.dev.jjs.ast.jexpressionstatement.traverse(jexpressionstatement.java:41) @ >com.google.gwt.dev.jjs.ast.jmodvisitor$listcontextimmutable.traverse(jmodvisitor.java:170) @ >com.google.gwt.dev.jjs.ast.jmodvisitor.acceptwithinsertremoveimmutable(jmodvisitor.java:33>6) @ com.google.gwt.dev.jjs.ast.jblock.traverse(jblock.java:83) @ com.google.gwt.dev.jjs.ast.jmodvisitor.traverse(jmodvisitor.java:361) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:273) @ com.google.gwt.dev.jjs.ast.jvisitor.accept(jvisitor.java:137) @ com.google.gwt.dev.jjs.ast.jvisitor.accept(jvisitor.java:133) @ com.google.gwt.dev.jjs.ast.jmethodbody.traverse(jmethodbody.java:82) @ com.google.gwt.dev.jjs.ast.jmodvisitor.traverse(jmodvisitor.java:361) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:273) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:265) @ com.google.gwt.dev.jjs.ast.jmethod.visitchildren(jmethod.java:434) @ com.google.gwt.dev.jjs.ast.jmethod.traverse(jmethod.java:403) @ com.google.gwt.dev.jjs.ast.jmodvisitor.traverse(jmodvisitor.java:361) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:273) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:265) @ com.google.gwt.dev.jjs.impl.unifyast.mainloop(unifyast.java:900) @ com.google.gwt.dev.jjs.impl.unifyast.exec(unifyast.java:625) @ >com.google.gwt.dev.jjs.javatojavascriptcompiler.precompile(javatojavascriptcompiler.java:6>40) @ com.google.gwt.dev.jjs.javascriptcompiler.precompile(javascriptcompiler.java:33) @ com.google.gwt.dev.precompile.precompile(precompile.java:278) @ com.google.gwt.dev.precompile.precompile(precompile.java:229) @ com.google.gwt.dev.precompile.precompile(precompile.java:141) @ com.google.gwt.dev.compiler.run(compiler.java:232) @ com.google.gwt.dev.compiler.run(compiler.java:198) @ com.google.gwt.dev.compiler$1.run(compiler.java:170) @ com.google.gwt.dev.compiletaskrunner.dorun(compiletaskrunner.java:88) @ >com.google.gwt.dev.compiletaskrunner.runwithappropriatelogger(compiletaskrunner.java:82) @ com.google.gwt.dev.compiler.main(compiler.java:177) caused by: java.lang.incompatibleclasschangeerror: found interface >com.google.gwt.core.ext.typeinfo.jclasstype, class expected @ >com.extjs.gxt.ui.rebind.core.templatesgenerator$sourcegenerator.validatetype(templatesgene>rator.java:142) @ >com.extjs.gxt.ui.rebind.core.templatesgenerator$sourcegenerator.generate(templatesgenerato>r.java:97) @ >com.extjs.gxt.ui.rebind.core.templatesgenerator.generate(templatesgenerator.java:56) @ >com.google.gwt.core.ext.incrementalgenerator.generatenonincrementally(incrementalgenerator>.java:40) @ >com.google.gwt.dev.javac.standardgeneratorcontext.rungeneratorincrementally(standardgenera>torcontext.java:657) @ com.google.gwt.dev.cfg.rulegeneratewith.realize(rulegeneratewith.java:41) @ >com.google.gwt.dev.shell.standardrebindoracle$rebinder.rebind(standardrebindoracle.java:79>) @ >com.google.gwt.dev.shell.standardrebindoracle.rebind(standardrebindoracle.java:276) @ >com.google.gwt.dev.shell.standardrebindoracle.rebind(standardrebindoracle.java:265) @ >com.google.gwt.dev.distillerrebindpermutationoracle.getallpossiblerebindanswers(distillerr>ebindpermutationoracle.java:91) @ >com.google.gwt.dev.jjs.impl.unifyast$unifyvisitor.handlegwtcreate(unifyast.java:355) @ >com.google.gwt.dev.jjs.impl.unifyast$unifyvisitor.handlemagicmethodcall(unifyast.java:433) @ com.google.gwt.dev.jjs.impl.unifyast$unifyvisitor.endvisit(unifyast.java:237) @ com.google.gwt.dev.jjs.ast.jmethodcall.traverse(jmethodcall.java:243) @ com.google.gwt.dev.jjs.ast.jmodvisitor.traverse(jmodvisitor.java:361) @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:273) ... 42 more [error] @ gridview.java(1362): gwt.create(gridtemplates.class) com.google.gwt.dev.jjs.ast.jmethodcall [error] @ gridview.java(1362): (gridtemplates) gwt.create(gridtemplates.class) com.google.gwt.dev.jjs.ast.jcastoperation [error] @ gridview.java(1362): this.templates = (gridtemplates) >gwt.create(gridtemplates.class) com.google.gwt.dev.jjs.ast.jbinaryoperation [error] @ gridview.java(1362): this.templates = (gridtemplates) >gwt.create(gridtemplates.class) com.google.gwt.dev.jjs.ast.jexpressionstatement [error] @ gridview.java(1361): { this.templates = (gridtemplates) gwt.create(gridtemplates.class); } com.google.gwt.dev.jjs.ast.jblock [error] @ gridview.java(1361): { this.templates = (gridtemplates) gwt.create(gridtemplates.class); } com.google.gwt.dev.jjs.ast.jmethodbody [error] @ gridview.java(1361): protected void inittemplates();
com.google.gwt.dev.jjs.ast.jmethod c:\users\nore\documents\netbeansprojects\ventas\nbproject\build-gwt.xml:330: >the following error occurred while executing line: c:\users\nore\documents\netbeansprojects\ventas\nbproject\build-gwt.xml:479: java >returned: 1
in case runs problem. make sure you're using gxt-2.3.0-gwt22.jar library not gxt-2.3.0-gwt2.jar gwt 2.5.1
Comments
Post a Comment