r449727 breaks JAXWS tests
--------------------------
Key: AXIS2-1240
URL: http://issues.apache.org/jira/browse/AXIS2-1240
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Reporter: Davanum Srinivas
Howdy Dims,
Nick and I looked into some failures in the JAXWS module tonight. We traced
the failures to a particular revison:
r449727 | dims | 2006-09-25 11:35:26 -0500 (Mon, 25 Sep 2006) | 1 line
fix for AXIS2-1231 - Axis2 locks file
With that revision, the jaxws module gets the following test results:
[junit] Tests run: 160, Failures: 3, Errors: 7, Time elapsed: 24.305 sec
With the previous revision r449714 we get the following results:
[junit] Tests run: 160, Failures: 0, Errors: 0, Time elapsed: 26.408 sec
Nick came up with the theory that in
modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
processWSDLs method an input stream is passed to WSDL11ToAxisServiceBuilder
(around line 252). That stream is subsequently closed in the following lines,
but the input stream hasn't been used by the service builder yet; it has just
cached it. stepping through the code in processWSDLFile (around line 263),
Nick saw that the file handle in the input stream was -1, probalby due to the
previous close.
Our tests are failing because the services aren't getting loaded. We think the
services aren't getting loaded because the WSDLs can't be read because of the
bad input stream. He saw the following when he turned on debug:
1653 [main] DEBUG org.apache.axis2.i18n.ProjectResourceBundle -
org.apache.axis2.i18n.resource::handleGetObject(invalidservice)
1653 [main] ERROR org.apache.axis2.deployment.DeploymentEngine - Invalid
service DocLitNonWrapService due to WSDLException: faultCode=INVALID_WSDL: IO
Error: java.io.IOException: No such file or directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
org.apache.axis2.AxisFault: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
org.apache.axis2.deployment.DeploymentException: WSDLException:
faultCode=INVALID_WSDL: IO Error: java.io.IOException: No such file or
directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
org.apache.axis2.AxisFault: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory
org.apache.axis2.deployment.DeploymentException: WSDLException:
faultCode=INVALID_WSDL: IO Error: java.io.IOException: No such file or
directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
org.apache.axis2.AxisFault: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
org.apache.axis2.deployment.DeploymentException: WSDLException:
faultCode=INVALID_WSDL: IO Error: java.io.IOException: No such file or
directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
org.apache.axis2.AxisFault: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:282)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:515)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:200)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:209)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:156)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:84)
at
org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:129)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:179)
at org.apache.axis2.jaxws.util.SimpleServer.init(SimpleServer.java:41)
at org.apache.axis2.jaxws.util.SimpleServer.start(SimpleServer.java:51)
at org.apache.axis2.jaxws.util.SimpleServer.main(SimpleServer.java:73)
Caused by:
org.apache.axis2.deployment.DeploymentException: WSDLException:
faultCode=INVALID_WSDL: IO Error: java.io.IOException: No such file or
directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
org.apache.axis2.AxisFault: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:202)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:263)
... 11 more
Caused by:
org.apache.axis2.AxisFault: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory; nested exception is:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:237)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:200)
... 12 more
Caused by:
javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error:
java.io.IOException: No such file or directory
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.readInTheWSDLFile(WSDL11ToAxisServiceBuilder.java:1494)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.setup(WSDL11ToAxisServiceBuilder.java:260)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:177)
... 13 more
Caused by:
java.io.IOException: No such file or directory
at java.io.FileDescriptor.read(Native Method)
at java.io.FileDescriptor.read(FileDescriptor.java:96)
at java.io.FileInputStream.read(FileInputStream.java:187)
at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown
Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(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.axis2.util.XMLUtils.newDocument(XMLUtils.java:178)
at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:191)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.readInTheWSDLFile(WSDL11ToAxisServiceBuilder.java:1485)
We can chat more about this tomorrow if you like.
Thanks,
Jeff
IBM Software Group - WebSphere Web Services Development
Phone: 512-838-4587 or Tie Line 678-4587
Internet e-mail and Sametime ID: [EMAIL PROTECTED]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]