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 112002 - runtime exception while opening an invalid persistence xml
Summary: runtime exception while opening an invalid persistence xml
Status: RESOLVED DUPLICATE of bug 111610
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-05 15:50 UTC by Samaresh Panda
Modified: 2007-08-06 08:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
runtime exception (3.61 KB, application/octet-stream)
2007-08-05 15:52 UTC, Samaresh Panda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samaresh Panda 2007-08-05 15:50:51 UTC
Start the IDE
Open a messed up persistence xml file such as

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
        xmlns='http://java.sun.com/xml/ns/persistence'
        xsi:schemaLocation='http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd'>
    <persistence-unit
</persistence>

You get a runtime exception. See attachment.
Comment 1 Samaresh Panda 2007-08-05 15:52:01 UTC
Created attachment 46167 [details]
runtime exception
Comment 2 Erno Mononen 2007-08-06 08:11:19 UTC
Seems to be a duplicate of issue 111610.

*** This issue has been marked as a duplicate of 111610 ***