主题 : 部署jeecms v8.1版后,tomcat报错并停止了服务
级别: 举人
UID: 68416
积分:141 加为好友
威望: 12 精华: 0
主题:17 回复:76
注册时间:2014-10-20
在线时长:0.73
1#   发表于:2018-02-08 10:04:51  IP:60.40.*.*
下面是tomcat报错信息。
com.alipay.api.AlipayApiException: RSA私钥格式不正确,请检查是否正确配置了PKCS8格式的私钥
at com.alipay.api.internal.util.AlipaySignature.rsaSign(AlipaySignature.java:176)
at com.alipay.api.internal.util.AlipaySignature.rsaSign(AlipaySignature.java:99)
at com.alipay.api.DefaultAlipayClient.getRequestHolderWithSign(DefaultAlipayClient.java:232)
at com.alipay.api.DefaultAlipayClient.doPost(DefaultAlipayClient.java:350)
at com.alipay.api.DefaultAlipayClient._execute(DefaultAlipayClient.java:301)
at com.alipay.api.DefaultAlipayClient.execute(DefaultAlipayClient.java:122)
at com.alipay.api.DefaultAlipayClient.execute(DefaultAlipayClient.java:109)
at com.alipay.api.DefaultAlipayClient.execute(DefaultAlipayClient.java:103)
at com.jeecms.common.util.AliPay.enterAlipayScanCode(AliPay.java:83)
at com.jeecms.cms.action.front.ContentOrderAct.selectPay(ContentOrderAct.java:321)
at sun.reflect.GeneratedMethodAccessor1420.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:180)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerA
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:4
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.jeecms.common.web.XssFilter.doFilter(XssFilter.java:42)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.jeecms.common.web.ProcessTimeFilter.doFilter(ProcessTimeFilter.java:35)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException : DerInputStream.getLength(): l
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.rsaSign(AlipaySignature.java:158)
... 64 more
Caused by: java.security.InvalidKeyException: IOException : DerInputStream.getLength(): lengthTag=127, too big.
at sun.security.pkcs.PKCS8Key.decode(PKCS8Key.java:350)
at sun.security.pkcs.PKCS8Key.decode(PKCS8Key.java:356)
at sun.security.rsa.RSAPrivateCrtKeyImpl.<init>(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)
... 67 more



我觉得是支付宝支付的配置有问题。
我在哪里可以关闭这个支付功能呢?
级别: 版主
UID: 10736
积分:125018 加为好友
威望: 16 精华: 5
主题:148 回复:110696
注册时间:2010-09-08
在线时长:168.07
2#   发表于:2018-02-08 10:17:14  IP:117.115.*.*
建议您升级到v9版本
路漫漫其修远兮,吾将上下而求索!
级别: 举人
UID: 68416
积分:141 加为好友
威望: 12 精华: 0
主题:17 回复:76
注册时间:2014-10-20
在线时长:0.73
3#   发表于:2018-02-12 08:56:06  IP:123.43.*.*
回复第2楼
如何升级?有升级教程吗?
级别: 版主
UID: 10736
积分:125018 加为好友
威望: 16 精华: 5
主题:148 回复:110696
注册时间:2010-09-08
在线时长:168.07
4#   发表于:2018-02-12 08:56:57  IP:115.234.*.*
您是商业版本程序还是试用版本
路漫漫其修远兮,吾将上下而求索!
级别: 举人
UID: 68416
积分:141 加为好友
威望: 12 精华: 0
主题:17 回复:76
注册时间:2014-10-20
在线时长:0.73
5#   发表于:2018-02-12 08:59:11  IP:123.43.*.*
回复第4楼
试用版
级别: 版主
UID: 10736
积分:125018 加为好友
威望: 16 精华: 5
主题:148 回复:110696
注册时间:2010-09-08
在线时长:168.07
6#   发表于:2018-02-12 09:00:45  IP:115.234.*.*
路漫漫其修远兮,吾将上下而求索!
级别: 举人
UID: 68416
积分:141 加为好友
威望: 12 精华: 0
主题:17 回复:76
注册时间:2014-10-20
在线时长:0.73
7#   发表于:2018-02-12 09:06:14  IP:123.43.*.*
http://bbs.jeecms.com/xtsjtl/63828.jhtml

请问这个升级完成后,是什么版本?
级别: 贡士
UID: 96017
积分:494 加为好友
威望: 0 精华: 0
主题:21 回复:233
注册时间:2017-01-03
在线时长:2.33
8#   发表于:2018-02-12 09:10:30  IP:119.218.*.*
回复第6楼  版主,我在栏目模板里面定义了一个字段,然后在index.html里面 用 ${site.attr.synopsis!}  获取不到 该怎么解决呢?
级别: 版主
UID: 10736
积分:125018 加为好友
威望: 16 精华: 5
主题:148 回复:110696
注册时间:2010-09-08
在线时长:168.07
9#   发表于:2018-02-12 09:11:22  IP:115.234.*.*
回复第6楼 [attachment]65396[/attachment] 版主,我在栏目模板里面定义了一个字段,然后在index.html里面 用 ${site.attr.synopsis!}  获取不到 该怎么解决呢?
完整标签发下,你是在栏目模板下调用的吗
路漫漫其修远兮,吾将上下而求索!
级别: 贡士
UID: 96017
积分:494 加为好友
威望: 0 精华: 0
主题:21 回复:233
注册时间:2017-01-03
在线时长:2.33
10#   发表于:2018-02-12 09:16:20  IP:119.218.*.*
回复第9楼 不是栏目模板下调用的 是 index.html页面调用的 ${site.attr.synopsis!}这样调用的话 它也不报错 但就是获取不到内容
1 2 > >| 共2页