[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1768) hbm2java: error generating collection of components

Vitali Yemialyanchyk (JIRA) jira-events at lists.jboss.org
Wed Feb 20 12:34:43 EST 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1768?page=comments#action_12400070 ] 
            
Vitali Yemialyanchyk commented on JBIDE-1768:
---------------------------------------------

in org.eclipse.wst.common.project.facet.core.internal.FacetedProject - I find what 

    public IStatus validate( final IProgressMonitor monitor )
    {
                    /// ...
                    for( int i = 0, n = warnings.size(), offset = errors.size(); 
                         i < n; i++ )
                    {
                        starray[ i ] 
                            = new Status( IStatus.WARNING, FacetCorePlugin.PLUGIN_ID,
                                          warnings.get( i + offset ) );
                    }
                    /// ...
    }

warnings is ArrayList
warnings.size() is 1
errors.size() is 1
i is 0
so in 
warnings.get( i + offset ) 
so I get exception


> hbm2java: error generating collection of components
> ---------------------------------------------------
>
>                 Key: JBIDE-1768
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1768
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 2.0.0.GA
>            Reporter: Carsten Hoehne
>         Assigned To: Vitali Yemialyanchyk
>         Attachments: Sample.hbm.xml, Sample2Well.hbm.xml, test-case-1.jpg, test-case-1_add_2.jpg, test-case-2.jpg, ZZ_Sample.zip
>
>
> Java code with annotations should be generated from a mapping file. This file contains a collection of components. Then an exception is thrown. See forum reference.
> The files will be 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