Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9175

IndexOutOfBoundsExeption dialog when empty DB is used for code gereration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 4.0.0.Final
    • 3.3.0.M1
    • hibernate
    • None
    • Hide

      EXECUTE: Create Hibernate Configuration with empty or no mysql database defined (dbc:mysql://<ip_only>[/empty])
      EXECUTE: Create Hibernate Code Generation Configuration for it
      EXECUTE: Run it
      ASSERT: It should run without errors or warning explaining that nothing will be generated should be displayed.

      Show
      EXECUTE: Create Hibernate Configuration with empty or no mysql database defined (dbc:mysql://<ip_only> [/empty] ) EXECUTE: Create Hibernate Code Generation Configuration for it EXECUTE: Run it ASSERT: It should run without errors or warning explaining that nothing will be generated should be displayed.

    Description

      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      at java.util.ArrayList.remove(ArrayList.java:387)
      at org.hibernate.tool.hbm2x.DocExporter.generatePackageSummary(DocExporter.java:386)
      at org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:161)
      at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
      at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$1.execute(CodeGenerationLaunchDelegate.java:408)
      at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
      at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72)
      at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:383)
      at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:310)
      at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
      at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
      at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:925)
      at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1129)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

      Attachments

        Activity

          People

            manderse@redhat.com Max Andersen
            jpeterka_jira Jiri Peterka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: