收藏
回答

小程序调用支付功能初始化商户信息报not initialize DefaultHttpClient?

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.wechat.pay.java.core.http.DefaultHttpClientBuilder
	at com.wechat.pay.java.core.certificate.RSAAutoCertificateProvider$Builder.build(RSAAutoCertificateProvider.java:121)
	at com.wechat.pay.java.core.RSAAutoCertificateConfig$Builder.build(RSAAutoCertificateConfig.java:117)
	at io.fdream.service.impl.WxPayServiceImpl.createOrder(WxPayServiceImpl.java:54)
	at io.fdream.controller.ApiUserController.createOrder(ApiUserController.java:571)
	at sun.reflect.GeneratedMethodAccessor211.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)
	... 46 common frames omitted
回答关注问题邀请回答
收藏

2 个回答

  • Shenjianfei
    Shenjianfei
    08-22

    解决了吗,亲。我也这问题

    08-22
    有用
    回复
  • NoBug
    NoBug
    01-02

    是注入类的吗?还是创建实例的

    01-02
    有用
    回复
登录 后发表内容