Abhijit Sarkar edited a comment on Bug WELD-1606

From the logs, I see both proxies created but not sure if both are needed.

[2014-02-15 20:37:27,765] [TRACE] org.jboss.weld.Bean - WELD-001543: Created Proxy class of type class name.abhijitsarkar.moviemanager.service.search.MovieSearchService$Proxy$_$$_WeldSubclass supporting interfaces [interface groovy.lang.GroovyObject, interface java.io.Serializable, interface org.jboss.weld.interceptor.proxy.LifecycleMixin, interface org.jboss.weld.interceptor.util.proxy.TargetInstanceProxy, interface org.jboss.weld.bean.proxy.ProxyObject]

[2014-02-15 20:37:31,271] [TRACE] org.jboss.weld.Bean - WELD-001543: Created Proxy class of type class name.abhijitsarkar.moviemanager.service.index.MovieIndexService$Proxy$_$$_WeldClientProxy supporting interfaces [interface groovy.lang.GroovyObject, interface java.io.Serializable, interface org.jboss.weld.interceptor.proxy.LifecycleMixin, interface org.jboss.weld.interceptor.util.proxy.TargetInstanceProxy, interface org.jboss.weld.bean.proxy.ProxyObject]

Decompiling the MovieFacade class, I see that the method advancedSearch uses this.movieSearchService.

 public Set<MovieRip> advancedSearch(String searchText)
  {
    CallSite[] arrayOfCallSite = $getCallSiteArray(); Query query = (Query)ScriptBytecodeAdapter.castToType(arrayOfCallSite[4].call(this.queryBuilder, searchText), Query.class);

    return (Set)ScriptBytecodeAdapter.castToType(arrayOfCallSite[5].call(this.movieSearchService, query), Set.class); return null;
  }

It smells awfully similar to the WELD-1498, MethodHandler to blame.

[2014-02-16 16:36:56,692] [TRACE] org.jboss.weld.Bean - WELD-001545: MethodHandler processing call to public abstract java.util.Set javax.validation.executable.ExecutableValidator.validateReturnValue(java.lang.Object,java.lang.reflect.Method,java.lang.Object,java.lang.Class[]) for class org.jboss.weld.proxies.ExecutableValidator$Validator$1472779853$Proxy$_$$_WeldClientProxy
[2014-02-16 16:36:56,692] [TRACE] org.jboss.weld.Bean - WELD-001544: MethodHandler processing returning bean instance for class name.abhijitsarkar.moviemanager.service.search.MovieSearchService$Proxy$_$$_WeldClientProxy
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira