EAS7.5 portal 和GUI的单点登录
[code]
打开GUI的JSP:
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.kingdee.eas.cp.eip.sso.ltpa.LtpaTokenManager,com.kingdee.eas.cp.eip.sso.ltpa.LtpaToken"%>
<%@ page import = "java.net.URLEncoder" %>
<%
String userId = "jf000090";
String password = LtpaTokenManager.generate(userId, LtpaTokenManager.getDefaultLtpaConfig()).toString();
userId = URLEncoder.encode(userId, "UTF-8");
password = URLEncoder.encode(password, "UTF-8");
%>
打开Portal的JSP:
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.kingdee.eas.cp.eip.sso.ltpa.LtpaTokenManager,com.kingdee.eas.cp.eip.sso.ltpa.LtpaToken"%>
<%
System.out.print("$gogogo%%%%%%%%%%%%%%%%%%%%");
String username = new String(request.getParameter("username").getBytes("iso8859-1"),"utf-8");
String password = LtpaTokenManager.generate(username, LtpaTokenManager.getDefaultLtpaConfig()).toString();
response.sendRedirect("defaulpath/index2sso.jsp?username="+username+"&password="+password");
%>
报错信息:
java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(String.java:1088)
at
com.kingdee.portal.biz.module.setting.service.impl.LogoSettingServiceImpl.getContext
(LogoSettingServiceImpl.java:81)
at
com.kingdee.portal.biz.module.setting.service.impl.LogoSettingServiceImpl.getLogoSettingBy
LogoName(LogoSettingServiceImpl.java:39)
at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection
(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint
(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke
(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke
(JdkDynamicAopProxy.java:202)
at $Proxy121.getLogoSettingByLogoName(Unknown Source)
at com.kingdee.portal.web.servlet.LogoImgServlet.doGet(LogoImgServlet.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.apusic.web.container.ServletComponent.service(Unknown Source)
at com.apusic.web.container.ServletFilterWrapper.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at com.kingdee.portal.biz.core.datacenter.DataCenterFilter.doFilter
(DataCenterFilter.java:53)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at com.kingdee.bos.sso.client.filter.ContextConstructorFilter.doFilter
(ContextConstructorFilter.java:58)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at org.jasig.cas.client.util.HttpServletRequestWrapperFilter.doFilter
(HttpServletRequestWrapperFilter.java:75)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at
com.kingdee.bos.sso.client.filter.validation.KDPortalTicketValidationFilter.preFilter
(KDPortalTicketValidationFilter.java:89)
at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter
(AbstractTicketValidationFilter.java:151)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate
(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter
(DelegatingFilterProxy.java:259)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at
com.kingdee.bos.sso.client.filter.authentication.KDPortalAuthenticationFilter.doFilter
(KDPortalAuthenticationFilter.java:56)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate
(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter
(DelegatingFilterProxy.java:259)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.WebContainer.invoke(Unknown Source)
at com.apusic.web.container.WebContainer.processRequest(Unknown Source)
at com.apusic.web.http.VirtualHost.processRequest(Unknown Source)
at com.apusic.web.http.HttpServer.processRequest(Unknown Source)
at com.apusic.web.http.HttpConnectionHandler.service(Unknown Source)
at com.apusic.web.http.ConnectionHandler.processRequest(Unknown Source)
at com.apusic.web.http.ConnectionHandler.processConnection(Unknown Source)
at com.apusic.web.http.ConnectionHandler.run(Unknown Source)
at com.apusic.util.ThreadPoolImpl$WorkerThread.run(Unknown Source)
2015-05-08 10:42:43 信息 [con.out] [2015-05-08 10:42:43,441 ERROR Running HTTPHandler-3]
getLogoSettingByLogoName error!
java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(String.java:1088)
at
com.kingdee.portal.biz.module.setting.service.impl.LogoSettingServiceImpl.getContext
(LogoSettingServiceImpl.java:81)
at
com.kingdee.portal.biz.module.setting.service.impl.LogoSettingServiceImpl.getLogoSettingBy
LogoName(LogoSettingServiceImpl.java:39)
at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection
(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint
(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke
(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke
(JdkDynamicAopProxy.java:202)
at $Proxy121.getLogoSettingByLogoName(Unknown Source)
at com.kingdee.portal.web.servlet.LogoImgServlet.doGet(LogoImgServlet.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.apusic.web.container.ServletComponent.service(Unknown Source)
at com.apusic.web.container.ServletFilterWrapper.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at com.kingdee.portal.biz.core.datacenter.DataCenterFilter.doFilter
(DataCenterFilter.java:53)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at com.kingdee.bos.sso.client.filter.ContextConstructorFilter.doFilter
(ContextConstructorFilter.java:58)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at org.jasig.cas.client.util.HttpServletRequestWrapperFilter.doFilter
(HttpServletRequestWrapperFilter.java:75)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at
com.kingdee.bos.sso.client.filter.validation.KDPortalTicketValidationFilter.preFilter
(KDPortalTicketValidationFilter.java:89)
at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter
(AbstractTicketValidationFilter.java:151)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate
(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter
(DelegatingFilterProxy.java:259)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.doFilter(Unknown Source)
at
com.kingdee.bos.sso.client.filter.authentication.KDPortalAuthenticationFilter.doFilter
(KDPortalAuthenticationFilter.java:56)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate
(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter
(DelegatingFilterProxy.java:259)
at com.apusic.web.container.FilterComponent.doFilter(Unknown Source)
at com.apusic.web.container.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.web.container.WebContainer.invoke(Unknown Source)
at com.apusic.web.container.WebContainer.processRequest(Unknown Source)
at com.apusic.web.http.VirtualHost.processRequest(Unknown Source)
at com.apusic.web.http.HttpServer.processRequest(Unknown Source)
at com.apusic.web.http.HttpConnectionHandler.service(Unknown Source)
at com.apusic.web.http.ConnectionHandler.processRequest(Unknown Source)
at com.apusic.web.http.ConnectionHandler.processConnection(Unknown Source)
at com.apusic.web.http.ConnectionHandler.run(Unknown Source)
at com.apusic.util.ThreadPoolImpl$WorkerThread.run(Unknown Source)
指导一下
你好,你解决了吗?
你的问题建议提单来处理。
EAS7.5 portal 和GUI的单点登录
本文2024-09-16 23:04:45发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-52263.html