1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    42
    Vote Rating
    0
    obender is on a distinguished road

      0  

    Default [CLOSED] B4 GWT compiler exception

    [CLOSED] B4 GWT compiler exception


    Here is the code that causes the compiler exception:

    Code:
        public void onModuleLoad()
        {
            ContentPanel cp1 = new ContentPanel();
            cp1.addListener( Events.KeyPress, new KeyEventListener() );
    
            RootPanel.get().add( cp1 );
        }
    
        private class KeyEventListener implements Listener<KeyEvent>
        {
            public void handleEvent ( KeyEvent be )
            {
                if ( be.type == Events.KeyPress && 13 == be.getKeyCode () ) {
                 ...
                }
            }
        }
    Exception:
    Code:
    Error:An internal compiler exception occurred
    Error:at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:538)
    Error:at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:529)
    Error:at com.google.gwt.dev.jjs.ast.JModVisitor$NodeContext.traverse(JModVisitor.java:154)
    Error:at com.google.gwt.dev.jjs.ast.JModVisitor.doAccept(JModVisitor.java:192)
    Error:at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:65)
    Error:at com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:76)
    Error:at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:527)
    Error:at com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:42)
    Error:at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:100)
    Error:at com.google.gwt.dev.jjs.ast.JModVisitor.doAcceptWithInsertRemove(JModVisitor.java:212)
    Error:at com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:81)
    Error:at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:36)
    Error:at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:73)
    Error:at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:52)
    Error:at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:69)
    Error:at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:189)
    Error:at com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:62)
    Error:at com.google.gwt.dev.jjs.ast.JModVisitor.doAccept(JModVisitor.java:202)
    Error:at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:77)
    Error:at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:799)
    Error:at com.google.gwt.dev.jjs.impl.EqualityNormalizer.execImpl(EqualityNormalizer.java:198)
    Error:at com.google.gwt.dev.jjs.impl.EqualityNormalizer.exec(EqualityNormalizer.java:187)
    Error:at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScriptCompiler.java:424)
    Error:at com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java:511)
    Error:at com.google.gwt.dev.GWTCompiler.compilePermutations(GWTCompiler.java:442)
    Error:at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:358)
    Error:at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564)
    Error:at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
    Error:at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)
    Error:at com.google.gwt.dev.jjs.impl.EqualityNormalizer$BreakupAssignOpsVisitor.endVisit(EqualityNormalizer.java:86)
    Error:at com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:79)
    Error:at Gwt_15_Gxt_10_Test.java(87): null.nullField == 420
    Error:at Gwt_15_Gxt_10_Test.java(87): null.nullField == 420 && 13 == null.nullMethod()
    Error:at Gwt_15_Gxt_10_Test.java(85): {
    Error:at Gwt_15_Gxt_10_Test.java(85): public final void handleEvent(<null> be);
    Error:at Gwt_15_Gxt_10_Test.java(83): final class Gwt_15_Gxt_10_Test$KeyEventListener extends Object implements Listener
    Error:<no source info>: <JProgram>

  2. #2
    Ext User
    Join Date
    Apr 2008
    Posts
    42
    Vote Rating
    0
    obender is on a distinguished road

      0  

    Default


    I've replaced the KeyEvent with ComponentEvent and the GWT compiler error went away but now I'm getting the new exception:
    Code:
    Error:[ERROR] Line 36: Unexpected exception while processing element 'inherits'
    Error:at java.lang.ClassLoader.defineClass1(Native Method)
    Error:at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    Error:at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    Error:at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    Error:at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    Error:at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    Error:at java.security.AccessController.doPrivileged(Native Method)
    Error:at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    Error:at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    Error:at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    Error:at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    Error:at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Error:at com.google.gwt.benchmarks.rebind.BenchmarkGenerator.<clinit>(BenchmarkGenerator.java:66)
    Error:at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    Error:at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    Error:at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    Error:at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    Error:at java.lang.Class.newInstance0(Class.java:350)
    Error:at java.lang.Class.newInstance(Class.java:303)
    Error:at com.google.gwt.dev.cfg.ModuleDefSchema$ObjAttrCvt.convertToArg(ModuleDefSchema.java:670)
    Error:at com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64)
    Error:at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:214)
    Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:257)
    Error:at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
    Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:878)
    Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
    Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    Error:at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    Error:at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    Error:at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    Error:at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
    Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:310)
    Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48)
    Error:at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:381)
    Error:at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:244)
    Error:at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:194)
    Error:at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    Error:at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Error:at java.lang.reflect.Method.invoke(Method.java:585)
    Error:at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:223)
    Error:at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
    Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872)
    Error:at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:156)
    Error:at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:270)
    Error:at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:128)
    Error:at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:109)
    Error:at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:562)
    Error:at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
    Error:at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)
    Error:Failure while parsing XML
    Error:at com.google.gwt.dev.util.xml.DefaultSchema.onHandlerException(DefaultSchema.java:56)
    Error:at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:65)
    Error:at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:233)
    Error:[ERROR] Line 5: Unexpected exception while processing element 'inherits'
    Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:334)

  3. #3
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    First, ContentPanel does not fire KeyPress. You should use a KeyNav:

    Code:
      public void onModuleLoad() {
        ContentPanel cp1 = new ContentPanel();
        new KeyNav<ComponentEvent>(cp1) {
          @Override
          public void onEnter(ComponentEvent ce) {
            System.out.println("enter");
          }
        };
        RootPanel.get().add(cp1);
      }

  4. #4
    Ext User
    Join Date
    Apr 2008
    Posts
    42
    Vote Rating
    0
    obender is on a distinguished road

      0  

    Default


    I don't think that the exception in my second message caused by that code.
    Basically I've removed it all together and still getting the same exception.
    In your experience what could cause the "Unexpected exception while processing element 'inherits'" with references to problems with class loader and XML parsing failures (full stack trace posted above)?
    Maybe you know about any standard omissions that people do while migrating from myGWT 0.5.x to GXT that could cause this type of issues?

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi