Introducing DataGrid to an older code base

191 views
Skip to first unread message

wytten

unread,
Apr 25, 2012, 10:09:13 AM4/25/12
to google-we...@googlegroups.com
I'm having a problem trying to convert an older (GWT 2.1) app to
use the new DataGrid class.  The app was successfully upgraded to
GWT 2.4 months ago, but this is the first time we are trying to
introduce new 2.4 features.

When I run in development mode, the GWT Development Mode window
logs the following:

    00:00:32.151  [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
      00:00:32.151  [WARN] com.google.gwt.user.client.ui.NativeHorizontalScrollbar_NativeHorizontalScrollbarUiBinderImpl



Meanwhile an exception is caught in the client:

    java.lang.ExceptionInInitializerError
     at com.google.gwt.user.client.ui.CustomScrollPanel.<init>(CustomScrollPanel.java:196)
     at com.google.gwt.user.client.ui.CustomScrollPanel.<init>(CustomScrollPanel.java:233)
     at com.google.gwt.user.cellview.client.DataGrid.<init>(DataGrid.java:631)
     at com.google.gwt.user.cellview.client.DataGrid.<init>(DataGrid.java:570)
     at com.google.gwt.user.cellview.client.DataGrid.<init>(DataGrid.java:557)
     at com.google.gwt.user.cellview.client.DataGrid.<init>(DataGrid.java:534)
     at com.google.gwt.user.cellview.client.DataGrid.<init>(DataGrid.java:525)



Line 196 of CustomScrollPanel.java reads:

    setHorizontalScrollbar(new NativeHorizontalScrollbar(hResources), AbstractNativeScrollbar
        .getNativeScrollbarHeight());



This seems to indicate that the exception is tied to the
warnings, but I don't know what it all means.

Stephen Lawlor

unread,
Apr 26, 2012, 6:54:57 AM4/26/12
to google-we...@googlegroups.com
I think this might be the underlying problem:
   [ERROR] Errors in 'jar:file:/C:/Program%20Files/eclipse-i/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201203300216-rel-r37/gwt-2.4.0/gwt-user.jar!/com/google/gwt/user/client/ui/NativeHorizontalScrollbar.java'
      [ERROR]  Internal compiler error
java.lang.AbstractMethodError: com.documentum.xerces_2_6_2.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
at com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentBuilder.java:127)
at com.documentum.xerces_2_6_2.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:491)
at com.documentum.xerces_2_6_2.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:806)
at com.documentum.xerces_2_6_2.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:325)
at com.documentum.xerces_2_6_2.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:620)
at com.documentum.xerces_2_6_2.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1635)
at com.documentum.xerces_2_6_2.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338)
at com.documentum.xerces_2_6_2.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:831)
at com.documentum.xerces_2_6_2.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:761)
at com.documentum.xerces_2_6_2.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at com.documentum.xerces_2_6_2.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1184)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at com.google.gwt.uibinder.rebind.W3cDomHelper.documentFor(W3cDomHelper.java:64)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.getW3cDoc(UiBinderGenerator.java:201)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:171)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:127)
at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)

   [ERROR] Unexpected internal compiler error
java.lang.AbstractMethodError: com.documentum.xerces_2_6_2.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
at com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentBuilder.java:127)
at com.documentum.xerces_2_6_2.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:491)
at com.documentum.xerces_2_6_2.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:806)
at com.documentum.xerces_2_6_2.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:325)
at com.documentum.xerces_2_6_2.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:620)
at com.documentum.xerces_2_6_2.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1635)
at com.documentum.xerces_2_6_2.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338)
at com.documentum.xerces_2_6_2.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:831)
at com.documentum.xerces_2_6_2.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:761)
at com.documentum.xerces_2_6_2.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at com.documentum.xerces_2_6_2.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1184)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at com.google.gwt.uibinder.rebind.W3cDomHelper.documentFor(W3cDomHelper.java:64)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.getW3cDoc(UiBinderGenerator.java:201)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:171)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:127)
at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)

wytten

unread,
Apr 26, 2012, 10:44:08 AM4/26/12
to google-we...@googlegroups.com
This was caused by an older version of Xerces being in the classpath (in the guise of an EMC Documentum jar)
Reply all
Reply to author
Forward
0 new messages