Comments (5)
@dxxvi good question. Due to our use of resource loading, reflection, etc, it might not be very straightforward to make it run on GraalVM, and GraalVM isn't part of our build matrix at the moment. So let's say that at the moment, GraalVM isn't supported.
However, it would be great if we did support it. If you have some suggestions, or maybe (part of) a PR which we could use a a starting point, that would be great.
In this case, I don't think it's the reflection which is biting you, but the resource loading. The GraalVM normally needs to be told which resources it should include in the binary, and that probably didn't happen here which is why you're running into the null expression.
from datafaker.
137 exit status is usually related to out of memory, probably you need to increase it.
I was able to reproduce the reported issue however it seems not an issue of datafaker,
it is more an issue of how image was created because while creation of image we should keep in mind all resource files for datafaker.
probably should follow this while image creation
https://www.graalvm.org/22.0/reference-manual/native-image/Resources/
from datafaker.
Instantiate the faker before you try to use it?
from datafaker.
I've tried to reproduce the issue, but I can't compile the application:
[creator] ================================================================================
[creator] GraalVM Native Image: Generating '/layers/paketo-buildpacks_native-image/native-image/demo.DemoApplication' (static executable)...
[creator] ================================================================================
[creator] [1/7] Initializing... (42.5s @ 0.31GB)
[creator] Version info: 'GraalVM 22.3.2 Java 17 CE'
[creator] Java version info: '17.0.7+7-LTS'
[creator] C compiler: gcc (linux, x86_64, 7.5.0)
[creator] Garbage collector: Serial GC
[creator] 1 user-specific feature(s)
[creator] - org.springframework.aot.nativex.feature.PreComputeFieldFeature
[creator] Error: Image build request failed with exit status 137
[creator] unable to invoke layer creator
[creator] unable to contribute native-image layer
[creator] error running build
[creator] exit status 137
[creator] ERROR: failed to build: exit status 1
Suggestions?
from datafaker.
No input from the reporter since last June. Closing due to lack of input/evidence. If you have further details to add please comment and we could consider re-opening.
from datafaker.
Related Issues (20)
- Breaking DateAndTime HOT 4
- Intermitted expressions failures during testing HOT 8
- Regexify method doesn't recognise "^" and "$" chars in datafaker before 2.2.0. HOT 7
- Remove public methods from `IdNumber` that are not intended to be directly called HOT 8
- How to specify country-specific setting, not language-specific? HOT 2
- Feature request: add support to generate a random PNG/SVG. HOT 1
- 2.3.0 Release HOT 13
- Password generation does not always contain a lowercase letter HOT 3
- Publishing docs works now HOT 1
- Memory leak in maps containing FakerContext as a key HOT 30
- Memory leak for seeded random use case HOT 3
- Create a dictionary of obscene words HOT 8
- java.lang.ClassCastException for finance.credit_card provider with Enum argument in Faker expression HOT 5
- Problems with module-info.java with version 2.3.0 HOT 33
- New Project to improving tests HOT 9
- Locale specific generation performance degradation HOT 1
- Fix publishing of snapshots HOT 4
- Code coverage report is broken HOT 4
- Unable to resolve expression during build HOT 12
- Add weighted selection HOT 2
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 datafaker.