[jbosstools-issues] [JBoss JIRA] (JBIDE-19153) Unable to use hibernate console when DTD is not accessible (hibernate.org down)

Jiri Peterka (JIRA) issues at jboss.org
Wed Feb 4 04:23:49 EST 2015


    [ https://issues.jboss.org/browse/JBIDE-19153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037434#comment-13037434 ] 

Jiri Peterka edited comment on JBIDE-19153 at 2/4/15 4:23 AM:
--------------------------------------------------------------

It's not a regression (always there) but as hibernate.org is down it occurred to happen.


was (Author: jpeterka):
It's regression but as hibernate.org is down it occurred to happen.

> Unable to use hibernate console when DTD is not accessible (hibernate.org down)
> -------------------------------------------------------------------------------
>
>                 Key: JBIDE-19153
>                 URL: https://issues.jboss.org/browse/JBIDE-19153
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate
>    Affects Versions: 4.2.0.Final
>            Reporter: Jiri Peterka
>             Fix For: 4.3.0.Alpha1
>
>
> 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. 
> {code}
> 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
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list