You’re mapping this JSON
{ "id": 2, "socket": "0c317829-69bf-43d6-b598-7c0c550635bb", "type": "getDashboard", "data": { "workstationUuid": "ddec1caa-a97f-4922-833f-632da07ffc11" }, "reply": true }
that contains an element named data
that has a JSON object as its value. You are trying to deserialize the element named workstationUuid
from that JSON object into this setter.
@JsonProperty("workstationUuid") public void setWorkstation(String workstationUUID) {
This won’t work directly because Jackson sees a JSON_OBJECT, not a String.
Try creating a class Data
public class Data { // the name doesn't matter @JsonProperty("workstationUuid") private String workstationUuid; // getter and setter }
the switch up your method
@JsonProperty("data") public void setWorkstation(Data data) { // use getter to retrieve it
Related Posts:
- How to resolve Error listenerStart when deploying web-app in Tomcat 5.5?
- Causes of getting a java.lang.VerifyError
- Understanding Heroku server status 143
- Invalid initial heap size. Could not create the Java virtual machine
- Is Git/GitHub a good WordPress deployment solution?
- WordPress and Git Workflow
- Is there a drush equivalent for WordPress yet?
- Deployment strategies for WP-Supercache [closed]
- Correct Search & Replace Queries for Changing URLs in a WordPress Database?
- WordPress Workflow – version control, deployment = database issue
- Failure to establish connection when provisioning via ansible-playbook server.yml
- Publishing Markdown posts from bitbucket to WordPress
- WordPress and Git Workflow
- How can I easily reduce the size of WordPress installation from development to production?
- Migrating local WordPress site to Openshift
- Redirect all www.xyz.com to www.xyz.com/wordpress?
- WordPress Multi-site Automated migaration script [closed]
- Bedrock Boilerplate under a sub-directory and access through a reverse proxy setup
- WordPress theme change and deployment using addon domain
- What is the best way to implement constants in Java?
- What is the reason behind “non-static method cannot be referenced from a static context”?
- What does ” || ” mean in Java? [duplicate]
- max value of integer
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- “int cannot be dereferenced” in Java
- What is a Key-Value Pair?
- Create ArrayList from array
- How to get current timestamp in string format in Java? “yyyy.MM.dd.HH.mm.ss”
- Error when checking Java version: could not find java.dll
- how to fix java.lang.IndexOutOfBoundsException
- Understanding Spring @Autowired usage
- What is a serialVersionUID and why should I use it?
- SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”
- The difference between += and =+
- exception in initializer error in java when using Netbeans
- What does “?” mean in Java?
- MacOS Catalina(v 10.15.3): Error: “chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser
- Simple Java HTTPS server
- java.net.ConnectException :connection timed out: connect?
- Understanding the difference between null and ‘\u000’ in Java
- what does Dead Code mean under Eclipse IDE Problems Section
- Print in new line, java
- How to override equals method in Java
- Java compressing Strings
- Can an abstract class have a constructor?
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- “NoClassDefFoundError: Could not initialize class” error
- Recursive print Factorial
- Recompile with -Xlint:unchecked for detail error in java
- Convert array of strings into a string in Java
- Recursion vs. Iteration (Fibonacci sequence)
- What is difference between Errors and Exceptions?
- What is the difference between Integer and int in Java?
- Static Error: This class does not have a static void main method accepting String[]
- Java Pass Method as Parameter
- “uses unchecked or unsafe operations”
- possible lossy conversion from long to int?
- Guess a number program with Java
- keytool error Keystore was tampered with, or password was incorrect
- How to override toString() properly in Java?
- Returning null in a method whose signature says return int?
- keytool error Keystore was tampered with, or password was incorrect
- Difference between a HashMap and a dictionary ADT
- Converting A String To Hexadecimal In Java
- Java TreeMap Comparator
- What is the use of System.in.read()?
- Invalid escape sequence (valid ones are \b \t \n \f \r \” \’ \\ )
- JDK was not found on the computer for NetBeans 6.5
- In Java, how to assign the variable number=Integer.parseInt(args[0]) a value if no argument is passed?
- How to use the command update-alternatives –config java
- How are “mvn clean package” and “mvn clean install” different?
- What is a hash function in java?
- Why are two empty ArrayLists with different generic types equal?
- java.lang.VerifyError: Inconsistent stackmap frames at branch target 421
- tic tac toe java user vs computer
- Java Wait for thread to finish
- Sending POST data in Android
- When is “java.io.IOException:Connection reset by peer” thrown?
- Java ArrayList of Doubles
- what is update-alternatives command in linux and what is the use of it?
- java: use StringBuilder to insert at the beginning
- Multiple delimiters in Scanner class of Java
- Eclipse Problems View not showing Errors anymore
- C# equivalent to Java’s charAt()?
- unexpected type error
- What does it mean: The serializable class does not declare a static final serialVersionUID field? [duplicate]
- “Cannot be resolved to a type” when attempting to use Scanner
- Converting a 2-3-4 tree into a red black tree
- Generic stack implementation
- Java generating non-repeating random numbers
- Increase heap size in Java
- TicTacToe with GUI in Java
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- what does x– or x++ do here?
- Byte and char conversion in Java
- Java “lambda expressions not supported at this language level”
- How to specify filepath in java?
- Issue installing Netbeans in Windows 10: Java SE Development Kit (JDK) was not found on this computer
- dequeue and enqueue methods in queue implementation
- How to specify the default error page in web.xml?