MFC添加对话框报错:enum { IDD = xxx};“xxx”: 未声明的标识符

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/CKRGD/article/details/50536456

xxx是添加对话框的id,代码在对话框对应类 xxx.h文件对话框类声明时有代码enum { IDD = xxx};


解决方案在xxx.h文件添加#include "resource.h"

展开阅读全文

spring cglib报错 xxx cannot be cast to xxx

01-18

[b][size=18px]1, 想使用 ehcache + spring jdbc 实现查询结果缓存,现在功能都实现了,但是使用时报错[/size]:[/b]rnrn[code=java]rnjava.lang.ClassCastException: com.hbzx.bean.ShopViewCountBean cannot be cast to java.util.Listrn at com.hbzx.dao.ShopViewCountDao$$EnhancerBySpringCGLIB$$1c70ff76.queryAll()rn at com.hbzx.service.ShopViewCountService.fillHistory(ShopViewCountService.java:143)rn at com.hbzx.service.ShopViewCountService.query(ShopViewCountService.java:46)rn at com.hbzx.controller.UserCommissionController.getMyShopLog(UserCommissionController.java:45)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:483)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:743)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:672)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:82)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202)rn at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:180)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1085)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1556)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1513)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:745)rn[/code]rnrn 论坛

mybatis 报错 There is no getter for property named 'xxx' in 'xxx'

04-12

[code=text]Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'is_partner' in 'class com.xfj.base.bossapp.domain.SellerAgent'rn at org.apache.ibatis.reflection.Reflector.getGetInvoker(Reflector.java:333)rn at org.apache.ibatis.reflection.MetaClass.getGetInvoker(MetaClass.java:160)rn at org.apache.ibatis.reflection.wrapper.BeanWrapper.getBeanProperty(BeanWrapper.java:151)rn at org.apache.ibatis.reflection.wrapper.BeanWrapper.get(BeanWrapper.java:44)rn at org.apache.ibatis.reflection.MetaObject.getValue(MetaObject.java:123)rn at org.apache.ibatis.builder.xml.dynamic.DynamicContext$ContextMap.get(DynamicContext.java:89)rn at org.apache.ibatis.builder.xml.dynamic.DynamicContext$ContextAccessor.getProperty(DynamicContext.java:107)rn at org.apache.ibatis.ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1657)rn at org.apache.ibatis.ognl.ASTProperty.getValueBody(ASTProperty.java:92)rn at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)rn at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:210)rn at org.apache.ibatis.ognl.ASTNotEq.getValueBody(ASTNotEq.java:49)rn at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)rn at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:210)rn at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:333)rn at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:413)rn at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:395)rn at org.apache.ibatis.builder.xml.dynamic.OgnlCache.getValue(OgnlCache.java:42)rn at org.apache.ibatis.builder.xml.dynamic.ExpressionEvaluator.evaluateBoolean(ExpressionEvaluator.java:32)rn at org.apache.ibatis.builder.xml.dynamic.IfSqlNode.apply(IfSqlNode.java:30)rn at org.apache.ibatis.builder.xml.dynamic.MixedSqlNode.apply(MixedSqlNode.java:29)rn at org.apache.ibatis.builder.xml.dynamic.TrimSqlNode.apply(TrimSqlNode.java:42)rn at org.apache.ibatis.builder.xml.dynamic.MixedSqlNode.apply(MixedSqlNode.java:29)rn at org.apache.ibatis.builder.xml.dynamic.DynamicSqlSource.getBoundSql(DynamicSqlSource.java:37)rn at org.apache.ibatis.mapping.MappedStatement.getBoundSql(MappedStatement.java:241)rn at org.apache.ibatis.executor.statement.BaseStatementHandler.(BaseStatementHandler.java:61)rn at org.apache.ibatis.executor.statement.PreparedStatementHandler.(PreparedStatementHandler.java:36)rn at org.apache.ibatis.executor.statement.RoutingStatementHandler.(RoutingStatementHandler.java:42)rn at org.apache.ibatis.session.Configuration.newStatementHandler(Configuration.java:348)rn at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:43)rn at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:108)rn at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75)rn at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:145)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:355)rn ... 176 more[/code]rnrn找了好久都找不到什么问题,用的方法是用工具生成的update方法 论坛

c++程序添加对话框报错:“IDD_DIALOG1”: 未声明标识符

04-03

我有一个程序,叫做meshes,它原有的文件有3ds.h,meshes.cpp,meshes.rc。rn我在这个程序里面添加了一个对话框资源,使用了MFC向导,该对话框的类名是CReaddlg,基类是CDialog,name是IDD_DIALOG1,向导自动生成了Readdlg.cpp和Readdlg.h。我什么代码也没有添加,就做了上面这些动作。运行程序,报错:rnReaddlg.cpprnWINVER not defined. Defaulting to 0x0502 (Windows Server 2003)rnc:\documents and settings\administrator\桌面\sf\readdlg.h(15) : error C2065: “IDD_DIALOG1”: 未声明的标识符rnrnReaddlg.h代码如下:rn#pragma oncernrnrn// CReaddlg 对话框rnrnclass CReaddlg : public CDialogrnrn DECLARE_DYNAMIC(CReaddlg)rnrnpublic:rn CReaddlg(CWnd* pParent = NULL); // 标准构造函数rn virtual ~CReaddlg();rnrn// 对话框数据rn enum IDD = IDD_DIALOG1 ;rnrnprotected:rn virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持rnrn DECLARE_MESSAGE_MAP()rn;rnrnReaddlg.cpp代码如下:rn// Readdlg.cpp : 实现文件rn//rnrn#include "stdafx.h"rn#include "Readdlg.h"rnrnrn// CReaddlg 对话框rnrnIMPLEMENT_DYNAMIC(CReaddlg, CDialog)rnrnCReaddlg::CReaddlg(CWnd* pParent /*=NULL*/)rn : CDialog(CReaddlg::IDD, pParent)rnrnrnrnrnCReaddlg::~CReaddlg()rnrnrnrnvoid CReaddlg::DoDataExchange(CDataExchange* pDX)rnrn CDialog::DoDataExchange(pDX);rnrnrnrnBEGIN_MESSAGE_MAP(CReaddlg, CDialog)rnEND_MESSAGE_MAP()rnrnrn// CReaddlg 消息处理程序rnrn主程序meshes.cpp开始的代码如下:rn#include rn#include rn#include rn#pragma warning( disable : 4996 ) // disable deprecated warning rn#include rn#pragma warning( default : 4996 ) rnrn#include "3DS.h"rnrn请问我该怎么修正这个报错?(我用的是.net 2005) 论坛

Xxx

10-20

C# 仿QQ截图程序 winformrnusing System;rnusing System.Collections.Generic;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Text;rnusing System.Windows.Forms;rnrnnamespace Clientrnrn public partial class Catch : Formrn rn public Catch()rn rn InitializeComponent();rn rnrn 用户变量#region 用户变量rn private Point DownPoint = Point.Empty;//记录鼠标按下坐标,用来确定绘图起点rn private bool CatchFinished = false;//用来表示是否截图完成rn private bool CatchStart = false;//表示截图开始rn private Bitmap originBmp;//用来保存原始图像rn private Rectangle CatchRect;//用来保存截图的矩形rn #endregionrnrn //窗体初始化操作rn private void Catch_Load(object sender, EventArgs e)rn rn this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);rn this.UpdateStyles();rn //以上两句是为了设置控件样式为双缓冲,这可以有效减少图片闪烁的问题,关于这个大家可以自己去搜索下rn originBmp = new Bitmap(this.BackgroundImage);//BackgroundImage为全屏图片,我们另用变量来保存全屏图片rn rnrn //鼠标右键点击结束截图rn private void Catch_MouseClick(object sender, MouseEventArgs e)rn rn if (e.Button == MouseButtons.Right)rn rn this.DialogResult = DialogResult.OK;rn this.Close();rn rn rnrn //鼠标左键按下时动作rn private void Catch_MouseDown(object sender, MouseEventArgs e)rn rn if (e.Button == MouseButtons.Left)rn rn if (!CatchStart)rn //如果捕捉没有开始rn CatchStart = true;rn DownPoint = new Point(e.X, e.Y);//保存鼠标按下坐标rn rn rn rnrn private void Catch_MouseMove(object sender, MouseEventArgs e)rn rn if (CatchStart)rn //如果捕捉开始rn Bitmap destBmp = (Bitmap)originBmp.Clone();//新建一个图片对象,并让它与原始图片相同rn Point newPoint = new Point(DownPoint.X, DownPoint.Y);//获取鼠标的坐标rn Graphics g = Graphics.FromImage(destBmp);//在刚才新建的图片上新建一个画板rn Pen p = new Pen(Color.Blue,1);rn int width = Math.Abs(e.X - DownPoint.X), height = Math.Abs(e.Y - DownPoint.Y);//获取矩形的长和宽rn if (e.X < DownPoint.X)rn rn newPoint.X = e.X;rn rn if (e.Y < DownPoint.Y)rn rn newPoint.Y = e.Y;rn rn CatchRect = new Rectangle(newPoint,new Size(width,height));//保存矩形rn g.DrawRectangle(p,CatchRect);//将矩形画在这个画板上rn g.Dispose();//释放目前的这个画板rn p.Dispose();rn Graphics g1 = this.CreateGraphics();//重新新建一个Graphics类rn //如果之前那个画板不释放,而直接g=this.CreateGraphics()这样的话无法释放掉第一次创建的g,因为只是把地址转到新的g了.如同string一样rn g1 = this.CreateGraphics();//在整个全屏窗体上新建画板rn g1.DrawImage(destBmp,new Point(0,0));//将刚才所画的图片画到这个窗体上rn //这个也可以属于二次缓冲技术,如果直接将矩形画在窗体上,会造成图片抖动并且会有无数个矩形.rn g1.Dispose();rn destBmp.Dispose();//要及时释放,不然内存将会被大量消耗rn rn rn rnrn private void Catch_MouseUp(object sender, MouseEventArgs e)rn rn if (e.Button == MouseButtons.Left)rn rn if (CatchStart)rn rn CatchStart = false;rn CatchFinished = true;rn rn rn rn rnrn //鼠标双击事件,如果鼠标位于矩形内,则将矩形内的图片保存到剪贴板中rn private void Catch_MouseDoubleClick(object sender, MouseEventArgs e)rn rn if (e.Button == MouseButtons.Left&&CatchFinished)rn rn if (CatchRect.Contains(new Point(e.X, e.Y)))rn rn Bitmap CatchedBmp = new Bitmap(CatchRect.Width, CatchRect.Height);//新建一个于矩形等大的空白图片rn Graphics g = Graphics.FromImage(CatchedBmp);rn g.DrawImage(originBmp, new Rectangle(0, 0, CatchRect.Width, CatchRect.Height), CatchRect, GraphicsUnit.Pixel);rn //把orginBmp中的指定部分按照指定大小画在画板上rn Clipboard.SetImage(CatchedBmp);//将图片保存到剪贴板rn g.Dispose();rn CatchFinished = false;rn this.BackgroundImage = originBmp;rn CatchedBmp.Dispose();rn this.DialogResult = DialogResult.OK;rn this.Close();rn rn rn rn rnrn  C.创建了Catch窗体后,我们在截图按钮(位于聊天窗体上)上加入以下事件:rn private void bCatch_Click(object sender, EventArgs e)rn rnrn if (bCatch_HideCurrent.Checked)rn rn this.Hide();//隐藏当前窗体rn Thread.Sleep(50);//让线程睡眠一段时间,窗体消失需要一点时间rn Catch CatchForm = new Catch();rn Bitmap CatchBmp = new Bitmap(Screen.AllScreens[0].Bounds.Width, Screen.AllScreens[0].Bounds.Height);//新建一个和屏幕大小相同的图片 rn Graphics g = Graphics.FromImage(CatchBmp);rn g.CopyFromScreen(new Point(0, 0), new Point(0, 0), new Size(Screen.AllScreens[0].Bounds.Width, Screen.AllScreens[0].Bounds.Height));//保存全屏图片rn CatchForm.BackgroundImage = CatchBmp;//将Catch窗体的背景设为全屏时的图片rn if (CatchForm.ShowDialog() == DialogResult.OK)rn //如果Catch窗体结束,就将剪贴板中的图片放到信息发送框中rn IDataObject iData = Clipboard.GetDataObject();rn DataFormats.Format myFormat = DataFormats.GetFormat(DataFormats.Bitmap);rn if (iData.GetDataPresent(DataFormats.Bitmap))rn rn richtextbox1.Paste(myFormat);rn Clipboard.Clear();//清除剪贴板中的对象rn rn this.Show();//重新显示窗体rn rn rnrn rn 论坛

shiro报错There is no session with id [xxx]

07-06

[code=java]七月 06, 2015 3:06:03 下午 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [spring_mvc] in context with path [/Aladdin] threw exception [Request processing failed; nested exception is org.apache.shiro.session.UnknownSessionException: There is no session with id [e32a4c83-45e1-4e0f-809f-2e57851e3c6a]] with root causernorg.apache.shiro.session.UnknownSessionException: There is no session with id [e32a4c83-45e1-4e0f-809f-2e57851e3c6a]rn at org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession(AbstractSessionDAO.java:170)rn at org.apache.shiro.session.mgt.eis.CachingSessionDAO.readSession(CachingSessionDAO.java:261)rn at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSessionFromDataSource(DefaultSessionManager.java:236)rn at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:222)rn at org.apache.shiro.session.mgt.AbstractValidatingSessionManager.doGetSession(AbstractValidatingSessionManager.java:118)rn at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupSession(AbstractNativeSessionManager.java:105)rn at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupRequiredSession(AbstractNativeSessionManager.java:109)rn at org.apache.shiro.session.mgt.AbstractNativeSessionManager.getAttribute(AbstractNativeSessionManager.java:206)rn at org.apache.shiro.session.mgt.DelegatingSession.getAttribute(DelegatingSession.java:141)rn at org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)rn at org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)rn at org.apache.shiro.subject.support.DelegatingSubject.getRunAsPrincipals(DelegatingSubject.java:452)rn at org.apache.shiro.subject.support.DelegatingSubject.(DelegatingSubject.java:111)rn at org.apache.shiro.web.subject.support.WebDelegatingSubject.(WebDelegatingSubject.java:60)rn at org.apache.shiro.web.mgt.DefaultWebSubjectFactory.createSubject(DefaultWebSubjectFactory.java:62)rn at org.apache.shiro.mgt.DefaultSecurityManager.doCreateSubject(DefaultSecurityManager.java:369)rn at org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:344)rn at org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:183)rn at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:283)rn at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:257)rn at com.word4one.hotel.pc.controller.CommercialController.commercialLogin(CommercialController.java:132)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)rn at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)rn at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)rn at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)rn at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)rn at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)rn at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)rn at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)rn at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)rn at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)rn at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:380)rn at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)rn at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)rn at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1695)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)[/code]rnrn[quote]http://www.oschina.net/question/2283807_242243#answers[/quote] 论坛

没有更多推荐了,返回首页