2 Replies Latest reply on Feb 18, 2005 1:55 AM by kiran kiran

    java.lang.RuntimeException: ***** trying to convertReference

    kiran kiran Newbie

      I'm using JBoss 4.0.0 and I'm trying to aspect my classes at runtime. Its working fine But I'm getting this error in the console

      11:17:11,190 INFO [STDOUT] java.lang.RuntimeException: ***** trying to convertReferences of class: org.apache.struts.action.ActionServlet of ref org.apache.struts.util.GenericDataSource
      11:17:11,190 INFO [STDOUT] at org.jboss.aop.instrument.Instrumentor.convertReferences(Instrumentor.java:484)
      11:17:11,190 INFO [STDOUT] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:517)
      11:17:11,190 INFO [STDOUT] at org.jboss.aop.AspectManager.translate(AspectManager.java:481)
      11:17:11,190 INFO [STDOUT] at org.jboss.aop.AspectManager.transform(AspectManager.java:404)
      11:17:11,190 INFO [STDOUT] at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:573)
      11:17:11,190 INFO [STDOUT] at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      11:17:11,190 INFO [STDOUT] at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:160)
      11:17:11,190 INFO [STDOUT] at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:119)
      11:17:11,190 INFO [STDOUT] at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:385)
      11:17:11,190 INFO [STDOUT] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:469)
      11:17:11,190 INFO [STDOUT] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374)
      11:17:11,190 INFO [STDOUT] at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
      11:17:11,190 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.isContainerProvidedServlet(StandardWrapper.java:1471)
      11:17:11,190 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:928)
      11:17:11,190 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
      11:17:11,190 INFO [STDOUT] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
      11:17:11,190 INFO [STDOUT] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
      11:17:11,190 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
      11:17:11,190 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
      11:17:11,190 INFO [STDOUT] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
      11:17:11,190 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
      11:17:11,190 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      11:17:11,206 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
      11:17:11,206 INFO [STDOUT] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      11:17:11,206 INFO [STDOUT] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
      11:17:11,206 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      11:17:11,206 INFO [STDOUT] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5441)
      11:17:11,206 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
      11:17:11,206 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      11:17:11,206 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
      11:17:11,206 INFO [STDOUT] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      11:17:11,206 INFO [STDOUT] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
      11:17:11,206 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      11:17:11,206 INFO [STDOUT] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:336)
      11:17:11,206 INFO [STDOUT] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:83)
      11:17:11,206 INFO [STDOUT] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:370)
      11:17:11,206 INFO [STDOUT] at org.jboss.web.WebModule.startModule(WebModule.java:62)

      My jboss-aop.xml contains the following

      typedef name="JBossSessionBean" expr="class($instanceof{javax.ejb.SessionBean}) OR class(*.*session*.*)" />
      bind pointcut="execution(* $typedef{JBossSessionBean}->*(..))">



      please tell me what needs to de done

      Regards,
      Kiran.