Using lucee 5.3.3+62 Has anyone experienced an iss...
# lucee
r
Using lucee 5.3.3+62 Has anyone experienced an issue regarding the math function
sqr()
with an error returning
ClassFormatError:Incompatible magic value 0 in class file lucee/runtime/functions/math/Sqr
? This is happening when a component is getting initialized, but the
sqr
function is not yet executed in a different function further down in the component. I have tested the
sqr
function itself in commandbox::repl and it works fine, but receive an error when placed in a script component function, even when I plugged in a plane number and tried testing both the
sqr
function and the
sqr
member function with the following in my code.
testSquareRoot = sqr(25);
testSquareRoot = sqr(number=25);
testSquareRoot = (25).sqr();
I got passed the error by using the following in the component function:
Copy code
local.test = 25;
local.result = test.sqr();
The following continues to throw the error:
Copy code
local.test = 25;
local.result = sqr(test);
The reference below shows that a regular
sqr
function can be utilized: https://docs.lucee.org/reference/functions/sqr.html I checked the issue tracker for any anomalies, but didn't see anything.
d
r
Thanks, Dan. Yeah, I think the difference between your example and my experience are possibly the version difference. I'm using 5.3.3+62 . I have to use this version for now. I see your trycf example can only either use 4.5 or 5 latest. Also, my issue is happening within a component function and your trycf example is in a cfm file. Appreciate the test! đŸ™‚
s
IIRC there were a lot of issues with the 5.3.3 line
r
Roger that
I have run into a few them already and asked for us to be upgraded, but the feet are dragging a bit.