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.
Create a new Project, connect to a mysql db having a table (test) with 2 fields id - int - primary name - varchar now enter a record where id equals zero ie 0 - testing Use the wizard to create entities from database. Right click on persistence.xml and try to run a jpql query ie SELECT t FROM Test it fails with "java.lang.IllegalStateException: Exception Description: No transaction is currently active at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.rollback(EntityTransactionImpl.java:176)" After some trials i found out that this happens ONLY if you run the query from JPQL editor.
i know that setting primary to zero is strange and even bad practice.