Here is the class with some code removed as I think it's not relevant.
When entityManager.merge is uncommented, the above exception ocurs.
@Stateless
| @Name("importRunAction")
| public class ImportRunAction implements ImportRunActionInterface {
|
| @In
| EntityManager entityManager;
|
| public ImportRunAction() {
| }
|
| @Override
| public void run(Import importRule, User user) {
|
| /*
| * Asynchronous and ongoing task progress reporting
| */
| AsynchronousImportController aip =
(AsynchronousImportController) Component
| .getInstance("asynchronousImportController");
| Progress progress = aip.getProgress(importRule);
|
| try {
|
| [...]
| importRunEvent.setMessage("Success");
| importRunEvent.end();
| entityManager.persist(importRunEvent);
| }
|
| } catch (Exception e) {
| FacesMessages.instance().add(e.getMessage());
| e.printStackTrace();
| aip.remove(importRule);
| }
|
| aip.remove(importRule);
|
| datasource.setBookCount(bookCount);
|
| // entityManager.merge(datasource);
|
| System.out.println("end run");
| }
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096221#4096221
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096221
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user