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

Try to explore CC without DB connection - result "java.lang.UnsupportedOperationException: The user must supply a JDBC connection" - "Database" node has no child node with error message

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.2.0.CR1
    • Fix Version/s: 3.2.0.Final
    • Component/s: hibernate
    • Labels:
      None

      Description

      try to use CC with "Hibernate configured connection"
      hibernate.cfg.xml:
      >>
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
      <hibernate-configuration>
      <session-factory>
      <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property></session-factory>
      </hibernate-configuration>
      >>

      try to expand Database node - get exception:
      >>
      java.lang.UnsupportedOperationException: The user must supply a JDBC connection
      at org.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:54)
      at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:121)
      at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:60)
      at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
      at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
      at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
      at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
      at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:117)
      at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
      at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72)
      at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:106)
      at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:63)
      at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
      at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      >>
      and "Database" node has no child node with error message

      in case of some error every CC node ("Configuration", "Session Factory", "Database") should display child node with error message

        Gliffy Diagrams

          Attachments

          1. JBIDE-8219_20110125.txt
            0.8 kB
          2. screenshot-1.jpg
            screenshot-1.jpg
            193 kB
          3. screenshot-2.jpg
            screenshot-2.jpg
            192 kB

            Activity

              People

              • Assignee:
                vyemialyanchyk Vitali Yemialyanchyk
                Reporter:
                vyemialyanchyk Vitali Yemialyanchyk
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: