[jbosstools-issues] [JBoss JIRA] Updated: (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

Vitali Yemialyanchyk (JIRA) jira-events at lists.jboss.org
Tue Jan 25 13:04:49 EST 2011


     [ https://issues.jboss.org/browse/JBIDE-8219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitali Yemialyanchyk updated JBIDE-8219:
----------------------------------------

    Attachment: JBIDE-8219_20110125.txt


JBIDE-8219_20110125.txt - patch fix the issue

> 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
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-8219
>                 URL: https://issues.jboss.org/browse/JBIDE-8219
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.2.0.CR1
>            Reporter: Vitali Yemialyanchyk
>            Assignee: Vitali Yemialyanchyk
>             Fix For: 3.2.0.CR2 (tentative)
>
>         Attachments: JBIDE-8219_20110125.txt, screenshot-1.jpg, screenshot-2.jpg
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list