[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3111) Editor for Hibernate.cfg.xml is broken with java.lang.NullPointerException if leave Connection Url in broken brackets <>.

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Nov 13 08:19:36 EST 2008


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

Viacheslav Kabanovich commented on JBIDE-3111:
----------------------------------------------

In case of incorrect xml, model loader did not provide root objects for tabs 'Session Factory' and 'Sequrity', which resulted in Null PointerException. I have fixed that case, so that ui pages will open in read-only mode and displaying xml problems. 

The other question is about org.hibernate.eclipse.console.wizards.NewConfigurationWizard. Is it ok that it writes to xml user data 'as is', without encoding? 
If I type 'jdbc:hsqldb:hsql://&lt;host&gt;' (literally), resulted xml is correct; if I type 'jdbc:hsqldb:hsql://<host>' then xml is broken by '<' symbol.

I will mark this issue as resolved. Anton, if behavior of NewConfigurationWizard is a bug, please create a new issue.

> Editor for Hibernate.cfg.xml is broken with  java.lang.NullPointerException if leave Connection Url in broken brackets <>. 
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-3111
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3111
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.0.0.beta1
>            Reporter: Anton Klimkovich
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.0.0.cr1
>
>         Attachments: exception.txt
>
>
> EXECUTE: New -> Hibernate Configuration file
> EXECUTE: Set DB Dialect (HSQL)
> EXECUTE: Set Driver Class (org.hsqldb.jdbcDriver)
> EXECUTE: set Connection Url (jdbc:hsqldb:hsql://<host>)
> EXECUTE: Press Finish
> FAILURE:   Editor for Hibernate.cfg.xml is broken with java.lang.NullPointerException

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list