Grails Update Dependencies : Error Compilation error: startup failed | Compile error during compilation with javac - grails

I am trying to run a grails 2.1.1 web app. While checking out the project from the SVN repo, it tries to do an update dependencies and fails with the following error:
| Loading Grails 2.1.1
| Configuring classpath
| Error SLF4J: Class path contains multiple SLF4J bindings.
| Error SLF4J: Found binding in [jar:file:/Users/sm026588/.grails/ivy-cache/org.grails/grails-plugin-log4j/jars/grails-plugin-log4j-2.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
| Error SLF4J: Found binding in [jar:file:/Users/sm026588/.grails/ivy-cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
| Error SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
| Configuring classpath.
| Environment set to development.....
| Compiling 45 source files.
| Error Compilation error: startup failed:
Compile error during compilation with javac.
error: error reading /Users/../.grails/ivy-cache/com....intent/intent-processing-protobuf/jars/intent-processing-protobuf-2.10.2.jar; cannot read zip file entry
1 error
1 error
I have tried deleting the jar and re-run "refresh dependencies", did not work. Tried to see if the jar file could be unzipped, and I could unzip it successfully, which tells me that the jar is not corrupt. Tried with Eclipse Juno, STS and Eclipse Indigo on Mac OS X, all of them give the same error. Have been stuck at this point for quite sometime, any help would be appreciated.

Related

Class path contains multiple SLF4J bindings on grails run-app

I'm getting following errors on grails run-app
Oct 20, 2014 6:22:22 PM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule
| Configuring classpath
| Error SLF4J: Class path contains multiple SLF4J bindings.
| Error SLF4J: Found binding in [jar:file:/Users/minhaj/.m2/repository/ch/qos/logback/logback- classic/1.0.12/logback-classic-1.0.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
| Error SLF4J: Found binding in [jar:file:/Users/minhaj/.m2/repository/org/grails/grails-plugin- log4j/2.4.2/grails-plugin-log4j-2.4.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
| Error SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
| Error SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
However I'm excluding grails-plugin-log4j explicitly but looks like its not working.
inherits("global") {
excludes 'grails-plugin-log4j', 'log4j'
}
Does anyone face similar issue after adding logback plugin in grails application? (I'm using grails 2.4.2)

Grails unable to install uploadr plugin

I am facing same error every time m trying to install uploadr plugin through "grails install-plugin uploadr" command , i have mapped compile ":uploadr:0.8.2" in the BuildConfig.groovy but then also getting this
error.![error][1]
| Error Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails.plugins:uploadr:zip:0.8.2 (Use --stacktrace to see the full trace)
| Error Failed to read artifact descriptor for org.grails.plugins:uploadr:zip:0.8.2
The stacktrace output looks something like that:-
Caused by:
org.apache.http.client.HttpResponseException: Proxy Authorization Required (407)
at org.eclipse.aether.transport.http.HttpTransporter.handleStatus(HttpTransporter.java:458)
at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:283)
at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:235)
at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:59)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
| Error Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails.plugins:uploadr:zip:0.8.2
| Error Failed to read artifact descriptor for org.grails.plugins:uploadr:zip:0.8.2
You are working behind a HTTP proxy and Grails cannot access the internet. You need to
grails add-proxy My-Proxy --host=proxy-server --port=4300 // according to [this][1]
and then activate the proxy configuration by
grails set-proxy My-Proxy

Grails 2.2.2 Compilation Errors: ThreadGroupContext beaninfo

I am using Grails 2.2.2 with GGTS 3.3M1. When I run my app (grails run-app) and change something in a groovy file then Grails recompiles the file. During this process the following error output occurs:
| Error Unexpected problem clearing ThreadGroupContext beaninfo:
| Error java.lang.ClassCastException: java.beans.WeakIdentityMap cannot be cast to java.util.Map
| Error at org.springsource.loaded.agent.JVMPlugin.reloadEvent(JVMPlugin.java:77)
| Error at org.springsource.loaded.TypeRegistry.fireReloadEvent(TypeRegistry.java:1594)
| Error at org.springsource.loaded.ReloadableType.loadNewVersion(ReloadableType.java:396)
| Error at org.springsource.loaded.TypeRegistry.loadNewVersion(TypeRegistry.java:805)
| Error at org.springsource.loaded.agent.ReloadableFileChangeListener.fileChanged(ReloadableFileChangeListener.java:51)
| Error at org.springsource.loaded.agent.Watcher.determineChangesSince(FileSystemWatcher.java:218)
| Error at org.springsource.loaded.agent.Watcher.run(FileSystemWatcher.java:205)
| Error at java.lang.Thread.run(Thread.java:722)
Reloading: JVMPlugin: warning: unable to clear BEANINFO_CACHE, cant find field
The compilation seems to work fine but the error still occurs.
This is because you are on JDK 1.7 update 21. Something 'moved' in the JDK at that version and the state clearing logic needs updating in springloaded. This is already fixed in the springloaded codebase but won't be in a new grails version for a little while. Older versions of JDK 1.7 would be fine. You can ignore the message, but it means some state was not cleared when a type was reloaded - and this means it may look like it hasn't reloaded some of the changes you might make to your types.

Grails 2.0 and PayPal plugin

I've installed the newest Grails PayPal-Plugin (0.6.4) and got the following error:
Problems occurred (un)installing plugins. See details for more information
------System.out:-----------
| Loading Grails 2.0.0
| Configuring classpath.
| Environment set to development.....
| Compiling 97 source files
| Compiling 97 source files.
| Error Compilation error: startup failed:
C:\Users\username\.grails\2.0.0\projects\projectname\plugins\paypal-0.6.4\grails-app\controllers\org\grails\paypal\PaypalController.groovy: -1: The return type of java.lang.Object notify() in org.grails.paypal.PaypalController is incompatible with void notify() in java.lang.Object
. At [-1:-1] # line -1, column -1.
1 error
------System.err:-----------
I fixed it by renaming notify() into notifyPaypal() => Error PayPal plugin on grails 2.0.0.RC3
But the plugin seems to disturb springSecurity because I got the following error if I try to login:
| Error 2012-02-05 21:42:07,245 ["http-bio-8080"-exec-8] ERROR [/projectname].[default] - Servlet.service() for servlet [default] in context with path [/projectname] threw exception
Message: The specified user domain class 'Person' is not a domain class
How can I fix it?
Notice that two versions have been released since 0.6.4, and it now behaves as you asked regarding the 'notify()' method (probably thanks to your report).
http://grails.org/plugin/paypal/
(just saying it here for any casual reader to know)

An error occured installing the plugin [shiro-1.1.3]: Unable to delete

Grails 2.0.0.M1 + shiro-1.1.3
grails> install-plugin shiro
| Resolving plugin JAR dependencies..
delete logs...
| Plugin installed.
grails> compile --staktrace
| Error An error occured installing the plugin [shiro-1.1.3]: Unable
to delete file
D:\TZProfile.grails\2.0.0.M1\projects\Vote\plugins\shiro-1.1.3\lib\shiro-co
re-1.1.0.jar
| Error Error running script compile --staktrace:
org.codehaus.groovy.grails.cli .ScriptExitException (Use --stacktrace
to see the full trace)
You only need to delete all files .jar of D:\TZProfile.grails\2.0.0.M1\projects\Vote\plugins\shiro-1.1.3\lib. That is, uninstall the plugin. After that, install it again. Then, run the app.

Resources