-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Description
提问前,请确保阅读过项目首页说明以及wiki开发文档相关内容,完成内容后,请务必移除包括本句在内的无用内容,以免影响他人阅读,否则直接关闭,谢谢合作~
简要描述
我用quarkus3.3 + weixin-java-miniapp 4.7.8.B 编译本地代码时候报
Error: Unsupported features in 3 methods
Detailed message:
Error: Detected an instance of Random/SplittableRandom class in the image heap. Instances created during image generation have cached seed values and don't behave as expected. Try avoiding to initialize the class that caused initialization of the object.
The culprit object has been instantiated by the 'org.apache.http.impl.auth.NTLMEngineImpl' class initializer with the following trace:
at java.security.SecureRandom.(SecureRandom.java:331)
at java.security.SecureRandom.getInstance(SecureRandom.java:391)
at org.apache.http.impl.auth.NTLMEngineImpl.(NTLMEngineImpl.java:103)
The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=. Or you can write your own initialization methods and call them explicitly from your main entry point.
Trace: Object was reached by
trying to constant fold static field org.apache.http.impl.auth.NTLMEngineImpl.RND_GEN
at org.apache.http.impl.auth.NTLMEngineImpl.access$000(NTLMEngineImpl.java:51)
parsing method org.apache.http.impl.auth.NTLMEngineImpl.access$000(NTLMEngineImpl.java:51) reachable via the parsing context
at static root method.(Unknown Source)
Error: Discovered unresolved type during parsing: jodd.http.HttpConnectionProvider. This error is reported at image build time because class cn.binarywang.wx.miniapp.executor.JoddApiSignaturePostRequestExecutor is registered for linking at image build time by command line and command line.
Error encountered while parsing cn.binarywang.wx.miniapp.executor.JoddApiSignaturePostRequestExecutor.execute(JoddApiSignaturePostRequestExecutor.java:36)
Parsing context:
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.lambda$execute$1(BaseWxMaServiceImpl.java:373)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl$$Lambda/0x0000000805bd0ce0.execute(Unknown Source)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.executeInternal(BaseWxMaServiceImpl.java:435)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.executeWithRetry(BaseWxMaServiceImpl.java:387)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.execute(BaseWxMaServiceImpl.java:358)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.post(BaseWxMaServiceImpl.java:313)
at cn.binarywang.wx.miniapp.api.impl.WxMaOcrServiceImpl.idCard(WxMaOcrServiceImpl.java:36)
at com.cxp.application.ocr.strategy.IdCardStrategy.ocr(IdCardStrategy.java:23)
at com.cxp.api.IndexApi.OCR(IndexApi.java:140)
at root method.(Unknown Source)
Error: Discovered unresolved type during parsing: jodd.http.HttpConnectionProvider. This error is reported at image build time because class me.chanjar.weixin.common.util.http.jodd.JoddHttpSimplePostRequestExecutor is registered for linking at image build time by command line and command line.
Error encountered while parsing me.chanjar.weixin.common.util.http.jodd.JoddHttpSimplePostRequestExecutor.execute(JoddHttpSimplePostRequestExecutor.java:28)
Parsing context:
at me.chanjar.weixin.common.util.http.jodd.JoddHttpSimplePostRequestExecutor.execute(JoddHttpSimplePostRequestExecutor.java:21)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.lambda$execute$0(BaseWxMaServiceImpl.java:359)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl$$Lambda/0x0000000805b29d08.execute(Unknown Source)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.executeInternal(BaseWxMaServiceImpl.java:435)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.executeWithRetry(BaseWxMaServiceImpl.java:387)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.execute(BaseWxMaServiceImpl.java:358)
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.post(BaseWxMaServiceImpl.java:313)
at cn.binarywang.wx.miniapp.api.impl.WxMaOcrServiceImpl.idCard(WxMaOcrServiceImpl.java:36)
at com.cxp.application.ocr.strategy.IdCardStrategy.ocr(IdCardStrategy.java:23)
at com.cxp.api.IndexApi.OCR(IndexApi.java:140)
at root method.(Unknown Source)
官方文档地址
请提供所需功能对应的微信官方文档地址以便进行确认。