Giter Club home page Giter Club logo

Comments (21)

alex-shamshurin avatar alex-shamshurin commented on July 3, 2024

Even worse - on 2.0.2 the shedule is taken from one job, whereas performing another.... )))

from grails-quartz.

AlexKovynev avatar AlexKovynev commented on July 3, 2024

salex772: Hooray, I'm not crazy!!

from grails-quartz.

alex-shamshurin avatar alex-shamshurin commented on July 3, 2024

I cannot make it work at all.

from grails-quartz.

adibak20 avatar adibak20 commented on July 3, 2024

Hello

I tired install quartz plugin in grails 3.0.9 and I update plugin:

compile "org.grails.plugins:quartz:2.0.3"

I had error:

Warning:<i><b>root project 'project': Web Facets/Artifacts will not be configured properly</b>
Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':runtime'.
Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find quartz.zip (org.grails.plugins:quartz:2.0.0).
Searched in the following locations:
    https://repo.grails.org/grails/core/org/grails/plugins/quartz/2.0.0/quartz-2.0.0.zip</i>

Can you tell me where am I doing wrong?
Help me...

from grails-quartz.

alex-shamshurin avatar alex-shamshurin commented on July 3, 2024

Did you run "gradle lean" before it?

from grails-quartz.

adibak20 avatar adibak20 commented on July 3, 2024

Yes, nothing helps

from grails-quartz.

alex-shamshurin avatar alex-shamshurin commented on July 3, 2024

What is in your "build.gradle"? Try to use 2.0.4

repositories {
    mavenLocal()
    maven {
        url = "http://dl.bintray.com/grails/plugins"
    }
    maven {
        url = "http://jcenter.bintray.com"
    }
    maven {
        url = "https://repo.grails.org/grails/core"
    }

    mavenCentral()
    jcenter()

}

 dependencies {
          compile 'org.grails.plugins:quartz:2.0.4'
    }


from grails-quartz.

alex-shamshurin avatar alex-shamshurin commented on July 3, 2024

@AlexKovynev Alex, if you are familiar with that issue and as I see you are contributing to this plugin why it is not tested enough and nowhere is it specified as broken?

or I do smth wrong?

from grails-quartz.

rvanderwerf avatar rvanderwerf commented on July 3, 2024

I'm not seeing these errors, can someone post a small example app to
demonstrate the issue?

On Mon, Jan 11, 2016 at 10:01 AM, Alexander Shamshurin <
[email protected]> wrote:

@AlexKovynev https://github.com/AlexKovynev Alex, if you are familiar
with that issue and as I see you are contributing to this plugin why it is
not tested enough and nowhere is it specified as broken?

or I do smth wrong?


Reply to this email directly or view it on GitHub
#46 (comment)
.

from grails-quartz.

adibak20 avatar adibak20 commented on July 3, 2024

@salex772 Next is the same, I do not know what but grails looking for in the repo zip file and did not see him there.

In you, does it work?

from grails-quartz.

alex-shamshurin avatar alex-shamshurin commented on July 3, 2024

My problem that plugin itself does not work as expected - only one job can fire. Other jobs sheduler doesn't see and also mess them in shedule. But I installed it without any problems. Any versions I have tried were installed wothout any trouble.

Please install new fresh grails application and then add example I posted above to your build.config. I'm sure that it is problem with your gradle or some libs or IDE.

from grails-quartz.

alex-shamshurin avatar alex-shamshurin commented on July 3, 2024

@rvanderwerf this is a simple default project with three jobs. Nothing happens! (jobs must print and log)

  1. grails create-app cronTest
  2. copy files over default project

groovy 2.4.5 grails 3.0.11 gradle 2.9
cronTest.tar.gz

from grails-quartz.

AlexKovynev avatar AlexKovynev commented on July 3, 2024
  1. I am not a contributor.
  2. In your test you have identically "cron name". That's why the first task is performed only.
  3. 2.0.4 is broken, pluginEnabled is disabled by default, if i set is to true i catch exception in

if (grailsApplication?.config?.quartz?.purgeQuartzTablesOnStartup?.toBoolean()==true) {

Exception in thread "main" groovy.lang.MissingMethodException: No signature of method: static org.grails.config.NavigableMap.toBoolean() is applicable for argument types: () values: []
Possible solutions: asBoolean(), asBoolean(), toSorted()

from grails-quartz.

alex-shamshurin avatar alex-shamshurin commented on July 3, 2024

What you mean by identically "cron name"? I thought this is the name of sheduling type, like "simple".
I get the error too if set pluginEnabled option. But on my real app with 2.0.4 this works as I described above - only one job task is sheduled though pluginEnabled is false by default.

from grails-quartz.

AlexKovynev avatar AlexKovynev commented on July 3, 2024
static triggers = {
    cron name: 'cronTrigger', startDelay: 5000, cronExpression: '10 * * * * ?'
}

cronTrigger is the name in all three jobs, if you set something different you get to work all three,

but it works on 2.0.1. In 2.0.4 are waiting for a response from a rvanderwerf I hope.

from grails-quartz.

alex-shamshurin avatar alex-shamshurin commented on July 3, 2024

Hmm, I really supposed that is not just a name but a trigger type and it should be set to 'cronTrigger', Perhaps some update to docs is needed. Спасибо.

from grails-quartz.

rvanderwerf avatar rvanderwerf commented on July 3, 2024

Exception in thread "main" groovy.lang.MissingMethodException is something
I'm going to try and get fixed tonight, if not tomorrow, someone else
reported this as well. Alexender I'll check out your project example thanks
for sending that in.

On Mon, Jan 11, 2016 at 7:20 PM, AlexKovynev [email protected]
wrote:

  1. I am not a contributor.
  2. In your test you have identically "cron name". That's why the first
    task is performed only.
  3. 2.0.4 is broken, pluginEnabled is disabled by default, if i set is
    to true i catch exception in

if
(grailsApplication?.config?.quartz?.purgeQuartzTablesOnStartup?.toBoolean()==true)
{

Exception in thread "main" groovy.lang.MissingMethodException: No
signature of method: static org.grails.config.NavigableMap.toBoolean() is
applicable for argument types: () values: []
Possible solutions: asBoolean(), asBoolean(), toSorted()


Reply to this email directly or view it on GitHub
#46 (comment)
.

from grails-quartz.

rvanderwerf avatar rvanderwerf commented on July 3, 2024

ok fixed the config values. As you guys were saying the default values turned the plugin off (my bad). Updated the readme as well to tell you to use unique trigger names. You can't have duplicate names triggers. I took your example @salex772 once I fixed the config issues (you can work around by setting the new config values in the config) and renamed the trigger and all 3 ran. So give 2.0.5 a spin I tested it in several apps without issues tonight.

from grails-quartz.

adibak20 avatar adibak20 commented on July 3, 2024

Hello,
@salex772 was right. I built a new project and it runs very well.
I can not figure what I'm doing wrong in my project.

My build.gradle:

buildscript {
    ext {
        grailsVersion = project.grailsVersion
    }
    repositories {
        mavenLocal()
        maven { url "https://repo.grails.org/grails/core" }
    }
    dependencies {
        classpath "org.grails:grails-gradle-plugin:$grailsVersion"
        classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.5.0'
        classpath "org.grails.plugins:hibernate4:4.3.5.4"
    }
}

plugins {
    id "io.spring.dependency-management" version "0.5.2.RELEASE"
    id 'org.hidetake.ssh' version '1.1.4'
}

version "0.1"
group "project"

apply plugin: "spring-boot"
apply plugin: "war"
apply plugin: "asset-pipeline"
apply plugin: 'idea'
apply plugin: "org.grails.grails-web"
apply plugin: "org.grails.grails-gsp"

ext {
    grailsVersion = project.grailsVersion
    gradleWrapperVersion = project.gradleWrapperVersion
}

assets {
    minifyJs = true
    minifyCss = true
}

repositories {
    mavenLocal()
    maven {
        url = "http://dl.bintray.com/grails/plugins"
    }
    maven {
        url = "http://jcenter.bintray.com"
    }
    maven {
        url = "https://repo.grails.org/grails/core"
    }

    mavenCentral()
    jcenter()

}

dependencyManagement {
    imports {
        mavenBom "org.grails:grails-bom:$grailsVersion"
    }
    applyMavenExclusions false
}

dependencies {
    compile "org.springframework.boot:spring-boot-starter-logging"
    compile "org.springframework.boot:spring-boot-starter-actuator"
    compile "org.springframework.boot:spring-boot-autoconfigure"
    provided  "org.springframework.boot:spring-boot-starter-tomcat"
    compile "org.grails:grails-dependencies"
    compile "org.grails:grails-web-boot"


    compile "org.grails.plugins:hibernate"
    compile "org.grails.plugins:cache"
    compile "org.hibernate:hibernate-ehcache"
    compile "org.grails.plugins:scaffolding"

    compile "org.jadira.usertype:usertype.jodatime:2.0"
    compile 'joda-time:joda-time:2.9.1'

    compile 'org.grails.plugins:spring-security-core:3.0.1'
    compile 'org.springframework.security:spring-security-core:3.2.9.RELEASE'
    compile 'org.springframework.security:spring-security-web:3.2.9.RELEASE'

    compile 'org.grails:grails-datastore-rest-client:5.0.0.RC2'

    compile 'org.flywaydb:flyway-core:3.0'

    compile 'org.grails.plugins:asynchronous-mail:1.2'
    compile "javax.mail:mail:1.4.1"

    runtime 'org.postgresql:postgresql:9.4-1200-jdbc41'
    runtime "org.grails.plugins:asset-pipeline"
    runtime 'org.grails.plugins:database-migration:2.0.0.RC1'

    testCompile "org.grails:grails-plugin-testing"
    testCompile "org.grails.plugins:geb"
    testRuntime 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.44.0'

    console "org.grails:grails-console"

    compile 'org.grails.plugins:quartz:2.0.4'

}

And I had error:

Warning:<i><b>root project 'project': Web Facets/Artifacts will not be configured properly</b>
Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':runtime'.
Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find quartz.zip (org.grails.plugins:quartz:2.0.4).
Searched in the following locations:
    http://dl.bintray.com/grails/plugins/org/grails/plugins/quartz/2.0.4/quartz-2.0.4.zip</i>
Warning:<i><b>root project 'project': Web Facets/Artifacts will not be configured properly</b>
Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':runtime'.
Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find quartz.zip (org.grails.plugins:quartz:2.0.4).
Searched in the following locations:
    http://dl.bintray.com/grails/plugins/org/grails/plugins/quartz/2.0.4/quartz-2.0.4.zip</i>

Do you know someone depending on what's going on here?

from grails-quartz.

adibak20 avatar adibak20 commented on July 3, 2024

Its working now. The problem turned out to be in temporary files. I deleted a folder .m2 from home and downloaded the have a new everything.

from grails-quartz.

alex-shamshurin avatar alex-shamshurin commented on July 3, 2024

Yep, It's obvious.

from grails-quartz.

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.