updating the image extension throws errors until Lucee is restarted

Description

as per LDEV-3029, if you downgrade then upgrade the image extension, it will throw the following error until Lucee is restarted

Initially I tested with image extension version - 1.0.0.36-SNAPSHOT

  • update the version to 1.0.0.35 - release means, works fine.

  • update version to initial version 1.0.0.36-SNAPSHOT means, it throws an error like

lucee.runtime.exp.CasterException: Can't cast Object type [Struct] to a value of type [Image] at lucee.runtime.op.ExceptonImpl.createCasterException(ExceptonImpl.java:108) at org.lucee.extension.image.Image.createImage(Image.java:1655) at org.lucee.extension.image.tag.Image.doStartTag(Image.java:281)

Can't cast Object type [Struct] to a value of type [Image]

lucee.runtime.exp.CasterException: Can't cast Object type [Struct] to a value of type [Image] at lucee.runtime.op.ExceptonImpl.createCasterException(ExceptonImpl.java:108) at org.lucee.extension.image.Image.createImage(Image.java:1655) at org.lucee.extension.image.tag.Image.doStartTag(Image.java:281)

Environment

None

Activity

Show:

Pothys - MitrahSoft 19 October 2022 at 13:21

I've checked this ticket with both fixed versions 5.3.10.84-SNAPSHOT and 6.0.0.256-SNAPSHOT. Still, the issue was reproduced. Downgrading and upgrading the image extension throws an error like Can't cast Object type [Struct] to a value of type [Image] until the restarting lucee.

Zac Spitzer 14 October 2022 at 11:26

Zac Spitzer 21 February 2022 at 17:28

moved back to backlog. I added the missing description to the 1.1 branch.

In order to test this, I guess we need to snapshots so we can switch forward and backwards between to versions to test.

The OSGi Bundle with name [required>no</required] should never be happen?

does the the fld parsing not use an XML parser? it’s the same code path used to update an extension function definition as on startup? ( just asking as a full restart solves this problem)

Michael Offner 21 February 2022 at 16:24

why is this ticket in QA, seem not to have a fix yet.

Zac Spitzer 19 February 2022 at 13:49
Edited

I think this was all due to a missing function description

I was seeing super strange test errors, which led me to this

Errored: The OSGi Bundle with name [required>no</required] is not available locally WTF?

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 2 September 2020 at 13:58
Updated 25 November 2022 at 13:49
Resolved 25 November 2022 at 13:49