You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Scott Kurz (JIRA)" <tu...@ws.apache.org> on 2007/01/18 15:52:30 UTC
[jira] Created: (TUSCANY-1063) Improve diagnostics running
XSD2JavaGenerator against bad schema
Improve diagnostics running XSD2JavaGenerator against bad schema
----------------------------------------------------------------
Key: TUSCANY-1063
URL: https://issues.apache.org/jira/browse/TUSCANY-1063
Project: Tuscany
Issue Type: Improvement
Components: Java SDO Tools
Affects Versions: Java-SCA-M3
Reporter: Scott Kurz
Priority: Minor
Fix For: Java-SCA-M3
I gave an invalid XSD file to the XSD2JavaGenerator and had to use the debugger to figure out the problem.
It might be nice to do a printStackTrace() on any exception before throwing out of main().
Also it might be good to print out simple error messages in the cases that:
a) the usage was correct but the specified file can't be read
b) the file can be read but there is no valid schema found
As a sample of the latter here is my invalid schema
<xsd:schema xmlns:tns="http://helloworld" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://helloworld">
<complexType name="Person">
<sequence>
<element name="firstName" type="string"/>
<element name="lastName" type="string"/>
</sequence>
</complexType>
</xsd:schema>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Resolved: (TUSCANY-1063) Improve diagnostics running
XSD2JavaGenerator against bad schema
Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Goodson resolved TUSCANY-1063.
-------------------------------------
Resolution: Fixed
Added print stack trace for any Exception (note one mod for this JIRA was inadvertently committed under TUSCANY-1293)
Also added error report for case where input file results in no metadata (not easy to catch case where some metadata is in error).
> Improve diagnostics running XSD2JavaGenerator against bad schema
> ----------------------------------------------------------------
>
> Key: TUSCANY-1063
> URL: https://issues.apache.org/jira/browse/TUSCANY-1063
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Tools
> Affects Versions: Java-SCA-M2
> Reporter: Scott Kurz
> Priority: Minor
> Fix For: Java-SDO-Next
>
>
> I gave an invalid XSD file to the XSD2JavaGenerator and had to use the debugger to figure out the problem.
> It might be nice to do a printStackTrace() on any exception before throwing out of main().
> Also it might be good to print out simple error messages in the cases that:
> a) the usage was correct but the specified file can't be read
> b) the file can be read but there is no valid schema found
> As a sample of the latter here is my invalid schema
> <xsd:schema xmlns:tns="http://helloworld" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://helloworld">
> <complexType name="Person">
> <sequence>
> <element name="firstName" type="string"/>
> <element name="lastName" type="string"/>
> </sequence>
> </complexType>
> </xsd:schema>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Commented: (TUSCANY-1063) Improve diagnostics running
XSD2JavaGenerator against bad schema
Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472373 ]
Yang ZHONG commented on TUSCANY-1063:
-------------------------------------
See also http://issues.apache.org/jira/browse/TUSCANY-152
> Improve diagnostics running XSD2JavaGenerator against bad schema
> ----------------------------------------------------------------
>
> Key: TUSCANY-1063
> URL: https://issues.apache.org/jira/browse/TUSCANY-1063
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Tools
> Affects Versions: Java-M2
> Reporter: Scott Kurz
> Priority: Minor
> Fix For: Java-SDO-Mx
>
>
> I gave an invalid XSD file to the XSD2JavaGenerator and had to use the debugger to figure out the problem.
> It might be nice to do a printStackTrace() on any exception before throwing out of main().
> Also it might be good to print out simple error messages in the cases that:
> a) the usage was correct but the specified file can't be read
> b) the file can be read but there is no valid schema found
> As a sample of the latter here is my invalid schema
> <xsd:schema xmlns:tns="http://helloworld" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://helloworld">
> <complexType name="Person">
> <sequence>
> <element name="firstName" type="string"/>
> <element name="lastName" type="string"/>
> </sequence>
> </complexType>
> </xsd:schema>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1063) Improve diagnostics running
XSD2JavaGenerator against bad schema
Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amita Vadhavkar updated TUSCANY-1063:
-------------------------------------
Fix Version/s: (was: Java-SDO-Next)
Java-SDO-1.1
> Improve diagnostics running XSD2JavaGenerator against bad schema
> ----------------------------------------------------------------
>
> Key: TUSCANY-1063
> URL: https://issues.apache.org/jira/browse/TUSCANY-1063
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Tools
> Affects Versions: Java-SCA-M2
> Reporter: Scott Kurz
> Priority: Minor
> Fix For: Java-SDO-1.1
>
>
> I gave an invalid XSD file to the XSD2JavaGenerator and had to use the debugger to figure out the problem.
> It might be nice to do a printStackTrace() on any exception before throwing out of main().
> Also it might be good to print out simple error messages in the cases that:
> a) the usage was correct but the specified file can't be read
> b) the file can be read but there is no valid schema found
> As a sample of the latter here is my invalid schema
> <xsd:schema xmlns:tns="http://helloworld" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://helloworld">
> <complexType name="Person">
> <sequence>
> <element name="firstName" type="string"/>
> <element name="lastName" type="string"/>
> </sequence>
> </complexType>
> </xsd:schema>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1063) Improve diagnostics running
XSD2JavaGenerator against bad schema
Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder updated TUSCANY-1063:
-------------------------------
Fix Version/s: (was: Java-SCA-M3)
Java-SDO-Mx
Affects Version/s: (was: Java-SCA-M3)
Java-M2
> Improve diagnostics running XSD2JavaGenerator against bad schema
> ----------------------------------------------------------------
>
> Key: TUSCANY-1063
> URL: https://issues.apache.org/jira/browse/TUSCANY-1063
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Tools
> Affects Versions: Java-M2
> Reporter: Scott Kurz
> Priority: Minor
> Fix For: Java-SDO-Mx
>
>
> I gave an invalid XSD file to the XSD2JavaGenerator and had to use the debugger to figure out the problem.
> It might be nice to do a printStackTrace() on any exception before throwing out of main().
> Also it might be good to print out simple error messages in the cases that:
> a) the usage was correct but the specified file can't be read
> b) the file can be read but there is no valid schema found
> As a sample of the latter here is my invalid schema
> <xsd:schema xmlns:tns="http://helloworld" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://helloworld">
> <complexType name="Person">
> <sequence>
> <element name="firstName" type="string"/>
> <element name="lastName" type="string"/>
> </sequence>
> </complexType>
> </xsd:schema>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org