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 111610

Summary: Schema2BeansRuntimeException after opening persistence.xml
Product: javaee Reporter: Jan Horvath <jhorvath>
Component: PersistenceAssignee: Erno Mononen <emononen>
Status: RESOLVED FIXED    
Severity: blocker CC: jhorvath
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=265
Issue Type: DEFECT Exception Reporter: 265
Attachments: persistence.xml

Description Jan Horvath 2007-08-01 13:19:29 UTC
Build: NetBeans IDE Dev (Build 200708010000)
VM: Java HotSpot(TM) Client VM, 1.5.0_07-87
OS: Mac OS X, 10.4.10, i386

-I've just opened persistence.xml file in j2se project

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.
The content of elements must consist of well-formed c
        at org.netbeans.modules.j2ee.persistence.dd.persistence.model_1_0.Persistence.createGraph(Persistence.java:213)
        at org.netbeans.modules.j2ee.persistence.dd.persistence.model_1_0.Persistence.createGraph(Persistence.java:204)
        at org.netbeans.modules.j2ee.persistence.dd.PersistenceMetadata.getRoot(PersistenceMetadata.java:69)
        at org.netbeans.modules.j2ee.persistence.unit.PUDataObject.getPersistence(PUDataObject.java:191)
        at org.netbeans.modules.j2ee.persistence.unit.PersistenceToolBarMVElement$PersistenceView.(PersistenceToolBarMVElement.java:156)
        at org.netbeans.modules.j2ee.persistence.unit.PersistenceToolBarMVElement.repaintView(PersistenceToolBarMVElement.java:111)
        at org.netbeans.modules.j2ee.persistence.unit.PersistenceToolBarMVElement.componentShowing(PersistenceToolBarMVElement.java:104)
        at org.netbeans.core.multiview.MultiViewPeer.peerComponentShowing(MultiViewPeer.java:176)
        at org.netbeans.core.multiview.MultiViewCloneableTopComponent.componentShowing(MultiViewCloneableTopComponent.java:112)
Comment 1 Jan Horvath 2007-08-01 13:20:51 UTC
more info: persistence.xml has merge conflicts. attaching
Comment 2 Jan Horvath 2007-08-01 13:21:46 UTC
Created attachment 45990 [details]
persistence.xml
Comment 3 Jan Horvath 2007-08-01 14:06:33 UTC
*** Issue 111614 has been marked as a duplicate of this issue. ***
Comment 4 Jan Horvath 2007-08-01 14:09:21 UTC
*** Issue 111615 has been marked as a duplicate of this issue. ***
Comment 5 Erno Mononen 2007-08-06 08:11:18 UTC
*** Issue 112002 has been marked as a duplicate of this issue. ***
Comment 6 Erno Mononen 2007-08-06 08:19:52 UTC
Working on this now.
Comment 7 Erno Mononen 2007-08-06 13:15:57 UTC
Fixed in trunk.

Checking in PersistenceToolBarMVElement.java;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/unit/PersistenceToolBarMVElement.java,v  <--  
PersistenceToolBarMVElement.java
new revision: 1.6; previous revision: 1.5
done
Checking in PUDataObject.java;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/unit/PUDataObject.java,v  <--  PUDataObject.java
new revision: 1.6; previous revision: 1.5
done
Comment 8 Jiri Prox 2007-08-17 11:29:32 UTC
*** Issue 113016 has been marked as a duplicate of this issue. ***