Skip to content

Instantly share code, notes, and snippets.

View DenisNikashin's full-sized avatar

Denis Nikashin DenisNikashin

  • Ukraine
View GitHub Profile
public class VirtualKeyboardExample extends Application {
@Override
public void start(Stage primaryStage) {
final TextField textField = new TextField();
textField.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
System.out.println("text field: "+textField.getText());
public class VirtualKeyboard {
private final VBox root ;
/**
* Creates a Virtual Keyboard.
* @param target The node that will receive KeyEvents from this keyboard.
* If target is null, KeyEvents will be dynamically forwarded to the focus owner
* in the Scene containing this keyboard.
*/
public VirtualKeyboard(ReadOnlyObjectProperty<Node> target) {
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.restExample.customerDemo.model.Customer_$$_jvsta4f_0["handler"])
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77) ~[jackson-databind-2.9.5.jar:2.9.5]
at com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1191) ~[jackson-databind-2.9.5.jar:2.9.5]
at com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:312) ~[jackson-databind-2.9.5.jar:2.9.5]
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:71) ~[jackson-databind-2.9.5.jar:2.9.5]
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:33
Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'customerRestControllerVersion1' method
public org.springframework.http.ResponseEntity<java.util.List<com.restExample.customerDemo.model.Customer>> com.restExample.customerDemo.controller.CustomerRestControllerVersion1.getAllCustomers()
to {[/api/version1/customers/],methods=[GET],produces=[application/json;charset=UTF-8]}: There is already 'customerRestControllerVersion1' bean method
public org.springframework.http.ResponseEntity<com.restExample.customerDemo.model.Customer> com.restExample.customerDemo.controller.CustomerRestControllerVersion1.saveCustomer(com.restExample.customerDemo.model.Customer) mapped.
Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException:
Could not write JSON: Unable to find com.restExample.customerDemo.model.Customer with id 1;
nested exception is com.fasterxml.jackson.databind.JsonMappingException:
Unable to find com.restExample.customerDemo.model.Customer with id 1 (through reference chain: com.restExample.customerDemo.model.Customer_$$_jvstea0_0["firstName"])