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 216785

Summary: IllegalStateException: The current thread is not running userActionTask()
Product: javaee Reporter: bht <bht>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED FIXED    
Severity: normal CC: pjiricka
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 191491
Bug Depends on:    
Bug Blocks: 216053    
Attachments: stacktrace

Description bht 2012-08-13 11:01:21 UTC
This issue was reported manually by sj-nb.
It already has 2 duplicates 


Build: NetBeans IDE Dev (Build 201208120001)
VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b22
OS: Windows XP

User Comments:
bht: See issue 216053, 605614

bht: opening multiple JPA entities, waiting slowly for CPU to settle to 0 before the next one. See issue 216053




Stacktrace: 
java.lang.IllegalStateException: The current thread is not running userActionTask()
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.assertUserActionTaskThread(AnnotationModelHelper.java:317)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.getCompilationController(AnnotationModelHelper.java:289)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.PersistentObject.getTypeElement(PersistentObject.java:75)
   at org.netbeans.modules.j2ee.persistence.spi.jpql.Type.getTypeElement(Type.java:294)
   at org.netbeans.modules.j2ee.persistence.spi.jpql.Type.constructors(Type.java:115)
   at org.eclipse.persistence.jpa.internal.jpql.SemanticValidator.visit(SemanticValidator.java:1115)
Comment 1 bht 2012-08-13 11:01:23 UTC
Created attachment 123037 [details]
stacktrace
Comment 2 Sergey Petrov 2012-08-13 11:03:44 UTC
need to be fixed as part of 216053 fix.
Comment 3 Sergey Petrov 2012-08-13 13:04:35 UTC
http://hg.netbeans.org/web-main/rev/42c4a850f305 do not call  getTypeElement for invalid model. 
should be fixed but need verification as it's not direct fix.