Karaf
  1. Karaf
  2. KARAF-693

features:addurl raises "Premature end of file" when network is not available

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.6, 3.0.0
    • Component/s: karaf-feature
    • Labels:
      None

      Description

      When the host has a network issue, the features:addurl command raises:

      [Fatal Error] :1:1: Premature end of file.
      Could not add Feature Repository:
      org.xml.sax.SAXParseException: Premature end of file.

      It would be clean to catch the exception and display a message like "Network not available".

        Activity

        Hide
        Jean-Baptiste Onofré added a comment -

        On trunk, as we use Aether, the error displayed is:

        Could not add Feature Repository:
        java.io.IOException: Aether Error.

        I think it's not easy for several users to know the Aether Error means that the groupId/artifactID is not found in the defined repositories

        Show
        Jean-Baptiste Onofré added a comment - On trunk, as we use Aether, the error displayed is: Could not add Feature Repository: java.io.IOException: Aether Error. I think it's not easy for several users to know the Aether Error means that the groupId/artifactID is not found in the defined repositories

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Jean-Baptiste Onofré
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development