Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    NoClassDefFound AbstractLinker

    I am using smartgwtee-3.0-NB-20120514 and when I run in dev mode I get this linking error that I can't resolve. I took a good look at my .ds.xml files and don't see an error; I also checked the FAQ points regarding datasource issues and I've satisfied all those.

    I'm currently working on several classes that extend BasicDataSource, so I wonder if I'm using classes there (BufferedReader, InputStreamReader, to read & parse files) that aren't linking (?)

    Code:
    Loading modules
       foo.ServiceManagementInterface
          Loading inherited module 'com.smartgwtee.SmartGwtEE'
             Loading inherited module 'com.smartgwt.SmartGwtNoScript'
                [ERROR] Unexpected error while processing XML
    java.lang.NoClassDefFoundError: com/google/gwt/core/ext/linker/AbstractLinker
    	at java.lang.ClassLoader.findBootstrapClass(Native Method)
    	at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:927)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	at com.google.gwt.dev.cfg.ModuleDefSchema$ClassAttrCvt.convertToArg(ModuleDefSchema.java:886)
    	at com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64)
    	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:221)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:495)
    	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:495)
    	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:198)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:324)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:156)
    	at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:992)
    	at com.google.gwt.dev.DevMode.loadModule(DevMode.java:557)
    	at com.google.gwt.dev.DevMode.doStartup(DevMode.java:443)
    	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
    	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
             [ERROR] Line 8: Unexpected exception while processing element 'inherits'
    com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:299)
    	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:495)
    	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:495)
    	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:198)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:324)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:156)
    	at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:992)
    	at com.google.gwt.dev.DevMode.loadModule(DevMode.java:557)
    	at com.google.gwt.dev.DevMode.doStartup(DevMode.java:443)
    	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
    	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
             [ERROR] Failure while parsing XML
    com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    	at com.google.gwt.dev.util.xml.DefaultSchema.onHandlerException(DefaultSchema.java:58)
    	at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:66)
    	at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:66)
    	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:240)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:495)
    	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:198)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:324)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:156)
    	at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:992)
    	at com.google.gwt.dev.DevMode.loadModule(DevMode.java:557)
    	at com.google.gwt.dev.DevMode.doStartup(DevMode.java:443)
    	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
    	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
             [ERROR] Unexpected error while processing XML
    com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:371)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:495)
    	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:198)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:324)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:156)
    	at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:992)
    	at com.google.gwt.dev.DevMode.loadModule(DevMode.java:557)
    	at com.google.gwt.dev.DevMode.doStartup(DevMode.java:443)
    	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
    	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
          [ERROR] Line 22: Unexpected exception while processing element 'inherits'
    com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:299)
    	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:495)
    	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:198)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:324)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:156)
    	at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:992)
    	at com.google.gwt.dev.DevMode.loadModule(DevMode.java:557)
    	at com.google.gwt.dev.DevMode.doStartup(DevMode.java:443)
    	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
    	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
          [ERROR] Failure while parsing XML
    com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    	at com.google.gwt.dev.util.xml.DefaultSchema.onHandlerException(DefaultSchema.java:58)
    	at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:66)
    	at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:66)
    	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:240)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:198)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:324)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:156)
    	at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:992)
    	at com.google.gwt.dev.DevMode.loadModule(DevMode.java:557)
    	at com.google.gwt.dev.DevMode.doStartup(DevMode.java:443)
    	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
    	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
          [ERROR] Unexpected error while processing XML
    com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:371)
    	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
    	at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:198)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:324)
    	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:156)
    	at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:992)
    	at com.google.gwt.dev.DevMode.loadModule(DevMode.java:557)
    	at com.google.gwt.dev.DevMode.doStartup(DevMode.java:443)
    	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
    	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
    [ERROR] shell failed in doStartup method
    Code:
    <DataSource 
    	ID="imagery"
    	serverConstructor="foo.server.ImageryConfigurationDS">
    	<fields>
    		<field name="NAME" 	  		type="text"	   title="Name"              primaryKey="true"/>
    		<field name="VERSION" 		type="number"  title="Version"  		 />
    		<field name="MAX_COUNT"     type="number"  title="Maximum Count"     hidden="true"/>
    		<field name="USE_MAX_COUNT" type="boolean" title="Use Maximum Count" hidden="true"/>
    		<field name="LIFESPAN" 		type="number"  title="Lifespan"      	 hidden="true"/>
    		<field name="USE_LIFESPAN"  type="boolean" title="Use Lifespan"      hidden="true"/>
    		<field name="EXP_POLICY"    type="text"    title="Expiration Policy" >
    			<valueMap>
    				<value>MAX_COUNT</value>
    				<value>LIFESPAN</value>	
    			</valueMap>
    		</field>
    		<field name="EXP_VALUE"     type="number" title="Expiration Value"/>
    		<field name="CELL_SIZE_X" 	type="number" title="Cell Size X"/>
    		<field name="CELL_SIZE_Y" 	type="number" title="Cell Size Y"/>
    		<field name="COVERAGE_TYPE" type="text"   title="Coverage Type">
    			<valueMap>
    				<value>MESO</value>
    				<value>CONUS</value>				
    				<value>FullDisk</value>
    			</valueMap>
    		</field>
    		<field name="RESOLUTION"    type="text" title="Resolution">
    			<valueMap>
    				<value>0.5</value>
    				<value>1</value>
    				<value>10</value>
    				<value>20</value>
    				<value>25</value>
    				<value>50</value>
    				<value>60</value>
    			</valueMap>
    		</field>
    		<field name="PIXEL_SIZE" 	type="number" title="Pixel Size"/>
    		<field name="PERSIST" 		type="boolean" title="Persisted"/>
    	</fields>	
    </DataSource>
    Code:
    package foo.server;
    
    import foo.bar.df.exception.ConfigurationExistsException;
    import foo.bar.df.model.AbstractConfiguration;
    import foo.bar.df.model.Descriptor;
    import foo.bar.df.model.ImageryConfiguration;
    import foo.bar.df.model.box;
    import foo.jpa.df.persistanceMgr;
    import foo.jpa.df.model.ImageryMask;
    
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Set;
    
    import com.isomorphic.datasource.BasicDataSource;
    import com.isomorphic.datasource.DSRequest;
    import com.isomorphic.datasource.DSResponse;
    
    
    public class ImageryConfigurationDS extends BasicDataSource
    {
       /** Generated serial version ID */
       private static final long       serialVersionUID   = 8753187481010610953L;
    
       // data source fields
       private static final String     ID                 = "ID";
       private static final String     NAME               = "NAME";
       private static final String     VERSION            = "VERSION";
       private static final String     EXP_POLICY         = "EXP_POLICY";
       private static final String     EXP_VALUE          = "EXP_VALUE";
       private static final String     LIFESPAN           = "LIFESPAN";
       private static final String     MAX_COUNT          = "MAX_COUNT";
       private static final String     CELL_SIZE_X        = "CELL_SIZE_X";
       private static final String     CELL_SIZE_Y        = "CELL_SIZE_Y";
       private static final String     COVERAGE_TYPE      = "COVERAGE_TYPE";
       private static final String     RESOLUTION         = "RESOLUTION";
       private static final String     PIXEL_SIZE         = "PIXEL_SIZE";
       
       public DSResponse executeAdd(DSRequest aRequest) throws Exception
       {
          // initialize
          ImageryConfiguration configuration = null;
          AbstractConfiguration result = null;
          
          @SuppressWarnings("unchecked")
          Map<String, Object> values = aRequest.getClientSuppliedValues();
          
          String name = values.get(NAME).toString();
          int version = Integer.parseInt(values.get(VERSION).toString());
          
          // create the Descriptor
          Descriptor descriptor = new Descriptor(name, version);
    
          int cellsizeX = Integer.parseInt(values.get(CELL_SIZE_X).toString());
          int cellsizeY = Integer.parseInt(values.get(CELL_SIZE_Y).toString());
          int pixelSize = Integer.parseInt(values.get(PIXEL_SIZE).toString());
          
          // derive required parameters from coverage type and resolution
          String coverage = values.get(COVERAGE_TYPE).toString();
          Double resolution = Double.parseDouble(values.get(RESOLUTION).toString());
          
          ImageryMask mask = PersistanceMgr.getImageryMask(coverage, resolution);
          
          Set<box> boxes = MaskUtility.getUndefinedRegions(mask.getFileLocation());      
          int wholeSizeX = Integer.valueOf(mask.getWholeImageSizeX().toPlainString());
          int wholeSizeY = Integer.valueOf(mask.getWholeImageSizeY().toPlainString());
    
          // construct the configuration
          if (values.get(EXP_POLICY).toString().contains("X"))
          {
             int maxcount = Integer.parseInt(values.get(MAX_COUNT).toString());
             configuration = new ImageryConfiguration(descriptor,
                                                      maxcount,
                                                      cellsizeX,
                                                      cellsizeY,
                                                      wholeSizeX,
                                                      wholeSizeY,
                                                      boxes,
                                                      pixelSize);
          }
          else
          {
             long lifespan = Long.parseLong(values.get(LIFESPAN).toString());
             configuration = new ImageryConfiguration(descriptor,
                                                      lifespan,
                                                      cellsizeX,
                                                      cellsizeY,
                                                      wholeSizeX,
                                                      wholeSizeY,
                                                      boxes,
                                                      pixelSize);
          }
    
          if (configuration != null)
          {
             manager dfmgr = new manager();
             if (dfmgr != null)
             {
                try
                {
                   result = dfmgr.addConfiguration(configuration);
                }
                catch (ConfigurationExistsException cee)
                {
                   // returns null configuration, to be handled client-side
                }
             }
          }
    
          return new DSResponse(result);
       }
    
       public DSResponse executeFetch(DSRequest aRequest) throws Exception
       {
          String name = aRequest.getAdvancedCriteria().getFieldValue(NAME).toString();
          int version = Integer.parseInt(aRequest.getAdvancedCriteria().getFieldValue(VERSION).toString());
          ImageryConfiguration configuration = null;
          
          manager dfmgr = new manager();
    
          if (dfmgr != null)
          {
             for (Descriptor desc : dfmgr.getAllImageryDescriptors())
             {
                if (desc.getName().equalsIgnoreCase(name) && desc.getVersion() == version)
                {
                   configuration = dfmgr.getImageryConfiguration(desc);
                   break;
                }
             }
          }
    
          // put configuration attributes into a map for display
          Map<String, Object> map = new HashMap<String, Object>();
          map.put(NAME, configuration.getDescriptor().getName());
          map.put(VERSION, configuration.getDescriptor().getVersion());
          map.put(ID, configuration.getDescriptor().getId());
    
          if (configuration.expiresByMaxCount() && configuration.getMaximumCount() >= 0)
          {
             map.put(EXP_POLICY, "Maximum Count");
             map.put(EXP_VALUE, configuration.getMaximumCount());
          }
          else if (configuration.expiresByTimeToLive() && configuration.getTimeToLive() >= 0)
          {
             map.put(EXP_POLICY, "Time to Live");
             map.put(EXP_VALUE, configuration.getTimeToLive());
          }
          map.put(CELL_SIZE_X, configuration.getCellSizeX());
          map.put(CELL_SIZE_Y, configuration.getCellSizeY());
                
          // determine coverage type
          String coverage = "CONUS";
          map.put(COVERAGE_TYPE, coverage);
          String resolution = "1";
          map.put(RESOLUTION, resolution);
          map.put(PIXEL_SIZE, configuration.getPixelSizeInBytes());
    
          return new DSResponse(configuration);
       }
    
       public DSResponse executeRemove(DSRequest aRequest) throws Exception
       {
          // removal of Data Configurations is not allowed
          return null;
       }
    
       public DSResponse executeUpdate(DSRequest aRequest) throws Exception
       {
          // modification of Data Configurations is not allowed
          return null;
       }
    
    }

    Code:
    package foo.server;
    
    import foo.bar.df.model.box;
    
    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.HashSet;
    import java.util.Set;
    
    public class MaskUtility
    {
       public static Set<box> getUndefinedRegions(String aFileLocation)
       {
          HashSet<box> boxes = new HashSet<box>();
    
          FileInputStream dataCSV = null;
          try
          {
             dataCSV = new FileInputStream(aFileLocation);
          }
          catch (FileNotFoundException ex)
          {
             System.out.println("no file");
          }
          
          if (dataCSV != null)
          {
             BufferedReader reader = new BufferedReader(new InputStreamReader(dataCSV));
             try
             {
                while (true) // loop forever
                {
                   String line = reader.readLine();
                   if (line != null)
                   {
                      String[] tokens = line.split(",");
                      if ((tokens.length % 4) == 0)
                      {
                         for (int i = 0; i <= tokens.length - 4; i = i + 4)
                         {
                            int minX = Integer.valueOf(tokens[i]);
                            int minY = Integer.valueOf(tokens[i + 1]);
                            int maxX = Integer.valueOf(tokens[i + 2]);
                            int maxY = Integer.valueOf(tokens[i + 3]);
    
                            box plr = new box(minX, minY, maxX, maxY);
                            boxes.add(plr);
                         }
                      }
                      else // data error
                      {
                         break;
                      }
                   }
                   else // end of file
                   {
                      break;
                   }
                }
             }
             catch (IOException ex)
             {
                // ?
             }
          }
          return boxes;
       }
    
    }
    I hope someone can help me figure out where to look.
    Thanks-

    #2
    We can only speculate, but, this suggests there might be two different versions of GWT in your class path, or perhaps two different versions of XML-related .jars. And since it was presumably recently introduced, look for changes in this area rather than with your app-specific files (such as .ds.xml files)

    Comment


      #3
      Thanks - that makes sense. I'll try to track that down.

      Comment

      Working...
      X