I'm using maven and dropwizard, getting java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/TSFBuilder error when I initiate an Object Mapper.
Tried to override the dependency by adding com.fasterxml.jackson.core version 2.10.0 to POM (also tried a few other versions), but still getting the same error.
Any suggestion?
Resolved. Check out below:
Use jackson.core version higher than 2.10.x
Whether your code also uses org.codehaus.jackson and it causes dependency conflicts
Related
Due to a security issue with org.codehaus.groovy:groovy-all i need to update it within a grails project. the issue is that it is being used by org.grails:grails-bootstrap and i am unable to update that, because it is never explicitly imported in my buildconfig.groovy file.
grails-bootstrap is currently importing org.codehaus.groovy:groovy-all:2.3.6 and i need it to use org.codehaus.groovy:groovy-all:2.4.13
is there any way to update only the sub-dependency? is there any way to force a new version of org.grails:grails-bootstrap.
any help would be appreciated.
edit: i am on grails version 2.4.3 and dont want to make the upgrade to 3.x.x
You can add an explicit dependency in BuildConfig.groovy.
I am getting the following error when importing the project into GGTS:
Grails Dependencies [2.0.1] (uninitialized).
I could see, the problem is similar to which is raised in one of the issue
http://forum.spring.io/forum/spring-projects/springsource-tool-suite/115801-missing-grailsdependencies
After updating from AngularDart 0.9.9 to 0.10.0 I encountered weird error messages:
Cannot resolve a circular dependency! (resolving ElementProbe -> ElementProbe -> ElementProbe...
The stack trace doesn't contain any method or class of mine, except applicationFactory().run();
What has happened, and how to fix it?
This is a known bug https://github.com/angular/angular.dart/issues/961.
You need to ensure you have di version 0.0.40 which contains a fix.
No idea whether it's a good idea what I did to fix the error, but here is my solution:
I suspect pub update didn't delete every old class. So I deleted the every package in the packages folder, and ran pub get again.
I have updated my project yesterday with IdentityModel 2.6, and I can't find why it does not compile anymore with this error.
error ASPRUNTIME : The pre-application start initialization method Start on type
Thinktecture.IdentityModel.Web.Configuration.AppStart threw an exception with the
following error message: Value cannot be null.
I have just updated the package, no code change.
EDIT:
The problem comes from missing web.config section described here http://brockallen.com/2013/05/28/configuration-for-wif-session-helper-apis-in-thinktecture-identitymodel/
This seems mandatory and all attributes must be filled otherwise it throws...
sessionTokenCacheType for exemple must be filled...
It would be great to have more information on this.
TIA
That's a bug in 2.6. Please upgrade to 2.6.1
This was a bug and has been fixed in 2.6.1. Update from NuGet again. Sorry for the inconvenience.
My lib directory only has 1 jar. xml-apis 2.8.1. When I remove it, everything compiles. This is the error I get:
java.lang.LinkageError: Class org/xml/sax/SAXParseException violates loader constraints
Any idea what's going on?
The xml-apis classes are included in the JRE. This issue is also known as being part of the "jar hell" problem, and - in the JVM space - typically occurs with XML libraries being included multiple times in the classpath, i.e. from the JRE rt.jar, by the application server or as a dependency of third-party libraries. This leads to LinkageError exceptions as the one provided above.
This is one example that describes how to solve this issue in Grails 1.3.7.