Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-23

Reporting of parse errors does not show line info

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0
    • framework
    • None

    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.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: