Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3079

adding solr functionality to an entity breaks application

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.2.1.RELEASE
    • Fix Version/s: 1.2.2.RELEASE
    • Component/s: None
    • Labels:

      Description

      To replicate:

      1. Run "script clinic.roo"
      2. Run "solr setup"
      3. Run "solr all"
      4. Execute "mvn jetty:run"

      Try to create a new Pet

      Message
       
      Post-processor tried to replace bean instance of type [com.springsource.petclinic.domain.Pet]
      with (proxy) object of type [$Proxy46] - not supported for aspect-configured classes!
      
      Trace
       
      org.springframework.beans.factory.wiring.BeanConfigurerSupport.checkExposedObject(BeanConfigurerSupport.java:170)
      org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:142)
      org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect.configureBean(AnnotationBeanConfigurerAspect.aj:59)
      org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$afterReturning$org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAspect$2$1ea6722c(AbstractDependencyInjectionAspect.aj:89)
      com.springsource.petclinic.domain.Pet.<init>(Pet.java:18)
      com.springsource.petclinic.web.PetController_Roo_Controller.ajc$interMethod$com_springsource_petclinic_web_PetController_Roo_Controller$com_springsource_petclinic_web_PetController$createForm(PetController_Roo_Controller.aj:38)
      com.springsource.petclinic.web.PetController.createForm(PetController.java:1)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:212)
      org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
      org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
      org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
      org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
      org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
      org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
      org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:558)
      org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1362)
      org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:147)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1333)
      org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1333)
      org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1333)
      org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:487)
      org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
      org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
      org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:972)
      org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417)
      org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
      org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:906)
      org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
      org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
      org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
      org.eclipse.jetty.server.Server.handle(Server.java:350)
      org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442)
      org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:910)
      org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:565)
      org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
      org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
      org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
      org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
      org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
      org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
      java.lang.Thread.run(Thread.java:662)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stewarta Alan Stewart
                Reporter:
                rcunci Roman Cunci
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: