Spring Tool Suite
  1. Spring Tool Suite
  2. STS-2071

StringIndexOutOfBoundsException during "Building Spring AOP reference model"

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1.RELEASE
    • Fix Version/s: 2.7.2.RELEASE, 2.8.0.M2
    • Component/s: None
    • Labels:
      None

      Description

      I have seen this on a few occasions recently after an Ivy resolve and build in a very large workspace.
      It should be straght-forward to track down using the stack trace.
      Could it be something like following a trail of imported Spring contexts into a jar on the classpath (that doesn't have a project name in Eclipse)?

      -- Error Details --
      Date: Wed Aug 31 16:53:46 BST 2011
      Message: An internal error occurred during: "Building Spring AOP reference model".
      Severity: Error
      Product: SpringSource Tool Suite 2.7.1.201107091000-RELEASE (com.springsource.sts.ide)
      Plugin: org.eclipse.core.jobs
      Session Data:
      eclipse.buildId=2.7.1.201107091000-RELEASE
      java.version=1.6.0_25
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
      Framework arguments:  -product com.springsource.sts.ide -showlocation STS 2.7.0.UPDATE
      Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide -showlocation STS 2.7.0.UPDATE
      
      This is a continuation of log file C:\Temp\coredev\.metadata\.bak_8.log
      Created Time: 2011-08-31 12:34:07.424
      
      
      Exception Stack Trace:
      java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      at java.lang.String.charAt(String.java:686)
      at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getProject(BeansModel.java:194)
      at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(BeansModel.java:258)
      at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(BeansProject.java:494)
      at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(BeansProject.java:468)
      at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfigs(BeansProject.java:423)
      at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(BeansProject.java:413)
      at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(BeansModel.java:224)
      at org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(BeansCoreUtils.java:43)
      at org.springframework.ide.eclipse.aop.core.internal.model.builder.AnnotationAspectDefinitionBuilder.buildAspectDefinitions(AnnotationAspectDefinitionBuilder.java:70)
      at org.springframework.ide.eclipse.aop.core.internal.model.builder.AspectDefinitionBuilderHelper.buildAspectDefinitions(AspectDefinitionBuilderHelper.java:90)
      at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.buildAspectDefinitions(AopReferenceModelBuilderJob.java:402)
      at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.addAspectInfosFromImport(AopReferenceModelBuilderJob.java:366)
      at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.addAspectInfosFromImport(AopReferenceModelBuilderJob.java:367)
      at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.buildAopReferencesForFile(AopReferenceModelBuilderJob.java:333)
      at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.buildAopModel(AopReferenceModelBuilderJob.java:445)
      at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.run(AopReferenceModelBuilderJob.java:159)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      
      

        Activity

        Hide
        Martin Lippert (c) added a comment -

        also consider for 2.7.2

        Show
        Martin Lippert (c) added a comment - also consider for 2.7.2
        Hide
        Andreas Nyberg added a comment -

        I just had a user raise this one again. Can we please have it for 2.7.2 as well?

        Show
        Andreas Nyberg added a comment - I just had a user raise this one again. Can we please have it for 2.7.2 as well?
        Hide
        Martin Lippert (c) added a comment -

        No problem, this will also be in 2.7.2.

        Show
        Martin Lippert (c) added a comment - No problem, this will also be in 2.7.2.

          People

          • Assignee:
            Martin Lippert (c)
            Reporter:
            Andreas Nyberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: