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

Entity with float field leads to error in gwt setup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Deferred
    • Affects Version/s: 1.1.0.M3
    • Fix Version/s: 1.1.0.RC1
    • Component/s: GWT
    • Labels:
      None
    • Environment:
      Kubuntu 10.04 / Java(TM) SE Runtime Environment (build 1.6.0_20-b02) / STS 2.5.0.M3

      Description

      adding a float type field leads to exception "String index out of range: -1" in gwt setup

      Step to reproduce:
      persistence setup --provider DATANUCLEUS --database HYPERSONIC_IN_MEMORY
      entity --class ~.server.domain.Test --testAutomatically
      field number --fieldName aFloat --type java.lang.Float
      gwt setup

      Error message:
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1937)
      at org.springframework.roo.addon.gwt.GwtMetadata.buildDataDictionary(GwtMetadata.java:580)
      at org.springframework.roo.addon.gwt.GwtMetadata.buildActivitiesMapper(GwtMetadata.java:248)
      at org.springframework.roo.addon.gwt.GwtMetadata.<init>(GwtMetadata.java:123)
      at org.springframework.roo.addon.gwt.GwtMetadataProvider.get(GwtMetadataProvider.java:130)
      at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:128)
      at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:147)
      at org.springframework.roo.addon.gwt.GwtOperationsImpl.setupGwt(GwtOperationsImpl.java:143)
      at org.springframework.roo.addon.gwt.GwtCommands.installSecurity(GwtCommands.java:28)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
      at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49)
      at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:177)
      at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:140)
      at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
      at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:159)
      at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:327)
      at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:120)
      at java.lang.Thread.run(Thread.java:619)

        Attachments

          Activity

            People

            Assignee:
            amitmanjhi@google.com Amit Manjhi
            Reporter:
            brumgabrasch René Buffat
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: