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 - IllegalStateException: The current thread is not running userActionTask()
Summary: IllegalStateException: The current thread is not running userActionTask()
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks: 216053
  Show dependency tree
 
Reported: 2012-08-13 11:01 UTC by bht
Modified: 2012-08-13 13:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191491


Attachments
stacktrace (6.71 KB, text/plain)
2012-08-13 11:01 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
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.