You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call path from entry point to clojure.spec.gen.alpha$dynaload$fn__2628.invoke():
32
-
at clojure.spec.gen.alpha$dynaload$fn__2628.invoke(alpha.clj:21)
33
-
at clojure.lang.AFn.applyToHelper(AFn.java:152)
34
-
at clojure.lang.AFn.applyTo(AFn.java:144)
35
-
at simple.main.main(Unknown Source)
36
-
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:153)
37
-
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)
38
-
Warning: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
39
-
Build on Server(pid: 77850, port: 49942)
40
-
[./target/amazonica-s3:77850] classlist: 271.31 ms
41
-
[./target/amazonica-s3:77850] (cap): 1,048.31 ms
42
-
[./target/amazonica-s3:77850] setup: 1,342.62 ms
43
-
[./target/amazonica-s3:77850] (typeflow): 1,530.36 ms
44
-
[./target/amazonica-s3:77850] (objects): 447.20 ms
45
-
[./target/amazonica-s3:77850] (features): 87.13 ms
46
-
[./target/amazonica-s3:77850] analysis: 2,103.02 ms
47
-
[./target/amazonica-s3:77850] (clinit): 69.69 ms
48
-
[./target/amazonica-s3:77850] universe: 170.83 ms
49
-
[./target/amazonica-s3:77850] (parse): 251.07 ms
50
-
[./target/amazonica-s3:77850] (inline): 538.56 ms
51
-
[./target/amazonica-s3:77850] (compile): 1,937.14 ms
52
-
[./target/amazonica-s3:77850] compile: 2,878.45 ms
53
-
[./target/amazonica-s3:77850] image: 229.01 ms
54
-
[./target/amazonica-s3:77850] write: 138.33 ms
55
-
[./target/amazonica-s3:77850] [total]: 7,191.94 ms
56
-
Warning: Image './target/amazonica-s3' is a fallback image that requires a JDK for execution (use --no-fallback to suppress fallback image generation).
57
-
58
-
And the execution of the native image shows:
59
-
60
-
Error: Could not find or load main class simple.main
61
-
62
-
63
-
Using `clojure-1.8.0` the native image builds successfully however the native binary runs with the following error.
64
-
65
-
Exception in thread "main" java.lang.NullPointerException
66
-
at amazonica.core$constructor_args.invokeStatic(core.clj:415)
67
-
at amazonica.core$constructor_args.invoke(core.clj:413)
68
-
at amazonica.core$new_instance.invokeStatic(core.clj:445)
69
-
at amazonica.core$new_instance.invoke(core.clj:438)
70
-
at amazonica.core$create_bean.invokeStatic(core.clj:644)
71
-
at amazonica.core$create_bean.invoke(core.clj:642)
72
-
at amazonica.core$get_client_configuration.invokeStatic(core.clj:224)
73
-
at amazonica.core$get_client_configuration.invoke(core.clj:221)
74
-
at amazonica.core$amazon_client_STAR_.invokeStatic(core.clj:277)
75
-
at amazonica.core$amazon_client_STAR_.invoke(core.clj:274)
76
-
at clojure.lang.AFn.applyToHelper(AFn.java:160)
77
-
at clojure.lang.AFn.applyTo(AFn.java:144)
78
-
at clojure.core$apply.invokeStatic(core.clj:646)
79
-
at clojure.core$memoize$fn__5708.doInvoke(core.clj:6107)
80
-
at clojure.lang.RestFn.invoke(RestFn.java:436)
81
-
at amazonica.core$candidate_client$fn__329.invoke(core.clj:858)
82
-
at clojure.lang.Delay.deref(Delay.java:37)
83
-
at clojure.core$deref.invokeStatic(core.clj:2228)
84
-
at clojure.core$deref.invoke(core.clj:2214)
85
-
at amazonica.core$candidate_client.invokeStatic(core.clj:859)
86
-
at amazonica.core$candidate_client.invoke(core.clj:842)
87
-
at amazonica.core$fn_call$fn__337.invoke(core.clj:872)
88
-
at clojure.lang.Delay.deref(Delay.java:37)
89
-
at clojure.core$deref.invokeStatic(core.clj:2228)
90
-
at clojure.core$deref.invoke(core.clj:2214)
91
-
at amazonica.core$fn_call$fn__339.invoke(core.clj:875)
92
-
at amazonica.core$intern_function$fn__375.doInvoke(core.clj:1031)
93
-
at clojure.lang.RestFn.invoke(RestFn.java:408)
94
-
at simple.main$_main.invokeStatic(main.clj:8)
95
-
at simple.main$_main.invoke(main.clj:7)
96
-
at clojure.lang.AFn.applyToHelper(AFn.java:152)
97
-
at clojure.lang.AFn.applyTo(AFn.java:144)
98
-
at simple.main.main(Unknown Source)
99
-
100
-
More investigation is required.
21
+
Building this image requires a more complex procedure. After building
22
+
the uberjar as usual we will run the application with a java-agent
23
+
that will capture several parameters such as reflected classes, proxy
24
+
instances, and jni config.
25
+
26
+
It is good idea to cover as much as possible of the run-time
27
+
functionality during this step, the more information will be able to
28
+
collect, the easier/better will be the compilation step.
# ingore annoying WARN from AWS SDK like the following one:
12
+
# WARN BasicProfileConfigLoader:96 - Your profile name includes a 'profile ' prefix. This is considered part of the profile name in the Java SDK, so you will need to include this prefix in your profile name when you reference this profile from your Java code.
0 commit comments