I just have a couple of ideas, as this may not be an axis2 issue. First, make sure you aren't getting "too many open files" errors from java. On linux see if something like 'lsof | grep java' isn't getting out of control on high load.
Second, if the file you are reading isn't changing, perhaps reading the file into a static string on server startup may help. Or, load the file into a static Document / OMElement or the like on server startup. Shooting in the dark a bit here, but I'd try a few simple things like that to track the issue down. HTH, Robert On Dec 14, 2007 12:01 PM, <[EMAIL PROTECTED]> wrote: > Every so often, under high load, Axis 1.3 will suddenly start spewing the > exception below. It all of the sudden can't open the config file, even though > it > had no problem doing so for about a week. > > I'm creating an instance of org.apache.axis.configuration.FileProvider using > Spring, giving it a path for a config file in the constructor, injecting then > instance into a Spring singleton, and then setting setSearchClasspath(true) > in the code. > > Does this exception occuring after an extended runtime period and under heavy > load make sense to anybody? Would this possibly be something that was fixed > in 1.4? > > Thanks. > > org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal Error: > URI=null Line=-1: Premature end of file. > org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of > file. > at > org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils > .java:723) > at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown > Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at > org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(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.DOMParser.parse(Unknown Source) > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369) > at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388) > at > org.apache.axis.configuration.FileProvider.configureEngine(FileProvid > er.java:179) > at org.apache.axis.AxisEngine.init(AxisEngine.java:172) > at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156) > at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52) > at org.apache.axis.client.Service.getAxisClient(Service.java:104) > at org.apache.axis.client.Service.<init>(Service.java:144) > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
