This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 188996

Summary: org.xml.sax.SAXParseException: The content of element type "schema-selection" must match "EMPTY".
Product: javaee Reporter: Maksim Khramov <mkhramov>
Component: HibernateAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED WONTFIX    
Severity: normal CC: dellasavia, mkhramov
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 171596
Attachments: stacktrace
stacktrace
stacktrace

Description Maksim Khramov 2010-07-27 18:39:48 UTC
Build: NetBeans IDE 6.9 (Build 201006101454)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Windows XP

Stacktrace: 
org.xml.sax.SAXParseException: The content of element type "schema-selection" must match "EMPTY".
   at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
   at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
   at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
   at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
   at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2009)
   at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:901)
Comment 1 Maksim Khramov 2010-07-27 18:39:52 UTC
Created attachment 101054 [details]
stacktrace
Comment 2 Sergey Petrov 2011-02-24 18:51:41 UTC
From exception xml do not match schema, how this xml was created? if it was created manually it's only dialog/report issue (may need to provide a dialog or hint) but if this file was created by nb it's also some functional issue.
Anyway may be good to try to corrupt xml and see a result and fix visible exceptions.
Comment 3 Maksim Khramov 2011-11-07 12:57:42 UTC
Created attachment 112920 [details]
stacktrace

This code was added to hibernate.reveng.xml
Comment 4 Maksim Khramov 2011-11-07 13:02:10 UTC
  <type-mapping>
    <sql-type jdbc-type="DECIMAL" hibernate-type="java.lang.Long"/>
  </type-mapping>
Comment 5 Sergey Petrov 2011-11-07 15:19:26 UTC
It's not perfect to throw exception but it have clear description and also it's just reveng file misconfiguration, don't see it as severe issue > P4
Comment 6 Exceptions Reporter 2012-05-28 11:23:45 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=171596
Comment 7 Exceptions Reporter 2012-09-24 06:47:10 UTC
Created attachment 124783 [details]
stacktrace
Comment 8 Martin Balin 2016-07-07 08:55:44 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss