Getting error, Spring BeanCreationException: Error creating bean with name 'validateableConstraintsEvaluator'2019 Community Moderator ElectionGrails 3.2.1 - built in CORS - still get CORS error in browserGrails 3.2.4 grails-spring-websocket 2.3 Errorgrails create-ng-controller foo" gives 'Error Command not found create-ng-controller'How to get a service bean inside a custom tag library class in Grails 3Grails 3.2.8: Java verifier error, can't get hot-reloading to workindirect jar conflict between spring-security-rest and guava causing NoSuchMethod errorError instantiating bean of type [org.grails.orm.hibernate.HibernateDatastore]: Repeated column in mapping for entity
Violin - Can double stops be played when the strings are not next to each other?
Have the tides ever turned twice on any open problem?
Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?
Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?
Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?
Is there a place to find the pricing for things not mentioned in the PHB? (non-magical)
As a new Ubuntu desktop 18.04 LTS user, do I need to use ufw for a firewall or is iptables sufficient?
Book about superhumans hiding among normal humans
Can I use USB data pins as power source
Recruiter wants very extensive technical details about all of my previous work
How to terminate ping <dest> &
Counting models satisfying a boolean formula
Why do newer 737s use two different styles of split winglets?
et qui - how do you really understand that kind of phraseology?
Is it insecure to send a password in a `curl` command?
Adventure Game (text based) in C++
Knife as defense against stray dogs
World War I as a war of liberals against authoritarians?
If I can solve Sudoku, can I solve the Travelling Salesman Problem (TSP)? If so, how?
Examples of transfinite towers
What's the meaning of a knight fighting a snail in medieval book illustrations?
I am confused as to how the inverse of a certain function is found.
How do I change two letters closest to a string and one letter immediately after a string using Notepad++?
Are relativity and doppler effect related?
Getting error, Spring BeanCreationException: Error creating bean with name 'validateableConstraintsEvaluator'
2019 Community Moderator ElectionGrails 3.2.1 - built in CORS - still get CORS error in browserGrails 3.2.4 grails-spring-websocket 2.3 Errorgrails create-ng-controller foo" gives 'Error Command not found create-ng-controller'How to get a service bean inside a custom tag library class in Grails 3Grails 3.2.8: Java verifier error, can't get hot-reloading to workindirect jar conflict between spring-security-rest and guava causing NoSuchMethod errorError instantiating bean of type [org.grails.orm.hibernate.HibernateDatastore]: Repeated column in mapping for entity
I have updated my project from grails2.5.6 to grails3.3.9 and successfully completed unit testing.
While running the integration test I am getting the following Exception.
2019-03-07 18:26:12.169 WARN --- [ main] o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.spockframework.spring.SpringMockTestExecutionListener@157b7da6] to process 'before' execution of test method [public void com.mdw360.sec.UserControllerSpec.$spock_feature_0_1()] for test instance [com.mdw360.sec.UserControllerSpec@36f464d8]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validateableConstraintsEvaluator': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException: Cannot get property 'config' on null object
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:185)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1646)
Controller
@Transactional(readOnly = true)
class UserController
def userCache
def springSecurityService
def utilityService
static allowedMethods = [save: "POST", update: "PUT", delete: "DELETE"]
def create()
List<Role> roles = Role.list()
Map roleMap = [:]
roles.each role -> roleMap[role] = false
render view: 'create', model: [userCO: new SaveUserCO(), roleMap: roleMap]
......
......
TestClass
import grails.gorm.transactions.Rollback
import grails.testing.mixin.integration.Integration
import org.springframework.beans.factory.annotation.Autowired
import spock.lang.Specification
@Integration
@Rollback
class UserControllerSpec extends Specification
@Autowired
UserController controller
def cleanup()
void "test create render correct view and model when no role exists"()
when:
controller.request.method='POST'
controller.create()
then:
assert controller.modelAndView.viewName == '/user/create'
assert controller.modelAndView.model.size() == 2
assert controller.modelAndView.model.roleMap.size() == 0
assert controller.modelAndView.model.userCO != null
void "test create render correct view and model when role exists"()
when:
controller.request.method='POST'
createRole('ROLE_TEST')
controller.create()
then:
assert controller.modelAndView.viewName == '/user/create'
assert controller.modelAndView.model.size() == 2
assert controller.modelAndView.model.roleMap.size() == 1
assert controller.modelAndView.model.userCO != null
...
....
}
I am using Grails 3.3.9 with JDK 1.8, gormVersion 6.1.11 and
gradle3.5
grails3
add a comment |
I have updated my project from grails2.5.6 to grails3.3.9 and successfully completed unit testing.
While running the integration test I am getting the following Exception.
2019-03-07 18:26:12.169 WARN --- [ main] o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.spockframework.spring.SpringMockTestExecutionListener@157b7da6] to process 'before' execution of test method [public void com.mdw360.sec.UserControllerSpec.$spock_feature_0_1()] for test instance [com.mdw360.sec.UserControllerSpec@36f464d8]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validateableConstraintsEvaluator': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException: Cannot get property 'config' on null object
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:185)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1646)
Controller
@Transactional(readOnly = true)
class UserController
def userCache
def springSecurityService
def utilityService
static allowedMethods = [save: "POST", update: "PUT", delete: "DELETE"]
def create()
List<Role> roles = Role.list()
Map roleMap = [:]
roles.each role -> roleMap[role] = false
render view: 'create', model: [userCO: new SaveUserCO(), roleMap: roleMap]
......
......
TestClass
import grails.gorm.transactions.Rollback
import grails.testing.mixin.integration.Integration
import org.springframework.beans.factory.annotation.Autowired
import spock.lang.Specification
@Integration
@Rollback
class UserControllerSpec extends Specification
@Autowired
UserController controller
def cleanup()
void "test create render correct view and model when no role exists"()
when:
controller.request.method='POST'
controller.create()
then:
assert controller.modelAndView.viewName == '/user/create'
assert controller.modelAndView.model.size() == 2
assert controller.modelAndView.model.roleMap.size() == 0
assert controller.modelAndView.model.userCO != null
void "test create render correct view and model when role exists"()
when:
controller.request.method='POST'
createRole('ROLE_TEST')
controller.create()
then:
assert controller.modelAndView.viewName == '/user/create'
assert controller.modelAndView.model.size() == 2
assert controller.modelAndView.model.roleMap.size() == 1
assert controller.modelAndView.model.userCO != null
...
....
}
I am using Grails 3.3.9 with JDK 1.8, gormVersion 6.1.11 and
gradle3.5
grails3
add a comment |
I have updated my project from grails2.5.6 to grails3.3.9 and successfully completed unit testing.
While running the integration test I am getting the following Exception.
2019-03-07 18:26:12.169 WARN --- [ main] o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.spockframework.spring.SpringMockTestExecutionListener@157b7da6] to process 'before' execution of test method [public void com.mdw360.sec.UserControllerSpec.$spock_feature_0_1()] for test instance [com.mdw360.sec.UserControllerSpec@36f464d8]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validateableConstraintsEvaluator': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException: Cannot get property 'config' on null object
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:185)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1646)
Controller
@Transactional(readOnly = true)
class UserController
def userCache
def springSecurityService
def utilityService
static allowedMethods = [save: "POST", update: "PUT", delete: "DELETE"]
def create()
List<Role> roles = Role.list()
Map roleMap = [:]
roles.each role -> roleMap[role] = false
render view: 'create', model: [userCO: new SaveUserCO(), roleMap: roleMap]
......
......
TestClass
import grails.gorm.transactions.Rollback
import grails.testing.mixin.integration.Integration
import org.springframework.beans.factory.annotation.Autowired
import spock.lang.Specification
@Integration
@Rollback
class UserControllerSpec extends Specification
@Autowired
UserController controller
def cleanup()
void "test create render correct view and model when no role exists"()
when:
controller.request.method='POST'
controller.create()
then:
assert controller.modelAndView.viewName == '/user/create'
assert controller.modelAndView.model.size() == 2
assert controller.modelAndView.model.roleMap.size() == 0
assert controller.modelAndView.model.userCO != null
void "test create render correct view and model when role exists"()
when:
controller.request.method='POST'
createRole('ROLE_TEST')
controller.create()
then:
assert controller.modelAndView.viewName == '/user/create'
assert controller.modelAndView.model.size() == 2
assert controller.modelAndView.model.roleMap.size() == 1
assert controller.modelAndView.model.userCO != null
...
....
}
I am using Grails 3.3.9 with JDK 1.8, gormVersion 6.1.11 and
gradle3.5
grails3
I have updated my project from grails2.5.6 to grails3.3.9 and successfully completed unit testing.
While running the integration test I am getting the following Exception.
2019-03-07 18:26:12.169 WARN --- [ main] o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.spockframework.spring.SpringMockTestExecutionListener@157b7da6] to process 'before' execution of test method [public void com.mdw360.sec.UserControllerSpec.$spock_feature_0_1()] for test instance [com.mdw360.sec.UserControllerSpec@36f464d8]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validateableConstraintsEvaluator': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException: Cannot get property 'config' on null object
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:185)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1646)
Controller
@Transactional(readOnly = true)
class UserController
def userCache
def springSecurityService
def utilityService
static allowedMethods = [save: "POST", update: "PUT", delete: "DELETE"]
def create()
List<Role> roles = Role.list()
Map roleMap = [:]
roles.each role -> roleMap[role] = false
render view: 'create', model: [userCO: new SaveUserCO(), roleMap: roleMap]
......
......
TestClass
import grails.gorm.transactions.Rollback
import grails.testing.mixin.integration.Integration
import org.springframework.beans.factory.annotation.Autowired
import spock.lang.Specification
@Integration
@Rollback
class UserControllerSpec extends Specification
@Autowired
UserController controller
def cleanup()
void "test create render correct view and model when no role exists"()
when:
controller.request.method='POST'
controller.create()
then:
assert controller.modelAndView.viewName == '/user/create'
assert controller.modelAndView.model.size() == 2
assert controller.modelAndView.model.roleMap.size() == 0
assert controller.modelAndView.model.userCO != null
void "test create render correct view and model when role exists"()
when:
controller.request.method='POST'
createRole('ROLE_TEST')
controller.create()
then:
assert controller.modelAndView.viewName == '/user/create'
assert controller.modelAndView.model.size() == 2
assert controller.modelAndView.model.roleMap.size() == 1
assert controller.modelAndView.model.userCO != null
...
....
}
I am using Grails 3.3.9 with JDK 1.8, gormVersion 6.1.11 and
gradle3.5
grails3
grails3
edited Mar 7 at 15:16
Tiw
4,11761630
4,11761630
asked Mar 7 at 13:50
Pradeep MauryaPradeep Maurya
112
112
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55045394%2fgetting-error-spring-beancreationexception-error-creating-bean-with-name-vali%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55045394%2fgetting-error-spring-beancreationexception-error-creating-bean-with-name-vali%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown