Open ravi473 opened 6 years ago
+1
I am facing the same issue.
gwt-compile: [java] Compiling module xxx [java] Tracing compile failure path for type 'com.xxx.xxx.xxx.xxx.xxx.xxx.xxx' [java] [ERROR] Errors in 'file:/Users/xxx/xxx.java' [java] [ERROR] Line 20: No source code is available for type com.fasterxml.jackson.databind.ObjectMapper; did you forget to inherit a required module? [java] [ERROR] Aborting compile due to errors in some input files
@nmorel can you comment whether this is an expected defect or we are doing something wrong?
Are you trying to use com.fasterxml.jackson.databind.ObjectMapper
instead of com.github.nmorel.gwtjackson.client.ObjectMapper
?
You should not depend on jackson databind package in your client code, only the annotations.
I am trying to transpile com.fasterxml.jackson.databind.ObjectMapper (on server side) to com.github.nmorel.gwtjackson.client.ObjectMapper (on client side).
On Feb 18, 2018 12:15 AM, "Nicolas Morel" notifications@github.com wrote:
Are you trying to use com.fasterxml.jackson.databind.ObjectMapper instead of com.github.nmorel.gwtjackson.client.ObjectMapper ? You should not depend on jackson databind package in your client code, only the annotations.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nmorel/gwt-jackson/issues/136#issuecomment-366499708, or mute the thread https://github.com/notifications/unsubscribe-auth/ADcccL6GxsAbaN2cK9Ou94oKJaEPb2XEks5tV9w_gaJpZM4RQ4-v .
Happy New Year !!!!
I am new to GWT and I have been trying to figure out the solution for this issue but none of them are worked. I am using gwt:2.0.4 java - 8 tried with various jackson versions - 2.0.0 to latest one
issue:
[ERROR] Errors in 'file:/C:/Users/ravi/Development/testing/ui/common/client/RestService.java' [INFO] [ERROR] Line 14: No source code is available for type com.fasterxml.jackson.databind.ObjectMapper; did you forget to inherit a required module? [INFO] [ERROR] Line 34: No source code is available for type ca.ontario.health.hns.ui.common.server.util.RestUtil; did you forget to inherit a required mod ule? [INFO] [ERROR] Errors in 'file:/C:/Users/ravi/Development/testing/ui/common/client/RestService.java' [INFO] [ERROR] Line 16: No source code is available for type org.springframework.web.client.RestTemplate; did you forget to inherit a required module? [INFO] [ERROR] Line 43: No source code is available for type org.springframework.web.client.HttpClientErrorException; did you forget to inherit a required
my POM.xml: `
` and I am inheriting anything in gwt.xml.
Please advice how can I use Jackson in my GWT project to use the ObjectMapper to read json string(from REST API) and convert as Java Object and List's.
Thanks in advance.