Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No source code is available for type com.fasterxml.jackson.databind.ObjectMapper; did you forget to inherit a required module? #136

Open
ravi473 opened this issue Jan 2, 2018 · 3 comments

Comments

@ravi473
Copy link

ravi473 commented Jan 2, 2018

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:
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.0.0</version> </dependency> <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.0.0</version> </dependency>
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.

@johnwyz88
Copy link

johnwyz88 commented Feb 17, 2018

+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?

@nmorel
Copy link
Owner

nmorel commented Feb 18, 2018

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.

@johnwyz88
Copy link

johnwyz88 commented Feb 18, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants