Comments (3)
Hi,
Try changing the Binder field binder declaration from
Binder<Contact> binder = new BeanValidationBinder<>(Contact.class);
in ContactForm to
Binder<Contact> binder = new Binder<>(Contact.class);
,
that did the trick for me!
from flow-crm-tutorial.
I googled more intensively and found a link re. that very same exception:
https://stackoverflow.com/questions/63879282/bean-instantiation-via-constructor-failed
So I added the dependency
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>5.4.1.Final</version> </dependency>
to my pom.
But with that I get an
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contactService': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'companyRepository' defined in com.vaadin.tutorial.crm.backend.repository.CompanyRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Cannot resolve reference to bean 'jpaMappingContext' while setting bean property 'mappingContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.cfg.beanvalidation.IntegrationException: Error activating Bean Validation integration ...
<several layers of Caused by omitted here...
...
Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 Ungültige übergeordnete Version; Klasse=javafx/beans/value/ObservableValue, Offset=6
(for whatever reason I am getting part of the error message in German... ||-( )
UnsupportedClassVersionError? F^%$@!
Here the fun stops! Any idea what version one can use? As mentioned I am using Java 11.
from flow-crm-tutorial.
Strange enough the issue disappeared after a manual build on the command line (vs. the normal builds in my IDE). And it didn't resurface even after an "mvn clean" or manually cleaning out (removing all from) my local repository.
from flow-crm-tutorial.
Related Issues (20)
- Error on Build: Could not navigate to '' Reason: Couldn't find route for '' HOT 1
- Data is Not get updated in H2 database after Save, or delete operation. HOT 1
- Your DB has been reset HOT 6
- Log in hint HOT 1
- Working v24-pre version with spring boot 3? HOT 1
- Tutorial with no Login View and spring ressource-server HOT 3
- user pass on the live demo dont work HOT 9
- Issue with CSS and parent class in chapter "Creating your own reusable components in Vaadin"
- PiT 24.1: project does not compile in production mode
- cant login locally HOT 4
- Problems with production build - and suggested fix
- SecurityConfig.java - 'authorizeHttpRequests()' is deprecated and marked for removal HOT 1
- Is there an update to the latest Vaadin version? HOT 2
- Logout doesn't work as it should be HOT 6
- this tutorial doesnt seem to run - gives "java: package com.vaadin.flow.component.page does not exist" HOT 23
- Issue with logout and Vaadin 20 HOT 1
- Entity Not Found HOT 2
- Update Spring security configuration to component-based
- User Login is needed after checkout 03-database-and-backend HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow-crm-tutorial.