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 233302 - RuntimeException: DOM graph creation failed: org.netbeans.modules.schema2beans.Schema2BeansRuntimeException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct. Il rifer
Summary: RuntimeException: DOM graph creation failed: org.netbeans.modules.schema2bean...
Status: REOPENED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: All All
: P4 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-24 10:22 UTC by marcopar
Modified: 2018-02-26 16:53 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 70604


Attachments
stacktrace (4.65 KB, text/plain)
2013-07-24 10:22 UTC, marcopar
Details
stacktrace (2.97 KB, text/plain)
2015-02-17 10:51 UTC, abien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marcopar 2013-07-24 10:22:03 UTC
Build: NetBeans IDE 7.3 (Build 201306052037)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Linux

User Comments:
GUEST: constantly popping up

skaplon: Just opened a maven project, the erros appeared after usual background scanning. The project never gave the error before on nb 7.3 (or any other version if it matters)

GUEST: constantly popping up..

really annoying

marcopar: N/A




Stacktrace: 
java.lang.RuntimeException: DOM graph creation failed: org.netbeans.modules.schema2beans.Schema2BeansRuntimeException: Failed to create the XML-DOM Document.  Check your XML to make sure it is correct.
Il riferimento di entit
Comment 1 marcopar 2013-07-24 10:22:06 UTC
Created attachment 137680 [details]
stacktrace
Comment 2 marcopar 2013-07-24 10:27:17 UTC
probably related to the postgres sql driver connection string present in the persistence.xml

<property name="hibernate.connection.url" value="jdbc:postgresql://192.168.1.3/rfidwarehouse?user=postgres&password=postgres"/>

the ide seems not to like the presence of &
Comment 3 skaplon 2013-07-24 11:33:55 UTC
You aren't allowed to use unescaped & in a XML string, see http://stackoverflow.com/questions/730133/invalid-characters-in-xml
Comment 4 marcopar 2013-07-24 11:39:38 UTC
true

the error given should contain the name of the offending file tough....it would be easier to hunt down
Comment 5 Sergey Petrov 2013-07-24 12:09:02 UTC
I'm reopening but give low priority for now as at first it's "user error" if this '&' isn't added by netbeans.
but also it's better to have a better message instead of just exception from schema to bean, plain unhandled exception is an issue in any case.
Comment 6 abien 2015-02-17 10:51:39 UTC
Created attachment 152027 [details]
stacktrace

Happens between switching to IT JPA
Comment 7 JHP 2017-09-24 13:55:42 UTC
This exception is being set off because the pseudorandomly-generated database password in my persistence.xml file contains special characters. Specifically, it contained a less-than or greater-than symbol, which I have now replaced with its HTML equivalent. I have not yet tested database access with the HTML character replacement.
Comment 8 Exceptions Reporter 2018-02-26 16:26:28 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=70604
Comment 9 Exceptions Reporter 2018-02-26 16:35:27 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=70604
Comment 10 Exceptions Reporter 2018-02-26 16:44:27 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=70604
Comment 11 Exceptions Reporter 2018-02-26 16:53:27 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=70604