You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Matthew T. Adams (JIRA)" <ji...@apache.org> on 2007/04/06 19:01:32 UTC
[jira] Created: (JDO-478) [Fatal Error] messages are printed to
stdout/stderr during negative test case runs of JDOHelperConfigTest
[Fatal Error] messages are printed to stdout/stderr during negative test case runs of JDOHelperConfigTest
---------------------------------------------------------------------------------------------------------
Key: JDO-478
URL: https://issues.apache.org/jira/browse/JDO-478
Project: JDO
Issue Type: Bug
Components: api2
Environment: JDK 1.4
Reporter: Matthew T. Adams
Assigned To: Matthew T. Adams
Priority: Minor
Fix For: JDO 2 maintenance release 1
During execution of JDOHelperConfigTest negative test cases, the message "[Fatal Error] :-1:-1: Premature end of file." is printed to stdout or stderr, even though the errors are expected and don't indicate unexpected exceptions.
Probably need to register an error handler with the XML parser to capture these messages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (JDO-478) [Fatal Error] messages are printed to
stdout/stderr during negative test case runs of JDOHelperConfigTest
Posted by "Matthew T. Adams (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JDO-478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthew T. Adams updated JDO-478:
---------------------------------
Attachment: JDO-478.patch
This patch fixes the issue in the simplest, but maybe not the most desirable, way. Patch is relative to trunk and is for both api2 & api2-legacy.
> [Fatal Error] messages are printed to stdout/stderr during negative test case runs of JDOHelperConfigTest
> ---------------------------------------------------------------------------------------------------------
>
> Key: JDO-478
> URL: https://issues.apache.org/jira/browse/JDO-478
> Project: JDO
> Issue Type: Bug
> Components: api2
> Environment: JDK 1.4
> Reporter: Matthew T. Adams
> Assignee: Matthew T. Adams
> Priority: Minor
> Fix For: JDO 2 maintenance release 1
>
> Attachments: JDO-478.patch
>
>
> During execution of JDOHelperConfigTest negative test cases, the message "[Fatal Error] :-1:-1: Premature end of file." is printed to stdout or stderr, even though the errors are expected and don't indicate unexpected exceptions.
> Probably need to register an error handler with the XML parser to capture these messages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (JDO-478) [Fatal Error] messages are printed to
stdout/stderr during negative test case runs of JDOHelperConfigTest
Posted by "Matthew T. Adams (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JDO-478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthew T. Adams resolved JDO-478.
----------------------------------
Resolution: Fixed
Fixed in both api2 & api2-legacy.
> [Fatal Error] messages are printed to stdout/stderr during negative test case runs of JDOHelperConfigTest
> ---------------------------------------------------------------------------------------------------------
>
> Key: JDO-478
> URL: https://issues.apache.org/jira/browse/JDO-478
> Project: JDO
> Issue Type: Bug
> Components: api2
> Environment: JDK 1.4
> Reporter: Matthew T. Adams
> Assignee: Matthew T. Adams
> Priority: Minor
> Fix For: JDO 2 maintenance release 1
>
> Attachments: JDO-478.patch
>
>
> During execution of JDOHelperConfigTest negative test cases, the message "[Fatal Error] :-1:-1: Premature end of file." is printed to stdout or stderr, even though the errors are expected and don't indicate unexpected exceptions.
> Probably need to register an error handler with the XML parser to capture these messages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JDO-478) [Fatal Error] messages are printed to
stdout/stderr during negative test case runs of JDOHelperConfigTest
Posted by "Matthew T. Adams (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JDO-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502661 ]
Matthew T. Adams commented on JDO-478:
--------------------------------------
Although this appears to be fixed, the fix is to register an anonymous ErrorHandler class in JDOHelper that throws the SAXExceptions given on error and fatalError, and simply swallows the one given on warning.
We need to consider whether to allow the JDO implementation to register its own ErrorHandler.
> [Fatal Error] messages are printed to stdout/stderr during negative test case runs of JDOHelperConfigTest
> ---------------------------------------------------------------------------------------------------------
>
> Key: JDO-478
> URL: https://issues.apache.org/jira/browse/JDO-478
> Project: JDO
> Issue Type: Bug
> Components: api2
> Environment: JDK 1.4
> Reporter: Matthew T. Adams
> Assignee: Matthew T. Adams
> Priority: Minor
> Fix For: JDO 2 maintenance release 1
>
> Attachments: JDO-478.patch
>
>
> During execution of JDOHelperConfigTest negative test cases, the message "[Fatal Error] :-1:-1: Premature end of file." is printed to stdout or stderr, even though the errors are expected and don't indicate unexpected exceptions.
> Probably need to register an error handler with the XML parser to capture these messages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.