Maybe in your compact.xml you need to need to use distinct "module" names instead of reusing "MainScoring" (even though they're inside separate "detector" tags). On Mar 31, 2017, at 5:33 PM, Kyle McCarty <[log in to unmask]> wrote: > Hello, > > I am trying to create an LCDD file for a positron trigger test geometry. This geometry exists in the "iss40" branch on github under "HPS-Proposal2017-Hodoscope-v0-4pt4-fieldmap". > > When running, I get this error: > > Downloading...file:/C:/cygwin64/home/Kyle/hps-software/hps-java/detector-data/gdml/ecal_vacuum_flange_complete_v1.gdml > Downloading...file:/C:/cygwin64/home/Kyle/hps-software/hps-java/detector-data/gdml/svt_chamber_v2.gdml > Exception in thread "main" org.jdom.input.JDOMParseException: Error on line 2: cvc-id.2: There are multiple occurrences of ID value 'MainScoringVolume_component0_position'. > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:504) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807) > at org.lcsim.geometry.compact.converter.lcdd.Main.convert(Main.java:77) > at org.hps.detector.DetectorConverter.run(DetectorConverter.java:118) > at org.hps.detector.DetectorConverter.main(DetectorConverter.java:53) > Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 165441; cvc-id.2: There are multiple occurrences of ID value 'MainScoringVolume_component0_position'. > at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) > at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) > at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) > at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) > ... 4 more > Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 165441; cvc-id.2: There are multiple occurrences of ID value 'MainScoringVolume_component0_position'. > at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) > at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) > at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) > at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807) > at org.lcsim.geometry.compact.converter.lcdd.Main.convert(Main.java:77) > at org.hps.detector.DetectorConverter.run(DetectorConverter.java:118) > at org.hps.detector.DetectorConverter.main(DetectorConverter.java:53) > > I'm assuming that the error comes from the "svt_chamber_v2.gdml" file. Could anyone advise me on how to correct this? (Note that I only changed the compact.xml file - none of the associated geometry files. My compact.xml also does not contain the variable "MainScoringVolume_component0_position".) > > Thanks, > > Kyle > > Use REPLY-ALL to reply to list > > To unsubscribe from the HPS-SOFTWARE list, click the following link: > https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1 > ######################################################################## Use REPLY-ALL to reply to list To unsubscribe from the HPS-SOFTWARE list, click the following link: https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1