grailsLinkGenerator issue in Grails 3 interceptor? - interceptor

I am getting an error in my interceptor for Grails 3.1.4
The return type of java.lang.Object getGrailsLinkGenerator() incompatible with grails.web.mapping.LinkGenerator in grails.artefact.controller.support.Response Redirect
The code that I implemented is as follows:
response.sendRedirect("${grailsLinkGenerator.link(controller: 'trendingClaimsDemoAndGeographic', action: 'index')}")

I've faced similar problem while using Grails 3.1.4.
I guess, you are using org.codehaus.groovy.grails.web.mapping.LinkGenerator which is now deprecated.
I fixed it using grailsLinkGenerator from the package grails.web.mapping.LinkGenerator
Hope this helps.

Related

Error: Property left of ForInStatement is null?

yesterday I was able to create my react babylon app with react-scripts. After updating babylon to 4.1.0 I receive the following error:
./node_modules/babylonjs/babylon.js TypeError:
/git/proconf_sa/node_modules/babylonjs/babylon.js: Property left of ForInStatement expected node to be of a type [“VariableDeclaration”,“LVal”] but instead got null
Any idea what the problem could be? I updated from version 3.1.0-alpha3.7.
Thanks.
I was facing the same problem, however using Angular. I resolved by removing a package that uses svg.js#2.7.1 !!! From what you discover, this error is caused by the discontinued version of svg.js#2.7.1 !!! Look inside your application that there is a package using this and remove it!
If using apexcharts update it, because it depends on svg.js!
(NOTE: Sorry for possible errors in my writing, I'm Brazilian, I'm having to use Google translator to write this)

Rails 5.1.5 upgrade causes - uninitialized constant Mime::JSON

Whenever a controller renders json I get,
uninitialized constant Mime::JSON
I have not modified any code related to this.
Ex, the code for this controller method that throws the error:
def names
#families = Family.pluck(:name)
render json: #families
end
This was working fine before the rails 5 upgrade.
In my case, it was jbuilder causing this error.
Upgrading jbuilder to latest (2.7.0 at time of writing) solved this. The old jbuilder references JSON wrong and causes responder to fail.
I was obtaining the error after upgrade from rails 5.0.1 to 5.1.0 and in my case the gem 'web-console','~> 2.0' was causing the error, I solved it updating it to gem 'web-console','>= 3.3.0'.

Mime type error laravel

I'm working in laravel and i'm getting error while uploading image file.
Following is the error message:
Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?)
Any suggestion to solve it?
I found same problem here.
This link might help.
Laravel 4 - no guessers available issue
It says uncomment "extension=php_fileinfo.dll" from php.ini and restart server it will solve your problem.
Hope it helps.

AppEngine Error: java.lang.NoSuchMethodError: com.google.appengine.api.search.Index.add

Im using AppEngine SDK 1.7.0 in my webapp. Recently, errors was log as
Caused by: java.lang.NoSuchMethodError:
com.google.appengine.api.search.Index.add([Lcom/google/appengine/api/search/Document;)
Lcom/google/appengine/api/search/AddResponse;
The error just happened recently, it doesn't have the problem before.
I believe they(google) have changed Index.add() to Index.put(Document ...docs), regards to the latest version of API doc.
https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/Index
AddResponse was deprecated and removed from the SDK.
http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes
You need to remove all reference to that class and then redeploy.

SolrJ HttpSolrServer throwing NoHttpResponseException during instantiation

SolrJ is throwing NoHttpResponseException when trying to instantiate HttpSolrServer. Anyone knows why?
In the code I do:
SolrServer server = new HttpSolrServer ("http://localhost:8983/solr/"); // or some other url.
and it throws:
javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/http/NoHttpResponseException
I'm using Solr and SolrJ 4.1.0
I dont know if your problem was the same as mine but i thought that i'm getting the same exception until i noticed that i'm having the exception noClassFound :NoHttpResponseException and just by adding this package httpclient-4.1.3 the issue was solved.
hope this helps.
I had the same problem, but I used solrj-4.3.1. You need org.apache.httpcomponents:httpcore jar on your classpath to resolve this problem.
I used httpcore-4.2.5.jar
My problem wasn't even solved after adding httpclient-4.x.x. I added all the libraries being distrubuted by solr-4.4.0 , dist folder. After that my problem got resolved.
you problem was the same as mine. i solved the problem by adding the package httpclient-.jar and the package httpcore-.jar. i hope this help for you
I to had same problem but after adding the following 3 jars I was able to fix it.
1. httpclient
2. httpcore
3. httpmime
And these suitable jars provided in your respective solr framework.
Example I am using solr4.7.2 and these jars are present in folder as solr-4.7.2\dist\solrj-lib\

Resources