You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "Arthur Ryman (JIRA)" <ji...@apache.org> on 2006/11/15 09:12:38 UTC
[jira] Closed: (WODEN-77) Ant Task Should Catch Runtime Errors and
Report Them
[ http://issues.apache.org/jira/browse/WODEN-77?page=all ]
Arthur Ryman closed WODEN-77.
-----------------------------
Resolution: Fixed
Fixed. The runtime exceptions are now caught and reported as severe errors, at least where they were thrown in the reported bug. There may still be other places where runtime exceptions are not being caught.
> Ant Task Should Catch Runtime Errors and Report Them
> ----------------------------------------------------
>
> Key: WODEN-77
> URL: http://issues.apache.org/jira/browse/WODEN-77
> Project: Woden
> Issue Type: Bug
> Components: Tools
> Reporter: Arthur Ryman
> Assigned To: Arthur Ryman
>
> In this example, the runtime exception terminated the Ant Task. Instead, the Ant Task should log the error and continue.
> Starting: file:///D:/workspaces/WSD2/woden/downloads/w3c/documents/good/SchemaId-1G/schemaIds.wsdl
> Exception in thread "main" java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: An imported schema was announced to have the namespace http://greath.example.com/2004/schemas/reservationItems, but has the namespace http://greath.example.com/2004/services/retrieveDetails
> at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1803)
> at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1540)
> at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:156)
> at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:330)
> at org.apache.woden.internal.DOMWSDLReader.parseSchemaInline(DOMWSDLReader.java:282)
> at org.apache.woden.internal.BaseWSDLReader.parseTypes(BaseWSDLReader.java:581)
> at org.apache.woden.internal.BaseWSDLReader.parseDescription(BaseWSDLReader.java:433)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:205)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:232)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:245)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:124)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:135)
> at org.apache.woden.ant.WsdlCm.main(WsdlCm.java:122)
> Caused by: org.apache.ws.commons.schema.XmlSchemaException: An imported schema was announced to have the namespace http://greath.example.com/2004/schemas/reservationItems, but has the namespace http://greath.example.com/2004/services/retrieveDetails
> at org.apache.ws.commons.schema.SchemaBuilder$1.validate(SchemaBuilder.java:1532)
> at org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:283)
> at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:78)
> at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:67)
> at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:325)
> at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:272)
> at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1801)
> ... 12 more
--
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: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org