An Authentication object was not found in the SecurityContex 异常 [问题点数:80分,结帖人daocha]

Bbs3
本版专家分:618
结帖率 99.09%
Bbs1
本版专家分:5
Bbs4
本版专家分:1340
Bbs3
本版专家分:618
Bbs1
本版专家分:0
Spring Security 随记
基本功能(认证+授权) https://blog.csdn.net/Lammonpeter/article/details/79611439 https://www.bilibili.com/video/av40943281 核心过滤器链 https://blog.csdn.net/dushiwodecuo/article/details/78913113 l流程 :Secur...
spring Security4 和 oauth2整合 注解+xml混合使用(验证码等额外数据验证)
spring Security4 和 oauth2整合(验证码等额外数据验证)上一篇写的自定义用户名密码验证,这里写验证码的验证,或者其他信息的验证。验证码等额外数据获取逻辑新增OauthAddUserDetails继承WebAuthenticationDetails,这里从request里拿到额外的参数。对比验证码,我们需要有一个接口去更新验证码,更新完放到session里
Spring Security权限控制源码分析
流程图 类和接口介绍 FilterSecurityInterceptor:是整个权限判断流程的入口,包含着请求的相关信息; AccessDecisionManager:是一个接口,有一个抽象实现(AbstractAccessDecisionManager)和三个具体实现(AffirmativeBased、ConsensusBased和UnanimousBased) AbstractAcces...
Spring Security学习笔记之整体配置
版权声明:本文为博主原创文章,未经博主允许不得转载。 目录(?)[+] 第一部分: web.xml的配置 使用过SpringSecurity的朋友都知道,首先需要在web.xml进行以下配置:  [html] view plain copy filter>     filter-name>springSec
SpringSecurity解决公共接口自定义权限验证失效问题,和源码分析
SpringSecurity自定义权限验证、解决鉴权失效和公共接口问题 本文主要介绍如何使用spring-security来实现自定义的权限验证,以及如何解决鉴权时部分接口鉴权失效变成公共接口的问题,用户登录认证的部分已省略。 自定义权限验证的实现 SpringSecurity自定义权限验证时需要实现三个接口: AccessDecisionManager : 自定义鉴权管理器,根据URL资源权...
Object not found!
在dw中制作了一个表单,保存为php文档,post方式提交到另外一个welcome的php文档,装了xampp,打开了apache,可是表单提交的时候提示rnObject not <em>found</em>!The requested URL was not <em>found</em> on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.rnrnIf you think this is a server error, please contact the webmaster.rnrnError 404rnrnlocalhostrnApache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19rnrnrn请问是什么问题啊
Error 404 Object not found
The requested URL was not <em>found</em> on this server. If you entered the URL manually please check your spelling and try again.rnrnIf you think this is a server error, please contact the webmaster. rnrn新学习一种框架,昨天还能正常运行,今天不行了,想知道什么问题rnrn在Localhost访问不到网页,在本地地址可以访问到。rnrnPHP新手,求前辈们帮帮忙
又是object file not found
刚学汇编,不知道为什么,构建能通过,编译的时候总是出现<em>object</em> file not <em>found</em>,但是又能运行。rnrnD:\RadASM\Masm32\Bin\doslnk.exe /NOLOGO "test2.obj" "",,,,,""rnObject Modules [.obj]: /NOLOGO test2.obj+rnD:\RadASM\Masm32\Bin\ML.EXE /DMASM /DDOS /Zm /c /nologo /I"D:\RadASM\Masm32\Include" "test2.asm"rn Assembling: test2.asmrnD:\RadASM\Masm32\Bin\doslnk.exe /NOLOGO "test2.obj" "",,,,,""rnObject Modules [.obj]: /NOLOGO test2.obj+rnLINK : [color=#FF0000]fatal error L1093: test2.obj : <em>object</em> file not <em>found</em>[/color]rn构建完成.rn总共编译时间 440 毫秒rnrnrn求高手指点,谢谢··
object studentform is not found???
我想动态地指定表单的caption属性:studentform.caption="查询学生信息",结果报错“<em>object</em> studentform is not <em>found</em>”,但是studentform明明是form类的一个对象啊?(不要这条语句能通过)
新手上路“object not found
刚装的xmapp1.7.4,win7 平台下,但是在DocumentRoot "C:/xampp/htdosc"下放入PHP文档运行时,提示我“<em>object</em> not <em>found</em>”,想请教下原因
springSecurity (An Authentication object was not found in the SecurityContext)
今天做一个小范例,可是在点击index.jsp页面上"Secure page" 时出现错误,看了半天了,不知道什么原因,请给指点指点: web.xml enco
springSecurity的登录验证
原文:http://www.cnblogs.com/hzhuxin/archive/2011/12/14/2287363.html springSecurity的登录验证是由org.springframework.security.web.<em>authentication</em>.UsernamePasswordAuthenticationFilter这个过滤器来完成的,在该类的父类Abstract
spring security验证流程
工作需要,又弄起了权限的管理。虽然很早以前都了解过基于容器的权限实现方式,但是一直都觉得那东西太简陋了。后来使用liferay时发现它的权限系统的确做得很优秀,感觉这也可能是它做得最出色的地方吧。但是当时只停留在怎么使用及一些与其衔接的关系之上,并没有对其底层进行了解,新到现在的公司后,发现这一课还是得补上。但是令人惊讶的是,目前可用的选择并不多,甚至很少,最有名的当属spring securit...
Spring security oauth2最简单入门环境搭建--二、干货
关于OAuth2的一些简介,见我的上篇blog:[url]http://wwwcomy.iteye.com/blog/2229889[/url] PS:貌似内容太水直接被鹳狸猿干沉。。 友情提示 学习曲线:spring+spring mvc+spring security+Oauth2基本姿势,如果前面都没看过请及时关闭本网页。 我有信心我的这个blog应该是迄今为止使用spring ...
聊聊spring security的permitAll以及webIgnore
序 本文主要聊一下spring security的permitAll以及webIgnore的区别 permitAll配置实例 @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override pub...
16、Spring MVC 之 Web Security
Spring Security是一个单独的项目,它可以无缝的和Spring MVC集成。Spring Security提供会特性保护web应用来自恶意的攻击。
Source not found for NativeMethodAccessorImpl.invoke(Object, Object[]) line: no
框架描述:rn 用SSH框架+mysql,spring是自动代理注册的,autowire=“byName” 这样设置后,就无需再写ref指定的麻烦了。spring配置如下:rndefault-autowire="byName" default-lazy-init="true">rnrnrn问题描述:rn [img=https://img-bbs.csdn.net/upload/201407/27/1406469514_177058.jpg][/img]rn [color=#FF0000] 在service层返回action层的时候,debug断点跟到这不往下走了。[/color]rnservice层源码如下:rnpublic class LoginServiceImpl extends BaseService implements ILoginSevice rn rn private ILoginDao loginDao;rn /**rn * 验证用户是否存在;rn */rn[color=#FF0000] public Tuser checkUser(String username,String password) rn // TODO Auto-generated method stubrn return loginDao.queryByUserName(username,MD5.toMD5(password));rn [/color]rnrn //setter&getterrn public ILoginDao getLoginDao() rn return loginDao;rn rnrn public void setLoginDao(ILoginDao loginDao) rn this.loginDao = loginDao;rn
no data found异常
如执行一条这样的语句:rndelete from table1 where coloum1='aa'rn如果数据库没有这条记录的话就会报no data <em>found</em> 错,可是在oracle里就没有,请问有什么地方可设置让他不报错的?谢谢
异常:/hibernate.cfg.xml not found
是在ssh整合时发生的,ssh是手动搭建的,后来因为在hibernate反向工程的时候找不到项目名,所以又直接右键工程 MyEclipse Add Hibernate 。[color=#FF0000]我明明是将applicationContext.xml和hibernate.cfg.xml合并了 为什么它还要去找hibernate[/color]rn 写了一个简单的登录程序 在运行到调用dao的时候 就抛了<em>异常</em> 下面是我的配置文件rnrnrnweb.xmlrn[code=html]rnrnrn rn rn index.jsprn rn rn rn contextConfigLocation rn /WEB-INF/classes/applicationContext.xmlrn rn rn org.springframework.web.context.ContextLoaderListenerrn rn rn rn struts2rn rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn rn rn struts2rn *.actionrn rnrn[/code]rnrnrnsturts.xmlrn[code=html]rnrnrnrn rn rn /register.jsprn /index.jsprn rn rnrn[/code]rnrnrnapplicationContext.xmlrn[code=html]rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.MySQLDialectrn rn rn rn rnrn[/code]rnrnrn<em>异常</em>信息rn[code=java]rn%%%% Error Creating SessionFactory %%%%rnorg.hibernate.HibernateException: /hibernate.cfg.xml not <em>found</em>rn at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:170)rn at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:2146)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:2127)rn at com.mulan.dao.HibernateSessionFactory.(HibernateSessionFactory.java:30)rn at com.mulan.dao.BaseHibernateDAO.getSession(BaseHibernateDAO.java:13)rn at com.mulan.dao.TreasureDAO.findById(TreasureDAO.java:68)rn at com.mulan.struts.action.Bacis.login(Bacis.java:102)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rn[/code]rnrn另外 HibernateSessionFactory.java 文件已经被我修改了rn[code=java]rn//以前是rnprivate static String CONFIG_FILE_LOCATION = "/hibernate.cfg.xml";rn//我改成了rnprivate static String CONFIG_FILE_LOCATION = "/applicationContext.xml";rn[/code]rnrn真不知道是哪里还在找 hibernate.cfg.xmlrnrn各位高手 ..
Authentication
Here is a part from a book for OS <em>authentication</em> and password file <em>authentication</em> : rnrnCreate the password file using the password utility.rnrn$ orapwd file=$ORACLE_HOME/dbs/orapwU15rn password=admin entries=5rnrnSet the REMOTE_LOGIN_PASSWORDFILE parameter to EXCLUSIVErnrnAdd users to the password file.rnrnWhere:rnEXCLUSIVE: Indicates that only one instance can use the password file and that the password file contains names other than SYS. Using an EXCLUSIVE password file you can grant SYSDBA or SYSOPER privileges to individual users.rnrnrnI also read that REMOTE_LOGIN_PASSWORDFILE can be set as SHARED and NONE.rnrnMy questions are rn1) What is the difference among EXCLUSIVE, SHARED and NONE of REMOTE_LOGIN_PASSWORDFILE. I didn't understand the words in those books.rn2) How to add users to the password file.rn3) How to check up which kind of Authentication on Oracle.rn
day05-【异常、Object类】
1.Object 类Object类是所有类的父类,是最顶层的父类。当一个类没有直接继承其他父类时,这个类的直接父类就是Object类; class Person{ .... } 等价于 class Person extends Object{ ... }1.equals方法: boolean equals(Object obj):判断当前对象与obj对象的地址是否一样
Spring Boot(七):Spring Security如何启用与禁用CSRF
从Spring Security 4开始,默认启用CSRF机制,本来这也不算什么大事,但与Spring Boot结合在一起,那么实现起来就比较麻烦了,尤其是采用前后端分离式的开发架构后,配置CSRF机制就更困难了,几乎所有网上的解决办法都无法解决如何获取CSRF编码的难题,首先以表单登陆的错误镇楼:There was an unexpected error (type=Forbidden, stat
Spring Security学习异常处理
认证<em>异常</em> 匿名用户在认证过程中 所涉及的<em>异常</em>行为有很多,常见的有: 账号/密码错误 (用户不存在) 账号状态<em>异常</em> (被锁定、过期) 凭证无效/过期 Spring security 统一以AuthenticationException抛出. 由AuthenticationEntryPoint处理 Spring security 官方文档 8.2.1. AuthenticationEnt...
AuthenticationCredentialsNotFoundException怎么解决?
严重: Servlet.service() for servlet jsp threw exception org.acegisecurity.AuthenticationCredentialsNot
ERROR: Repository not found.的解决办法
在使用IDEA或者GIT时,可能会出现ERROR: Repository not <em>found</em>.的错误 解决方案:打开控制面板——》打开用户帐户——》找到凭据管理器——》看自己的凭据管理器中,自己的用户是否对git可以下载的远程代码库地址有下载权限,如果没有权限赶紧联系管理员吧 ...
Spring Security 国际化文件 messages_zh_CN.properties 中文解释
AbstractAccessDecisionManager.accessDenied = 不允许访问  AbstractSecurityInterceptor.<em>authentication</em>NotFound = 未在SecurityContext中查找到认证对象  AbstractUserDetailsAuthenticationProvider.badCredentials = 坏的凭证 
LDAP No Such Object异常
连接服务代码:rn[code=Java]public static DirContext getLDAPConnection() throws NamingException rn String root = "relationName=relation,dc=abc,dc=com";rn String LDAPPassword = "secret";rn Hashtable env = new Hashtable();rn env.put(Context.INITIAL_CONTEXT_FACTORY,rn "com.sun.jndi.ldap.LdapCtxFactory");rn env.put(Context.PROVIDER_URL, "ldap://localhost/" + root);rn env.put(Context.SECURITY_AUTHENTICATION, "simple");rn env.put(Context.SECURITY_PRINCIPAL, root);rn env.put(Context.SECURITY_CREDENTIALS, LDAPPassword);rn DirContext ctx = null;rn ctx = new InitialDirContext(env);rn return ctx;rn [/code]rn搜索内容代码:rn[code=Java]public static NamingEnumeration getLDAPResultList(rn DirContext ctx) rn NamingEnumeration enums = null;rn try rn String filter = "<em>object</em>Class=*";rn SearchControls sh = new SearchControls();rn enums = ctx.search("", filter, sh);rn if (ctx != null) rn ctx.close();rn rn return enums;rn catch (javax.naming.AuthenticationException e) rn e.printStackTrace();rn return enums;rn catch (Exception e) rn e.printStackTrace();rn return enums;rn rn [/code]rn<em>异常</em>:rnjavax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name ''rn之前参考网上的例子是可以得到enums对象的,后来我使用自己的<em>object</em>Class以后就不可以了,直接在命令行窗口是可以搜索的,但是在程序里面就是不行,search方法里面name和filter设置成具体的对象也不行。大家帮忙看看哪里出了问题。
第七天Object类和异常
递归用递归方法求1+2+…+1000的和package com.baidu.test3; public class Add { private int i=1; public int sum=0; public void add(){ if(i<1001){ sum=sum+i; i++;
Object类,JAVA异常
Object 类概述JAVA类库中的类,JAva.lang 包中的:JAVA.lang.Object(类)是所有引用类型的超类;(我们自定义的所有的类都是它的子类) public class Hero extends Object所有类都默认继承Object类equals方法即进行比较,判断两个对象中的所有的属性值是否相同。由Object类进行定义Student stu1 = new Stu...
Object类与异常
1、Object类 Object类是所有类的根类,其中常用的几个方法如下: a、boolean equals(Object obj); 该方法用于比较两个对象地址是否相等,子类通常需要重写该方法,标准的重 写案例代码示例如下: 例如有类A,其有a和b两个String类型的成员变量,则重写案例如下: public boolean equals(Object obj) { if (this ...
Springboot + SpringSecurity 中不能抛出异常UserNameNotFoundException 解析
通过查看源码可得知: 抽象类中AbstractUserDetailsAuthenticationProvider 接口抛出<em>异常</em>AuthenticationException 下面源码注释这么描述 * * @throws AuthenticationException if the credentials could not be validated * (generally a &amp;amp;amp;amp;amp;amp;amp;lt...
Spring Security教程外篇(1)---- AuthenticationException异常详解
这个<em>异常</em>是在登录的时候出现错误时抛出的<em>异常</em>,比如账户锁定,证书失效等,先来看下AuthenticationException常用的的子类: UsernameNotFoundException 用户找不到 BadCredentialsException 坏的凭据 AccountStatusException 用户状态<em>异常</em>它包含如下子类 AccountExpiredException 账户过期
Spring Security教程(7)---- 解决UsernameNotFoundException无法被捕获的问题
这个教程是我在往项目中一点一点添加 Spring Security的过程的一个笔记,也是我学习 Spring Security的一个过程。 在解决这个问题之前要先说一点<em>authentication</em>-provider默认加载的是DaoAuthenticationProvider类。 完成了上一章的内容后在测试的时候发现在UserDetailsService中抛出的UsernameNotF
acegi的一个异常错误
昨天学习acegi,发现一个<em>异常</em>org.acegisecurity.AuthenticationCredentialsNotFoundException: An Authentication <em>object</em> was not <em>found</em> in the SecurityContext at org.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterce
让Spring Security 来保护你的Spring Boot项目吧
参考资料: 书籍:Spring实战(第4版) 第9章和第14章 Spring Security 参考手册 初识 Spring Security 程序猿DD的Spring Security学习笔记 Spring Security 简介 Spring Security是一个能够为基于Spring的企业应用系统提供声明式的安全访问控制解决方案的安全框架。它提供了一组可以在Spring应用上...
莫名其妙的异常007:git报错:Authentication failed for
一般来说可能是你的连接git的密码有修改,但是本地配置没有修改。但是,git又没有提示修改用户名和密码的弹出框。 那么可使用如下操作: 1、打开git bash here窗口 2、输入命令git config --system --unset credential.helper 3、然后去操作推送,拉取和或者克隆等任意操作 4、提示你输入用户名和密码,修改之 5、再在git bash中...
asp.net 发送邮件 异常 : 服务器响应为: authentication failed.
// 使用一个SMTP的服务器,并且通过验证rn //SmtpClient client = new SmtpClient("smtp.163.com");rn SmtpClient client = new SmtpClient("mail.taikor.com");rn client.UseDefaultCredentials = false;rn client.Credentials = new System.Net.NetworkCredential("boochen", "123456"); rn client.DeliveryMethod = SmtpDeliveryMethod.Network;rnrn //配置发送信息rn MailMessage Mail = new MailMessage();rn Mail.BodyEncoding = System.Text.Encoding.UTF8;rn Mail.Subject = "New Password";rn MailAddress From = new MailAddress("boochen@taikor.com"); rn Mail.From = From;rn Mail.To.Add(Email);rn Mail.Body = "Your New Password Is : ";rn Mail.IsBodyHtml = true;rn client.Timeout = 5000;rn tryrn rn client.Send(Mail); rn rn rn catch(Exception ex)rn rn throw;rn rn rnrn用网易的smtp服务器可以.我们公司的就不行..服务器响应为: <em>authentication</em> failed.
求解 HTTP/1.1 404 Object Not Found
IIS 打开网站的下载链接 出现 HTTP/1.1 404 Object Not FoundrnrnVS2010打开正常,求解
eclipse无法运行test.php,提示Object not found!
环境:XAMPP + Eclipse + PHPEclipsernXAMPP安装路径:C:\xampprnrn项目名:Test,项目路径:D:\EclipseSpace\Helios_PHP\Testrn该项目下仅有一php文件:test.php,右击该文件选择Open PHP Browser,则出现“Object not <em>found</em>!”界面。rnrn在C:\xampp\apache\logs\error.log处有记录如下:rn[Tue Nov 29 20:51:02 2011] [error] [client 127.0.0.1] script 'C:/xampp/htdocs/test.php' not <em>found</em> or unable to statrnrnrn看来是apache找路径时找错了,那请问如何在运行PHP Browser时,将路径设置成test.php的真正路径呢?谢谢
HTTP:錯誤 404:Object Not Found
請問是什麽原因!
网站添加微信登录功能
/* *微信扫二维码登录 *///1、首页登录按钮html 登录//2、登录按钮链接js $('.loginLink').attr('href', 'src/index.html#/access/signin/0');//3、路由跳转到signin.html js .s
Spring Security Web 5.1.2 源码解析 -- FilterSecurityInterceptor
概述 此过滤器FilterSecurityInterceptor是一个请求处理过程中安全机制过滤器链中最后一个filter,它执行真正的HTTP资源安全控制。 具体代码实现上,FilterSecurityInterceptor主要是将请求上下文包装成一个FilterInvocation然后对它进行操作。FilterSecurityInterceptor仅仅包含调用FilterInvocation的...
cas4.0 自定义用户验证及登录错误信息提示
自定义认证类 密码类,在deployerConfigContext.xml配置自定义的类 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
acegi security实践教程—form认证
上篇博客给大家介绍了basic认证,同时也带领大家debug了一下源码,所以流程想必大家都已经了解了,那么现在只剩下各种认证的配置了。   具体步骤如下:   开发环境:   MyEclispe10.7.1+tomcat6.0.37+acegi1.0.5+spring2.0   项目目录如下:  其中readme主要用来记录本次验证目的       配置文件    web
SpringCloud OAuth2 授权服务器认证失败:BadCredentialsException: Could not obtain access token 解决方案
SpringCloud OAuth2 授权服务器认证失败:BadCredentialsException: Could not obtain access token 解决方案 在使用 SpringSecurity Oauth2 搭建授权服务器时遇到一个问题,当使用 GitHub 做授权服务器时没有问题,但是本地自己搭建的授权服务器授权后登录失败;授权后应该登录成功的,但是重新调回到授权服...
HTTP/1.1 404 Object Not Found 是什么原因?
我在地址栏里输入带有汉字的.htm文件地址,浏览器就返回这个错误信息报告,谁知道这是怎么回事?rn是不是服务器的问题?rn即使放在iframe的src里面凡是带有汉字的htm文件都不能浏览
warning LNK4099: PDB 'vc120.pdb' was not found with ''; linking object as if no
win10+VS2013,release版本编译rn大工程中有许多小工程,但是只有其中一个工程报了这个warning 4099。rn现在想要消除这个warning,不知道有什么好方法?rnrn之前已经在网上找了一些方案,但是都没有成功解决。rnMSDN上的解释也看过了,不过感觉很抽象。有没有具体点的解决方法?rn请大神们帮忙,谢谢!
name not found accessing external object property documents
用oleObject 输出内容到word时 rn运行到此句 出现错误:application ternimated:name not <em>found</em> accessing external <em>object</em> property documentsrnole_obj.Doucuments.add("C:\normal.dot",false,0)rnrnrn请问怎么解决
found"/ "xxxx描述文件 not found"">更换证书后 打包异常 "UUID not found"/ "xxxx描述文件 not found"
换新的开发者帐号 打包App 时出现<em>异常</em>报错 * UUID 文件找不到 * 对应的描述文件找不到 网上的解决方法眼花缭乱,归根到底还是开发者帐号中文件更新到本地冲突导致 先从最简单的解决方法开始: 原因:A项目用A证书编译后又换成B证书编译,就会出现以上情况 Xcode—Window—Projects—删除最近冲突项目
Object方法和异常总结(4)
Object类:ObjectDemo演示代码        1.Object是所有类的直接或间接父类,每一个类都必定直接或间接继承Object类,系统默认继承可不写。        2.关键字native修饰的方法,表示该方法调用到本地系统资源。                equals()方法:判断两个对象是否相等,基本数据类型比较的值,引用数据类型比较地址值。相当于
Spring Security权限认证规则(五)
Spring Security权限认证规则 1、当服务器启动时,Spring Security会根据配置将所有的URL和其对应的权限加载到Spring Security中。 @Service public class MyInvocationSecurityMetadataSourceService implements FilterInvocationSecurityMetadataSource...
两个Spring Security问题
两个Spring Security问题 ---------》现象 2011-5-4 9:22:20 org.springframework.web.context.ContextLoader initWebApplicationContext 严重: Context initialization failed org.springframework.beans.factory.Be...
Spring Security 实现身份认证
Spring Security可以运行在不同的身份认证环境中,当我们推荐用户使用Spring Security进行身份认证但并不推荐集成到容器管理的身份认证中时,但当你集成到自己的身份认证系统时,它依然是支持的。     1. Spring Security中的身份认证是什么?     现在让我们考虑一下每个人都熟悉的标准身份认证场景:    
Spring-Security登录认证授权原理
spring-security源码下载地址:https://github.com/spring-projects/spring-security Spring-Security源码解读:1.使用ctrl+shift+n组合键查找UsernamePasswordAuthenticationFilter过滤器,该过滤器是用来处理用户认证逻辑的,进入后如图:(1)可以看到它默认的登录请求url是&quot;/lo...
Spring Security 国际化 让人蛋疼的 坏的凭证
错误信息报出一个“坏的凭证”,根本就让人看不懂。 还是看英文的好。 Spring Security支持<em>异常</em>信息的国际化,最终用户希望看到这些信息。 如果你的应用被设计成给讲英语的用户的,你不需要做任何事情, 因为默认情况下Spring Security的信息都是引用的。 所有的<em>异常</em>信息都支持国际化,包括验证失败和访问被拒绝的相关信息(授权失败)。 应该被开发者和系统开发者关注(...
java object数组显示异常
class InsertRecord extends JDialog implements ActionListener //负责插入记录的类rn JLabel hintLabel;rn Object[] name="学号","姓名","性别","年龄";rn Object[][] a=new Object[1][4];rn JTable table;rn JButton enterInsert; rn Connection con;rn Statement sql; rn ResultSet rs;rn String num;rn InsertRecord(String s)rn setTitle(s);rn hintLabel=new JLabel("输入新记录:");rn table=new JTable(a,name);rn enterInsert=new JButton("插入新记录");rn setLayout(null); rn Box baseBox=Box.createHorizontalBox();rn baseBox.add(hintLabel);rn baseBox.add(new JScrollPane(table));rn baseBox.add(enterInsert);rn add(baseBox);rn baseBox.setBounds(10,40,600,38);rn enterInsert.addActionListener(this);rn setBounds(120,160,700,200);rn rn public void actionPerformed(ActionEvent e)rn /* try con=DriverManager.getConnection("jdbc:odbc:jec","system","jec");rn sql=con.createStatement();rn int k=sql.executeUpdatern ("INSERT INTO s VALUES('a[0][0]','a[0][1]','a[0][2]','a[0][3]')");rn if(k==1)rn JOptionPane.showMessageDialogrn (this,"插入记录成功","成功",JOptionPane.PLAIN_MESSAGE); rn table=new JTable(a,name);rn con.close();rn rn catch(SQLException ee) rn JOptionPane.showMessageDialogrn (this,"插入记录失败"+ee,"失败",JOptionPane.ERROR_MESSAGE);rn */rn System.out.println(a[0][0]+""+a[0][1]+""+a[0][2]+""+a[0][3]);rn rn rnrnrn为什么a[0][3]显示为null 其他的都显示正常 谁能帮我解决一下
面向对象——Object类、异常学习笔记
equals方法:一般会覆盖此方法,根据对象的特有内容,建立判断对象是否相同的依据。 hashCode方法:返回该对象的哈希值,一般会覆盖此方法 getClass方法:返回此<em>object</em>的运行时类 toString方法:返回该对象的字符串表示,一般会覆盖此方法 <em>异常</em>:在运行时发生的不正常情况 在java 中用累得形式对不正常的情况进行了描述和封装,描述不正常情况的类,就称为<em>异常</em>类
Authentication心得
那位高手大哥给我发点Authentication心得的例子吧!C#。NET的!谢啦!
Found shared references to a collection异常
[code=java] //保存到库存(delStorageInventory)rn Member member = this.memberService.findBySn(sn);rn List delStorageInventoryMembers = delStorageInventoryService.findByMember(member);rn List delStorageInventorys = delStorageInventoryService.findByUPC(delStorageInventory.getUpc());rn //当upc查找到的库存为0,或者member查找到的库存为0时,执行添加操作rn if (delStorageInventoryMembers.size() == 0 || delStorageInventorys.size() == 0) rn delStorageInventory.setMember(this.memberService.findBySn(sn));rn delStorageInventory.setOperator(this.adminService.getCurrent());rn delStorageInventory.setDelStorage(this.delStorageService.find(delStorageId));rn delStorageInventory.setSn(this.snService.generate(Sn.Type.delStorageInventory));rn /** 数据验证 */rn if(!isValid(delStorageInventory, new Class[0])) rn return ERROR_VIEW;rn rn this.delStorageInventoryService.save(delStorageInventory);rn rn for (DelStorageInventory delStorageInventoryMember : delStorageInventoryMembers) rn //根据会员得到的upc和传进来的upc不等时,执行添加操作rn if (delStorageInventoryMember.getUpc() != delStorageInventory.getUpc()) rn delStorageInventory.setMember(this.memberService.findBySn(sn));rn delStorageInventory.setOperator(this.adminService.getCurrent());rn delStorageInventory.setDelStorage(this.delStorageService.find(delStorageId));rn delStorageInventory.setSn(this.snService.generate(Sn.Type.delStorageInventory));rn /** 数据验证 */rn if(!isValid(delStorageInventory, new Class[0])) rn return ERROR_VIEW;rn rn this.delStorageInventoryService.save(delStorageInventory);rn rn //根据会员得到的upc和传进来的upc相等时,执行更新操作rn if (delStorageInventoryMember.getUpc() == delStorageInventory.getUpc()) rn BeanUtils.copyProperties(delStorageInventory, delStorageInventoryMember, new String[] "id","sn","upc","member","quantity");rn if (!isValid(delStorageInventoryMember, new Class[0])) rn return ERROR_VIEW;rn rn delStorageInventoryMember.setOperator(this.adminService.getCurrent());rn delStorageInventoryMember.setDelStorage(this.delStorageService.find(delStorageId));rn delStorageInventoryMember.setQuantity(delStorageInventoryMember.getQuantity() + delStorageInventory.getQuantity());rn delStorageInventoryService.update(delStorageInventoryMember);rn rn rn for (DelStorageInventory delStorageInventory2 : delStorageInventorys) rn //且根据upc得到的会员和sn查找到的会员不等时,执行添加操作rn if (delStorageInventory2.getMember() != member) rn delStorageInventory.setMember(this.memberService.findBySn(sn));rn delStorageInventory.setOperator(this.adminService.getCurrent());rn delStorageInventory.setDelStorage(this.delStorageService.find(delStorageId));rn delStorageInventory.setSn(this.snService.generate(Sn.Type.delStorageInventory));rn /** 数据验证 */rn if(!isValid(delStorageInventory, new Class[0])) rn return ERROR_VIEW;rn rn this.delStorageInventoryService.save(delStorageInventory);rn rn //根据upc得到的会员和sn查找到的会员相等时,执行更新操作rn if (delStorageInventory2.getMember() == member) rn BeanUtils.copyProperties(delStorageInventory, delStorageInventory2, new String[] "id","sn","upc","member","quantity");rn if (!isValid(delStorageInventory2, new Class[0])) rn return ERROR_VIEW;rn rn delStorageInventory2.setOperator(this.adminService.getCurrent());rn delStorageInventory2.setDelStorage(this.delStorageService.find(delStorageId));rn delStorageInventory2.setQuantity(delStorageInventory2.getQuantity() + delStorageInventory.getQuantity());rn delStorageInventoryService.update(delStorageInventory2);rn rn [/code]rn[code=java]org.hibernate.HibernateException: Found shared references to a collection: com.delawaresaving.entity.DelStorageInventory.delStorageInventoryIns[/code]rnrn网上有人这样说:rn原因:rnBeanUtils.copyPropertis是浅拷贝,导致这两个对象引用的Set是同一个Set,这在hibernate中是不允许的,参见Hibernate reference第6章的"Two entities may not share a reference to the same collection instance"。rn这种问题常见于复制对象时。rn如何解决:newP.setSonSet(null);rnrn但这个newP.setSonSet(null);是什么意思啊,,搞不懂该怎么写,求指导
Hibernate异常found two representations of same collection
请大家帮忙,给出解决方案,以前有很多人问过,好像都没有好的解决方法。在线等,问题解决立即结贴!
hibernate异常"Found shared references to a collection
[code=java]public void copyPriceRuleEntitys(String[] ids) throws IllegalAccessException, InvocationTargetException rn /**rn * 复制的时候,BeanUtils.copyPropertis是浅拷贝,导致两个对象引用的set是同一个,rn * 那就导致出现多个引用<em>异常</em>,set属性里面没有任何东西是空集合而不是nullrn * 解决:设置set属性为null,rn * 在拷贝后,新建一个集合,将原来的集合元素添加进去,并赋值给新拷贝的实体 rn */rn try rn MailingWayPriceItemEntity sourcePriceEntity = null;rn MailingWayPriceItemEntity copyPriceEntity = null;rn rn for(String id : ids)rn sourcePriceEntity = mailingWayPriceItemDAO.find(id);rn copyPriceEntity = new MailingWayPriceItemEntity();rn BeanUtils.copyProperties(copyPriceEntity, sourcePriceEntity);rn copyPriceEntity.setId(null);//主键id必须设置为null,否则不能执行insert语句rnrnrn Set increase = sourcePriceEntity.getIncrease();rn //copyPriceEntity.setIncrease(null);rn if(null!=increase && !increase.isEmpty()) rn Set newIncrease = new HashSet(increase.size());//新建一个集合对象,防止共享rn //BeanUtils.copyProperties(newIncrease, increase);rn for(MailingWayIncreaseEntity inc : increase) rn newIncrease.add(inc);rn rn copyPriceEntity.setIncrease(newIncrease);rn rn rn Set mailingWayLink = sourcePriceEntity.getMailingWayLink();rn //copyPriceEntity.setMailingWayLink(null);rn if(null!=mailingWayLink&&!mailingWayLink.isEmpty())rn Set newMailingWayLink = new HashSet(mailingWayLink.size());rn //BeanUtils.copyProperties(newMailingWayLink, mailingWayLink);rn for(MailingWayLinkEntity mlk:mailingWayLink)rn newMailingWayLink.add(mlk);rn rn copyPriceEntity.setMailingWayLink(newMailingWayLink);rn rn rn copyPriceEntity.setRemark(sourcePriceEntity.getRemark()+"_副本");rn mailingWayPriceItemDAO.create(copyPriceEntity);//这里调用了创建对象的方法 rn rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rn [/code]
JAVA代理里的视图ENTRY NOT FOUND IN INDEX异常
各位大哥你们好!rn小弟想要在JAVA代理里循环取值遍访一个视图,然后插入SQL里rn小弟用getNextDocumentrn循环rn可是取产生了entry not <em>found</em> in index<em>异常</em>rn以前有哪位大哥遇到过嘛rn希望能指点一下rn小弟多谢了!
关于jdbc异常:java.sql.SQLException: No data found 郁闷
我只是想让结果集中当前记录的srm字段与tmp的srm成员比较,如果相同则把当前记录的hz字段取出放到tmp的hz成员中,再将tmp存起来,直到结果集检索到尽头。rn已经保证results中有很多元素。但是总出现标题所示的错误,经跟踪调试发现总和rn results.getString("hz")有关,可results里是有元素的啊!如果想法将第二个results.getString("srm")去掉就没事了,但功能就变了。帮我看看吧!rn while(!results.isAfterLast())rn rn tmp.srm=results.getString("srm"); rn while(results.getString("srm").equals(tmp.srm))rn tmp.hz=tmp.hz+results.getString("hz");rn results.next();rn if(results.isAfterLast()) break; rn rn sss.add(tmp); rn rn
Hibernate4 No Session found for current thread异常
标题:Hibernate4 No Session <em>found</em> for current thread与createQuery is not valid without active transaction<em>异常</em>n描述:n在项目程序运行时遇到了Hibernate4 No Session <em>found</em> for current thread<em>异常</em>,nn ![图片说明](https://img-ask.csdn.net/upload/201610/07/1475829970_705784.png)n百度了一下n在hibernate的配置文件中加入了threadn配置并且处理业务逻辑的类上也加入了注解如下nn package com.xiaonei.baseService;nnimport java.util.List;nnimport javax.annotation.Resource;nnimport org.hibernate.Query;nimport org.hibernate.Session;nimport org.hibernate.SessionFactory;nimport org.springframework.transaction.annotation.Transactional;nn@Transactionalnpublic class BaseServiceImpl implements BaseService nn @Resourcen private SessionFactory sessionFactory;n npublic SessionFactory getSessionFactory() n return sessionFactory;n nn public void setSessionFactory(SessionFactory sessionFactory) n this.sessionFactory = sessionFactory;n nn/**n * @author sunlongn * @param hql:传入的hql,可以带参数?n * @param args: 问号对应的参数数组n */n @Overriden public List getResult(String hql, Object[] args) nn Session session = sessionFactory.getCurrentSession();n System.out.println("执行到创建Session");n Query query = session.createQuery(hql);n System.out.println("执行到Query");n if(args!= null && args.length > 0)n for(int i = 0;ithreadn配置删除或者把值thread改成org.springframework.orm.hibernate3.SpringSessionContextn再次运行却又出现了org.springframework.orm.hibernate3.SpringSessionContext<em>异常</em>整了好久都没搞明白,这是为什么呀?n nnSpring 的配置文件n1.applicationContext.xml nn nn n n n n n n n n n n n n n n n n n nn n n n n nnn n n n n n n n n n n n n n nn n n n nn2.applicationContextbeans.xmlnnn n n n n n n n n n n n n n n n n n n nbaseServiceImpl.javanpackage com.xiaonei.service.baseService;nnimport java.util.List;nnimport javax.annotation.Resource;nnimport org.hibernate.Query;nimport org.hibernate.SessionFactory;nimport org.springframework.stereotype.Service;nimport org.springframework.transaction.annotation.Transactional;nn@Servicenpublic abstract class BaseServiceImpl implements BaseService nn @Resourcen private SessionFactory sessionFactory;n npublic SessionFactory getSessionFactory() n return sessionFactory;n nn public void setSessionFactory(SessionFactory sessionFactory) n this.sessionFactory = sessionFactory;n nn/**n * @author sunlongn * @param hql:传入的hql,可以带参数?n * @param args: 问号对应的参数数组n */n n n @Transactionaln public List getResult(String hql, Object[] args) nSystem.out.println("执行了getResult方法");n Query query = sessionFactory.getCurrentSession().createQuery(hql);n System.out.println("执行到createQuery方法");n if(args!= null && args.length > 0)n for(int i = 0;i calzz, Integer id) n // TODO Auto-generated method stubn return null;n nnnnnnnnnnnn
ssh查询异常 javax.servlet.jsp.JspException: No collection found
userlistForm找不到还是怎么的?rn jsp 代码[code="java"]rn rn rn rn rn rn rn rn rn rn rn rn rn "rn target="_blank">编辑rn rn rn rn [/code]rnUserListAction处理代码rn[code="java"]public ActionForward execute(ActionMapping mapping,ActionForm form,rn HttpServletRequest request,HttpServletResponse response)rn UserListForm userlistForm=(UserListForm)form;rn userlistForm.setUserList(dao.findUser());rn request.setAttribute("userlistForm", userlistForm);rn System.out.println(dao.findUser());rn return mapping.findForward("userlist");rn [/code]rnstruts配置文件rn[code="java"]rn rnrn rn [/code]
引发类型为:HttpUnhandledException的异常,Not Found Page
我原来有个aspx页,可以访问的,然后我在这个页理,删除了图片控件,table控件,加入了,chart控件(从别的页面拷贝过来的),GridView控件,然后再访问这个页的时候就找不到该页了,谁知道是怎么回事?pageLoad进不去的。
org.apache.xalan.processor.TransformerFactoryImpl not found异常,高手请进(50 P)!
对XML进行文件改写,我原来的程序在UNIX的WLS+jaxp1.1没有问题,同样的程序放在:rn2000+TOMCAT4.0+JAXP1.1下就出现rnorg.apache.jasper.JasperException: Provider org.apache.xalan.processor.TransformerFactoryImpl not <em>found</em>rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)rn at java.lang.Thread.run(Thread.java:484)rnrn以下错误!rn我开始怀疑是JAXP的版本,于是我尝试把JAXP换成了1.2,但也不行.rnrn我通过查询SUN 论坛,发现处理这个问题可以通过设置进行,有人提出下解决方法:rnrnjava -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl rnrn但我尝试了(后面随便加了个CLASS,否则不符合语法),但好象还是不行.rn请哪个高手可以指点迷津!谢谢!
Scanner类抛出java.util.NoSuchElementException: No line found异常
[size=24px]我需要在程序的不同的地方创建[color=#FF0000]多个scanner对象[/color]读取一整行信息,每次用完后都很自然得调用了close方法关掉,当第二个scanner对象调用nextLine时就会出现NoSuchElementException: No line <em>found</em>的<em>异常</em>。rn如果第一个scanner对象不关掉,就不会报错。想知道为什么。rn个人认为这是我们大家都会经常犯的错,但是网上找不到解释。希望大神出现。[/size]rn简化的代码如下所示rn[code=java]import java.util.Scanner;rnrnrnpublic class TempTestrn public static void main(String[] args)rn Scanner sc=new Scanner(System.in);rn //if(sc.hasNext())rn String s=sc.nextLine();rn sc.close();rn rn Scanner sc2=new Scanner(System.in);rn sc2.nextLine();rn sc2.close();rn rn[/code]
found"">更新证书,打包异常"UUID not found"
这种打包<em>异常</em>一般发生在:对工程用A证书打包以后,又换B证书打包。   解决方法:进入到~/Library/Developer/Xcode/DerivedData/ModuleCache,删除这个文件夹下面的内容即可。
Mybatis 绑定异常,Invalid bound statement (not found)
dao和Mapper文件都是自动生成的确定没有错误,老是执行不成功。项目是Maven项目,编译后的目录也查看过,确定没问题。贴上图片。不知道为什么图片上传不成功,贴上配置信息。rnrnrn rn rn rn rn rnrn rnrn rn rn rn rn rnrnrn出错信息,提示是service层出错,顺便贴上service层代码rnrnorg.apache.ibatis.binding.BindingException: Invalid bound statement (not <em>found</em>): test.service.UserTableService.selectByPrimaryKeyrn org.apache.ibatis.binding.MapperMethod$SqlCommand.(MapperMethod.java:189)rn org.apache.ibatis.binding.MapperMethod.(MapperMethod.java:43)rn org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:58)rn org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51)rn com.sun.proxy.$Proxy23.selectByPrimaryKey(Unknown Source)rn test.controller.SelectProject.selectProject(SelectProject.java:26)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn java.lang.reflect.Method.invoke(Method.java:498)rn org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)rn org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)rn org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)rn org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)rn org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)rn org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)rn org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)rn org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)rn org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)rn org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:648)rn org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rnrnrnrnrn代码rnrnrn/**rn * 用户信息表操作rn * @authorrn *rn */rn@Servicern@Transactionalrnpublic class UserTableServiceImpl implements UserTableService rnrn @Autowiredrn private UserTableMapper userTableDao;rnrn public UserTable selectByPrimaryKey(Integer userId) rn return userTableDao.selectByPrimaryKey(userId);rn rnrn @Overridern public int insert(UserTable record) rn return userTableDao.insert(record);rn rnrnrnrn
异常“no iplib dll is found in the waterfull procedure"
不知道动了什么东西,刚刚还能编译我做的一个Activex控件,突然就来了这个提示,真不知道什么原因,请大家指教
异常Source not found for CursorableLinkedList.removeFirst() line: not available
请问这个是怎么回事我做的SSH登陆 尤其注意到了STRUTS里包的版本不行所以下的都是比较新的 为什么还是有错误 所以我觉的不太可能还是包的问题啊
mobile authentication
For java developers who want to use cryptography in their applications or to understand how cryptography is being used in Java applications, this book enables ...
authentication问题
我想问下大家, 访问一个网页, 然后会弹出一个窗口提示username和password。 我们输入username和password后, 这两样资料是和哪里比较? 我做了些GOOGLE, 据说是和web.config里面的对比?请问这个文件是存放在服务器什么文件夹里? 我们公司有一个内部用的网站, 准备换一台新的服务器, web server从IIS6换成IIS7. 现在问题是在旧的server里能运行的网站, 到新的server里不能用。 网站代码都没变, 我猜主要问题就是<em>authentication</em>的设定不一样。 在新服务器里估计要把web.config文件复制过来? 有高手能指点下吗。。。rnrn多谢!
SASL LOGIN authentication failed: authentication failure
通过telnet localhsot 25rn登陆出现错误rnrn用saslauthd -vrn显示rn<em>authentication</em> mechanisms: getpwent kerberos5 pam shadowrnrn试了源码编译cyrus-sasl-2.1.23.tar.gz rn也没成。。。
authentication 身份验证
rn以前都是只对一个文件夹 进行过考虑 , 现在复杂了些 有几个不同的目录都要进行不同的判断, 不知道该怎么做了rn 如果都 FormsAuthentication.SetAuthCookie(name, false);这样用 相互之间会不会有问题??rnrn 大家给点资料
JSP解析JSONObject类型对象出现null object异常解决方案
jsp解析json<em>object</em>对象null <em>object</em><em>异常</em>几种解决方案
c#异常:Object reference not set to an instance of an object问题,谢谢
这是代码:rnprivate void btnView_Click(<em>object</em> sender, EventArgs e)rn rn // MessageBox.Show("lulu");rn tryrn rn String strText=null;rn for (int i = 0; i < dataGridView1.Rows.Count; i++)rn rn if (dataGridView1.Rows[i] == null)rn rn rn else if (dataGridView1.Rows[i].Cells[2].Value.ToString() == "-None-")rn continue;rn else rn rn strText = dataGridView1.Rows[i].Cells[0].Value.ToString();rn strText += " ";rn strText += dataGridView1.Rows[i].Cells[2].Value.ToString();rn //this.textBoxView.Text = strText;rn rn //i++;rn rn //MessageBox.Show(strText);rn rn catch(Exception Ex)rn rn MessageBox.Show(Ex.Message);rn rn rn不明白为什么老报Object reference not set to an instance of an <em>object</em>这个错误,修正一下还是这样,请高手指点。谢谢
Hibernate的getHibernateTemplate().delete(Object object)出现类型转换异常
对象代码:rnrnpublic class BankRemitInfo extends AbstractBankremitinfo implements java.io.Serializable rnrn // Constructorsrnrn /** default constructor */rn public BankRemitInfo() rn rnrn /** minimal constructor */rn public BankRemitInfo(String datatype, long datatorder) rn super(datatype, datatorder);rn rnrn /** full constructor */rn public BankRemitInfo(String datatype, String name1, double bnby1, double bnlj1, String name2, double bnby2, double bnlj2, long datatorder) rn super(datatype, name1, bnby1, bnlj1, name2, bnby2, bnlj2, datatorder);rn rn public String toString() rn return new ToStringBuilder(this)rn .append("id", getId())rn .toString();rn rnrn public boolean equals(Object other) rn if ( !(other instanceof BankRemitInfo) ) return false;rn BankRemitInfo castOther = (BankRemitInfo) other;rn return new EqualsBuilder()rn .append(this.getId(), castOther.getId())rn .isEquals();rn rnrn public int hashCode() rn return new HashCodeBuilder()rn .append(getId())rn .toHashCode();rn rnrnrnrnrn调用rn BankRemitInfo aaa=(BankRemitInfo)resultList.get(i);rn getHibernateTemplate().delete(<em>object</em>);rn 出现以下<em>异常</em>rnjava.lang.ClassCastException: cn.com.opendata.hyxxk.model.impl.BankRemitInforn at org.hibernate.type.StringType.toString(StringType.java:44)rn at org.hibernate.type.NullableType.toLoggableString(NullableType.java:16rn9)rn at org.hibernate.pretty.MessageHelper.infoString(MessageHelper.java:68)rn at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLrnoadEventListener.java:153)rn at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEvrnentListener.java:87)rn at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)rn at org.hibernate.impl.SessionImpl.get(SessionImpl.java:828)rn at org.hibernate.impl.SessionImpl.get(SessionImpl.java:821)rn at org.springframework.orm.hibernate3.HibernateTemplate$1.doInHibernate(rnHibernateTemplate.java:452)rn at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernatrneTemplate.java:366)rn at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemrnplate.java:446)rn at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemrnplate.java:440)rn at cn.com.opendata.platform.common.dao.AbstractDao.get(AbstractDao.java:rn112)rn at cn.com.opendata.platform.common.dao.AbstractDao.remove(AbstractDao.jarnva:79)rn at cn.com.opendata.hyxxk.dao.impl.BankRemitInfoDAOImpl.removeBankRemitInrnfo(BankRemitInfoDAOImpl.java:35)rn at cn.com.opendata.hyxxk.service.BankRemitInfoService.removeBankRemitInfrno(BankRemitInfoService.java:29)rn at cn.com.opendata.hyxxk.service.BankRemitInfoService$$FastClassByCGLIB$rn$baaf4335.invoke()rn at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)rn at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocatiornn.invokeJoinpoint(Cglib2AopProxy.java:705)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(rnReflectiveMethodInvocation.java:148)rn at org.springframework.transaction.interceptor.TransactionInterceptor.inrnvoke(TransactionInterceptor.java:100)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(rnReflectiveMethodInvocation.java:170)rn at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedIntercrneptor.intercept(Cglib2AopProxy.java:643)rn at cn.com.opendata.hyxxk.service.BankRemitInfoService$$EnhancerByCGLIB$$rnce253514.removeBankRemitInfo()rn at cn.com.opendata.hyxxk.struts.action.DataDeleteDoAction.doExecute(DatarnDeleteDoAction.java:65)rn at cn.com.opendata.hyxxk.struts.BaseAction.execute(BaseAction.java:55)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequesrntProcessor.java:431)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.jarnva:236)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119rn6)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplrnicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFrnilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVrnalve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVrnalve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jrnava:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jrnava:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValrnve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.javrna:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.javarn:869)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.prnrocessConnection(Http11BaseProtocol.java:667)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpornint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFolrnlowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPrnool.java:684)rn at java.lang.Thread.run(Unknown Source)rnrn但是,我用同样的rnHibernate的getHibernateTemplate().delete(Object <em>object</em>)方法,就可以正确存储这个对象,但删除的时候不行,只能先把对象中的id属性取出来,根据id来删除
Authentication failed
535 #5.7.0 Authentication failedrnException in thread "main" javax.mail.AuthenticationFailedException: 535 #5.7.0 Authentication failedrnrn at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:648)rn at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:583)rn at javax.mail.Service.connect(Service.java:291)rn at com.javaMail.test.Demo1.main(Demo1.java:32)rn
Authentication的问题
目录结构是这样的:rn-My Applicationrn|---Adminrn| |---Admin_Index.aspxrn| |---Admin_Left.aspxrn| |---Admin_Right.aspxrn|---Other Directoriesrn|---Index.aspxrn|---Default.aspxrn|---web.configrn根目录下的web.config的Authentication 和 Authorization是这样的:rnrnrnrnrnrnrn这样就使得Admin/Admin_Index.aspx也访问不了rn我想要的是能访问Admin/Admin_Index.aspx, 但是当直接访问Admin下的其他文件时, 先要对用户进行认证, 但访问根目录下的其他页面时, 还是和现在同样的效果(就是直接访问其他网页,先转到Index.aspx对用户验证),应该怎么作? 修改web.config? 还是在Admin下也写一个web.config 还是其他方法? 请高手指点! 不胜感激!
关于authentication
rn 这里的rn Auth有什么用?rn
Webserver with Authentication
Arduino Webserver with Authentication Sketch
再谈异常——谈C++与Object Pascal中的构造函数与异常
再谈<em>异常</em>——谈C++与Object Pascal中的构造函数与<em>异常</em>rnrn作者:Nicrosoft(nicrosoft@sunistudio.com) 2001.9.15rn个人主页:http://www.sunistudio.com/nicrosoft/rn东日文档:http://www.sunistudio.com/asp/sunidoc.asprnrn  我们知道,类的构造函数是没有返回值的,如果构造函数构造对象失败,不可能依靠返回错误代码。那么,在程序中如何标识构造函数的失败呢?最“标准”的方法就是:抛出一个<em>异常</em>。rnrn  构造函数失败,意味着对象的构造失败,那么抛出<em>异常</em>之后,这个“半死不活”的对象会被如何处理呢?这就是本文的主题。rnrn  在C++中,构造函数抛出<em>异常</em>后,析构函数不会被调用。这是合理的,因为此时对象并没有被完整构造。也就是说,如果构造函数已经做了一些诸如分配内存、打开文件等操作的话,那么类需要有自己的成员来记住做过哪些动作。在C++中,经典的解决方案是使用STL的标准类auto_ptr,这在每一本经典C++著作中都有介绍,我在这里就不多说了。在这里,我想再介绍一种“非常规”的方式,其思想就是避免在构造函数中抛出<em>异常</em>。我们可以在类中增加一个 Init(); 以及 UnInit();成员函数用于进行容易产生错误的资源分配工作,而真正的构造函数中先将所有成员置为NULL,然后调用 Init(); 并判断其返回值(或者捕捉 Init()抛出的<em>异常</em>),如果Init();失败了,则在构造函数中调用 UnInit(); 并设置一个标志位表明构造失败。UnInit()中按照成员是否为NULL进行资源的释放工作。示例代码如下:rnclass Arnrnprivate:rn char* str;rn int failed;rnrnpublic:rn A();rn ~A();rn int Init();rn int UnInit();rn int Failed();rn;rnrnA::A()rnrn str = NULL;rn tryrn rn Init();rn failed = 0;rn rn catch(...)rn rn failed = 1;rn UnInit();rn rnrnrnA::~A()rnrn UnInit();rnrnrnint A::Init()rnrn str = new char[10];rn strcpy(str, "ABCDEFGHI");rn throw 10;rnrn return 1;rnrnrnint A::UnInit()rnrn if (!str)rn rn delete []str;rn str = NULL;rn rnrn printf("Free Resource\n");rn return 1;rnrnrnint A::Failed()rnrn return failed;rnrnrnint main(int argc, char* argv[])rnrn A* a = new A;rn if ( a->Failed() )rn printf("failed\n");rn elsern printf("succeeded\n");rnrn delete a;rnrn getchar();rn return 0;rnrnrn  你会发现,在int A::Init()中包含了throw 10;的代码(产生一个<em>异常</em>,模拟错误的发生),执行结果是:rn  Free Resourcern  failedrn  Free Resourcern  虽然 UnInit();被调用了两次,但是由于UnInit();中做了判断(if (!str)),因此不会发生错误。而如果没有发生<em>异常</em>(去掉 int A::Init()中的throw 10;代码),执行结果是:rn  Succeededrn  Free Resourcern  和正常的流程没有任何区别。rnrn  在Object Pascal(Delphi/VCL)中,这个问题就变得非常的简单了,因为 OP 对构造函数的<em>异常</em>的处理与C++不同,在Create时抛出<em>异常</em>后,编译器会自动调用析构函数Destroy,并且会判断哪些资源被分配了,实行自动回收。因此,其代码也变得非常简洁,如下:rntypern A = classrn privatern  str : PChar;rn publicrn  constructor Create();rn  destructor Destroy(); override;rn end;rnrnconstructor A.Create();rnbeginrn  str := StrAlloc(10);rn  StrCopy(str, 'ABCDEFGHI');rn  raise Exception.Create('error');rnend;rnrndestructor A.Destroy();rnbeginrn  StrDispose(str);rn  WriteLn('Free Resource');rnend;rnrnvar oa : A;rn  i : integer;rnbeginrn  tryrn   oa := A.Create();rn   WriteLn('Succeeded');rn   oa.Free();rn  exceptrn   oa := nil;rn   WriteLn('Failed');rn  end;rnrn  Read(i);rnend.rnrn  在这段代码中,如果构造函数抛出<em>异常</em>(即Create中含有raise Exception.Create('error');),执行的结果是:rn  Free Resourcern  Failedrn  此时的“Free Resource”输出是由编译器自动调用析构函数所产生的。而如果构造函数正常返回(即不抛出<em>异常</em>),则执行结果是:rn  Succeededrn  Free Resourcern  此时的“Free Resource”输出是由 oa.Free()的调用产生的。rnrn  综上,C++与Object Pascal对于构造函数抛出<em>异常</em>后的不同处理方式,其实正是两种语言的设计思想的体现。C++秉承C的风格,注重效率,一切交给程序员来掌握,编译器不作多余动作。Object Pascal继承Pascal的风格,注重程序的美学意义(不可否认,Pascal代码是全世界最优美的代码),编译器帮助程序员完成复杂的工作。两种语言都有存在的理由,都有存在的必要!而掌握它们之间的差别,能让你更好地控制它们,达到自由的理想王国。
System.NullReferenceException: Object reference not set to an instance of an object.异常
我的程序在本机运行正常,但发布到服务器时,提交信息的时候有时会提示下面的错误: rnServer Error in '/' Application.rn--------------------------------------------------------------------------------rnrnObject reference not set to an instance of an <em>object</em>. rnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.NullReferenceException: Object reference not set to an instance of an <em>object</em>.rnrnSource Error: rnrnAn unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. rnrnStack Trace: rnrnrn[NullReferenceException: Object reference not set to an instance of an <em>object</em>.]rn UserControl_friend.bntSubmit_Click(Object sender, ImageClickEventArgs e) +2036rn System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +105rn System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115rn System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7rn System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11rn System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102rnrn 调试也没有发现任何的<em>异常</em>,,而且在本地用iis也都正常,,,但是在服务器上面提交信息的时候,第一次可以正常,再提交(当然信息也是另外输入的)的时候就出现<em>异常</em>了rnrn各位大虾帮帮忙啊。。。小女子先谢谢了。。。rn
【Java基础】变长参数、Object[]类别、System.out.println异常
变长参数、Object[]类别和System.out.println<em>异常</em>
异常:COM Object with CLSID00024500-0000-C000-000000000046 is either not valid or not registered
我的程序里在办公室的机上运行都可以,到了公司的服务器上就出现了上面的<em>异常</em>.我想是因为我在程序里调用了COM组件EXCEL 9.0,而我们自己机上office的都是盗版的,公司服务器上的却是正版的,是不是这样的原因啊??????????
and was not found
可能是我把注册表的的什么东西删掉了!或者是把某个服务删掉了,rn现在运行某些程序的话,就弹出程序的路径后面就加一句and was not <em>found</em> ,应该说是路径找不到了!
怎么我键入控制器名/action 出现 object not found
控制器名和action均正确但是访问不到rndocumentroot 为:c:/xampp/项目名/rn
Authentication Users Privacy
Authentication Users Privacy An Integrating Location Privacy Protection Algorithm for Secure Moving Objects in Location Based Services。本文引入了一种新的查询隐私算法,称为认证速度动态传输模式隐藏算法,用于连续查询LBS。它考虑用户在速度,方向和旅行中的相似性,使用相同的传输模式进行匿名化。
mysql.h C语言编程API, pdf版下载
最全的mysql.h的API文档以及编程使用说明,适用Linux C/C++ 相关下载链接:[url=//download.csdn.net/download/wangjingfei/2129954?utm_source=bbsseo]//download.csdn.net/download/wangjingfei/2129954?utm_source=bbsseo[/url]
梦想之家个人网页毕业设计下载
当今数字化信息时代什么是最显著的标志?那一定是互联网。近些年来,随着计算机的快速发展与更新,如今的信息时代在不断的升级互联网成了人们生活中不可缺少的一部分,人们现在获取资料完全从网站上查询,因为网站有更新速度快,资料新颖,查找方便等特点。因此拥有自己的网站是每一个学生的愿望,拥有了自己的网站以后就可以更好的推荐自己,可以更好的让更多人来了解自己,从而结交爱好相同的同路人,使自己的事业和生活随之更上一层楼。 相关下载链接:[url=//download.csdn.net/download/people91631/2171538?utm_source=bbsseo]//download.csdn.net/download/people91631/2171538?utm_source=bbsseo[/url]
12864独立按键控制下载
12864独立按键控制 相关下载链接:[url=//download.csdn.net/download/u010968899/5526081?utm_source=bbsseo]//download.csdn.net/download/u010968899/5526081?utm_source=bbsseo[/url]
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数
我们是很有底线的