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 90519 - Exception: rollback!!! and code is not generated from time to time
Summary: Exception: rollback!!! and code is not generated from time to time
Status: RESOLVED INVALID
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Craig Conover
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-04 14:28 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
CodeGenerationProject-Model UML project (194.75 KB, application/octet-stream)
2006-12-04 14:29 UTC, Alexandr Scherbatiy
Details
IDE log file (67.76 KB, text/plain)
2006-12-04 14:30 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2006-12-04 14:28:09 UTC
The issue is not 100% reproducible.
I think the attached IDE log file could help to find
the reason of the issue.

Steps to reproduce:

- Open the attached UML project
- Generate Code for the Project
- Create a Java Project with Existing Source,
  and associate it with the generated code
- Open 'multiplicity.attribute.A' java class
 The 'A' java class has non empty body

- Select the UML project and invoke 'Generate Code'
  (Do not close 'A' java class editor)

- Try to generate code some times.

  The generated 'A'  java class body is empty

 Here is an exception in the IDE log file:
----------------------------------------------------------------------------
java.lang.Exception: rollback!!!
  modules.javacore.ExclusiveMutex.leave(ExclusiveMutex.java:339)
  mdr.NBMDRepositoryImpl.endTrans(NBMDRepositoryImpl.java:249)
  mdr.handlers.BaseObjectHandler._unlock(BaseObjectHandler.java:227)
  mdr.handlers.ClassProxyHandler._postCreate(ClassProxyHandler.java:101)
  jmi.javamodel.FieldClass$Impl.createField(Unknown Source)
  ...
-----------------------------------------------------------------------------
Comment 1 Alexandr Scherbatiy 2006-12-04 14:29:31 UTC
Created attachment 36451 [details]
CodeGenerationProject-Model UML project
Comment 2 Alexandr Scherbatiy 2006-12-04 14:30:13 UTC
Created attachment 36452 [details]
IDE log file
Comment 3 Craig Conover 2006-12-04 19:25:04 UTC
I'm getting a different exception:
[org.netbeans.javacore] INFORMATIONAL *********** Exception occurred ***********
* at 11:18 AM on Dec 4, 2006
java.lang.Exception: Class not found in index:
elements.templateclass.TemplateClass1. Recovering...

And the class has all it's proper code generated except that two methods are
generated more than once. It's as if the original sources are not being
completely deleted.

More details on above to be logged when I do more testing and research.
Comment 4 Peter Lam 2007-03-20 20:19:59 UTC
low use case not currently impacting our installed user base.
Comment 5 Craig Conover 2007-06-26 04:07:05 UTC
new code gen module; problem no longer exists