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

Hibernate mapping diagram bad exception handling.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1.0.M4
    • Fix Version/s: 3.1.0.M4
    • Component/s: hibernate
    • Labels:
      None
    • Environment:

      WindowsXP SP2
      JBoss Tools
      Version: 3.1.0.M4
      eclipse-SDK-3.5RC3-win32.zip
      Build id: JBossTools-Update-3.1.0.M4
      JRE 1.5_08

      Description

      EXECUTE: Create Seam 2FP EAR project.

      Case 1:
      EXECUTE: Open Hibernate view. Right click on projects configuration, select "Mapping diagram' item.
      FAILURE: Coz configuration is empty (no entities etc in project) - nothing happens after selecting "Mapping diagram" item. I think it will be better if empty diagram appears in this case.

      Case 2:
      EXECUTE: New > Hibernate XML mapping file.
      EXECUTE: Select Class - Authentificator, press Finish.
      EXECUTE: Authentificator mapping appears. It is broken (JBIDE-5052) and will cause problems.
      EXECUTE: Open Hibernate view. Right click on projects configuration, select "Mapping diagram' item.
      FAILURE: Unhadled Loop exception appears instead of "Bad configuration file" error dialog.

      Exception stacktrace:
      org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
      at org.hibernate.console.ConsoleConfiguration.buildJPAConfiguration(ConsoleConfiguration.java:163)
      at org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:644)
      at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:629)
      at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:291)
      at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
      at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:273)
      at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:112)
      at org.jboss.tools.hibernate.ui.view.OpenDiagramActionDelegate.run(OpenDiagramActionDelegate.java:78)
      at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
      ...

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                anis Aliaksey Nis
                Reporter:
                anis Aliaksey Nis
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: