[Clustering/JBoss] - Facing problem in Integration of servicemix and jboss
by puneetjain
Hi,
I am facing problem in integrating servicemix in jboss server. Details is as bellow:
Environment:
=========
Operating System: windows XP
Servicemix 3.2.1
Java 1.5
Jboss version 4.2.2.GA
Steps Performed:
============
1. Download the servicemix jbi jboss deployer and build it using maven. Command is as follow:
svn co http://svn.codehaus.org/servicemix/trunk/jboss-deployer
cd jboss-deployer
mvn install
2. This creates a servicemix-jboss-deployer-3.1.2.sar.
3. Deployed Servicemix Deployer servicemix-jboss-deployer-3.1.2.sar on jboss.
4. While deploying the servicemix jboss deployer client Factory could not started.
server.log is given below:
15:48:09,499 WARN [EndpointRegistry] Disabled endpoint processor 'org.apache.servicemix.jbi.framework.support.WSDL2Processor': java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
15:48:09,546 WARN [EndpointRegistry] Disabled endpoint processor 'org.apache.servicemix.jbi.framework.support.WSDL2Processor': java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
15:48:09,546 INFO [JBIContainer] ServiceMix 3.1.2 JBI Container (ServiceMix) is starting
15:48:09,546 INFO [JBIContainer] For help or more informations please see: http://incubator.apache.org/servicemix/
15:48:09,827 INFO [ComponentMBeanImpl] Initializing component: #SubscriptionManager#
15:48:09,858 INFO [DeploymentService] Restoring service assemblies
15:48:09,889 WARN [ClientFactory] Cound not start ClientFactory: javax.naming.NameNotFoundException: env not bound
15:48:09,889 INFO [JBIContainer] ServiceMix JBI Container (ServiceMix) started
5. I deployed apache-servicemix-web-3.2.2-20080203.011720-1.war on the server.
log are given below:
INFO [TomcatDeployer] deploy, ctxPath=/apache-servicemix-web-3.2.2-20080203.011720-1, warUrl=.../tmp/deploy/tmp5874apache-servicemix-web-3.2.2-20080203.011720-1-exp.war/
INFO [011720-1]] Initializing Spring root WebApplicationContext
INFO [STDOUT] WARN - EndpointRegistry - Disabled endpoint processor 'org.apache.servicemix.jbi.framework.support.WSDL2Processor': java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
INFO [STDOUT] INFO - JBIContainer - ServiceMix 3.2.2-SNAPSHOT JBI Container (ServiceMix) is starting
INFO [STDOUT] INFO - JBIContainer - For help or more informations please see: http://incubator.apache.org/servicemix/
INFO [STDOUT] INFO - ComponentMBeanImpl - Initializing component: #SubscriptionManager#
INFO [STDOUT] INFO - DeploymentService - Restoring service assemblies
INFO [STDOUT] WARN - ClientFactory - Cound not start ClientFactory: javax.naming.NameNotFoundException: jbi not bound
INFO [STDOUT] INFO - JBIContainer - ServiceMix JBI Container (ServiceMix) started
INFO [STDOUT] INFO - JDBCAdapterFactory - Database driver recognized: [apache_derby_embedded_jdbc_driver]
INFO [011720-1]] Initializing Spring FrameworkServlet 'dispatcher'
6. I install the servicemix-shared library using the servicemix web interface, I get following exception:
2008-02-06 16:36:44,119 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
2008-02-06 16:36:44,119 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
2008-02-06 16:38:44,161 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Wed, 6 Feb 2008 16:38:44>
2008-02-06 16:38:44,161 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
2008-02-06 16:38:44,161 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
2008-02-06 16:38:44,161 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
2008-02-06 16:38:44,661 DEBUG [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in: file:/D:/OKISoft/jboss/jboss-4.2.2.GA/server/default/deploy/jboss-web.deployer/jsf-libs/jsf-impl.jar
2008-02-06 16:38:45,193 DEBUG [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in: file:/D:/OKISoft/jboss/jboss-4.2.2.GA/server/default/deploy/jboss-web.deployer/jstl.jar
2008-02-06 16:38:54,162 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Wed, 6 Feb 2008 16:38:54>
2008-02-06 16:38:54,162 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
2008-02-06 16:38:54,162 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
2008-02-06 16:38:54,162 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
2008-02-06 16:39:39,260 ERROR [STDERR] servicemix-shared
2008-02-06 16:40:30,952 INFO [STDOUT] INFO - jetty - Logging to org.apache.servicemix.http.jetty.JCLLogger@1cb1278 via org.apache.servicemix.http.jetty.JCLLogger
2008-02-06 16:40:31,343 ERROR [STDERR] <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>installComponent</task-id>
<task-result>SUCCESS</task-result>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>file:/C:/DOCUME~1/puninin/Local Settings/Temp/smx-comp5877.zip</loc-message>
</msg-loc-info>
</task-status-msg>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
</jbi-task-result>
</jbi-task>
2008-02-06 16:40:54,173 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Wed, 6 Feb 2008 16:40:54>
2008-02-06 16:40:54,173 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
2008-02-06 16:40:54,173 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
2008-02-06 16:40:54,173 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
2008-02-06 16:41:04,174 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Wed, 6 Feb 2008 16:41:04>
2008-02-06 16:41:04,174 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
2008-02-06 16:41:04,174 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
2008-02-06 16:41:04,174 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
2008-02-06 16:43:04,185 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Wed, 6 Feb 2008 16:43:04>
2008-02-06 16:43:04,185 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
2008-02-06 16:43:04,185 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
2008-02-06 16:43:04,185 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
2008-02-06 16:43:14,186 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Wed, 6 Feb 2008 16:43:14>
2008-02-06 16:43:14,186 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
2008-02-06 16:43:14,186 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
2008-02-06 16:43:14,186 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
7. Now i am trying to install servicemix (version3.2.1) servicemix-http component, and i am getting following exceptions:
org.springframework.jmx.access.InvocationFailureException: JMX access failed; nested exception is javax.management.MBeanException
Caused by: javax.management.MBeanException
at org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(BaseStandardMBean.java:335)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.springframework.jmx.access.MBeanClientInterceptor.invokeOperation(MBeanClientInterceptor.java:371)
at org.springframework.jmx.access.MBeanClientInterceptor.invoke(MBeanClientInterceptor.java:302)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy59.startComponent(Unknown Source)
at org.apache.servicemix.web.controller.ComponentLifeCycle.handleRequest(ComponentLifeCycle.java:57)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(BaseStandardMBean.java:323)
... 40 more
Caused by: java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/ConcurrentHashMap
at org.apache.servicemix.http.ManagedContextManager.init(ManagedContextManager.java:44)
at org.apache.servicemix.http.HttpComponent.doInit(HttpComponent.java:238)
at org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:187)
at org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(ComponentMBeanImpl.java:201)
at org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart(ComponentMBeanImpl.java:287)
at org.apache.servicemix.jbi.framework.ComponentMBeanImpl.start(ComponentMBeanImpl.java:216)
at org.apache.servicemix.jbi.framework.AdminCommandsService.startComponent(AdminCommandsService.java:156)
... 45 more
I have uploaded all the log i got while performing the above steps.
Please help me to resolve the problem.
Regards,
Puneet
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126957#4126957
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126957
18 years, 2 months
[JBoss Seam] - Reflections uses wrong argument causing IllegalArgumentExcep
by boevink
Hi,
I'm trying to use an abstract class for some stateful beans that use a lot of similair functionality.
But I'm having a lot of trouble using in-/outjections in combination with reflection.
My abstract class:
| package common.selectableMap;
|
| //imports....
|
| @Scope(ScopeType.CONVERSATION)
| public abstract class AbstractMap
| {
|
| @Logger protected Log log;
| @In FacesMessages facesMessages;
| @In(create=true) protected Map<String, String> messages;
| @PersistenceContext (type=PersistenceContextType.EXTENDED)
| private EntityManager em;
|
| protected EntityQuery resultList;
| protected Map<Serializable, Boolean> checkedEntities;
|
| @Destroy @Remove
| public abstract void destroy();
|
| @Begin(join=true)
| public void begin()
| {
| log.info("abstractMap begin: " + getClass().getName());
| if (checkedEntities == null)
| {
| checkedEntities = new HashMap<Serializable, Boolean>();
| }
| }
| }
|
|
The 'resultList' and 'checkedEntities' attributes are reflected by the subclass and will be in-/outjected by the subclass.
My subclass:
| package common.selectableMap;
|
| // imports....
|
| @Stateful
| @Name("userMap")
| public class UserMap extends AbstractMap implements MapManager
| {
|
| @Override
| @Destroy @Remove
| public void destroy() {
| }
|
| @Out (scope=ScopeType.CONVERSATION, value="checkUsers")
| public Map<Serializable, Boolean> getCheckedEntities() {
| return checkedEntities;
| }
|
| public void setCheckedEntities(Map<Serializable, Boolean> checkedEntities) {
| this.checkedEntities = checkedEntities;
| }
|
| @In (required=false, value="resultList", scope=ScopeType.CONVERSATION)
| public EntityQuery getResultList() {
| return resultList;
| }
|
| public void setResultList(Object resultList) {
| }
| }
|
|
This however causes an exception when using them:
| Caused by: java.lang.IllegalArgumentException: Could not invoke method by reflection: UserMap.getResultList() with parameters: (null) on: nl.wkm.orionglobe.web.entity.common.selectableMap.UserMap
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:31)
| at org.jboss.seam.Component.setPropertyValue(Component.java:1765)
| ... 119 more
| Caused by: java.lang.IllegalArgumentException: wrong number of arguments
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| ... 120 more
|
Why does the UserMap.getResultList() get called with a 'null' parameter?
(It realy is, as I've checked while debugging)
It should not use a parameter at all!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126955#4126955
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126955
18 years, 2 months
[Clustering/JBoss] - Re: Ejb clustered registering
by tfranconville
Thanks a lot for your help.
I have found this solution:
I need to launch jboss with a binding address.
To found the jndi locally we work with, I do this:
Context jbossCtx = new InitialContext();
MBeanServerConnection server = (MBeanServerConnection) jbossCtx.lookup("jmx/invoker/RMIAdaptor");
name = server.getAttribute(new ObjectName("jboss:service=Naming"),"BindAddress") + ":" + server.getAttribute(new ObjectName("jboss:service=Naming"), "Port");
We share some data associated with our jndi address into PojoCache.
So we can found distant ejb and call them as we need.
Hashtable environment = new Hashtable();
environment.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
environment.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
environment.put(InitialContext.PROVIDER_URL, "jnp://" + jndi);
InitialContext init = new InitialContext(environment);
ClusteredEjbInterface ejb = (ClusteredEjbInterface) init.lookup("ClusteredEjb");
CQFD :D
Many thanks Brian, for your help and your responsiveness.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126951#4126951
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126951
18 years, 2 months
[EJB/JBoss] - Removing entity does not work!
by hamtho2
Hi,
somehow removing entities does not work using the embedded JBoss for my tests.
If I open my own transaction within my test-class and try to delete an entity, everyting works fine. If I call my SessionBean, having exactly the same piece of code, it fails. Even if I try to merge my entity before removing it, does not solve the problem and merge() does not throw an exception at all. This sounds like a very strange behaviour, so I was asking myself, if this might be an problem related to the embedded jboss. Does anyone know, if there is still a bug?
FYI: This is my stacktrace when trying to remove the entity within my SessionBean
| An error occured while removing Picture with id 12 with error-message: Removing a detached instance com.company.user.Picture#12
| at com.company.ControllerBean.deletePicture(ControllerBean.java:218)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:121)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:110)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:193)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:64)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:166)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:249)
| at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
| at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:86)
| at $Proxy104.deletePublisherPicture(Unknown Source)
| at com.company.ControllerBeanTest.testDeletePicture(ControllerBeanTest.java:293)
| Caused by: java.lang.IllegalArgumentException: Removing a detached instance com.company.PublisherPicture#12
| at org.hibernate.ejb.event.EJB3DeleteEventListener.performDetachedEntityDeletionCheck(EJB3DeleteEventListener.java:45)
| at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:86)
| at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:52)
| at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:766)
| at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:744)
| at org.hibernate.ejb.AbstractEntityManagerImpl.remove(AbstractEntityManagerImpl.java:246)
| at org.jboss.ejb3.entity.TransactionScopedEntityManager.remove(TransactionScopedEntityManager.java:189)
| at com.company.ControllerBean.deletePicture(ControllerBean.java:213)
| ... 62 more
|
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126947#4126947
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126947
18 years, 2 months