Hemal Mehta | You will obviously get a technical difficult message. There is likely a issue with the transaction management within the code. This is typically thrown when there is no transaction context. What is the spring version you are using ? You may need to invoke the affected method invoked within a transactional context. Hemal
From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com] Sent: Thursday, January 10, 2013 6:32 AM To: cdicuser@developer.cisco.com Subject: New Message from Binny Mathew in Customer Voice Portal (CVP) - CVP - All Versions: UCCX - Implementing log4j
Binny Mathew has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- I am implementing log4j in my project and also can see the custom log that i am writing in the application being written, But i am also getting a technical difficulty message not sure where is the problem. Below is the exception that i am getting in the logs not sure if this is causing the problem or something else. 10 Jan 2013 17:37:39 DEBUG [com.atomikos.diagnostics.Slf4jConsole.println(Slf4jConsole.java:88)] - getCompositeTransaction() returning NULL! 10 Jan 2013 17:37:39 DEBUG [com.cisco.persistence.dao.impl.AbstractEntityDAOImpl.destroyEntityManagers(AbstractEntityDAOImpl.java:145)] - Exception when flushing the Primary EntityManager javax.persistence.TransactionRequiredException: no transaction is in progress at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:301) at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:358) at $Proxy20.flush(Unknown Source) at com.cisco.persistence.dao.impl.AbstractEntityDAOImpl.destroyEntityManagers(AbstractEntityDAOImpl.java:142) at com.cisco.persistence.dao.impl.CampaignDAOImpl.readCampaign(CampaignDAOImpl.java:140) at sun.reflect.GeneratedMethodAccessor239.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) at $Proxy37.readCampaign(Unknown Source) at com.cisco.config.impl.dbaccessor.CampaignUtil.readAll(CampaignUtil.java:44) at com.cisco.config.impl.dbaccessor.DBAccessor.get(DBAccessor.java:492) at com.cisco.config.impl.ConfigManagerImpl.getCIRecords(ConfigManagerImpl.java:1438) at com.cisco.config.impl.ConfigManagerImpl.getAll(ConfigManagerImpl.java:534) at com.cisco.config.Config.getAll(Config.java:1030) at com.cisco.config.Config.get(Config.java:811) at com.cisco.config.Config.get(Config.java:744) at com.cisco.crs.outbound.CampaignConfig.getCampaign(CampaignConfig.java:313) at com.cisco.wf.subsystems.outbound.ReadContactsThread.readCampaigns(ReadContactsThread.java:207) at com.cisco.wf.subsystems.outbound.ReadContactsThread.run(ReadContactsThread.java:153) at com.cisco.executor.impl.ExecutorStubImpl$RequestImpl.runCommand(ExecutorStubImpl.java:690) at com.cisco.executor.impl.ExecutorStubImpl$RequestImpl.run(ExecutorStubImpl.java:486) at com.cisco.executor.impl.ExecutorStubImpl$RequestImpl.run(ExecutorStubImpl.java:762) at com.cisco.executor.impl.ThreadStubImpl$RequestImpl.run(ThreadStubImpl.java:570) at com.cisco.util.ThreadPoolFactory$ThreadImpl.run(ThreadPoolFactory.java:853) Also if anyone can tell me as to which log should o be refering in order to get to the find the issue. Rgds/Binny -- To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/10132677 or simply reply to this email. |
| Please sign in to flag this as inappropriate. |