Hopefully someone has had to deal with this before.

I'm deploying two EAR files (isolated) that can only communicate through the 
remote interface. In order to enforce this I have set the JBoss Isolated and 
CallByValue options to true. 

When standard operating procedure happens things are normal. Entities serialize 
nicely and all is well with the world.

On most methods in the remote interface there are multiple exceptions that can 
be thrown, each in a certain instance. However when they get back to the other 
EAR the catch blocks won't/can't recognise them. All are annonated with 
@ApplicationException and everything compiles okay. I have tried both including 
and excluding the exceptions from the client jar in the calling EAR to no 
affect.

I am also unable to cast the exceptions to the correct class.

Any help would be appreciated.

Thanks, Grant 

The stack trace of the exception is below.


  | 13:41:36,684 ERROR [STDERR] 
au.gov.deh.ieda.bus.pitem.pd.exceptions.PimInvalidSearchTermException: Valid 
taxon must be greater than zero
  | 13:41:36,684 ERROR [STDERR]         at 
au.gov.deh.ieda.bus.pitem.pd.managers.QueryManagerBean.searchForSpecies(QueryManagerBean.java:539)
  | 13:41:36,684 ERROR [STDERR]         at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 13:41:36,684 ERROR [STDERR]         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 13:41:36,700 ERROR [STDERR]         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 13:41:36,700 ERROR [STDERR]         at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 13:41:36,700 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  | 13:41:36,700 ERROR [STDERR]         at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  | 13:41:36,700 ERROR [STDERR]         at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
  | 13:41:36,700 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 13:41:36,700 ERROR [STDERR]         at 
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
  | 13:41:36,700 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 13:41:36,715 ERROR [STDERR]         at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
  | 13:41:36,715 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 13:41:36,715 ERROR [STDERR]         at 
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
  | 13:41:36,715 ERROR [STDERR]         at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
  | 13:41:36,715 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 13:41:36,715 ERROR [STDERR]         at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | 13:41:36,715 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 13:41:36,715 ERROR [STDERR]         at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | 13:41:36,731 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 13:41:36,731 ERROR [STDERR]         at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  | 13:41:36,731 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 13:41:36,731 ERROR [STDERR]         at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | 13:41:36,731 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 13:41:36,731 ERROR [STDERR]         at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | 13:41:36,731 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 13:41:36,731 ERROR [STDERR]         at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:225)
  | 13:41:36,747 ERROR [STDERR]         at 
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:55)
  | 13:41:36,747 ERROR [STDERR]         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 13:41:36,747 ERROR [STDERR]         at 
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
  | 13:41:36,747 ERROR [STDERR]         at $Proxy234.searchForSpecies(Unknown 
Source)
  | 13:41:36,747 ERROR [STDERR]         at 
au.gov.deh.ieda.bus.pitem.pd.test.TestQueryManager.testSearchTaxonBad(TestQueryManager.java:193)
  | 13:41:36,747 ERROR [STDERR]         at 
au.gov.deh.ieda.bus.pitem.pd.test.TestQueryManager.testSearchs(TestQueryManager.java:91)
  | 13:41:36,747 ERROR [STDERR]         at 
au.gov.deh.ieda.bus.pitem.pd.test.TestQueryManager.doTests(TestQueryManager.java:74)
  | 13:41:36,747 ERROR [STDERR]         at 
au.gov.deh.ieda.sys.generic.test.TestBase.runTests(TestBase.java:42)
  | 13:41:36,762 ERROR [STDERR]         at 
org.apache.jsp.pages.testpdQueryManager_jsp._jspService(testpdQueryManager_jsp.java:89)
  | 13:41:36,762 ERROR [STDERR]         at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  | 13:41:36,762 ERROR [STDERR]         at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 13:41:36,762 ERROR [STDERR]         at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
  | 13:41:36,762 ERROR [STDERR]         at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | 13:41:36,762 ERROR [STDERR]         at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | 13:41:36,762 ERROR [STDERR]         at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 13:41:36,762 ERROR [STDERR]         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 13:41:36,778 ERROR [STDERR]         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 13:41:36,778 ERROR [STDERR]         at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 13:41:36,778 ERROR [STDERR]         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 13:41:36,778 ERROR [STDERR]         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 13:41:36,778 ERROR [STDERR]         at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 13:41:36,778 ERROR [STDERR]         at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 13:41:36,778 ERROR [STDERR]         at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 13:41:36,778 ERROR [STDERR]         at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 13:41:36,793 ERROR [STDERR]         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 13:41:36,793 ERROR [STDERR]         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 13:41:36,793 ERROR [STDERR]         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 13:41:36,793 ERROR [STDERR]         at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 13:41:36,793 ERROR [STDERR]         at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 13:41:36,793 ERROR [STDERR]         at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 13:41:36,793 ERROR [STDERR]         at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 13:41:36,809 ERROR [STDERR]         at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 13:41:36,809 ERROR [STDERR]         at java.lang.Thread.run(Thread.java:595)
  | 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974392#3974392

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974392
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to