Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-326

Rule blows up when running against SOA5 example.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta2
    • 2.0.0.Beta1
    • None
    • None

      Run under execute-windup

      point it at the soa-migration/labs/lab2/soa5-gateways-routers example

      and get this
      [bin]$ windup-migrate-app
      Input (Input File or Directory (a Directory is required for source mode)): /Users/robbg/git/soa-migration/labs/lab2/soa5_gateways_routers
      Output (Output Directory (WARNING: any existing files will be removed)): /Users/robbg/git/soa-migration/labs/lab2/Reports
      Overwrite all contents of "/Users/robbg/git/soa-migration/labs/lab2/Reports" (anything already in the directory will be deleted)? [Y/n] Y
      **ERROR** Error while executing 'Windup Migrate App'
      org.jboss.windup.util.exception.WindupException: Error encountered while evaluating rule: .addRule().when(JavaClass.matches(//[local-name()='jms-bus']/@busid).as(1).and(JavaClass.inputVariable(1).matches(//[local-name()='jms-bus']/@busid).as(2)).and(JavaClass.matches(//*[local-name()='jms-bus']/@busid).as(default))).perform(Iteration.over.as(1_instance).perform(Hint.withText("Action : service binding configuration in jms-bus").withEffort(1)).and(Iteration.over.as(2_instance).perform(Hint.withText(" A jms-bus definition can be converted to a JMS or JCA gateway
      binding
      on a composite service in SwitchYard. If the jms-bus configuration
      is used for a non-gateway
      listener, it does not need to be migrated to
      SOA 6. For additional information and tips, see the
      <a href="https://github.com/windup/soa-migration/blob/master/advice/jms-bus-migration.md"
      target="_blank">jms-bus migration microsite</a>."))).and(Iteration.over.as(3_instance).perform(Hint.withText("Value : Composite-service-name").withEffort(1))))
      Defined in: org.jboss.windup.rules.apps.xml.legacy.XmlSoa5Config.getConfiguration(XmlSoa5Config.java:30)
      at org.jboss.windup.config.RuleSubset.perform(RuleSubset.java:288)
      at org.jboss.windup.exec.WindupProcessorImpl.execute(WindupProcessorImpl.java:71)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      at org.jboss.windup.exec.WindupProcessorImpl_$$javassist_e9e74d3b-83b5-4100-a577-325f472ccabf.execute(WindupProcessorImpl$$_javassist_e9e74d3b-83b5-4100-a577-325f472ccabf.java)
      at org.jboss.windup.ui.WindupWizard.execute(WindupWizard.java:140)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      at org.jboss.windup.ui.WindupWizard_$$javassist_4cc96db7-2001-4c92-966a-2d060254227a.execute(WindupWizard$$_javassist_4cc96db7-2001-4c92-966a-2d060254227a.java)
      at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:153)
      at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152)
      at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)
      at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:325)
      at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:40)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)
      Caused by: java.lang.NullPointerException
      at org.jboss.windup.config.operation.Iteration.perform(Iteration.java:212)
      at org.jboss.windup.config.operation.Iteration.perform(Iteration.java:201)
      at org.ocpsoft.rewrite.config.DefaultOperationBuilder$DefaultOperationBuilderInternal.perform(DefaultOperationBuilder.java:55)
      at org.ocpsoft.rewrite.config.RuleBuilder.perform(RuleBuilder.java:168)
      at org.jboss.windup.config.RuleSubset.perform(RuleSubset.java:224)
      ... 26 more
      **ERROR** Error encountered while evaluating rule: .addRule().when(JavaClass.matches(//[local-name()='jms-bus']/@busid).as(1).and(JavaClass.inputVariable(1).matches(//[local-name()='jms-bus']/@busid).as(2)).and(JavaClass.matches(//*[local-name()='jms-bus']/@busid).as(default))).perform(Iteration.over.as(1_instance).perform(Hint.withText("Action : service binding configuration in jms-bus").withEffort(1)).and(Iteration.over.as(2_instance).perform(Hint.withText(" A jms-bus definition can be converted to a JMS or JCA gateway
      binding
      on a composite service in SwitchYard. If the jms-bus configuration
      is used for a non-gateway
      listener, it does not need to be migrated to
      SOA 6. For additional information and tips, see the
      <a href="https://github.com/windup/soa-migration/blob/master/advice/jms-bus-migration.md"
      target="_blank">jms-bus migration microsite</a>."))).and(Iteration.over.as(3_instance).perform(Hint.withText("Value : Composite-service-name").withEffort(1))))
      Defined in: org.jboss.windup.rules.apps.xml.legacy.XmlSoa5Config.getConfiguration(XmlSoa5Config.java:30)
      [bin]$

            jsightle@redhat.com Jess Sightler
            rhn-gps-rgreatho Robb Greathouse (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: