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 187711 - AssertionError at org.netbeans.modules.j2ee.persistenceapi.metadata.orm.annotation.EntityMappingsImpl$EmbeddableProvider.modifyObjects
Summary: AssertionError at org.netbeans.modules.j2ee.persistenceapi.metadata.orm.annot...
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.0
Hardware: All All
: P4 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2010-06-17 09:21 UTC by Sergey Petrov
Modified: 2015-02-04 03:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 170756


Attachments
stacktrace (5.54 KB, text/plain)
2010-06-17 09:21 UTC, Sergey Petrov
Details
stacktrace (5.73 KB, text/plain)
2011-11-29 14:49 UTC, javydreamercsw
Details
stacktrace (5.86 KB, text/plain)
2011-11-29 15:04 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2010-06-17 09:21:22 UTC
Build: NetBeans IDE Dev (Build 100617-2dd683d50831)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
sj-nb: select entity in projecvt tree, have pk class opened and it contain duplicates of embeddable annotation




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.j2ee.persistenceapi.metadata.orm.annotation.EntityMappingsImpl$EmbeddableProvider.modifyObjects(EntityMappingsImpl.java:448)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.PersistentObjectManager.typesChanged(PersistentObjectManager.java:196)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper$ClassIndexListenerImpl$3.call(AnnotationModelHelper.java:457)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper$ClassIndexListenerImpl$3.call(AnnotationModelHelper.java:454)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runCallable(AnnotationModelHelper.java:255)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.access$100(AnnotationModelHelper.java:85)
Comment 1 Sergey Petrov 2010-06-17 09:21:26 UTC
Created attachment 100157 [details]
stacktrace
Comment 2 Sergey Petrov 2010-09-01 10:29:06 UTC
Got it once and wasn't able to reproduce and can't now.
May be assertion can be just removed and only first object is used everywhere as it may be rare case for corrupted entities with duplicates.
Comment 3 Sergey Petrov 2010-10-26 10:17:42 UTC
it's hard to reproduce, no duplicates >P4. likely model shouldn't add duplicates instead of assertion removal but looks like in most cases there are no duplcates even with duplicate annotations
Comment 4 javydreamercsw 2011-11-29 14:49:15 UTC
Created attachment 113619 [details]
stacktrace

Fixing erroneously generated code
Comment 5 javydreamercsw 2011-11-29 15:04:15 UTC
Created attachment 113621 [details]
stacktrace

Generating JPA entities from database.
Comment 6 Quality Engineering 2015-02-04 03:29:57 UTC
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.