Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2924

@RooSolrSearchable causes infinite loop when applied to an entity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Complete
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: 1.2.0.RC1
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      Running the "solr all" command, e.g. as follows:

      project --topLevelPackage com.roo2924
      jpa setup --database HYPERSONIC_IN_MEMORY --provider HIBERNATE
      entity jpa --class ~.domain.Thing
      field string --fieldName name
      solr setup
      solr all

      ... causes this error:

      Exception in thread "Spring Roo JLine Shell" java.lang.StackOverflowError
      	at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:447)
      	at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544)
      	at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:240)
      	at java.lang.StringCoding.encode(StringCoding.java:272)
      	at java.lang.String.getBytes(String.java:946)
      	at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
      	at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
      	at java.io.File.exists(File.java:733)
      	at org.springframework.roo.process.manager.internal.DefaultFileManager.exists(DefaultFileManager.java:69)
      	at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:314)
      	at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:150)
      	at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:84)
      	at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:220)
      	at org.springframework.roo.classpath.scanner.MemberDetailsScannerImpl.getMemberDetails(MemberDetailsScannerImpl.java:139)
      	at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.getMemberDetails(AbstractItdMetadataProvider.java:495)
      	at org.springframework.roo.addon.solr.SolrMetadataProvider.getMetadata(SolrMetadataProvider.java:83)
      	at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:324)
      	at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:150)
      	at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:84)
      	at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:220)
      	at org.springframework.roo.classpath.scanner.MemberDetailsScannerImpl.getMemberDetails(MemberDetailsScannerImpl.java:139)
      	at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.getMemberDetails(AbstractItdMetadataProvider.java:495)
      	at org.springframework.roo.addon.jpa.entity.JpaEntityMetadataProviderImpl.getMetadata(JpaEntityMetadataProviderImpl.java:191)
      	at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:324)
      	at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:150)
      	at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:200)

        Attachments

          Activity

            People

            Assignee:
            aswan Andrew Swan
            Reporter:
            stewarta Alan Stewart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: