I see... yeah that makes sense. So it appears that the XSD library just will not work properly with the oracle xml parser that is being found. I will have to look into if it is possible to force xsd to use a particular sax implementation for parsing.
Can you supply your patch for TransformerBase... that might provide a good place to start. Thanks, -Justin Ruben Pardo wrote: > thanks Justin, like you say, > the problem was the order of the libraries in the classpath, I have in > my classpath an > Oracle Xml Parser library, that causes the error. > I could not change the classpath, (the project doesn't work if i do it, > only the geoespatial subsystem), > I had the same problem when i need to generate SLD, and i resolve > changing the parse method of > org.geotools.xml.transform.TransformerBase (changing the way that i > produce the ContentHandler) > does i need to do something similar ? > thanks a lot in advance. > > > 2007/8/20, Justin Deoliveira <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>: > > Hi Ruben, > > Strange that the same code works in eclipse and not in JDeveloper. I > have never used JDeveloper so I cant really comment. This failure seems > to occur in the depths of the XSD library when the schema is actually > being parsed. > > I wonder if its a sax parsing thing... like a different library is the > first on the classpath then is regularily with eclipse? Thats my best > guess. Just out of curiosity have you tried running it in a java 1.4 > jdk? Also which version of geotools are you using? > > -Justin > > Ruben Pardo wrote: > > Hi, > > when i try to parse a GML document in JDeveloper i get a > > Nullpointerexception. This work fine in eclipse. > > does anybody know how can i solve this? > > > > //the snipped code > > org.geotools.xml.Configuration configuration = new > > org.geotools.gml2.GMLConfiguration(); > > org.geotools.xml.Parser parser = new org.geotools.xml.Parser( > > configuration ); > > > > String gml = outputString; > > InputStream xml = new ByteArrayInputStream(gml.getBytes()); > > // parse > > Map fc = (Map) parser.parse ( xml ); > > > > //Exception > > > > java.lang.NullPointerException > > at > > > > org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSchemaImpl.java:1953) > > at > > org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile > (XSDConcreteComponentImpl.java:986) > > at > > > > org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribute(XSDConcreteComponentImpl.java:1267) > > at org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute > > (XSDSchemaImpl.java:2339) > > at > > > > org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDConcreteComponentImpl.java:1240) > > at > > org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen > (XSDConcreteComponentImpl.java > > :2832) > > at > > > > org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSDConcreteComponentImpl.java:2864) > > at > > org.eclipse.xsd.impl.XSDSchemaImpl.setElement > (XSDSchemaImpl.java:2473) > > at org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema > > (XSDSchemaImpl.java:482) > > at > > > > org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSDResourceImpl.java > :821) > > at > org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:693) > > at org.eclipse.xsd.util.XSDResourceImpl.doLoad > > (XSDResourceImpl.java:784) > > at > > org.eclipse.emf.ecore.resource.impl.ResourceImpl.load > (ResourceImpl.java:1094) > > at > > > > org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900) > > at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad > > (ResourceSetImpl.java :249) > > at > > > > org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264) > > at > > > > org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java > > > :390) > > at > > > > org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(XSDSchemaImpl.java:533) > > at > > > > org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSchemaImpl.java:607) > > > at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema > > (XSDSchemaImpl.java:420) > > at > > > > org.eclipse.xsd.util.XSDResourceImpl.handleSchemaElement(XSDResourceImpl.java:825) > > at > > > org.eclipse.xsd.util.XSDResourceImpl.findSchemas(XSDResourceImpl.java:791) > > at org.eclipse.xsd.util.XSDResourceImpl.doLoad > > (XSDResourceImpl.java:695) > > at org.eclipse.xsd.util.XSDResourceImpl.doLoad > (XSDResourceImpl.java:784) > > at > > > > org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094) > > at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load > > (ResourceImpl.java :900) > > at org.geotools.xml.Schemas.parse(Schemas.java:230) > > at > org.geotools.xml.SchemaLocator.createSchema(SchemaLocator.java:128) > > at > org.geotools.xml.SchemaLocator.locateSchema(SchemaLocator.java :88) > > at > > > org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:277) > > at > org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown > > Source) > > at > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement > > (Unknown Source) > > at > > > > org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(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:184) > > at org.geotools.xml.Parser.parse(Parser.java:146) > > at > > > > es.juntadeandalucia.cultura.mosaico.servicios.sig.ServicioDeInfoAlfanumericaSIGImpl.main > (ServicioDeInfoAlfanumericaSIGImpl.java:151) > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > !DSPAM:4007,46c9550c125252085621377! > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Geotools-gt2-users mailing list > > Geotools-gt2-users@lists.sourceforge.net > <mailto:Geotools-gt2-users@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > > > > !DSPAM:4007,46c9550c125252085621377! > > > -- > Justin Deoliveira > The Open Planning Project > http://topp.openplans.org > > > !DSPAM:4007,46cab25c62582143011171! > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > !DSPAM:4007,46cab25c62582143011171! > > > ------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > Geotools-gt2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > !DSPAM:4007,46cab25c62582143011171! -- Justin Deoliveira The Open Planning Project http://topp.openplans.org ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users