[v1.0.2] offline mode not working

96 views
Skip to first unread message

abelr...@gmail.com

unread,
Apr 13, 2014, 12:48:37 PM4/13/14
to wal...@googlegroups.com
Hi,

Since the last version I'm having problems with the offline mode.
Now everytime I execute check/apply, it checks the dependencies (through ivy). This makes the process slow but works. However, after a successfull executing if I try to use --offline option to speedup the thing I get the error shown bellow.


INFO [main] - Java version: 1.6.0_31
INFO [main] - Java Home: C:\Program Files (x86)\Java\jdk1.6.0_31\jre
INFO [main] - OS: Windows 7, Vesion: 6.1
--------------------------------------------------------------------------------
_ _ _ _ ___ ___ _
| | | | | | | | \/ | | |
| | | | __ _| | | _| . . | ___ __| |
| |/\| |/ _` | | |/ / |\/| |/ _ \ / _` |
\ /\ / (_| | | <| | | | (_) | (_| |
\/ \/ \__,_|_|_|\_\_| |_/\___/ \__,_|
--------------------------------------------------------------------------------
An open source tool for apply code conventions into your project
version 1.0 - April 2014 -
--------------------------------------------------------------------------------
INFO [main] - C:\home\Projects\workspace\walkmod\walkmod-demo\walkmod.xml [ok]
:: loading settings :: file = C:\home\bin\walkmod-1.0.2\config\ivysettings.xml
:: loading settings :: url = jar:file:/C:/home/bin/walkmod-1.0.2/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.walkmod#walkmod-javalang-plugin-caller;working
confs: [default]
:: resolution report :: resolve 156ms :: artifacts dl 0ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 2 | 0 | 0 | 0 || 0 | 0 |
---------------------------------------------------------------------

:: problems summary ::
:::: WARNINGS
module not found: org.walkmod#walkmod-javalang-plugin;[1.0, 2.0)

==== cache: tried

C:\Users\user\.ivy2\cache/org.walkmod/walkmod-javalang-plugin/ivy-[revision].xml

module not found: org.walkmod#walkmod-java-formatter-plugin;[1.0, 2.0)

==== cache: tried

C:\Users\user\.ivy2\cache/org.walkmod/walkmod-java-formatter-plugin/ivy-[revision].xml

::::::::::::::::::::::::::::::::::::::::::::::

:: UNRESOLVED DEPENDENCIES ::

::::::::::::::::::::::::::::::::::::::::::::::

:: org.walkmod#walkmod-javalang-plugin;[1.0, 2.0): not found

:: org.walkmod#walkmod-java-formatter-plugin;[1.0, 2.0): not found

::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
cache: inconsistent cache: clean it and resolve again

cache: inconsistent cache: clean it and resolve again


:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
ERROR [main] - Invalid configuration
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class [org.walkmod.templates.groovy.GroovyTemplateEngine] not found
Offending resource: class path resource [application-context.xml]
Bean 'walkmod:commons:groovy'; nested exception is java.lang.ClassNotFoundException: org.walkmod.templates.groovy.GroovyTemplateEngine
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:323)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:572)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:476)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:445)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:311)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:202)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:181)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.walkmod.conf.providers.SpringConfigurationProvider.loadBeanFactory(SpringConfigurationProvider.java:56)
at org.walkmod.conf.providers.SpringConfigurationProvider.load(SpringConfigurationProvider.java:80)
at org.walkmod.conf.ConfigurationManager.executeConfigurationProviders(ConfigurationManager.java:80)
at org.walkmod.conf.ConfigurationManager.<init>(ConfigurationManager.java:57)
at org.walkmod.WalkModFacade.check(WalkModFacade.java:175)
at org.walkmod.WalkModDispatcher.main(WalkModDispatcher.java:121)
Caused by: java.lang.ClassNotFoundException: org.walkmod.templates.groovy.GroovyTemplateEngine
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)
at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:63)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.createBeanDefinition(BeanDefinitionParserDelegate.java:697)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:553)
... 17 more

walkmod

unread,
Apr 13, 2014, 3:17:19 PM4/13/14
to wal...@googlegroups.com, abelr...@gmail.com
Hi Abel,

I have reproduced the error. I have created a ticket for that https://bitbucket.org/rpau/walkmod/issue/18/offline-mode-not-working and I will fix it as soon I can.

Thanks! I will notify you when I fix it.

walkmod

unread,
Apr 15, 2014, 2:23:07 PM4/15/14
to wal...@googlegroups.com, abelr...@gmail.com
Reply all
Reply to author
Forward
0 new messages