HTTP 500错误
本帖最后由 hinbean 于 2016-4-6 14:04 编辑Windows xp x86环境已搭建好,测试过程中出现http 500错误。
【相关操作如下:】
在后台:接入账户管理---账户导入---下载demo模板---手动方式添加新用户到demo模板---再导入修改后的模板文件---账户列表页面弹500错误。
【错误内容如下:】
HTTP Status 500 - javax.el.ELException: Cannot convert 免费 of type class java.lang.String to class java.lang.Long
type Exception report
message javax.el.ELException: Cannot convert 免费 of type class java.lang.String to class java.lang.Long
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: javax.el.ELException: Cannot convert 免费 of type class java.lang.String to class java.lang.Long
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:263)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208)
org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause
javax.el.ELException: Cannot convert 免费 of type class java.lang.String to class java.lang.Long
org.apache.el.lang.ELSupport.coerceToNumber(ELSupport.java:303)
org.apache.el.lang.ELSupport.coerceToNumber(ELSupport.java:282)
org.apache.el.lang.ELSupport.equals(ELSupport.java:142)
org.apache.el.parser.AstEqual.getValue(AstEqual.java:39)
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:944)
org.apache.jsp.WEB_002dINF.jsp.portalaccount.list_jsp._jspx_meth_c_005fif_005f6(list_jsp.java:935)
org.apache.jsp.WEB_002dINF.jsp.portalaccount.list_jsp._jspx_meth_c_005fforEach_005f0(list_jsp.java:704)
org.apache.jsp.WEB_002dINF.jsp.portalaccount.list_jsp._jspService(list_jsp.java:282)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:263)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208)
org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.59 logs.
云盘没有东西啊,管理员和那位兄弟发下这个文件,谢谢祝天天开心 忘了发联系方式了QQ邮箱578119493@qq.com 哪位兄弟有这文件啊,这个文件没看到啊有的话发邮箱578119493@qq.com 请教一下,我设这个多BAS ip,这个问题我没有搞懂,我是设交换机的VLAN地址,还是设路由器的网关地址呢,谢谢 本帖最后由 jingrui 于 2017-3-16 19:33 编辑
按照本文的配置操作 我将ros中3个文件login.html、logout.html、status.html已经替换,可以正常弹出portal(图1),也可以正常认证但是认证成功的页面地址为:http://172.20.3.254/AuthAPI,并且左上角弹出的小页面是portal未认证前的主页面,这种情况下,万一用户把认证成功的页面关闭,再次访问http://172.20.3.254/AuthAPI或http://172.20.3.254/都不会出现“下线”按钮,也就是说,关闭页面就无法下线;
按正常的情况下,正常认证后,会显示认证成功页面,地址为:http://172.20.3.254/ok.jsp?+用户的各种信息ip等一串码,左上角弹出的也应该是认证成功页面,这种情况下,即使用户把成功页面关闭,再次访问http://172.20.3.254/会重新打开:http://172.20.3.254/ok.jsp?+用户的各种信息ip等一串码 的页面,从这里可以下线
我要怎么修改才能让认证成功后 即使关闭成功页面,再次打开portal主页面地址,就能显示登陆成功界面,从而达到随时都可以下线的目的
回帖不好发图片,我重启一贴专门说明此问题http://www.openportal.com.cn/thread-1394-1-1.html
jingrui 发表于 2017-3-16 19:11
按照本文的配置操作 我将ros中3个文件login.html、logout.html、status.html已经替换,可以正常弹出portal ...
leeosn@vip.qq.com 李硕 支付宝
100元 VIP服务费
付款后再联系我
谢谢
如果要授权
300元1000个在线用户高级功能全开4年 不知道微信认证好不好用啊