[ 
https://issues.apache.org/jira/browse/NIFI-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Zhurakousky updated NIFI-1993:
-----------------------------------
    Description: 
While, working in NIFI-826 I've encountered problem related to Groovy tests 
(Spoke) and java 1.8 which is essentially described here: 
https://groups.google.com/forum/#!topic/spockframework/59WIHGgcSNE

The stack trace from the failing Spoke test:
{code}
test InstantiateTemplate moves and scales 
templates[0](org.apache.nifi.web.dao.impl.StandardTemplateDAOSpec)  Time 
elapsed: 0.46 sec  <<< ERROR!
java.lang.IllegalArgumentException: null
        at 
net.sf.cglib.proxy.BridgeMethodResolver.resolveAll(BridgeMethodResolver.java:61)
        at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:911)
        at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498)
        at 
net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
        at 
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
        at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
        at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
        at 
org.spockframework.mock.runtime.ProxyBasedMockFactory$CglibMockFactory.createMock(ProxyBasedMockFactory.java:91)
        at 
org.spockframework.mock.runtime.ProxyBasedMockFactory.create(ProxyBasedMockFactory.java:49)
        at 
org.spockframework.mock.runtime.JavaMockFactory.create(JavaMockFactory.java:51)
        at 
org.spockframework.mock.runtime.CompositeMockFactory.create(CompositeMockFactory.java:44)
        at 
org.spockframework.lang.SpecInternals.createMock(SpecInternals.java:45)
        at 
org.spockframework.lang.SpecInternals.createMockImpl(SpecInternals.java:281)
        at org.spockframework.lang.SpecInternals.MockImpl(SpecInternals.java:99)
        at 
groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46)
        at 
groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46)
        at 
org.apache.nifi.web.dao.impl.StandardTemplateDAOSpec$__spock_feature_0_0_closure2.closure7$_closure8(StandardTemplateDAOSpec.groovy:71)
        at groovy.lang.Closure.call(Closure.java:426)
        at 
org.spockframework.mock.response.CodeResponseGenerator.invokeClosure(CodeResponseGenerator.java:53)
        at 
org.spockframework.mock.response.CodeResponseGenerator.doRespond(CodeResponseGenerator.java:36)
        at 
org.spockframework.mock.response.SingleResponseGenerator.respond(SingleResponseGenerator.java:31)
        at 
org.spockframework.mock.response.ResponseGeneratorChain.respond(ResponseGeneratorChain.java:45)
        at 
org.spockframework.mock.runtime.MockInteraction.accept(MockInteraction.java:76)
        at 
org.spockframework.mock.runtime.MockInteractionDecorator.accept(MockInteractionDecorator.java:46)
        at 
org.spockframework.mock.runtime.InteractionScope$1.accept(InteractionScope.java:41)
        at 
org.spockframework.mock.runtime.MockController.handle(MockController.java:39)
        at 
org.spockframework.mock.runtime.JavaMockInterceptor.intercept(JavaMockInterceptor.java:72)
        at 
org.spockframework.mock.runtime.CglibMockInterceptorAdapter.intercept(CglibMockInterceptorAdapter.java:30)
        at 
org.apache.nifi.web.dao.impl.StandardTemplateDAO.instantiateTemplate(StandardTemplateDAO.java:91)
        at org.apache.nifi.web.dao.impl.StandardTemplateDAOSpec.test 
InstantiateTemplate moves and scales 
templates(StandardTemplateDAOSpec.groovy:62)
{code}

Upgrading to CGLIB 3.2 resolves the issue

  was:
While, working in NIFI-826 I've encountered problem related to Groovy tests 
(Spoke) and java 1.8 which is essentially described here: 
https://groups.google.com/forum/#!topic/spockframework/59WIHGgcSNE

Upgrading to CGLIB 3.2 resolves the issue


> Upgrade CGLIB to the latest 3.2
> -------------------------------
>
>                 Key: NIFI-1993
>                 URL: https://issues.apache.org/jira/browse/NIFI-1993
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Oleg Zhurakousky
>            Assignee: Oleg Zhurakousky
>            Priority: Minor
>             Fix For: 1.0.0
>
>
> While, working in NIFI-826 I've encountered problem related to Groovy tests 
> (Spoke) and java 1.8 which is essentially described here: 
> https://groups.google.com/forum/#!topic/spockframework/59WIHGgcSNE
> The stack trace from the failing Spoke test:
> {code}
> test InstantiateTemplate moves and scales 
> templates[0](org.apache.nifi.web.dao.impl.StandardTemplateDAOSpec)  Time 
> elapsed: 0.46 sec  <<< ERROR!
> java.lang.IllegalArgumentException: null
>       at 
> net.sf.cglib.proxy.BridgeMethodResolver.resolveAll(BridgeMethodResolver.java:61)
>       at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:911)
>       at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498)
>       at 
> net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
>       at 
> net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
>       at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
>       at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
>       at 
> org.spockframework.mock.runtime.ProxyBasedMockFactory$CglibMockFactory.createMock(ProxyBasedMockFactory.java:91)
>       at 
> org.spockframework.mock.runtime.ProxyBasedMockFactory.create(ProxyBasedMockFactory.java:49)
>       at 
> org.spockframework.mock.runtime.JavaMockFactory.create(JavaMockFactory.java:51)
>       at 
> org.spockframework.mock.runtime.CompositeMockFactory.create(CompositeMockFactory.java:44)
>       at 
> org.spockframework.lang.SpecInternals.createMock(SpecInternals.java:45)
>       at 
> org.spockframework.lang.SpecInternals.createMockImpl(SpecInternals.java:281)
>       at org.spockframework.lang.SpecInternals.MockImpl(SpecInternals.java:99)
>       at 
> groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46)
>       at 
> groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46)
>       at 
> org.apache.nifi.web.dao.impl.StandardTemplateDAOSpec$__spock_feature_0_0_closure2.closure7$_closure8(StandardTemplateDAOSpec.groovy:71)
>       at groovy.lang.Closure.call(Closure.java:426)
>       at 
> org.spockframework.mock.response.CodeResponseGenerator.invokeClosure(CodeResponseGenerator.java:53)
>       at 
> org.spockframework.mock.response.CodeResponseGenerator.doRespond(CodeResponseGenerator.java:36)
>       at 
> org.spockframework.mock.response.SingleResponseGenerator.respond(SingleResponseGenerator.java:31)
>       at 
> org.spockframework.mock.response.ResponseGeneratorChain.respond(ResponseGeneratorChain.java:45)
>       at 
> org.spockframework.mock.runtime.MockInteraction.accept(MockInteraction.java:76)
>       at 
> org.spockframework.mock.runtime.MockInteractionDecorator.accept(MockInteractionDecorator.java:46)
>       at 
> org.spockframework.mock.runtime.InteractionScope$1.accept(InteractionScope.java:41)
>       at 
> org.spockframework.mock.runtime.MockController.handle(MockController.java:39)
>       at 
> org.spockframework.mock.runtime.JavaMockInterceptor.intercept(JavaMockInterceptor.java:72)
>       at 
> org.spockframework.mock.runtime.CglibMockInterceptorAdapter.intercept(CglibMockInterceptorAdapter.java:30)
>       at 
> org.apache.nifi.web.dao.impl.StandardTemplateDAO.instantiateTemplate(StandardTemplateDAO.java:91)
>       at org.apache.nifi.web.dao.impl.StandardTemplateDAOSpec.test 
> InstantiateTemplate moves and scales 
> templates(StandardTemplateDAOSpec.groovy:62)
> {code}
> Upgrading to CGLIB 3.2 resolves the issue



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to