Spring Roo
  1. Spring Roo
  2. ROO-1242

Compile error in aspectj compile phase occurs when a perfom eclipse is run after upgrade to Spring 3.0.4

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0.M2
    • Fix Version/s: 1.1.0.M3
    • Component/s: None
    • Labels:
      None

      Description

      After upgrading to Spring 3.0.4 the following errors occur when executing 'perform eclipse' after running the expenses.roo script:

      [Thread-6] [ERROR] The import flexjson cannot be resolved
      [Thread-6] [ERROR] JSONSerializer cannot be resolved to a type
      [Thread-6] [ERROR] JSONDeserializer cannot be resolved to a type
      [Thread-6] [ERROR] JSONSerializer cannot be resolved to a type
      [Thread-6] [ERROR] JSONDeserializer cannot be resolved to a type
      [Thread-6] [ERROR] The import flexjson cannot be resolved
      [Thread-6] [ERROR] JSONSerializer cannot be resolved to a type
      [Thread-6] [ERROR] JSONDeserializer cannot be resolved to a type
      [Thread-6] [ERROR] JSONSerializer cannot be resolved to a type
      [Thread-6] [ERROR] JSONDeserializer cannot be resolved to a type
      [Thread-6] [ERROR] The import flexjson cannot be resolved
      [Thread-6] [ERROR] JSONSerializer cannot be resolved to a type
      [Thread-6] [ERROR] JSONDeserializer cannot be resolved to a type
      [Thread-6] [ERROR] JSONSerializer cannot be resolved to a type
      [Thread-6] [ERROR] JSONDeserializer cannot be resolved to a type
      [Thread-6] [WARNING] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch]
      [Thread-6] [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
      [Thread-6] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
      [Thread-6] [INFO] ------------------------------------------------------------------------
      [Thread-6] [ERROR] BUILD ERROR
      [Thread-6] [INFO] ------------------------------------------------------------------------
      [Thread-6] [INFO] Compiler errors :
      [Thread-6] error at import flexjson.JSONDeserializer;
      [Thread-6] ^^^^^^^oo>
      [Thread-6] /home/stewarta/projects/roo-test/expenses/src/main/java/com/springsource/extrack/server/domain/Employee_Roo_Json.aj:4:0::0 The import flexjson cannot be resolved
      [Thread-6] error at import flexjson.JSONSerializer;
      [

        Issue Links

          Activity

          Hide
          Ben Alex added a comment -

          This is due to the 'json setup' requirement at present. Stefan just spoke with me and will fix it.

          Show
          Ben Alex added a comment - This is due to the 'json setup' requirement at present. Stefan just spoke with me and will fix it.
          Hide
          Stefan Schmidt added a comment -

          The issue was that until now you had to manually run 'roo> json setup' in order to add the dependency to the project classpath. With commit d96d42158231f4ed9974e99ca913caaa7d403a5c this step is not necessary any more as the dependency is available by default in the project.

          Show
          Stefan Schmidt added a comment - The issue was that until now you had to manually run 'roo> json setup' in order to add the dependency to the project classpath. With commit d96d42158231f4ed9974e99ca913caaa7d403a5c this step is not necessary any more as the dependency is available by default in the project.

            People

            • Assignee:
              Stefan Schmidt
              Reporter:
              Alan Stewart
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: