L
laredotornado
Hi,
I'm using Java 1.5. What does a "broken pipe" exception mean in the
context of parsing a file? Below is my code and the exception is
generated on the "xmlReader.parse" line. Stack trace is below. Any
ideas for troubleshooting further are appreciated. Thanks, - Dave
GPGInputSource gpgInputSource =
new GPGInputSource(new FileInputStream(file));
try {
InputStream inputStream =
getInflatorStream(file.getName(), gpgInputSource.getInputStream
());
xmlReader.parse(new InputSource(inputStream));
} catch(AddressRequestLimitException e) {
logger.error(e.getMessage(), e);
} finally {
if(gpgInputSource.close() != 0)
logger.error(gpgInputSource.getStandardErrorString());
if(gpgOutputSource.close() != 0)
logger.error(gpgOutputSource.getStandardErrorString());
}
java.lang.RuntimeException: java.lang.RuntimeException: Broken Pipe!
at
myco.dor.dmv.driver.youthful.xml.AddressRequestFileHandler.endElement
(AddressRequestFileHandler.java:128)
at org.apache.xerces.parsers.AbstractSAXParser.endElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.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 myco.dor.dmv.driver.youthful.xml.AddressFileUtility.lookup
(AddressFileUtility.java:201)
at myco.dor.dmv.driver.youthful.AddressFileProcessor.execute
(AddressFileProcessor.java:178)
at myco.dor.dmv.driver.youthful.AddressFileProcessor.main
(AddressFileProcessor.java:82)
Caused by: java.lang.RuntimeException: Broken Pipe!
at
myco.dor.dmv.driver.youthful.PhpAddressNormalizer.normalAddress
(PhpAddressNormalizer.java:33)
at
myco.dor.dmv.driver.youthful.xml.AddressRequestFileHandler.endElement
(AddressRequestFileHandler.java:124)
... 12 more
I'm using Java 1.5. What does a "broken pipe" exception mean in the
context of parsing a file? Below is my code and the exception is
generated on the "xmlReader.parse" line. Stack trace is below. Any
ideas for troubleshooting further are appreciated. Thanks, - Dave
GPGInputSource gpgInputSource =
new GPGInputSource(new FileInputStream(file));
try {
InputStream inputStream =
getInflatorStream(file.getName(), gpgInputSource.getInputStream
());
xmlReader.parse(new InputSource(inputStream));
} catch(AddressRequestLimitException e) {
logger.error(e.getMessage(), e);
} finally {
if(gpgInputSource.close() != 0)
logger.error(gpgInputSource.getStandardErrorString());
if(gpgOutputSource.close() != 0)
logger.error(gpgOutputSource.getStandardErrorString());
}
java.lang.RuntimeException: java.lang.RuntimeException: Broken Pipe!
at
myco.dor.dmv.driver.youthful.xml.AddressRequestFileHandler.endElement
(AddressRequestFileHandler.java:128)
at org.apache.xerces.parsers.AbstractSAXParser.endElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.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 myco.dor.dmv.driver.youthful.xml.AddressFileUtility.lookup
(AddressFileUtility.java:201)
at myco.dor.dmv.driver.youthful.AddressFileProcessor.execute
(AddressFileProcessor.java:178)
at myco.dor.dmv.driver.youthful.AddressFileProcessor.main
(AddressFileProcessor.java:82)
Caused by: java.lang.RuntimeException: Broken Pipe!
at
myco.dor.dmv.driver.youthful.PhpAddressNormalizer.normalAddress
(PhpAddressNormalizer.java:33)
at
myco.dor.dmv.driver.youthful.xml.AddressRequestFileHandler.endElement
(AddressRequestFileHandler.java:124)
... 12 more