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 240786 - AssertionError at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator$5.run
Summary: AssertionError at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFac...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 16:34 UTC by Sergey Petrov
Modified: 2014-01-27 05:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177737


Attachments
stacktrace (8.80 KB, text/plain)
2014-01-21 16:34 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2014-01-21 16:34:08 UTC
Build: NetBeans IDE Dev (Build 20140120-958698330160)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
asf4ever: creating session beans from entity classes

sj-nb: generate session bean for entities

GUEST: Generating a Session bean from an entity class




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator$5.run(EjbFacadeWizardIterator.java:631)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator$5.run(EjbFacadeWizardIterator.java:625)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:649)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:639)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:493)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:593)
Comment 1 Sergey Petrov 2014-01-21 16:34:10 UTC
Created attachment 144220 [details]
stacktrace
Comment 2 Sergey Petrov 2014-01-21 16:40:02 UTC
just reuse the same java class library in second ejb module with gfeneration of sesssion beans from entities with remote interface (with the same entities)
Comment 3 Martin Fousek 2014-01-24 11:37:26 UTC
Thanks for the report, this case was not covered before.

Now if you are trying to generate the same remote interfaces into the class library, it skips the generation of (already existing) @Remotes.

Fixed in web-main #c8c0163cefab.
Comment 4 Quality Engineering 2014-01-25 03:39:11 UTC
Integrated into 'main-silver', will be available in build *201401250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c8c0163cefab
User: Martin Fousek <marfous@netbeans.org>
Log: #240786 - AssertionError at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator$5.run
Comment 5 Martin Fousek 2014-01-27 05:54:53 UTC
Additional minor fix in web-main #718415a60def.