[jbosstools-issues] [JBoss JIRA] Closed: (JBIDE-613) NullPointerException occurs if there are .hbm.xml file with xml errors in it

Max Andersen (JIRA) jira-events at lists.jboss.org
Mon Jul 30 06:56:49 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBIDE-613?page=all ]

Max Andersen closed JBIDE-613.
------------------------------

    Resolution: Duplicate Issue

yes - duplicate since this is the general way hibernate tools logs issues.

I've changed the Error to an Warning to be less "alarming", but we need to find a different place to log issues found in the model at runtime (not just for hibernate but other plugins could benefit from something to have a structured log instead of just dumping to the console)

> NullPointerException occurs if there are .hbm.xml file with xml errors in it 
> -----------------------------------------------------------------------------
>
>                 Key: JBIDE-613
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-613
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: Hibernate
>            Reporter: Denis Golovin
>         Assigned To: Max Andersen
>
> If there is xml errors in any hbm.xml file that is registered in hibernate.cfg.xml NullPointerExceptions occurs every time when Hibernate configuration with that broken file is selected in Hibernate Configurations View.
> java.lang.NullPointerException
> 	at org.hibernate.eclipse.graph.model.PropertyViewAdapter.createSingleEndedEnityAssociations(PropertyViewAdapter.java:98)
> 	at org.hibernate.eclipse.graph.model.PropertyViewAdapter.checkConnections(PropertyViewAdapter.java:71)
> 	at org.hibernate.eclipse.graph.model.PropertyViewAdapter.getSourceConnections(PropertyViewAdapter.java:64)
> 	at org.hibernate.eclipse.graph.parts.PropertyEditPart.getModelSourceConnections(PropertyEditPart.java:76)
> 	at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refreshSourceConnections(AbstractGraphicalEditPart.java:597)
> 	at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:565)
> 	at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
> 	at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
> 	at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
> 	at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:727)
> 	at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:677)
> 	at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:564)
> 	at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
> 	at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
> 	at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
> 	at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:727)
> 	at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:677)
> 	at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:564)
> 	at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
> 	at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
> 	at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
> 	at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(SimpleRootEditPart.java:101)
> 	at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:601)

-- 
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