[JBoss AOP] - Exception
by chandra_88
Hi,
I deployed an ear the aop is present in the ear has an .aop archive with the meta-inf folder containing the jboss-aop.xml containing all the point cuts .
However when i run the EJB client to access the EJB deployed in the ear am getting a class cast exception for the interceptor
| Exception in thread "main" java.lang.ExceptionInInitializerError
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:514)
| at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:66)
| at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
| at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50)
| at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| 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.dynamicInvoke(StatelessContainer.java:304)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
| Caused by: java.lang.ClassCastException: com.src.platform.aop.AopInterceptor
|
|
This is the packaging of the ear
EAR
-> META-INF
-> application.xml
-> jboss-aop.xml
Lib
-> common jar
EJBModule.jar
MySample.aop
-Chandra
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132871#4132871
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132871
18 years, 1 month
[JCA/JBoss] - Destroying Unmatched Connections !
by chavali
Hi ,
I need some help with my understanding of matchManagedConnections.
Some background- I have 5 connections in my pool and a client makes a request for a connection object. However his ConnectionInfo does not match with the existing 5 connections. I was under the presumption that a new connection will be created and added to the pool. That is what happens but suprisingly all the other 5 connections are closed as they did not match. The error message is as follows,
"2008-02-28 14:34:52,875 WARN
[org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Destroying connection that could not be successfully matched: org.jboss.resource.connectionmanager.NoTxConnectionManager$NoTxConnectionEventListener@1cd8bf7[state=NORMAL mc=com.jca.connector.impl.CSTAManagedConnection@1f61bcf handles=0 lastUse=1204189471703 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1a0353d context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@10769dd]"
Each client request should result in one call to matchManagedConnection instead of multiple calls. The InternalManagedConnectionPool code shows that the call is made on each of the ConnectionListeners. What is the reasoning behind this ?
Basically I need the old connections to be open as well. How can I acheive this ? Any help would be appreciated !!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132851#4132851
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132851
18 years, 1 month