You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by hi...@jakarta.apache.org on 2004/08/18 21:36:20 UTC

[jira] Closed: (HIVEMIND-23) Reporting of parse errors does not show line info

Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/HIVEMIND-23

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: HIVEMIND-23
    Summary: Reporting of parse errors does not show line info
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: HiveMind
 Components: 
             framework
   Fix Fors:
             1.0
   Versions:
             1.0

   Assignee: Howard M. Lewis Ship
   Reporter: Howard M. Lewis Ship

    Created: Mon, 19 Jul 2004 8:44 AM
    Updated: Wed, 18 Aug 2004 12:36 PM

Description:
Fatal exceptions when parsing module deployment descriptors don't display the line number of the failure.  For example:

HiveMindFilter [INFO] Constructing HiveMind Registry.
RegistryBuilder [ERROR] Error: Unable to read descriptor file:/C:/MyProject/src/deployment-descriptors/hivemind/META-INF/hivemodule.sdl: Error parsing file:/C:/MyProject/src/deployment-descriptors/hivemind/META-INF/hivemodule.sdl: Unexpected element conversion within module/configuration-point/schema.
org.apache.hivemind.ApplicationRuntimeException: Unable to read descriptor file:/C:/MyProject/src/deployment-descriptors/hivemind/META-INF/hivemodule.sdl: Error parsing file:/C:/MyProject/src/deployment-descriptors/hivemind/META-INF/hivemodule.sdl: Unexpected element conversion within module/configuration-point/schema.
	at org.apache.hivemind.parse.DescriptorParser.parse(DescriptorParser.java:1435)
	at org.apache.hivemind.impl.RegistryBuilder.processModule(RegistryBuilder.java:225)
	at org.apache.hivemind.impl.RegistryBuilder.processModulesResources(RegistryBuilder.java:208)
	at org.apache.hivemind.impl.RegistryBuilder.processModules(RegistryBuilder.java:179)
	at org.apache.hivemind.servlet.HiveMindFilter.constructRegistry(HiveMindFilter.java:94)
	at portal.servlet.MyHiveMindFilter.constructRegistry(TSSHiveMindFilter.java:21)
	at org.apache.hivemind.servlet.HiveMindFilter.init(HiveMindFilter.java:71)
	at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:163)
	at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:145)
	at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:490)
	at portal.jetty.RedirectableContext.start(RedirectableContext.java:54)
	at org.mortbay.http.HttpServer.start(HttpServer.java:647)
	at com.iw.plugins.jettyrunner.PluginRunner.launchWithXML(PluginRunner.java:166)
	at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:125)

Whether the location property of the exception is set or not is irrelevant; the exception *message* should identify the line number.

Note: non-fatal errors will go through the ErrorHandler, which will display the location properly.



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org