[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1845) java.lang.NullPointerException when run Hibernate Code Generation and set path to non-existent package in output directory field for generated files.

Dima Geraskov (JIRA) jira-events at lists.jboss.org
Wed Mar 12 11:52:59 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1845?page=comments#action_12402485 ] 
            
Dima Geraskov commented on JBIDE-1845:
--------------------------------------

Now ExporterFactory checks the output directory if it use it and refresh called only for the directories (if output directory owerriten as property for exporter at "Exporters" tab, ExporterFactory doesn't check it and directory isn't refreshed). If directory doesn't exist HibernateConsoleRuntimeException is thrown. (as it was earlier)

We do not create not existing directories.

> java.lang.NullPointerException when run Hibernate Code Generation and set path to non-existent package in output directory  field for generated files.
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-1845
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1845
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 2.0.1
>            Reporter: Anton Klimkovich
>         Assigned To: Dima Geraskov
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: exception.txt, TestHib.zip
>
>
> EXECUTE: Import attached java project.
> EXECUTE: Run hsqldb 
> EXECUTE: Open Hibernate Configuration View 
> EXECUTE: Right mouse click and select Add Configuration from context menu 
> EXECUTE: On Main tab select imported project and path to cfg.xml 
> EXECUTE: On Clathpath tab set path to hsqldb.jar 
> EXECUTE: On Mappings tab add path to mapping file. 
> EXECUTE: Press Apply button and Ok button
> ASSERT: Hibernate configuration appear in Hibernate Configuration View 
> EXECUTE: Right mouse click on configeration in Hibernate Configuration View and select Run SchemaExport
> EXECUTE: Hibernate Code Generation
> EXECUTE: Select your configuration
> EXECUTE: Set path to non-existent package in Output directory  field
> EXECUTE: Select one exporter option on Exporters tab.
> EXECUTE: Press Apply and Run buttons
> ASSERT:    Expect files should be created in directory that was set in Output directory  field.
> FAILURE:   java.lang.NullPointerException
> Log attached.

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

        



More information about the jbosstools-issues mailing list