Announcement Announcement Module
No announcement yet.
AOP error Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • AOP error

    A developer has handed me an application that he built with Spring which I have been using. but on my Jboss 4.2.2 server I get an AOP error when calling a method in a class. I've changed the method to return void, it takes a String (which I've verified is being passed). But debugging does even go into the method.

    The object is gotten by a method I see shouldn't be done according to some, but I am trying to understand the code not change it:

    XXXSession x = (XXXSession)SpringContext.getInstance().getBean("x xxSession");

    And that does return a not null value.

    But Calling x.getXXX("s") then fails with the below error.

    It works for him and on our staging server. He says I don't have the right spring classes, and debugging shows it going into common-chains and dying, but I have the same version as on stage. We are pretty much stuck as to why this error happens for me but not him.

    org.springframework.aop.AopInvocationException: AOP configuration seems to be invalid: tried calling method [public abstract java.util.List )] on target [XXXSessionEJBBean]; nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class
    at npointUsingReflection(
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(
    at $Proxy73.getAuthorizedAgencies(Unknown Source)
    at org.apache.struts.chain.commands.servlet.ExecuteAc tion.execute(
    at org.apache.struts.chain.commands.AbstractExecuteAc tion.execute(
    at org.apache.struts.chain.commands.ActionCommandBase .execute(
    at org.apache.commons.chain.impl.ChainBase.execute(Ch
    at org.apache.commons.chain.generic.LookupCommand.exe cute(
    at org.apache.commons.chain.impl.ChainBase.execute(Ch
    at org.apache.struts.chain.ComposableRequestProcessor .process(
    at org.apache.struts.action.ActionServlet.process(Act
    at org.apache.struts.action.ActionServlet.doGet(Actio
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at ternalDoFilter(
    at Filter(
    at Filter(
    at ternalDoFilter(
    at Filter(