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

Unable to use hibernate console when DTD is not accessible (hibernate.org down)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • 4.3.0.CR1
    • 4.2.0.Final
    • hibernate
    • None
    • Hide

      Create Project
      Create hibernate configuration file and hibernate console
      Hibernate.org must be down or user offline
      Try to expand hibernate console
      ASSERT: Hibernate console should work even if DTD is not accessible

      Show
      Create Project Create hibernate configuration file and hibernate console Hibernate.org must be down or user offline Try to expand hibernate console ASSERT: Hibernate console should work even if DTD is not accessible

      Inaccessible DTD causes blocking Hibernate Console usage (as DTD cannot be loaded)

      If DTD is not accessible It would be more useful to disable DTD validation rather than block further usage and just show some warning.

      org.hibernate.HibernateException: Could not parse configuration: C:\Users\jpeterka\workspace\tmp\hb\mvn-hibernate35\src\main\java\hibernate.cfg.xml
      	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1586)
      	at org.hibernate.cfg.Configuration.configure(Configuration.java:1554)
      	at org.jboss.tools.hibernate.proxy.ConfigurationProxy.configure(ConfigurationProxy.java:94)
      	at org.hibernate.console.ConfigurationFactory.loadConfigurationXML(ConfigurationFactory.java:350)
      	at org.hibernate.console.ConfigurationFactory.configureStandardConfiguration(ConfigurationFactory.java:278)
      	at org.hibernate.console.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:175)
      	at org.hibernate.console.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:97)
      	at org.hibernate.eclipse.console.common.HibernateExtension$5.execute(HibernateExtension.java:166)
      	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
      	at org.hibernate.eclipse.console.common.HibernateExtension.execute(HibernateExtension.java:189)
      	at org.hibernate.eclipse.console.common.HibernateExtension.buildWith(HibernateExtension.java:163)
      	at org.hibernate.eclipse.console.common.HibernateExtension.build(HibernateExtension.java:134)
      	at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:189)
      	at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:43)
      	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:98)
      	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:104)
      	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:233)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      Caused by: org.dom4j.DocumentException: Server returned HTTP response code: 503 for URL: http://hibernate.org/dtd/hibernate-configuration-3.0.dtd Nested exception: Server returned HTTP response code: 503 for URL: http://hibernate.org/dtd/hibernate-configuration-3.0.dtd
      	at org.dom4j.io.SAXReader.read(SAXReader.java:484)
      	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1576)
      	... 17 more
      

            kaers@redhat.com Koen Aers
            jpeterka_jira Jiri Peterka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: