Uploaded image for project: 'Spring Roo Flex Add-on'
  1. Spring Roo Flex Add-on
  2. ROOFLEX-44

Incompatibility with Roo 1.1.3 and 1.1.4 release. "flex remoting" causes Exception NoClassDefFoundError

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0.M1
    • Fix Version/s: None
    • Labels:
    • Environment:
      Windows 7 x64, Roo 1.1.3, 1.1.4

      Description

      A change was made to Roo 1.1.3.
      Spring Roo ROO-2303
      Refactor WebMetadataUtils to a service
      "This improvement would just change the WebMetadataUtils to WebMetadataService, removing all the static methods and having the previously passed services injected."

      This results in an exception when "flex remoting" is called, because revision 528 of "org.springframework.flex.roo.addon.FlexScaffoldMetadataProvider.java" tries to import this removed WebMetadataUtils class.

      roo> flex remoting scaffold --name PlayerService --entity com.myproject.Player
      Exception in thread "Spring Roo JLine Shell" java.lang.NoClassDefFoundError: org/springframework/roo/addon/web/mvc/controller/detail
      s/WebMetadataUtils
      at org.springframework.flex.roo.addon.FlexScaffoldMetadataProvider.getMetadata(FlexScaffoldMetadataProvider.java:92)
      at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:269)
      at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148)
      at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82)
      at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:147)
      at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:235)
      at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyReg
      istry.java:214)
      at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:131)
      at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330)
      at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213)
      at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:189)
      at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143)
      at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrate
      gy.java:47)
      at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:182)
      at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:373)
      at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:134)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: org.springframework.roo.addon.web.mvc.controller.details.WebMetadataUtils not found by
      org.springframework.roo.addon.web.mvc.controller [33]
      at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
      at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
      at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
      at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:99)
      at org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1390)
      at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:722)
      at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
      at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
      ... 17 more
      org/springframework/roo/addon/web/mvc/controller/details/WebMetadataUtils

        Attachments

          Activity

            People

            • Assignee:
              jeremyg484 Jeremy Grelle
              Reporter:
              wqaersdf Rob Murray
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: