Hessian异常求解

根据博文配置
http://web.iteye.com/blog/513238

Hello world
{work=任务}
[a, {Name=刘德华, Add=上海}, {work=任务}]
2012-4-4 16:49:24 com.caucho.hessian.io.SerializerFactory getDeserializer
警告: Hessian/Burlap: 'com.a.e.User' is an unknown class in sun.misc.Launcher$AppClassLoader@1372a1a:
java.lang.ClassNotFoundException: com.a.e.User

不知道为什么会报警告????

Hessian版本是 4.0.7

0

1个回答

[quote]java.lang.ClassNotFoundException: com.a.e.User [/quote]

测试的时候 两个项目与hessian相关的类,包位置保持一致就OK~

0
fangzhangsc2006
shannonchou 我也遇到了,包一致就解决了!
接近 7 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
hessian 序列化 异常
      最近忙于业务迭代开发,没有太多时间思考。这两天,开发的时候遇到了一个hessian 序列化异常,拿出来记录一下分析的过程及解决方法。              先上异常,        2016-06-01 10:59:37 New I/O server worker #1-1 WARN [com.alibaba.dubbo.rpc.protocol.dubbo.Deco...
hessian 远程访问异常
异常在对公司项目重写的时候,hessian报了各种异常. 通过排错,最终修好. 现在解决方案记录于此.第一:检查hessian配置是否正确; 第二:检查hessian的版本依赖,服务端与客户端是否一致; 第三:所暴露的bean是否序列化; 第四:删除一些无用的依赖,尤其是不了解的一些依赖.减少莫名的冲突;清理项目,打包发布,基本都会好的;
hessian异常总结
版本不兼容 com.caucho.hessian.io.HessianProtocolException: expected hessian reply at 0x48 不支持重载 com.caucho.hessian.io.HessianProtocolException: expected string at 0x6d
hessian与Spring整合 莫名奇妙的异常
spring和hessian整合异常问题 以前也做过这个整合 这次做个新项目换了spring版本和hessian版本,开始出现如下两个奇妙的错误。配置没有任何变化。 com.caucho.hessian.io.HessianProtocolException com.caucho.hessian.client.HessianConnectionException:   后面看了下sp...
hessian 使用过程碰到的异常
今天在使用hessian时碰到了如下的问题: [code="java"] org.springframework.remoting.RemoteAccessException: Cannot access Hessian remote service at [ http://localhost:8080/logcenter/remoting/hessianQueryLog ]...
异常求解?
[size=24px]Struts Problem ReportrnrnStruts has detected an unhandled exception:rnMessages: rnrn1 a different object with the same identifier value was already associated with the session: [cn.com.su.domain.Supplier#s001]rn2 a different object with the same identifier value was already associated with the session: [cn.com.su.domain.Supplier#s001]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [cn.com.su.domain.Supplier#s001]rnrnFile: org/hibernate/engine/StatefulPersistenceContext.javarnLine number: 637rnStacktracesrnorg.springframework.orm.hibernate3.HibernateSystemException: a different object with the same identifier value was already associated with the session: [cn.com.su.domain.Supplier#s001]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [cn.com.su.domain.Supplier#s001]rnrn org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:661)rn org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)rn org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)rn org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)rn org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:690)rn cn.com.su.daoimpl.MaterialDaoImpl.addMaterial(MaterialDaoImpl.java:23)rn cn.com.su.serviceimpl.MaterialServiceImpl.addMaterial(MaterialServiceImpl.java:20)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)rn org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn $Proxy10.addMaterial(Unknown Source)rn cn.com.su.action.MaterialAction.addMaterial(MaterialAction.java:55)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)rn[/size] rnrnrnrn[code=java]rn//添加材料rn public String addMaterial()rn rn Supplier s = (Supplier) ActionContext.getContext().getSession().get("supplier");rn Material material = new Material();rn BeanUtils.copyProperties(getModel(), material);rn Type type = typeService.searchTypeById(getModel().getMaterial_type().getId());rn material.setMaterial_type(type);rn Supplier supplier = supplierService.searchSupplierById(s.getSupplier_id());rn material.setMaterial_supplier(supplier);rn materialService.addMaterial(material);rn success = true;rn return "success";rn rn[/code]rn我知道是不同的对象有相同的标识符导致的错误,但是我不明白为什么会这样,以及解决办法。
Hessian学习笔记之Hessian实例
1.简介      Hessian是一个轻量级的remoting on http工具,通过简单的方法提供了RMI的功能。 与WebService相比较而言,Hessian更简单、快捷。      Hessian采用的是二进制的RPC协议,正是因为它采用的是二进制协议,所以它很适合于发送二进制数据。   2.实例讲解    服务端:               a.下载hessian...
hessian
NULL 博文链接:https://laodaobazi.iteye.com/blog/1916179
Hessian
NULL 博文链接:https://paopaochao3.iteye.com/blog/550771
Hessian异常,报302不知是何原因
log4j:WARN Please initialize the log4j system properly.rnorg.springframework.remoting.RemoteConnectFailureException: Cannot connect to Hessian remote service at [http://192.168.1.111:8080/test/remote/TestService]; nested exception is com.caucho.hessian.client.HessianConnectionException: 302: rn at org.springframework.remoting.caucho.HessianClientInterceptor.convertHessianAccessException(HessianClientInterceptor.java:262)rn at org.springframework.remoting.caucho.HessianClientInterceptor.invoke(HessianClientInterceptor.java:231)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)rn at $Proxy1.hello(Unknown Source)rnCaused by: com.caucho.hessian.client.HessianConnectionException: 302: rn at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:205)rn at $Proxy0.hello(Unknown Source)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 org.springframework.remoting.caucho.HessianClientInterceptor.invoke(HessianClientInterceptor.java:222)rn ... 4 morern
Hessian(2)Hessian连接超时处理
Hessian作为一个远程连接工具,必然存在连接超时等问题,如果不对连接超时等参数进行相关的设置,当网络出现问题后就会造成整个hessian处理的阻塞,进而阻塞整个线程后续的处理。 目前,Hessian客户端远程调用webService主要采用了以下工具类: (1)hessian的HessianProxyFactory(com.caucho.hessian.client.HessianProx
hessian(2)-hessian 远程调用接口类
package com.java.hessian.invoke; import java.util.Map; /** * 功能描述: 远程调用类 支持Map类型传输 */ public interface MapRemoteInvoke { /** * * 功能描述: <br> * 〈功能详细描述〉远程的方法调用 */ ...
异常求解啊。
[code=XML] rnrn rn rn 微软rn Windowsrn Vistarn 1rn 3720rn rn rn 甲骨文rn Oraclern 10Grn 25rn 358680rn rn rn 赛门铁克rn Norton Antivirusrn 10.0rn 50rn 29600rn rn rn 瑞星rn Risingrn 2006rn 50rn 19400rn rnrnrn[/code]rn我在验证文件的时候,老是警告:不能在该文档实例中定位一个支持schema类型(DTD,W3C Schema)的引用rn求解啊。
java 异常代码求解
/不能正常抛异常抛异常,编译。运行都没事,找不出问题很痛苦,求助大神rnrnpublic class ThrowTest rnrn public static void main(String[] args) rn rn tryrn rn throwChecked(-3);rn rn catch (Exception e)rn rn System.out.println(e.getMessage());rn rn throwRuntime(-3);rn System.out.println();rn rn public static void throwChecked(int a)throws Exception rn rn if(a>0)rn rn throw new Exception("a的值大于0.不符合要求");rn rn rn public static void throwRuntime(int a)rn rn if(a>0)rn rn throw new RuntimeException("a的值大于0.不符合要求");rn rnrnrn
求解异常链
求解java中的异常链是什么,它的好处是什么,在什么情况下要用到,举个例子
hibernate的一个异常求解
service代码:rn @Transactional rn public void add(Theme transientTheme) throws ThemeExistingException rn System.out.println(themeDao.findByProperty("themeName", transientTheme.getThemeName()).size());rn if(themeDao.findByProperty("themeName", transientTheme.getThemeName()).size() != 0) rn throw new ThemeExistingException("主题名" + transientTheme.getThemeName() + "已存在");rn else rn themeDao.save(transientTheme);rn rn rnrndao代码:rn public void save(Theme transientInstance) rn log.debug("saving Theme instance");rn try rn getHibernateTemplate().save(transientInstance);rn log.debug("save successful");rn catch (RuntimeException re) rn log.error("save failed", re);rn throw re;rn rn rnrnrn我调用service的时候,dao里的代码已经执行,并且成功添加了数据,但确报了一个空指针异常,rnjava.lang.NullPointerExceptionrn at org.apache.struts2.components.template.TemplateEngineManager.getTemplateEngine(TemplateEngineManager.java:102)rn at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:555)rn at org.apache.struts2.components.UIBean.end(UIBean.java:519)rn at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)rn at org.apache.jsp.jsp.message.message_jsp._jspx_meth_s_005fdebug_005f0(message_jsp.java:122)rn at org.apache.jsp.jsp.message.message_jsp._jspService(message_jsp.java:91)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:88)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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)rn at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:367)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:271)rn at com.sc.web.intercptor.TitleIntercptor.intercept(TitleIntercptor.java:27)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.sc.web.intercptor.TimeIntercptor.intercept(TimeIntercptor.java:24)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.sc.web.intercptor.AutoLoginIntercptor.intercept(AutoLoginIntercptor.java:65)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)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:242)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:242)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)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:242)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:544)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.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)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.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)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:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rnrn
ssh启动时异常!!!!求解
[i]严重: action: nullrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sess' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)VrnCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:355)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:296)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1160)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:980)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2008-9-27 12:29:24 org.apache.catalina.core.ApplicationContext logrn信息: Marking servlet action as unavailablern2008-9-27 12:29:24 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /ssh1 threw load() exceptionrnjavax.servlet.UnavailableExceptionrn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn
求解!!MyEclipse抛出的异常!!
description The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: An exception occurred processing JSP page /denglu.jsp at line 25rnrn22: username=request.getParameter("username");rn23: pwd=request.getParameter("pwd");rn24: Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");rn25: Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=liuyanban","sa","123qwe");rn26: Statement stmt=conn.createStatement();rn27: rn28: ResultSet rs=stmt.executeQuery("select * from zhucebiao where username=\'"+username+"\' and password=\'"+pwd+"\'");rnrnrn求解这些异常!!!多谢
hibernate异常 求解
Exception in thread "C3P0PooledConnectionPoolManager-AdminTaskTimer" java.lang.NullPointerExceptionrn at com.mchange.v2.log.log4j.Log4jMLog$Log4jMLogger.isLoggable(Log4jMLog.java:281)rn at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:2072)rn at java.util.TimerThread.mainLoop(Timer.java:512)rn at java.util.TimerThread.run(Timer.java:462)rn
运行异常 求解
#includern#includern#includern#includern#includernusing namespace std;rnrnstruct Timernrn float time;//读取时间rn float lasttime;//持续时间rn;rnrnstruct Lrcrnrn Time T;rn string lrc_text;rn struct Lrc *next;rn;rnrnfloat Gettime(string s)//获取播放时间rnrn //char *str1,*str2;rn string str3,str4;rnrn int flag1=s.find_first_of('[');rn int flag2=s.find_first_of(']');rn int flag3=s.find_first_of(':');rn str3=s.substr(flag1+1,flag3-flag1-1);rn str4=s.substr(flag3+1,flag2-flag3-1);rnrn //strcpy(str1,str3.c_str());rn //strcpy(str2,str4.c_str());rn rn float t1=atof(str3.c_str())*60000;rn float t2=atof(str4.c_str())*1000;rn return t1+t2;rnrnrnrnstruct Lrc *Creatlrc()//创建歌词链表rnrn Lrc *p=new Lrc;rn Lrc *head=new Lrc;rn int flag=0;rn string str;//获得歌词字符串rn ifstream infile("Linkin Park - in the end.lrc",ios_base::binary);rn int i=0;rn while(getline(infile,str,'\n'))rn rn //cout<T.time=Gettime(s1); //获取播放时间rn p->lrc_text=" ";rn rnrn else//[]后面有歌词 rn rn p->T.time=Gettime(str.substr(index1,index3-index1+1)); rn p->lrc_text=str.substr(index3+1); //获取歌词rn rn // cout<<"ssss";rn rnrn else//有多个[] rn //cout<<"[ti:In the End]";rn string s1,s2,s3; rn if(index2==(len-1)) //后面无歌词rn rn s1=str.substr(index1,index3-index1+1); rn s2=str.substr(index3+1,index2-index3); rn p->T.time=Gettime(s1);rn p->lrc_text="";rn //cout<<"[ti:In the End]";rn p=p->next;rn p->T.time=Gettime(s2);rn cout<<"[ti:In the End]";rn p->lrc_text="";rn rn rn rn elsern rn s3=str.substr(index2+1);rn s1=str.substr(index1,index3-index1+1); rn p->T.time=Gettime(s1);rn p->lrc_text=s3;rn s2=str.substr(index3+1,index2-index3);rn p->next->T.time=Gettime(s2);rn p->next->lrc_text=s3;rn rn rn rnrn if(flag=0)rn rn head=p;flag=1;rn rn p=p->next;rn if(!infile.eof())rn rn p=NULL;rn break;rn rn rn infile.close();rn delete p;rn return head;rnrnrnrnvoid sort(Lrc *head)//排序,计算每段持续时间rnrn Lrc *p=new Lrc;rn Lrc *p1=new Lrc;rn Lrc *p2=new Lrc;rn Lrc *p3=new Lrc;rn //p1=head;rn for(p=head;p!=NULL;p=p->next)rn rn p2=p;//记录最小值节点rn for(p1=p;p1!=NULL;p1=p1->next)rn if(p2->T.time>p1->T.time) p2=p1;rn//交换数据rn p3=p;rn p->T.time=p2->T.time;rn p->lrc_text=p2->lrc_text;rn p2->T.time=p3->T.time;rn p2->lrc_text=p3->lrc_text;rn rnrn //回带rn p=head;rn while(p!=NULL)rn rn if(p->next==NULL)p->T.lasttime=2000;break;rn p->T.lasttime=p->next->T.time-p->T.time;rn p=p->next;rn rn delete p;rn delete p1;rn delete p2;rn delete p3;rnrnrnvoid print(struct Lrc *head)rnrn Lrc *p=new Lrc;rn p=head;rn while(p!=NULL)rn rn cout<lrc_text<next;rn rn delete p;rnrnrnvoid main()rnrnrnrn Lrc *head=new Lrc; rn head=Creatlrc();rn //sort(head);rn print(head);rnrnrnrnrn主要是将歌词提取出来 用到了链表 写得时候就预感会出现n多错误 经过调试编译 链接没问题 运行老是出现问题 搞了一下午 还是不得要领 求大神 指点一二。rn歌词如下(把前边歌词标签之类省了)rn[00:01.04]Linkin Park - In the Endrn[00:06.04]Album:Hybrid Theoryrn[00:11.04]Lrc by 賴潤誠 oicq:85860288 ★rn[00:16.04]rn[00:20.04]It starts with one thing rn[00:22.58]I don't know why rn[00:23.80]It doesn't even matter how hard you try keep that in mind rn[00:27.02]I designed this rhyme rn[00:28.10]To explain in due time rn[00:29.38]All I know rn[00:31.01]Time is a valuable thing rn[00:32.88]Watch it fly by as the pendulum swings rn[00:35.15]Watch it count down to the end of the day rn[00:37.22]The clock ticks life away rn[00:38.78]It's so unreal rn[00:40.31]Didn't look out below rn[00:41.95]Watch the time go right out the window rn[00:44.42]Trying to hold on, but didn't even know rn[00:46.59]Wasted it all just to watch you go rn[00:49.39]I kept everything inside and even though I tried, it all fell apart rn[00:53.43]What it meant to me will eventually be a memory of a time when rn[00:56.35]rn[00:56.89]I tried so hard rn[00:58.94]And got so far rn[01:01.79]But in the end rn[01:03.56]It doesn't even matter rn[01:05.82]I had to fall rn[01:08.06]To lose it all rn[01:10.92]But in the end rn[01:12.74]It doesn't even matter rn[01:14.94]rn[01:16.32]One thing, I don't know why rn[01:18.58]It doesn?t even matter how hard you try, keep that in mind rn[01:21.80]I designed this rhyme, to explain in due time rn[01:24.22]I tried so hard rn[01:26.01]In spite of the way you were mocking me rn[01:28.08]Acting like I was part of your property rn[01:30.16]Remembering all the times you fought with me rn[01:32.35]I'm surprised it got so (far) rn[01:34.85]Things aren't the way they were before rn[01:36.91]You wouldn't even recognize me anymore rn[01:39.19]Not that you knew me back then rn[01:41.57]But it all comes back to me (in the end) rn[01:43.74]You kept everything inside and even though I tried, it all fell apart rn[01:48.21]What it meant to me will eventually be a memory of a time when I rn[01:51.26]rn[02:48.48][01:51.75]I tried so hard rn[02:50.74][01:53.72]And got so far rn[02:53.57][01:56.56]But in the end rn[02:55.32][01:58.37]It doesn't even matter rn[02:57.55][02:00.56]I had to fall rn[02:59.83][02:02.91]To lose it all rn[03:02.66][02:05.68]But in the end rn[03:04.43][02:07.37]It doesn't even matter rn[02:10.86]rn[02:30.23][02:12.07]I put my trust in you rn[02:34.96][02:16.59]Pushed as far as I can go rn[02:39.55][02:21.35]And for all this rn[02:41.82][02:23.54]There's only one thing you should know rn[03:09.82][02:47.63][02:29.39]rn[03:12.82]Lrc by 賴潤誠 oicq:85860288 ★rn
子程序返回异常, 求解
为什么我的子程序在用RET返回的时候rn程序重新运行了?rnrnmain proc farrncall initrnrnlop: call xxxxrnjmp loprnmain endprnrnlop proc near rnretrnlop endprnrn就这部分出问题了, lop返回之后, 他从新运行了initrn程序是small
运行异常,求解。
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>rn<%@ page import="com.zhao.*" %>rnrn<%rntryrnString sql;rnsql = "SELECT count(*) as num FROM XO";rnResultSet rs = DbBean.executeQuery(sql);rn%>rnrnrnrn rn Untitled Documentrnrnrnrnrn rn rn rn rn 表的增删改rn rn rn rn rn 姓名 rn 工资 rn 部门 rn 操作 rn rn<% rn int pagesize=8; rn int pagecount=0; rn int count=0; rn int currentpage=0; rn if (rs.next()) rn count = rs.getInt("num"); rn float f = (float) count / (float) pagesize; rn int pages = (int) (count / pagesize); rn if (f > pages) pages++; rn pagecount = pages ; rn rn if(request.getParameter("page")!=null)//假如接收的页面数不为空 rn currentpage = java.lang.Integer.parseInt(request.getParameter("page"));//就把接收的页面数pagg赋值给gopage rn else//否则 rn currentpage=1;//gopage为1,即显示第一页 rn rn rn //分页查询 rnrn sql = "select * from XO where id between 1 and 160"; rn // System.out.println(sql); rn rs = DbBean.executeQuery(sql); rn while(rs.next()) rn String id=rs.getString("id"); rn String xm2=rs.getString("xm"); rn String gz=rs.getString("gz");rn String bm=rs.getString("bm"); rn %> rn rn <%=xm2 %> rn <%=gz %> rn <%=bm %> rn 修改 rn 删除 rn rn <% rn rs.close(); rn %> rn rn 新增 rn rn rn rn rnrn rnrn rn DbBean.executeQuery(sql) rn rn rn rn rn <%catch(Exception e)rn out.print("");rn rn %>rn rnrnrn rnrnrnrnrn运行结果:rnaq.executeQuery: The url cannot be nullrn
C# 新人 异常求解
[img=https://img-bbs.csdn.net/upload/201512/20/1450604121_722428.png][/img]rn文件管理器,异常求解
异常分析,listenerstart异常 求解。
十一月 28, 2017 10:22:16 下午 org.apache.catalina.core.StandardContext listenerStartrnSEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext-db.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen spacern at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:546)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4323)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4771)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:785)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:763)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:558)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1124)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1047)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:542)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1390)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:355)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)rn at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:312)rn at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:292)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:998)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:990)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:275)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:424)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:648)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:576)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:601)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)rnCaused by: java.lang.OutOfMemoryError: PermGen spacernrnrnrnrnrn十一月 28, 2017 10:22:17 下午 org.apache.catalina.core.StandardContext listenerStartrnSEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListenerrnjava.lang.OutOfMemoryError: PermGen spacern at java.lang.ClassLoader.findBootstrapClass(Native Method)rn at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1061)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:412)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:410)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:356)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1579)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)rn at com.sun.faces.config.WebConfiguration.(WebConfiguration.java:63)rn at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:152)rn at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:279)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4323)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4771)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:785)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:763)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:558)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1124)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1047)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:542)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1390)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:355)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)rn at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:312)rn at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:292)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:998)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:990)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:275)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rnrnrnSSH出现以下异常。用了maven,pom没错。包没错。
c3p0异常求解
[code="java"]rnrncom.mchange.v2.async.ThreadPoolAsynchronousRunner - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@16597barnAPPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!rncom.mchange.v2.async.ThreadPoolAsynchronousRunner -163073277 [Timer-0] WARN com.mchange.v2.async.ThreadPoolAsynchronousRunner rncom.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@16597barnAPPARENT DEADLOCK!!! Complete Status: [num_managed_threads: 10, num_active: 10; rnactiveTasks: com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@a1f903 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4), rncom.mchange.v2.c3p0.stmt.GooGooStatementCache$1@1e35936 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#8), rncom.mchange.v2.c3p0.stmt.GooGooStatementCache$1@f5e931 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#7), rncom.mchange.v2.c3p0.stmt.GooGooStatementCache$1@a0cbf4 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1), rncom.mchange.v2.c3p0.stmt.GooGooStatementCache$1@ae1f44 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0),rncom.mchange.v2.c3p0.stmt.GooGooStatementCache$1@186daf2 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#6),rncom.mchange.v2.c3p0.stmt.GooGooStatementCache$1@906a8d (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2),rncom.mchange.v2.c3p0.stmt.GooGooStatementCache$1@1438396 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#3),rncom.mchange.v2.c3p0.stmt.GooGooStatementCache$1@173f6bb (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#9), rncom.mchange.v2.c3p0.stmt.GooGooStatementCache$1@4b8a67 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5); rnpendingTasks: com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@16b9960, com.mchange.v2.resourcepool.BasicResourcePool$6@1227588,rncom.mchange.v2.resourcepool.BasicResourcePool$6@152658a, com.mchange.v2.resourcepool.BasicResourcePool$6@885610, rncom.mchange.v2.resourcepool.BasicResourcePool$6@ca3add, com.mchange.v2.resourcepool.BasicResourcePool$6@dea987,rncom.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@4beff3, com.mchange.v2.resourcepool.BasicResourcePool$6@1765f99, rncom.mchange.v2.resourcepool.BasicResourcePool$6@7e7001]rn[/code]rn[code="java"]rnWARN com.mchange.v2.async.ThreadPoolAsynchronousRunner - Task com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@f5e931 (in deadlocked PoolThread) failed to complete in maximum time 60000ms. Trying interrupt().rn[/code]rn中午重启后运行正常,隔天访问就会这样,求解。。。rn附上配置rn[code="java"]rnc3p0.acquireIncrement=3rnc3p0.initialPoolSize=3rnc3p0.idleConnectionTestPeriod=1800rnc3p0.minPoolSize=1rnc3p0.maxPoolSize=10rnc3p0.maxStatements=100rnc3p0.numHelperThreads=10rnc3p0.maxIdleTime=600rnc3p0.automaticTestTable=C3P0TestTablern[/code]rn框架用的是SSI
Hibernate登录异常,求解
[code=Java]rnrn @Overridern public User isLogin(String username,String password) rnrn User user=null;rn session.beginTransaction();rn String hql=("from User u where u.username=? and u.password=?"); rn Query query=session.createQuery(hql);rn query.setString(0,username);rn query.setString(1,password);rn if(query.list().size()>0)rn rn user=(User)query.list().get(0);rn rn session.getTransaction().commit();rn return user;rn rn[/code]rnrn[color=#FF0000][b]无论是正确或者错误的用户名和密码都可以正常登录系统。。。。。求解????[/b][/color]
weblogic启动异常,求解
[WARN ][jrockit] CompileThreshold=8000 ignored: Not a valid option for[color=#FF0000] JRockit[/color]rn[WARN ][jrockit] PermSize=48m ignored: Not a valid option for JRockitrn[WARN ][jrockit] MaxPermSize=128m ignored: Not a valid option for JRockitrn<2012-3-31 下午02时13分21秒 CST> rn<2012-3-31 下午02时13分22秒 CST> rn<2012-3-31 下午02时13分23秒 CST> rn<2012-3-31 下午02时13分23秒 CST> rn<2012-3-31 下午02时13分23秒 CST> rn<2012-3-31 下午02时13分24秒 CST> rn<2012-3-31 下午02时13分26秒 CST> rn<2012-3-31 下午02时13分26秒 CST> rn<2012-3-31 下午02时13分26秒 CST> rn<2012-3-31 下午02时13分26秒 CST> rnrnrn
有关异常的问题,求解
[code=java]package cn.test.exception;rn/*rn * 父类rn */rnrnpublic class Pet rn private int age;rn public Pet()rn rn rn rn public Pet(int age)rn rn this.age=age;rn rn public void setAge(int age)throws Exceptionrn rn this.age=age;rn rn public int getAge()rn rn return this.age;rn rnrnrn[/code]rnrn下面是一个子类rn[code=java]rn/*rn * dog类rn */rnpublic class Dog extends Petrn private int age;rn public void setAge(int age)throws Exceptionrn rn if(age==2)rn rn this.age=age;rn elsern rn throw new Exception("只能是2条腿");rn rn rnrnrn[/code]rn下面是测试类rn[code=java]rn/*rn * 测试类rn */rnpublic class Test rn public static void main(String []args)rn rn Pet dog=new Dog();rn try rn dog.setAge(2);rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn System.out.println("狗腿数"+dog.getAge());rn rnrnrn[/code]rn这三段代码有什么问题呀,为什么我输出狗的腿数不对?不是2 是0??求解异常不是很清楚
web项目异常求解
java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyablern at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:263)rn at org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:238)rn at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:332)rn at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3731)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4493)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1097)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.lang.ClassNotFoundException: org.apache.struts2.util.ObjectFactoryDestroyablern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 14 morern
hibernate异常求解
[color=#FF0000]异常问题:[/color]rnorg.hibernate.MappingException: invalid configurationrn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1579)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1520)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1506)rn at com.baidu.model.Test.main(Test.java:14)rnCaused by: org.xml.sax.SAXParseException: Document root element "hibernate-configuration", must match DOCTYPE root "hibernate-mapping".rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1621)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1900)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:764)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3095)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:921)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)rn at org.dom4j.io.SAXReader.read(SAXReader.java:465)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1576)rn ... 3 morernrnrn[color=#FF0000]hibernate.cfg.xml[/color]rnrnrnrnrnrn rnrn rn com.mysql.jdbc.Driverrn jdbc:mysql://localhost:8080/Welcome2Hibernatern rootrn rootrnrn rn 1rnrn rn org.hibernate.dialect.MySQLDialectrnrn rn thread rnrn rn org.hibernate.cache.NoCacheProviderrnrn rn truern rn rnrn rn creaternrn rn rn rnrnrnrn[color=#FF0000]User.hbm.xml[/color]rnrnrn rnrn rn rn rn rn rn rn rn rn
运行时的异常 求解
运行时的异常:rn[System.InvalidOperationException] = "rnrnAction being performed on this control is being called from the wrong thread. Marshal to the correct thread using Control.Invoke or Control.BeginInvoke to perform this action.rnrn"rn我不了接rnrn能不能详细说说,往宽泛方面展开说说。
求解这个异常怎么回事
String resultStr = response.body().string();n JSONObject jsonObj = new JSONObject(resultStr);n String iconImg = jsonObj.getString("iconImg");n String result = jsonObj.getString("result");nnn运行 就报这个异常 org.json.JSONException: Value 260 of type java.lang.Integer cannot be converted to JSONObject
异常 框架 求解!!!
一个实现类 Class1. 类的某个过程发现异常(也可以自己丢出一个字符串当作异常的信息).这时候要吧异常的信息传递到 调用Class1的类.rnrn用事件.发现弄到后面很不规范rn谢谢!!
求解,axis webservice 异常
完全按照下面教程中的步骤做的:rn1.即时发布 JWS (Java Web Service) Files - InstantrnDeploymentrn即时发布提供了一种非常简单发布方式,发布者只要有Java 源代码(也就是.java 文件),rn然后把其后缀名改成jws ( 也就是 java web service 的缩写) 拷贝到rn%TOMCAT_HOME%\webapps\axis 目录下即完成了所有的发布工作。AXIS 的编译引擎会处rn理接下来的所有事情。下面是一段示例代码:rnjava 代码rnpublic class HelloAXIS rnpublic String Hello(String name)rnreturn "AXIS say hello to " + name;rnrnrn把 HelloAXIS.java 文件改成 HelloAXIS.jws 然后拷贝到rn%TOMCAT_HOME%\webapps\axis 目录下, 启动Tomcat 之后访问rnhttp://localhost:8080/axis/HelloAXIS.jws 如果能看到 Click to see the WSDL 这个超链接就说rn明已经发布成功了,点击进去就可以看到这个Webservice 的WSDL 描述文件。server 端的rn发布已经完成了,接下来就是编写Client 端测试代码了。rnjava 代码rnpackage com.chnic.test;rnimport java.net.URL;rnimport javax.xml.namespace.QName;rnimport org.apache.axis.client.Call;rnimport org.apache.axis.client.Service;rnpublic class Test rnpublic static void main(String[] args) throws ExceptionrnString targetEendPoint = "http://localhost:8080/axis/HelloAXIS.jws";rnService service = new Service();rnCall call = (Call) service.createCall();rncall.setOperationName(new QName(targetEendPoint, "Hello"));rncall.setTargetEndpointAddress(new URL(targetEendPoint));rnString result = (String) call.invoke(new Object[]"Robert");rnSystem.out.println(result);rnrnrn测试代码很简单,如果熟悉java 反射机制的朋友不用两分钟就能看明白。运行后客rn户端控制台出现 AXIS say hello Robert。测试成功。果然很简单吧。不过在这简单背后却是rn以牺牲灵活性为代价的。假如你现在手里只有.class 或者一个jar 包,jws 就不再能满足你的rn需求了,最要命的就是即时发布不支持带包的类,这点AXIS 的用户手册上写的也很明白。rnrn执行Test.jav的时候出现如下异常:rnException in thread "main" AxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Server.userExceptionrn faultSubcode: rn faultString: java.net.SocketException: Network is unreachable: connectrn faultActor: rn faultNode: rn faultDetail: rnrnTOMCAT已经启动,url可以通过浏览器访问,可是为什么在执行客户端的时候报出:java.net.SocketException: Network is unreachable: connect呢?rnrngoogle没能解决,baidu也没能解决。
struts2-showcase-2.1.6.war运行异常,求解
环境:rnjava version "1.5.0_04"rnJava(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)rnJava HotSpot(TM) Server VM (build 1.5.0_04-b05, mixed mode)rnrnrnSun Java System Application Server Enterprise Edition 8.1_02 (build b11-fcs) rnrn部署struts2自带工程struts2-showcase-2.1.6.war,部署成功rn但是运行时页面显示rn“HTTP 状态 404 - result 'null' not found”rnrn日志抛出异常:rn[#|2009-08-31T09:44:46.004+0800|INFO|sun-appserver-ee8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|2009-08-31 09:44:45,991 ERROR (com.opensymphony.xwork2.ObjectFactory:27) - Unable to set parameter [location] in result of type [org.apache.struts2.dispatcher.ServletDispatcherResult]rnCaught OgnlException while setting property 'location' on type 'org.apache.struts2.dispatcher.ServletDispatcherResult'. - Class: ognl.OgnlRuntimernFile: OgnlRuntime.javarnMethod: invokeMethodrnLine: 508 - ognl/OgnlRuntime.java:508:-1rn at com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:392)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setProperty(OgnlUtil.java:143)rn at com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperty(OgnlReflectionProvider.java:91)rn at com.opensymphony.xwork2.ObjectFactory.buildResult(ObjectFactory.java:221)rn at com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:208)rn at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:355)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter.doFilter(StrutsExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)rn at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)rn at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)rn at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:65)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)rn at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)rn at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)rn at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:226)rn at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2071)rnCaused by: java.lang.IllegalAccessException: Method [public void or|#]rn
关于异常,求解
问题如下例所示:rnrnclass Arnrn tryrn rn //引发异常的代码rn rn catchrn rn B b = new B();rn rnrnclass Brnrn public B()rn rn //在这里能否访问到A中引发的异常堆栈?rn rnrnrn只是想学学知识,不是要解决什么实际问题,所以:rn1.请避免讨论代码的实际意义(因为本来就没有:) )rn2.请不要建议我修改或者增加Class A的代码rn3.如果您认为可以或者不可以,都请您尽可能详细的解释一下原理。rn4.可以义务帮顶,哈哈rnrn以上,谢谢!
项目异常求解
严重: Exception invoking periodic operation: rnjava.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyablern at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:263)rn at org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:238)rn at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:332)rn at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3731)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4493)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1097)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:619)
j2ee异常求解。
2012-4-26 11:42:21 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.NoSuchMethodException: Unknown property 'Sid'rn at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1122)rn at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)rn at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)rn at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290)rn at plantix.web.components.ext.grid.GridData.toJSONData(GridData.java:137)rn at plantix.web.components.ext.grid.GridData.toJSONString(GridData.java:108)rn at org.apache.jsp.tag.web.ptxext.griddata_tag.doTag(griddata_tag.java:99)rn at org.apache.jsp.WEB_002dINF.pages.bb.aa.listPtx_005fuserData_jsp._jspx_meth_p_005fgriddata_005f0(listPtx_005fuserData_jsp.java:89)rn at org.apache.jsp.WEB_002dINF.pages.bb.aa.listPtx_005fuserData_jsp._jspService(listPtx_005fuserData_jsp.java:62)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:154)rn at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:361)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at plantix.web.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:84)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at plantix.core.context.ThreadContextCleanerFilter.doFilter(ThreadContextCleanerFilter.java:35)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:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)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:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Thread.java:619)rnrnrn
ssh 项目 异常 求解
小弟在写一个小项目 遇到了Caused by: java.lang.NumberFormatException: For input string: ""异常,弄了一天还没找到错无的根源,求解 急!!!
bcp Proc异常求解
请教大神.rn我用下面这段执行是成功的,数据可以正常写入rnexec master..xp_cmdshell 'bcp AppStoreAnalysis.dbo.ActionLog in D:\Log\log.txt -f D:\Log\fmt\myLogFormatFiles.Xml -T'rnrn可是改成proc,运行就挂了.rn错误提示:未提供用户名,请使用 -U 提供用户名,或者使用 -T 指定可信连接rnproc:rnALTER PROCEDURE [dbo].[sp_bcp_tb_log]rn @filePath varchar(50),rn @fmtPath varchar(50)rnASrnBEGIN rn declare @temp varchar(400); rn set @temp = 'bcp AppStoreAnalysis.dbo.ActionLog in '+@filePath+' -f '+ @fmtPath +'-T';rn exec master..xp_cmdshell @temp;rnENDrnrnexec sp_bcp_tb_log 'D:\Log\log.txt','D:\Log\fmt\myLogFormatFiles.Xml'rnrn大神帮看下