java支付宝app支付服务端报错

0 0 java
ERP↘CC
ERP↘CC

声望值:195 0人

2019-02-03 11:56:00 提问

关注 0关注

收藏 0收藏, 12浏览

"C:Program FilesJavajdk1.8.0_131binjava" "-javaagent:C:Program FilesJetBrainsIntelliJ IDEA 2017.2.5libidea_rt.jar=51510:C:Program FilesJetBrainsIntelliJ IDEA 2017.2.5bin" -Dfile.encoding=UTF-8 -classpath "C:Program FilesJavajdk1.8.0_131jrelibcharsets.jar;C:Program FilesJavajdk1.8.0_131jrelibdeploy.jar;C:Program FilesJavajdk1.8.0_131jrelibextaccess-bridge-64.jar;C:Program FilesJavajdk1.8.0_131jrelibextcldrdata.jar;C:Program FilesJavajdk1.8.0_131jrelibextdnsns.jar;C:Program FilesJavajdk1.8.0_131jrelibextjaccess.jar;C:Program FilesJavajdk1.8.0_131jrelibextjfxrt.jar;C:Program FilesJavajdk1.8.0_131jrelibextlocaledata.jar;C:Program FilesJavajdk1.8.0_131jrelibextnashorn.jar;C:Program FilesJavajdk1.8.0_131jrelibextsunec.jar;C:Program FilesJavajdk1.8.0_131jrelibextsunjce_provider.jar;C:Program FilesJavajdk1.8.0_131jrelibextsunmscapi.jar;C:Program FilesJavajdk1.8.0_131jrelibextsunpkcs11.jar;C:Program FilesJavajdk1.8.0_131jrelibextzipfs.jar;C:Program FilesJavajdk1.8.0_131jrelibjavaws.jar;C:Program FilesJavajdk1.8.0_131jrelibjce.jar;C:Program FilesJavajdk1.8.0_131jrelibjfr.jar;C:Program FilesJavajdk1.8.0_131jrelibjfxswt.jar;C:Program FilesJavajdk1.8.0_131jrelibjsse.jar;C:Program FilesJavajdk1.8.0_131jrelibmanagement-agent.jar;C:Program FilesJavajdk1.8.0_131jrelibplugin.jar;C:Program FilesJavajdk1.8.0_131jrelibresources.jar;C:Program FilesJavajdk1.8.0_131jrelibrt.jar;D:聚沙项目PayServerwebWEB-INFclasses;D:聚沙项目PayServerlibjavax.persistence.jar;D:聚沙项目PayServerlibjavax.servlet.jar;D:聚沙项目PayServerlibjavax.annotation.jar;D:聚沙项目PayServerlibjavax.servlet.jsp.jar;D:聚沙项目PayServerlibjavax.ejb.jar;D:聚沙项目PayServerlibjavax.resource.jar;D:聚沙项目PayServerlibjavax.transaction.jar;D:聚沙项目PayServerlibjavax.jms.jar;D:聚沙项目PayServerlibjavax.servlet.jsp.jstl.jar;D:聚沙项目PayServerwebWEB-INFlibfastjson-1.2.42.jar;D:聚沙项目PayServerwebWEB-INFlibcommons-logging-1.2.jar;D:聚沙项目PayServerwebWEB-INFlibcommons-codec-1.9.jar;D:聚沙项目PayServerwebWEB-INFlibhttpclient-4.5.4.jar;D:聚沙项目PayServerwebWEB-INFlibhttpcore-4.4.7.jar;D:聚沙项目PayServerwebWEB-INFlibslf4j-api-1.7.21.jar;D:聚沙项目PayServerwebWEB-INFlibslf4j-simple-1.7.21.jar;D:聚沙项目PayServerwebWEB-INFlibwxpay-sdk-0.0.3.jar;D:聚沙项目资料QRCodeJarQRCode.jar;D:聚沙项目PayServerwebWEB-INFlibalipay-sdk-java20171201160035.jar;D:聚沙项目PayServerwebWEB-INFlibcommons-logging-1.1.1.jar;D:聚沙项目PayServerwebWEB-INFlibQRCode.jar" cn.dreamsand.alipay.AliPayApp
com.alipay.api.AlipayApiException: RSAcontent = alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_id=2017060307411634&biz_content={"out_trade_no":"DS12454571281342145781212","passback_params":"%E8%81%9A%E6%B2%99%E6%B5%8B%E8%AF%95","product_code":"QUICK_MSECURITY_PAY","subject":"聚沙测试","timeout_express":"30m","total_amount":"0.1"}&charset=UTF-8&format=json&method=alipay.trade.app.pay&notify_url=www.dreamsand.cn&sign_type=RSA2&timestamp=2017-12-16 18:34:51&version=1.0; charset = UTF-8

at com.alipay.api.internal.util.AlipaySignature.rsa256Sign(AlipaySignature.java:141)
at com.alipay.api.internal.util.AlipaySignature.rsaSign(AlipaySignature.java:102)
at com.alipay.api.DefaultAlipayClient.getRequestHolderWithSign(DefaultAlipayClient.java:316)
at com.alipay.api.DefaultAlipayClient.sdkExecute(DefaultAlipayClient.java:156)
at cn.dreamsand.alipay.AliPayTool.AliPayApp(AliPayTool.java:58)
at cn.dreamsand.alipay.AliPayApp.main(AliPayApp.java:22)

Caused by: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException : algid parse error, not a sequence

at sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:217)
at java.security.KeyFactory.generatePrivate(KeyFactory.java:372)
at com.alipay.api.internal.util.AlipaySignature.getPrivateKeyFromPKCS8(AlipaySignature.java:202)
at com.alipay.api.internal.util.AlipaySignature.rsa256Sign(AlipaySignature.java:123)
... 5 more

Caused by: java.security.InvalidKeyException: IOException : algid parse error, not a sequence

at sun.security.pkcs.PKCS8Key.decode(PKCS8Key.java:351)
at sun.security.pkcs.PKCS8Key.decode(PKCS8Key.java:356)
at sun.security.rsa.RSAPrivateCrtKeyImpl.(RSAPrivateCrtKeyImpl.java:91)
at sun.security.rsa.RSAPrivateCrtKeyImpl.newKey(RSAPrivateCrtKeyImpl.java:75)
at sun.security.rsa.RSAKeyFactory.generatePrivate(RSAKeyFactory.java:316)
at sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:213)
... 8 more
请先 登录 后评论

0个回答

注册新账号

悬赏追问
10
  • 10
  • 20
  • 50
  • 100
  • 200
  • 输入数值
发布追问