Comments (11)
Great, thanks for confirming @rpmoore
Closing this for now. @ksinkar feel free to reopen if this is not fixed for you.
from kotlin-faker.
We're not using spring. I also tried down reving Jackson to 2.10.1 and that didn't resolve the issue. I can play with some of the other dependencies to see what it is.
from kotlin-faker.
@rpmoore please check if faker version 1.1.2
fixes it. I've bumped jackson dependencies to 2.11.0
from kotlin-faker.
Yeah, it's working like a champ now. This has been super helpful!
from kotlin-faker.
This could be caused by differences in 2.10.0 and 2.10.1
I've had the "need to fix dependencies" thought in the back of my head for awhile now (probably using the shadow plugin), but didn't have time as of late to add this. Feel free to submit a PR if you want.
For now upgrading your dependency seems like the best workaround. Else you can also try to exclude jackson-module-kotlin
from faker
's dependencies.
from kotlin-faker.
I'm also encountering the same issue but with Jackson 2.11. Exact same stack trace.
from kotlin-faker.
What springboot version are you using @rpmoore ? Will try to reproduce it.
from kotlin-faker.
Doing a little digging I found this issue FasterXML/jackson-module-kotlin#279
Seems like if you update to 2.10.2 that should resolve some of the issues going forward.
from kotlin-faker.
Thanks for digging that up @rpmoore Will update all of the dependencies and push the change on the weekend. Hopefully that will help.
I've also tried shading the dependencies, but there's no documentation on using gradle shade plugin with kotlin-dsl syntax, so that's still in progress.
from kotlin-faker.
I'll give it a try today and let you know.
from kotlin-faker.
That seemed to do the trick for me! I can run my tests without issue now.
from kotlin-faker.
Related Issues (20)
- When creating class instance I would like to prepend string values with the name of the property (feature request) HOT 12
- Add context when newInstance() fails HOT 4
- Crashes in Jetpack Compose previews HOT 1
- Move to java17 as default
- Cannot generate valid en-GB postcode HOT 7
- Remove SLF4J HOT 1
- Getting 'ClassCastException' when using kotlin-faker with Generics Type HOT 9
- Postal Code for CA/UK returns regex, not an actual Postal Code HOT 5
- Add blns
- Add rendering for sub-provider functions in cli
- Make it possible to lookup providers by name in cli
- Improve integration tests
- Allow RandomClassProvider::randomClassInstance to use predefinedGenerators from config if present HOT 4
- RandomClassProvider doesn't handle constructorless types correctly in all instances HOT 1
- Allow random to be used with unique HOT 1
- Regexify generates invalid value HOT 2
- Regexify should take Regex as an argument HOT 1
- Regexify fails with StackOverflowError HOT 5
- random.nextLong(bound: Long) also returns negative values HOT 3
- Suggestion: internet.ipv4() and internet.ipv6() HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlin-faker.