Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-276

SwitchYard AS7 Distro does not work on Windows due to issue with resource loading in Camel

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.1
    • Fix Version/s: 0.2
    • Component/s: component-camel
    • Labels:
      None

      Description

      Magesh bumped into this while verifying the SwitchYard AS7 release on Windows. Deployment of any application will fail because the Camel activator throws an NPE when it's activator is created:

      Caused by: org.apache.camel.RuntimeCamelException: java.lang.NullPointerException
      at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)
      at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:971)
      at org.switchyard.component.camel.transformer.CamelConverter.<init>(CamelConverter.java:49)
      at org.switchyard.component.camel.transformer.CamelConverter.<clinit>(CamelConverter.java:37)
      ... 19 more
      Caused by: java.lang.NullPointerException
      9:37
      at org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:260)

      The most likely solution to this problem is to provide an AS7-specific PackageScanClassResolver to work around the encoding of paths on Windows. After a discussion with Magesh and Tom, it was decided that this was too risky to introduce at the end of 0.1. This issue will be fixed at the beginning of 0.2.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mageshbk Magesh Bojan
                Reporter:
                kcbabo Keith Babo
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: