Giter Club home page Giter Club logo

Comments (14)

evernat avatar evernat commented on July 18, 2024

Sorry, I do not reproduce the issue.
By using the sample project at https://github.com/evernat/grails-ssl it works correctly with Grails 3.2.11 and Java 1.8. https://localhost:8443/ and https://localhost:8443/monitoring are OK.
What would cause this sample project to break?

from grails-melody-plugin.

jglapa avatar jglapa commented on July 18, 2024

@evernat just add <g:link controller="test">foo</g:link> to index.gsp and it will start throwing the exception

from grails-melody-plugin.

jglapa avatar jglapa commented on July 18, 2024

This was also raised by me in grails repo: grails/grails-core#10715

from grails-melody-plugin.

demon101 avatar demon101 commented on July 18, 2024

I got the same bug.
Can be reproduced by line in BootStrap.init:
"some text".encodeAsLink()

As I remember, I have had got same error in Grails 3.2.10

@evernat Any workarounds?

from grails-melody-plugin.

demon101 avatar demon101 commented on July 18, 2024

@graemerocher suggested in grails/grails-core#10715:

My guess is something to do with the Groovy version, Groovy 2.4.11 is used in 3.2.11

from grails-melody-plugin.

evernat avatar evernat commented on July 18, 2024

As said in grails/grails-core#10715 (comment), it seems to be caused by a regression between groovy 2.4.8 and groovy 2.4.9.
To workaround the issue, you may want to add compile 'org.codehaus.groovy:groovy-all:2.4.8' in the dependencies of the build.gradle file of your app.

from grails-melody-plugin.

demon101 avatar demon101 commented on July 18, 2024

@evernat using groovy 2.4.8 with grails 3.2 acceptable only as a workaround.
Old version of groovy as long term solution -- bad idea. For example, a performance of Groovy 2.4.10 has been improved by 15-20 %.

Do you plan to fix the plugin?

from grails-melody-plugin.

graemerocher avatar graemerocher commented on July 18, 2024

I recommend reporting the issue to the Groovy issue tracker grails/grails-core#10715

from grails-melody-plugin.

jglapa avatar jglapa commented on July 18, 2024

@evernat would it be possible to test the following:

Perhaps the issue goes away if the plugin itself is build by groovy > 2.4.9 ?

from grails-melody-plugin.

evernat avatar evernat commented on July 18, 2024

@jglapa @sergiomichels
It seems that building the grails-melody-plugin with the following in gradle.properties of the plugin fixes this issue:

grailsVersion=3.2.11
grailsWrapperVersion=1.0.0
gradleWrapperVersion=3.4.1

But I am not sure of what I was doing in the plugin for testing this. Sergio, could you check that this change in the plugin will fix the error displayed by the sample project: https://github.com/evernat/grails-ssl ?

from grails-melody-plugin.

jglapa avatar jglapa commented on July 18, 2024

@evernat grails/grails-core#10715 (comment)

from grails-melody-plugin.

jukin-jerry avatar jukin-jerry commented on July 18, 2024

Created #50

from grails-melody-plugin.

jukin-jerry avatar jukin-jerry commented on July 18, 2024

The Pull Request (50) above does indeed fix the problem described in this ticket under Grails 3.3.0, but a new problem emerges: now melody does not load at startup. The only other change is upgrading the java-melody-core dependency to 1.68.1.

Here are the messages at application startup, indicating the problem.

2017-08-02 02:42:16.422  INFO 11581 --- [  restartedMain] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4443b126: startup date [Wed Aug 02 02:42:16 UTC 2017]; root of context hierarchy
2017-08-02 02:42:18.038  WARN 11581 --- [  restartedMain] org.grails.plugins.CorePluginFinder      : [GrailsPluginManager] Core plugin [grails.melody.plugin.GrailsMelodyPluginGrailsPlugin] not found, resuming load without..

from grails-melody-plugin.

evernat avatar evernat commented on July 18, 2024

PR #50 is merged. Thanks to all and in particular to @graemerocher and @bassmartin.

from grails-melody-plugin.

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.