Can we try upgrading GeoTools to use a newer version of EMF? If that works, make the Jira report with a patch etc...
Jody On 10/02/2011, at 2:22 AM, Matthias Lendholt wrote: > Dear udig-devel, geotools-devel, > > (Sorry for crossposting but this affects both uDig and Geotools) > > Recently we upgraded our project from eclipse 3.5, udig-sdk_1.2RC1 > (geotools 2.6.2) to eclipse 3.6, udig_sdk_1.2.1 (with geotools 2.7-RC1). > > > For the integretion / wrapping of WPS processes the application uses > gt-process (org.geotools.process) and gt-wps (org.geotools.data.wps). > > Since the upgrade java.lang.InstantiationError are thrown whenever the > application tries to use org.geotools.data.wps.WPSFactory to access a > WPS. Stacktrace below. > > The exception is thrown in > jar: net.opengis.wps-2.7-RC1.jar > file: net.opengis.wps10.impl.UOMsTypeImpl > row 81: uOM = new EcoreEList(Unit.class, this ); > > > EcoreEList is in org.eclipse.emf.ecore_2.6.1.v20100914-1218.jar > > It's not easy to debug... but I guess somewhere between geotools 2.6.2 > and 2.7-RC1 the compatibility with emf.ecore was lost. In > udig-sdk_1.2RC1 the version emf.ecore_2.5.0 was used and included (and > it worked). I haven't checked the constructor details so far but maybe > something has changed here. > > Any ideas / help? > > > > org.dews_online.ccui.spc.wps 4 0 2011-02-09 11:12:11.871 > !MESSAGE GetSupportedGeocodeTypesProcess: Parsing failed for Supported: > java.lang.InstantiationError: org.eclipse.emf.ecore.util.EcoreEList > !STACK 0 > java.lang.RuntimeException: Parsing failed for Supported: > java.lang.InstantiationError: org.eclipse.emf.ecore.util.EcoreEList > at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:158) > at > org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:215) > at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:181) > at > org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java:222) > at > org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java:607) > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown > Source) > at > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown > > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.geotools.xml.Parser.parse(Parser.java:223) > at org.geotools.xml.Parser.parse(Parser.java:151) > at > org.geotools.data.wps.response.DescribeProcessResponse.<init>(DescribeProcessResponse.java:67) > at > org.geotools.data.wps.WPS1_0_0$InternalDescribeProcessRequest.createResponse(WPS1_0_0.java:135) > at > org.geotools.data.ows.AbstractWPS.internalIssueRequest(AbstractWPS.java:419) > at > org.geotools.data.wps.WebProcessingService.issueRequest(WebProcessingService.java:235) > at > org.dews_online.geotools.wps.SimpleWpsConnector.getWpsFactory(SimpleWpsConnector.java:74) > at > org.dews_online.geotools.wps.SimpleWpsConnector.executeProcess(SimpleWpsConnector.java:113) > at > org.dews_online.ccui.spc.wps.processwrapper.AProcess.executeProcess(AProcess.java:40) > at > org.dews_online.ccui.spc.wps.processwrapper.GetGeocodesProcess.getGeoCodes(GetGeocodesProcess.java:63) > at > org.dews_online.ccui.spc.wps.processwrapper.GetGeocodesProcess.getGeoCodes(GetGeocodesProcess.java:87) > at > org.dews_online.ccui.ilc.control.jobs.UpdateGeocodeJob.run(UpdateGeocodeJob.java:41) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) > > Caused by: java.lang.InstantiationError: > org.eclipse.emf.ecore.util.EcoreEList > at net.opengis.wps10.impl.UOMsTypeImpl.getUOM(UOMsTypeImpl.java:81) > at net.opengis.wps10.impl.UOMsTypeImpl.eGet(UOMsTypeImpl.java:94) > at > org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1021) > at > org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1013) > at > org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1008) > at org.geotools.xml.EMFUtils.get(EMFUtils.java:75) > at org.geotools.xml.EMFUtils.isCollection(EMFUtils.java:140) > at > org.geotools.xml.AbstractComplexEMFBinding.setProperty(AbstractComplexEMFBinding.java:231) > at > org.geotools.xml.AbstractComplexEMFBinding.setProperties(AbstractComplexEMFBinding.java:204) > at > org.geotools.xml.AbstractComplexEMFBinding.parse(AbstractComplexEMFBinding.java:145) > at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:149) > ... 25 more > > > > > [1] http://udig.refractions.net/gallery/dews/ > > > Thanks, Matthias > > > -- > [matthias.lendh...@gfz-potsdam.de] > GFZ German Research Centre for Geosciences > CeGIT Centre for GeoInformation Technology > Tel +49 331 288-1687; FAX +49 331 288-1703 > Telegrafenberg A20, 14473 Potsdam, Germany > Blog http://zeigertelegraph.gfz-potsdam.de > Contact MECARD QR Code: http://goo.gl/488J > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Geotools-devel mailing list > Geotools-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel