java.lang.RuntimeException

Entities can only be used with a single EntityManager instance 2012-02-03 01:26:14.325520500 at net.java.ao.EntityManager.verify(EntityManager.java:952) 2012-02-03 01:26:14.325521500 at net.java.ao.EntityManager.delete(EntityManager.java:494) 2012-02-03 01:26:14.325531500 at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.delete(EntityManagedActiveObjects.java:98) 2012-02-03 01:26:14.325532500 at com.atlassian.activeobjects.osgi.DelegatingActiveObjects.delete(DelegatingActiveObjects.java:66) 2012-02-03 01:26:14.325533500 at sun.reflect.GeneratedMethodAccessor481.invoke(Unknown Source) 2012-02-03 01:26:14.325534500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2012-02-03 01:26:14.325536500 at java.lang.reflect.Method.invoke(Method.java:597) 2012-02-03 01:26:14.325537500 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) 2012-02-03 01:26:14.325538500 at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) 2012-02-03 01:26:14.325543500 at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) 2012-02-03 01:26:14.325544500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 2012-02-03 01:26:14.325545500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) 2012-02-03 01:26:14.325547500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) 2012-02-03 01:26:14.325549500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 2012-02-03 01:26:14.325550500 at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) 2012-02-03 01:26:14.325553500 at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) 2012-02-03 01:26:14.325554500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 2012-02-03 01:26:14.325555500 at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) 2012-02-03 01:26:14.325559500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 2012-02-03 01:26:14.325560500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) 2012-02-03 01:26:14.325561500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) 2012-02-03 01:26:14.325564500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 2012-02-03 01:26:14.325565500 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) 2012-02-03 01:26:14.325566500 at $Proxy1216.delete(Unknown Source) 2012-02-03 01:26:14.325566500 at com.atlassian.jira.plugins.bitbucket.api.impl.DefaultRepositoryPersister$6.doInTransaction(DefaultRepositoryPersister.java:191) 2012-02-03 01:26:14.325569500 at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25) 2012-02-03 01:26:14.325571500 at com.atlassian.jira.DefaultHostContextAccessor.doInTransaction(DefaultHostContextAccessor.java:34) 2012-02-03 01:26:14.325572500 at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) 2012-02-03 01:26:14.325580500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2012-02-03 01:26:14.325581500 at java.lang.reflect.Method.invoke(Method.java:597) 2012-02-03 01:26:14.325582500 at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$AbstractMultiTenantAwareInvocationHandler.invokeInternal(MultiTenantComponentFactoryImpl.java:181) 2012-02-03 01:26:14.325583500 at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$MultiTenantAwareInvocationHandler.invoke(MultiTenantComponentFactoryImpl.java:211) 2012-02-03 01:26:14.325586500 at $Proxy291.doInTransaction(Unknown Source) 2012-02-03 01:26:14.325587500 at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) 2012-02-03 01:26:14.325588500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2012-02-03 01:26:14.325589500 at java.lang.reflect.Method.invoke(Method.java:597) 2012-02-03 01:26:14.325591500 at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) 2012-02-03 01:26:14.325592500 at $Proxy291.doInTransaction(Unknown Source) 2012-02-03 01:26:14.325593500 at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) 2012-02-03 01:26:14.325597500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web26667

  • via Atlassian JIRA by Sam Haldane, 10 months ago
    Entities can only be used with a single EntityManager instance 2012-02-03 01:26:14.325520500 at net.java.ao.EntityManager.verify(EntityManager.java:952) 2012-02-03 01:26:14.325521500 at net.java.ao.EntityManager.delete(EntityManager.java:494) 2012
  • via Atlassian JIRA by Sam Haldane, 1 year ago
    Entities can only be used with a single EntityManager instance 2012-02-03 01:26:14.325520500 at net.java.ao.EntityManager.verify(EntityManager.java:952) 2012-02-03 01:26:14.325521500 at net.java.ao.EntityManager.delete(EntityManager.java:494) 2012
  • via Atlassian JIRA by Eric Dalgliesh, 1 year ago
    (SpringHostContextAccessor.java:82) 2011-02-16 10:17:57.597489500 at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) 2011-02-16 10:17:57.597490500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2011-02-16 10
  • Stack trace

    • java.lang.RuntimeException: Entities can only be used with a single EntityManager instance 2012-02-03 01:26:14.325520500 at net.java.ao.EntityManager.verify(EntityManager.java:952) 2012-02-03 01:26:14.325521500 at net.java.ao.EntityManager.delete(EntityManager.java:494) 2012-02-03 01:26:14.325531500 at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.delete(EntityManagedActiveObjects.java:98) 2012-02-03 01:26:14.325532500 at com.atlassian.activeobjects.osgi.DelegatingActiveObjects.delete(DelegatingActiveObjects.java:66) 2012-02-03 01:26:14.325533500 at sun.reflect.GeneratedMethodAccessor481.invoke(Unknown Source) 2012-02-03 01:26:14.325534500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2012-02-03 01:26:14.325536500 at java.lang.reflect.Method.invoke(Method.java:597) 2012-02-03 01:26:14.325537500 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) 2012-02-03 01:26:14.325538500 at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) 2012-02-03 01:26:14.325543500 at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) 2012-02-03 01:26:14.325544500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 2012-02-03 01:26:14.325545500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) 2012-02-03 01:26:14.325547500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) 2012-02-03 01:26:14.325549500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 2012-02-03 01:26:14.325550500 at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) 2012-02-03 01:26:14.325553500 at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) 2012-02-03 01:26:14.325554500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 2012-02-03 01:26:14.325555500 at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) 2012-02-03 01:26:14.325559500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 2012-02-03 01:26:14.325560500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) 2012-02-03 01:26:14.325561500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) 2012-02-03 01:26:14.325564500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 2012-02-03 01:26:14.325565500 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) 2012-02-03 01:26:14.325566500 at $Proxy1216.delete(Unknown Source) 2012-02-03 01:26:14.325566500 at com.atlassian.jira.plugins.bitbucket.api.impl.DefaultRepositoryPersister$6.doInTransaction(DefaultRepositoryPersister.java:191) 2012-02-03 01:26:14.325569500 at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25) 2012-02-03 01:26:14.325571500 at com.atlassian.jira.DefaultHostContextAccessor.doInTransaction(DefaultHostContextAccessor.java:34) 2012-02-03 01:26:14.325572500 at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) 2012-02-03 01:26:14.325580500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2012-02-03 01:26:14.325581500 at java.lang.reflect.Method.invoke(Method.java:597) 2012-02-03 01:26:14.325582500 at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$AbstractMultiTenantAwareInvocationHandler.invokeInternal(MultiTenantComponentFactoryImpl.java:181) 2012-02-03 01:26:14.325583500 at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$MultiTenantAwareInvocationHandler.invoke(MultiTenantComponentFactoryImpl.java:211) 2012-02-03 01:26:14.325586500 at $Proxy291.doInTransaction(Unknown Source) 2012-02-03 01:26:14.325587500 at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) 2012-02-03 01:26:14.325588500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2012-02-03 01:26:14.325589500 at java.lang.reflect.Method.invoke(Method.java:597) 2012-02-03 01:26:14.325591500 at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) 2012-02-03 01:26:14.325592500 at $Proxy291.doInTransaction(Unknown Source) 2012-02-03 01:26:14.325593500 at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) 2012-02-03 01:26:14.325597500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.