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

Error:GWT Compiler: No source code is available for type com.fasterxml.jackson.annotation.JsonTypeInfo.As; did you forget to inherit a required module? #153

Open
dynamphorousnmt opened this issue Feb 6, 2019 · 0 comments

Comments

@dynamphorousnmt
Copy link

dynamphorousnmt commented Feb 6, 2019

I'm trying a very simple example just testing creating an ObjectMapper for or a very simple class object with only primitive types (ints & Strings). and I'm getting lots of errors during compile. My GWT version is 2.8.2

Information:javac 10.0.2 was used to compile java sources
Information:2/5/2019 9:09 PM - Compilation completed with 11 errors and 4 warnings in 46 s 14 ms
Error:GWT Compiler: com.github.nmorel.gwtjackson.client.ObjectMapper cannot be resolved to a type
Error:GWT Compiler: com.github.nmorel.gwtjackson.client.ObjectWriter cannot be resolved to a type
Error:GWT Compiler: com.github.nmorel.gwtjackson.client.JsonSerializationContext cannot be resolved to a type
Error:GWT Compiler: com.github.nmorel.gwtjackson.client.ser.bean.ObjectIdSerializer cannot be resolved to a type
Error:GWT Compiler: com.github.nmorel.gwtjackson.client.JsonSerializer cannot be resolved to a type
Error:GWT Compiler: com.github.nmorel.gwtjackson.client.JsonSerializerParameters cannot be resolved to a type
Error:GWT Compiler: com.github.nmorel.gwtjackson.client.ser.bean.TypeSerializationInfo cannot be resolved to a type
Error:GWT Compiler: No source code is available for type com.fasterxml.jackson.annotation.JsonTypeInfo.As; did you forget to inherit a required module?
Error:GWT Compiler: client.data.itemInventory cannot be resolved to a type
Error:GWT Compiler: client.data.itemListMapper cannot be resolved to a type
Warning:GWT Compiler: Unknown type 'com.github.nmorel.gwtjackson.client.JsonSerializationContext.Builder' specified in deferred binding rule
Warning:GWT Compiler: Unknown type 'com.github.nmorel.gwtjackson.client.ObjectWriter' specified in deferred binding rule

I've looked through the errors others have had, and nothing is jumping out at me as being wrong. These are the inherits in my gwt.xml file

<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.common.base.Base'/>
<inherits name='com.google.common.collect.Collect'/>
<inherits name='com.google.gwt.json.JSON'/>
<inherits name='org.moxieapps.gwt.highcharts.Highcharts'/>
<inherits name='com.github.gwtd3.D3'/>
<inherits name='com.google.gwt.webworker.WebWorker' />
<inherits name='com.github.nmorel.gwtjackson.GwtJackson' />

And maven included the jar files:

gwt-jackson-0.15.4.jar
jackson-annotations-2.9.6.jar
jackson-annotations-2.9.6-sources.jar
javapoet-1.0.0.jar

I am using Guava, but I'm not trying to serialize any guava objects yet.... Got any ideas?

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

1 participant