Has anyone else been seeing Cannot invoke "java.lang.Class.isPrimitive()" because "c" is null
errors, in v6.1.x that don’t happen under 5.x ?
At least one way to trigger it is this line in Taffy (3.1 and 3.6), but it’s intermittent:
GetPageContext().getRequest().getHeader("X-HTTP-Method-Override")
We’re running in Docker, FROM
the 6.1.118-nginx image.
The top of the stack trace is like:
lucee.runtime.exp.NativeException: Cannot invoke "java.lang.Class.isPrimitive()" because "c" is null at
lucee.runtime.reflection.Reflector.toReferenceClass(Reflector.java:259) at
lucee.transformer.dynamic.meta.Clazz.getMethodMatch(Clazz.java:132) at
lucee.transformer.dynamic.DynamicInvoker.createInstance(DynamicInvoker.java:154) at
lucee.runtime.reflection.pairs.MethodInstance.getResult(MethodInstance.java:119) at
lucee.runtime.reflection.pairs.MethodInstance.invoke(MethodInstance.java:64) at
lucee.runtime.reflection.Reflector.callMethod(Reflector.java:928) at
lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:840) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1992) at
taffy_3_6_0270.core.api_cfc$cf.udfCall2_000028(/Taffy-3_6_0/core/api.cfc:744) at
taffy_3_6_0270.core.api_cfc$cf.udfCall2(/Taffy-3_6_0/core/api.cfc:737) at
taffy_3_6_0270.core.api_cfc$cf.udfCall(/Taffy-3_6_0/core/api.cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:357) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:224) at
lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:782) at
lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:796) at
lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1992) at
taffy_3_6_0270.core.api_cfc$cf.udfCall2(/Taffy-3_6_0/core/api.cfc:239) at
lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:212)