groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Briem (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8749) Error with indy, JDK10 and 2.5.1
Date Mon, 13 Aug 2018 14:28:00 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-8749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16578337#comment-16578337
] 

Chris Briem commented on GROOVY-8749:
-------------------------------------

As requested by Paul, I've just attached the output of the following call: {{javap.exe -v
ToId.class}}.

The {{ToId}} class is the last one called before the application crashes.

> Error with indy, JDK10 and 2.5.1
> --------------------------------
>
>                 Key: GROOVY-8749
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8749
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Paul King
>            Priority: Major
>         Attachments: javap-output.txt
>
>
> Reported from Slack:
> bq. it happens while calling a static Groovy method which has a single `CharSequence`
parameter. In the method body we call `toString()` on it. It looks like the issue described
here: [JDK-8031502](https://bugs.openjdk.java.net/browse/JDK-8031502) but that one was fixed
a long time ago...
> When I call the method from a test class, let's say 1 million times, nothing happens.
But in our application the error pops up eventually.
> {noformat}
> 03.08.2018 09:37:01,948 ERROR web.context.ContextLoader - Context initialization failed
> org.springframework.context.ApplicationContextException: Failed to start bean 'dslScriptLoader';
nested exception is java.lang.IncompatibleClassChangeError: Found interface java.lang.CharSequence,
but class was expected
>     at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:186)
>     at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:52)
>     at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:358)
>     at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:159)
>     at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
>     at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:884)
>     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
>     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:409)
>     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
>     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
>     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
>     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
>     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
>     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
>     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
>     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
>     at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
>     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
>     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
>     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
>     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
>     at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
> Caused by: java.lang.IncompatibleClassChangeError: Found interface java.lang.CharSequence,
but class was expected
>     at com.mycompany.dsl.converters.ToId.from(ToId.groovy:16)
>     at com.mycompany.dsl.query.AttributeNameDsl$_attributeName_closure2.doCall(AttributeNameDsl.groovy:41)
>     at com.mycompany.dsl.query.AttributeNameDsl$_attributeName_closure2.doCall(AttributeNameDsl.groovy)
>     at jdk.internal.reflect.GeneratedMethodAccessor910.invoke(Unknown Source)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
>     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
>     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
>     at com.mycompany.dsl.utils.ExecutionContextSupport$Trait$Helper.context(ExecutionContextSupport.groovy:25)
>     at com.mycompany.dsl.query.AttributeNameDsl.context(AttributeNameDsl.groovy)
>     at com.mycompany.dsl.utils.ExecutionContextSupport$Trait$Helper.context(ExecutionContextSupport.groovy:17)
>     at com.mycompany.dsl.query.AttributeNameDsl.context(AttributeNameDsl.groovy)
>     at com.mycompany.dsl.query.AttributeNameDsl.attributeName(AttributeNameDsl.groovy:39)
>     at com.mycompany.dsl.DslFunctions.attributeName(DslFunctions.groovy:48)
>     at jdk.internal.reflect.GeneratedMethodAccessor909.invoke(Unknown Source)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
>     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
>     at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:925)
>     at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:908)
>     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:168)
>     at com.mycompany.dsl.infrastructure.environment.DelegatingExecutionEnvironmentProvider.methodMissing(DelegatingExecutionEnvironmentProvider.groovy:44)
>     at jdk.internal.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
>     at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:939)
>     at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1262)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
>     at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:925)
>     at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:908)
>     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:168)
>     at com.mycompany.dsl.infrastructure.environment.DelegatingExecutionEnvironmentProvider.methodMissing(DelegatingExecutionEnvironmentProvider.groovy:44)
>     at jdk.internal.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
>     at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:939)
>     at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1262)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
>     at com.mycompany.dsl.infrastructure.environment.DelegatingExecutionEnvironmentProvider.invokeMethod(DelegatingExecutionEnvironmentProvider.groovy)
>     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:430)
>     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:371)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
>     at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46)
>     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:430)
>     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:369)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
>     at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
>     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:182)
>     at macro_file_macro1$_run_closure1$_closure4$_closure5$_closure6.doCall(macro file:macro1.macro:80)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
>     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
>     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
>     at groovy.lang.Closure.call(Closure.java:414)
>     at groovy.lang.Closure.call(Closure.java:430)
>     at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:3202)
>     at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:3172)
>     at org.codehaus.groovy.runtime.dgm$67.invoke(Unknown Source)
>     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
>     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
>     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
>     at macro_file_macro1$_run_closure1$_closure4$_closure5.doCall(macro file:macro1.macro:80)
>     at macro_file_macro1$_run_closure1$_closure4$_closure5.doCall(macro file:macro1.macro)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
>     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
>     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
>     at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232)
>     at com.mycompany.dsl.infrastructure.AbstractDslBuilder.fillBuilder(AbstractDslBuilder.groovy:123)
>     at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232)
>     at com.mycompany.dsl.infrastructure.AbstractDslBuilder.build(AbstractDslBuilder.groovy:68)
>     at com.mycompany.dsl.query.QueryDsl$_myDataQuery_closure8$_closure16.doCall(QueryDsl.groovy:379)
>     at com.mycompany.dsl.query.QueryDsl$_myDataQuery_closure8$_closure16.doCall(QueryDsl.groovy)
>     at jdk.internal.reflect.GeneratedMethodAccessor892.invoke(Unknown Source)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
>     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
>     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
>     at groovy.lang.Meta...
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message