GithubHelp home page GithubHelp logo

java.lang.ClassCastException: org.fusesource.scalate.filter.ScalaMarkdownFilter$ cannot be cast to org.fusesource.scalate.TemplateEngineAddOn about scalate HOT 4 OPEN

scalate avatar scalate commented on June 10, 2024
java.lang.ClassCastException: org.fusesource.scalate.filter.ScalaMarkdownFilter$ cannot be cast to org.fusesource.scalate.TemplateEngineAddOn

from scalate.

Comments (4)

seratch avatar seratch commented on June 10, 2024 1

@magnolia-k I haven't actively working on this project anymore. Is it possible to ask you to do the release for me? If you don't have the permission, you can create your own sonatype account and create a new JIRA ticket to add you to the groupId (org.scalatra). Please refer to this ticket for more details. Perhaps, you need to make your membership here public before creating the JIRA ticket.

from scalate.

PlenipotentSS avatar PlenipotentSS commented on June 10, 2024

Bringing this back, our use case also found this issue and it seems to be due to how ScalaMarkdownFilter is being loaded and possible issues around multithreaded environments. Currently, we have lots of unit tests across different templates using scalate and we get the same exact issue. We were able to baseline out of 10 tests, with ~10s of unit tests failing due to the same issue @simao mentioned.

Currently, the working code that resolved the issue is to remove the reflection loading and maintain the "attempt" process to load the template engine. See: PlenipotentSS@564dccc

I also suggest that we clean up the use of the reflection here as it can cause lots of issues in larger environments. Open to any discussion.

from scalate.

PlenipotentSS avatar PlenipotentSS commented on June 10, 2024

I think this issue can be closed since there was an issue with class loading found here: 21f94b9 . @magnolia-k Do you have any plans to add minor versions to update the few tags that can use this? Namely, I have a project that runs scalate-util version 1.9.6 that we would like to maintain until we do a later scalatra update.

from scalate.

magnolia-k avatar magnolia-k commented on June 10, 2024

@seratch

Could you please release a new version?

from scalate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.