sun.io.MalformedInputException异常求解 [问题点数:100分,结帖人wabcw]

Bbs1
本版专家分:42
结帖率 100%
Bbs6
本版专家分:8061
Bbs7
本版专家分:11043
Bbs4
本版专家分:1082
报错求助sun.io.MalformedInputException
Websphere5.1.0+win2003企业版rnjdk1.5已安装rnrn将之前WIN2000系统下的一个项目复制到WIN2003系统下加载后,程序运行好象没有什么错,但后台日志中却大量发现以下<em>异常</em>rn[09-1-1 23:55:52:250 CST] 37283728 SystemOut O sun.io.MalformedInputExceptionrn[09-1-1 23:55:52:250 CST] 37283728 SystemOut O at java.lang.Throwable.(Throwable.java)rn[09-1-1 23:55:52:250 CST] 37283728 SystemOut O at sun.io.ByteToCharGB18030.convert(ByteToCharGB18030.java)rn[09-1-1 23:55:52:250 CST] 37283728 SystemOut O at java.io.InputStreamReader.convertInto(InputStreamReader.java:152)rn[09-1-1 23:55:52:250 CST] 37283728 SystemOut O at java.io.InputStreamReader.fill(InputStreamReader.java)rn[09-1-1 23:55:52:250 CST] 37283728 SystemOut O at java.io.InputStreamReader.read(InputStreamReader.java:264)rn[09-1-1 23:55:52:250 CST] 37283728 SystemOut O at java.io.BufferedReader.fill(BufferedReader.java)rn[09-1-1 23:55:52:265 CST] 37283728 SystemOut O at java.io.BufferedReader.readLine(BufferedReader.java)rn[09-1-1 23:55:52:265 CST] 37283728 SystemOut O at java.io.BufferedReader.readLine(BufferedReader.java)rn[09-1-1 23:55:52:265 CST] 37283728 SystemOut O at com.ibm.ws.webcontainer.jsp.compiler.ibmdebug.ClassLineModifier.createSourceToSourceVector(ClassLineModifier.java:157)rn[09-1-1 23:55:52:265 CST] 37283728 SystemOut O at com.ibm.ws.webcontainer.jsp.compiler.ibmdebug.ClassLineModifier.prepareClassFileForDebug(ClassLineModifier.java:101)rn[09-1-1 23:55:52:265 CST] 37283728 SystemOut O at com.ibm.ws.webcontainer.jsp.compiler.IBMDebugJavaCompiler.compile(IBMDebugJavaCompiler.java:145)rnrn在网上搜索了一些类似的报错信息,有说是XML文档不符合规范,有说是JDK-IO问题,但种种解决方法都尝试过后问题依然存在,不知道各位有谁也遇到我一样的情况,或有哪位知道正确的解决方法的,希望提供一些帮助和指教。
异常求解
[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我知道是不同的对象有相同的标识符导致的错误,但是我不明白为什么会这样,以及解决办法。
tomcat启动报错 sun.io.MalformedInputException
环境 aix tomcat5 jdk1.5rnrn2007-12-27 14:21:15 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java5/jre/bin:/usr/java5/jre/bin:/usr/java5/jre/bin/classic:/usr/java5/jre/bin:/usr/java5/jre/bin/j9vm:/usr/librn2007-12-27 14:21:15 org.apache.coyote.http11.Http11BaseProtocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2007-12-27 14:21:15 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 3007 msrn2007-12-27 14:21:16 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2007-12-27 14:21:16 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/5.5.25rn2007-12-27 14:21:16 org.apache.catalina.core.StandardHost startrn信息: XML validation disabledrn2007-12-27 14:21:21,306 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failedrnorg.springframework.beans.factory.BeanDefinitionStoreException: Unable to determine validation mode for [ServletContext resource [/WEB-INF/dataAccessContext.xml]]: an error occurred whilst reading from the InputStream.; nested exception is sun.io.MalformedInputExceptionrnCaused by: rnsun.io.MalformedInputExceptionrn at sun.io.ByteToCharGB18030.convert(ByteToCharGB18030.java:171)rn at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:314)rn at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:364)rn at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:250)rn at java.io.InputStreamReader.read(InputStreamReader.java:212)rn at java.io.BufferedReader.fill(BufferedReader.java:157)rn at java.io.BufferedReader.readLine(BufferedReader.java:320)rn at java.io.BufferedReader.readLine(BufferedReader.java:383)rn at org.springframework.util.xml.XmlValidationModeDetector.detectValidationMode(XmlValidationModeDetector.java:79)rnrn看到网上这么解决rnrn1.打开管理控制台,找到并选择运行这个JSP的应用服务器 rn2.依次选择进程定义,java虚拟机,一般JVM自变量 rn3.添加-Dibm.stream.nio=truernrnDibm.stream.nio=true具体添加到哪个文件 具体操作步骤是??rnrnrn
sun.io.MalformedInputException 求助 急急急~~
代码:rn[code=Java]rnwhile((line = in.readLine())!= null)rn byte[] bts = line.getBytes();rn sun.io.ByteToCharConverter convertor = sun.io.ByteToCharConverter.getConverter("GBK");rn char[] charArray = convertor.convertAll(bts);rn for(int j = 0;j < charArray.length;j ++)rn result += String.valueOf(charArray[j]);rn rnrnin.close();rnrn[/code]rn报错:rnsun.io.MalformedInputExceptionrn at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:278)rn at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:316)rn at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:366)rn at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:252)rn at java.io.InputStreamReader.read(InputStreamReader.java:212)rn at java.io.BufferedReader.fill(BufferedReader.java:157)rn at java.io.BufferedReader.readLine(BufferedReader.java:320)rn at java.io.BufferedReader.readLine(BufferedReader.java:383)rn at com.sinosoft.platform.userRelationship.action.gotoSubSystem.getXiamenLibRes(gotoSubSystem.java:432)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:618)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)rn at com.sinosoft.platform.framework.domain.NoLoginInterceptor.intercept(NoLoginInterceptor.java:383)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:504)rn at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$Contr
遇到了 sun.io.MalformedInputException
用java 读txt文档的时候,碰到了这样的错误,在网上找了找,大都说用以下方法解决:rnrnrn1.打开管理控制台,找到并选择运行这个JSP的应用服务器 rnrn2.依次选择进程定义,java虚拟机,一般JVM自变量 rnrn3.添加-Dibm.stream.nio=true rnrn4.确定,保存 rnrn5.重新启动该服务器 格式乱了,再来一次 rnrnrnrn我想问的就是,rnrn1:上面的方法,具体怎么操作啊(大家表笑啊,我确实没明白,我用的tomcat)rnrnrn2:我读txt的代码是在java的类里写的,而非在jsp上rn
sun.io.MalformedInputException,高手请进!
现象:在windows下测试完全正常,但是把项目搭建到linux上的时候却出现rnsun.io.MalformedInputException。rnrn本来怀疑是字符集引起的问题,因为文件读取中涉及读取中文。rn但是把中文内容删除掉,还是有问题。迷茫中,请高手指教!!!rn
文件大的时候读取其内容出现了sun.io.MalformedInputException异常
我在AIX操作系统上读取文件,当文件内容不过的时候一切正常,可是当文件大了的时候出现了sun.io.MalformedInputException<em>异常</em>,我用的JDK是IBM WEBSPHERE里面自带的JDK,是IO有限制,还是我应该在读取的时候指定编码?请大家帮忙!先谢谢了!rnBufferedReader br =new BufferedReader(new InputStreamReader(new FileInputStream(filePath)));rnint l = -1;rnStringBuffer c = new StringBuffer();rnwhile ((l = br.read()) != -1) rnc.append((char) l);rnrnbr.close();
异常求解啊。
[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<em>求解</em>啊。
java 异常代码求解
/不能正常抛<em>异常</em>抛<em>异常</em>,编译。运行都没事,找不出问题很痛苦,求助大神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
求解异常
<em>求解</em>java中的<em>异常</em>链是什么,它的好处是什么,在什么情况下要用到,举个例子
Hessian异常求解
根据博文配置rn http://web.iteye.com/blog/513238rnrnrnrnHello worldrnwork=任务rn[a, Name=刘德华, Add=上海, work=任务]rn2012-4-4 16:49:24 com.caucho.hessian.io.SerializerFactory getDeserializerrn警告: Hessian/Burlap: 'com.a.e.User' is an unknown class in sun.misc.Launcher$AppClassLoader@1372a1a:rnjava.lang.ClassNotFoundException: com.a.e.Userrnrnrn不知道为什么会报警告????rnrnHessian版本是 4.0.7
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里的代码已经执行,并且成功添加了数据,但确报了一个空指针<em>异常</em>,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<em>求解</em>这些<em>异常</em>!!!多谢
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 //coutlrc_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 // coutlrc_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 couts 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
运行异常求解
rnrnrnrnrnrnrn rn Untitled Documentrnrnrnrnrn rn rn rn rn 表的增删改rn rn rn rn rn 姓名 rn 工资 rn 部门 rn 操作 rn rn 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 rn rn rn 修改 rn 删除 rn rn rn rn 新增 rn rn rn rn rnrn rnrn rn DbBean.executeQuery(sql) rn rn rn 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文件管理器,<em>异常</em><em>求解</em>
异常分析,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出现以下<em>异常</em>。用了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中午重启后运行正常,隔天访问就会这样,<em>求解</em>。。。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]无论是正确或者错误的用户名和密码都可以正常登录系统。。。。。<em>求解</em>????[/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 rn rn rn rn rn rn rn rn rn 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??<em>求解</em><em>异常</em>不是很清楚
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]<em>异常</em>问题:[/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
运行时的异常 求解
运行时的<em>异常</em>: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运行 就报这个<em>异常</em> org.json.JSONException: Value 260 of type java.lang.Integer cannot be converted to JSONObject
异常 框架 求解!!!
一个实现类 Class1. 类的某个过程发现<em>异常</em>(也可以自己丢出一个字符串当作<em>异常</em>的信息).这时候要吧<em>异常</em>的信息传递到 调用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的时候出现如下<em>异常</em>: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日志抛出<em>异常</em>: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 //引发<em>异常</em>的代码rn rn catchrn rn B b = new B();rn rnrnclass Brnrn public B()rn rn //在这里能否访问到A中引发的<em>异常</em>堆栈?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: ""<em>异常</em>,弄了一天还没找到错无的根源,<em>求解</em> 急!!!
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大神帮看下
hibernate的异常,求解,
rnorg.hibernate.HibernateException: identifier of an instance of model.MemberPropertiesHr altered from 0BBA671B-FC1F-4ED3-9247-8E241FAAC3EB to nullrn at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:51)rn at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:82)rn at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:190)rn at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:70)rn at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:39)rn at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:711)rn at org.hibernate.impl.SessionImpl.prepareQueries(SessionImpl.java:895)rn at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:885)rn at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)rn at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)rn at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:603)rn at control.dao.impl.DefaultSiteSettingDAO.getDefaultSetting(DefaultSiteSettingDAO.java:195)rn at control.service.SiteSettingService.getDefaultSetting(SiteSettingService.java:177)rn at struts.action.MemberAction.list(MemberAction.java:83)rn at struts.action.MemberAction.createsave(MemberAction.java:874)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.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)rn at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at servlet.filter.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:39)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at servlet.filter.PreSecurityFilter.doFilter(PreSecurityFilter.java:57)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at servlet.filter.ActionFilter.doFilter(ActionFilter.java:68)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at servlet.filter.EncodingFilter.doFilter(EncodingFilter.java:23)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at servlet.filter.RequestFilter.doFilter(RequestFilter.java:22)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Unknown Source)rnjava.lang.NullPointerException
求解: hibernate dao.findby*异常
1,出现问题的语句:rnString str = new String("最新图书");rnSectionInfo newBook = (SectionInfo)sectionDao.findBySection(str);rn2,调用的方法:rnpublic List findBySection(Object section) rn return findByProperty(SECTION, section);rn rnpublic List findByProperty(String propertyName, Object value) rn log.debug("finding SectionInfo instance with property: " + propertyNamern + ", value: " + value);rn try rn String queryString = "from SectionInfo as model where model."rn + propertyName + "= ?";rn Query queryObject = getSession().createQuery(queryString);rn queryObject.setParameter(0, value);rn return queryObject.list();rn catch (RuntimeException re) rn log.error("find by property name failed", re);rn throw re;rn rn rn3,出现的<em>异常</em>:rnorg.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.ClassCastException: java.util.ArrayListrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn4,<em>求解</em>?
求解一个异常:java.lang.ClassNotFoundException: javax.el.FunctionMapper
<em>异常</em>信息如下:rnrnException in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is java.lang.NoClassDefFoundError: javax/el/FunctionMapperrn at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:983)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:879)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)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:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at com.beyondsoft.test.FirstTest.main(FirstTest.java:15)rnCaused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is java.lang.NoClassDefFoundError: javax/el/FunctionMapperrn at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:157)rn at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)rn ... 14 morernCaused by: java.lang.NoClassDefFoundError: javax/el/FunctionMapperrn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:247)rn at org.jbpm.pvm.internal.util.ReflectUtil.classForName(ReflectUtil.java:434)rn at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getType(ObjectDescriptor.java:241)rn at org.jbpm.pvm.internal.wire.WireDefinition.addDescriptor(WireDefinition.java:88)rn at org.jbpm.pvm.internal.wire.xml.WireParser.parseDocumentElement(WireParser.java:208)rn at org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:101)rn at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:432)rn at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)rn at org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:86)rn at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:432)rn at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)rn at org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse(ConfigurationImpl.java:137)rn at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:116)rn at org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine(SpringHelper.java:50)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.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:145)rn ... 15 morernCaused by: java.lang.ClassNotFoundException: javax.el.FunctionMapperrn at java.net.URLClassLoader$1.run(URLClassLoader.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:303)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:248)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)rn ... 35 morernrn百思不得其解, <em>求解</em>各位高人.
空指针的异常没有找出来,求解
1. package com.bjsxt.utils;rnrnimport org.hibernate.Hibernate;rnimport org.hibernate.HibernateException;rnimport org.hibernate.Session;rnimport org.hibernate.SessionFactory;rnimport org.hibernate.cfg.Configuration;rnimport org.hibernate.metamodel.source.annotations.entity.ConfiguredClass;rnimport org.omg.CORBA.PRIVATE_MEMBER;rnimport oracle.net.aso.f;rnpublic class HibernateUtil rn rn private static String HIBERNATE_CONFIG_FILE = "hibernate.cfg.xml";rn private static SessionFactory sessionFactory = null;rn private static ThreadLocal tl = new ThreadLocal<>();rn private static Configuration configure = null;rn rn staticrn try rn configure = new Configuration().configure("HIBERNATE_CONFIG_FILE");rn catch (Exception e) rn e.printStackTrace();rn System.out.println("核心装置安装失败");rn rn rn try rn sessionFactory = configure.buildSessionFactory();rn catch (Exception e) rn e.printStackTrace();rn System.out.println("C区以安放!");rn rn rn private HibernateUtil()rn rn rn rn /**rn * 获取sessionrn * @returnrn */rn public static Session getsession()rn Session session = tl.get();rn if(session == null)rn session = sessionFactory.openSession();----这块是报<em>异常</em>的地方rn tl.set(session);rn rn return session;rn rn rn /**rn * 关闭sessionrn */rn public static void closeSession()rn Session session = tl.get();rn tl.set(null);rn if(session != null)rn session.close();rn rn rnrn2.![图片说明](https://img-ask.csdn.net/upload/201708/24/1503555931_523098.png) rnrn3.![图片说明](https://img-ask.csdn.net/upload/201708/24/1503555952_89058.png)rnrn不知道哪里来的空指针<em>异常</em><em>求解</em>rn发现问题了,就是sessionFactory是null,说是hibernate.cfg.xml没有用到,这是怎么回事?rnThe value of the field HibernateUtil.HIBERNATE_CONFIG_FILE is not used。。怎么改?rn
iOS异常处理 :Mach_msg_trap异常求解
iOS<em>异常</em>处理 :Mach_msg_trap<em>异常</em>程序运行时,xcode中断,显示信息libsystem_kernel.dylib`mach_msg_trap:0x215d3894 : mov r12, sp 0x215d3898 : push {r4, r5, r6, r8} 0x215d389c : ldm r12, {r4, r5, r6} 0x21
java 抛的数据库连接异常求解
com.microsoft.sqlserver.jdbc.SQLServerException: 到主机 的 TCP/IP 连接失败。 java.net.SocketException: No buffer space available (maximum connections reached?): JVM_Bindrn at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rnrn
EXCEL导出异常 HRESULT:0x800A03EC 求解
rnrn<em>异常</em>来自 HRESULT:0x800A03EC 在 System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)rn 在 Microsoft.Office.Interop.Excel.Range.set_Value2(Object )rn 在 XHLBattery.FormQxt.ExportCompreExcel(Workbook workbook, Worksheet worksheet)
HttpServletRequest转换成MultipartHttpServletRequest异常求解
本人用的是springMVC和tomcat进行文件上传,xml中配置了 rn rn rn rn 104857600 rn rn rn 4096 rn rn rn代码中使用的是rnpublic ModelAndView uploadFile(HttpServletRequest request,HttpServletResponse response) throws CswWebExceptionrn UserInfoDto user= getUserInfomation(request);rn MultipartHttpServletRequest multipartRequest=(MultipartHttpServletRequest)request;rn MultipartFile multipartFile=multipartRequest.getFile("fileName");rnrn但是还是报错:rnjava.lang.ClassCastException: org.apache.catalina.connector.RequestFacade cannot be cast to org.springframework.web.multipart.MultipartHttpServletRequestrnrnrn虽然报错,但文件依然可以正常上传!<em>求解</em>!
CAS单点登录的一个异常求解
cas-server-3.4.3.1rncas-client-3.2.1rntomcat:6.0.35rnjdk:1.6.0_10,rn登录服务时,系统跳转到CAS登录页面,输入用户名密码,server端日志显示验证通过,然后出现下面的问题,三次之后抛出500<em>异常</em>rn[code=Java]org.xml.sax.SAXParseException: The element type "label" must be terminated by the matching end-tag "".rnorg.xml.sax.SAXParseException: The element type "label" must be terminated by the matching end-tag "".rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)rn at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1741)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)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 org.jasig.cas.client.util.XmlUtils.getTextForElement(XmlUtils.java:164)rn at org.jasig.cas.client.validation.Cas20ServiceTicketValidator.parseResponseFromServer(Cas20ServiceTicketValidator.java:90)rn at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:217)rn at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:169)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.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:116)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.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.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.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 com.jspbook.GZIPFilter.doFilter(GZIPFilter.java:28)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:293)rn at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)rn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)rn at java.lang.Thread.run(Thread.java:619)[/code]rn500空指针<em>异常</em>:rn[code=Java]2012-9-19 17:54:00 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.NullPointerExceptionrn at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)rn at org.jasig.cas.client.proxy.ProxyGrantingTicketStorageImpl.retrieve(ProxyGrantingTicketStorageImpl.java:85)rn at org.jasig.cas.client.validation.Cas20ServiceTicketValidator.parseResponseFromServer(Cas20ServiceTicketValidator.java:91)rn at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:217)rn at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:169)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.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:116)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.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.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.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 com.jspbook.GZIPFilter.doFilter(GZIPFilter.java:28)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:293)rn at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)rn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)rn at java.lang.Thread.run(Thread.java:619)[/code]
ssh update出异常 求解
做的是登陆的时候 更新登陆时间 我是新手 求大神解答!!rnDaoImpl rn[code=java]@Overridern public void update(Admin admin) rn // TODO Auto-generated method stubrn this.getHibernateTemplate().update("update Admin a set a.logintime="+new Date() +" where a.adminId=? ",admin.getAdminId());rn rn [/code]rn<em>异常</em>rn[code=java]rnCaused by: org.hibernate.MappingException: Unknown entity: update Admin a set a.logintime=Tue Jul 02 14:23:13 CST 2013 where a.adminId=? rn at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:628)rn at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1375)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:238)rn at org.hibernate.event.def.DefaultUpdateEventListener.performSaveOrUpdate(DefaultUpdateEventListener.java:56)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)rn at org.hibernate.impl.SessionImpl.fireUpdate(SessionImpl.java:592)rn at org.hibernate.impl.SessionImpl.update(SessionImpl.java:580)rn at org.springframework.orm.hibernate3.HibernateTemplate$15.doInHibernate(HibernateTemplate.java:738)rn at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)rn ... 71 morern[/code]
tomcat数据库连接池出异常求解
我是这么做的(我是按照v512高端JAVA视频上的配置的。):rn1、先修改tomcat5.5/conf/content.xml,我加上了如下代码:rnrnrn其中3333是我的数据库端口,music是我需要连接的数据库...rnrn2、把mysql驱动放进tomcat5.5/common/lib文件夹中rnrn3、然后再项目中引用:rnContext context=new InitialContext(); rnDataSource ds=(DataSource)context.lookup("java:/comp/env/jdbc/mysqlds");rnconn=ds.getConnection();rnrn然后启动tomcat服务器,但是用测试JAVA类测试连接的时候,出现<em>异常</em>:rnjavax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
求解Io 异常: Socket closed
我用hibernate连接数据库,在hibernate.cfg.xml文件中有映射文件的配置如下:rnrn jdbc:oracle:thin:@127.0.0.1:1521:xernrn rn org.hibernate.dialect.Oracle9Dialectrnrn rn gwaprnrn rn gwaprnrn rn oracle.jdbc.driver.OracleDriverrnrn rn truernrn rn truern rn rn updatern true 1,false 1rn 50rn truern 4rn 50rn rn rn rn rn rn rn rn rn rn rn rn rnrn我在测试程序中就写了一句:System.out.println(new Configuration().configure().buildSessionFactory());rn地一次运行是没有问题的,一旦运行之后数据库中的表就创建好了,再运行时就出现<em>异常</em>,当把表删除之后运行又不会有<em>异常</em>,当表创建好之后又会出现此<em>异常</em>,请高手指点,<em>异常</em>如下:rn2010-04-25 18:45:44,449 WARN (org.hibernate.connection.DriverManagerConnectionProvider:155) - problem closing pooled connectionrnjava.sql.SQLException: Io <em>异常</em>: Socket closedrn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)rn at oracle.jdbc.driver.T4CConnection.logoff(T4CConnection.java:393)rn at oracle.jdbc.driver.PhysicalConnection.close(PhysicalConnection.java:1036)rn at org.hibernate.connection.DriverManagerConnectionProvider.close(DriverManagerConnectionProvider.java:152)rn at org.hibernate.connection.DriverManagerConnectionProvider.finalize(DriverManagerConnectionProvider.java:142)rn at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)rn at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)rn at java.lang.ref.Finalizer.access$100(Finalizer.java:14)rn at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)rn2010-04-25 18:45:44,463 INFO (org.hibernate.connection.DriverManagerConnectionProvider:147) - cleaning up connection pool: jdbc:oracle:thin:@127.0.0.1:1521:xern2010-04-25 18:45:44,464 WARN (org.hibernate.connection.DriverManagerConnectionProvider:155) - problem closing pooled connectionrnjava.sql.SQLException: Io <em>异常</em>: Socket closed
LoadRunner录制脚本异常求解
[img=https://img-bbs.csdn.net/upload/201412/08/1418023122_143834.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201412/08/1418023170_274564.png][/img]rn录制时数据一直在增加,等停止录制并查看脚本时,里面只获取了天气数据,其它数据没有。在网上找一个论坛测试正常。rn用lr检测了一下协议,更改协议后可以获取相应数据,但运行不起来。<em>求解</em>。[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]
奇怪的异常,200分求解
服务器的操作系统为win2000 server(英文版),web.config数据库连接字如下:rnServer=192.168.100.100;Database=db;User Id=sa;password=111;rn或者rnServer=192.168.100.100;Database=db;User Id=sa;password=111;min pool size =2;max pool size=200;rnrn为什么总是收到rnThe timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reachedrn的<em>异常</em>,<em>求解</em>决办法
sys.fn_VarBinToHexStr MD5加密异常求解
[code=SQL]rnSELECT rnsys.fn_VarBinToHexStr(hashbytes('MD5','e')) as a1,rnsys.fn_VarBinToHexStr(hashbytes('MD5','abf4d2cd155c81a9'))as a2,rnSUBSTRING(sys.fn_VarBinToHexStr(hashbytes('MD5', 'abf4d2cd155c81a9')),6,1) as a3,rnsys.fn_VarBinToHexStr(hashbytes('MD5',SUBSTRING(sys.fn_VarBinToHexStr(hashbytes('MD5','abf4d2cd155c81a9')),6,1)))as a4rnrn[/code]rn结果:rnrna1rn0xe1671797c52e15f763380b45e841ec32 rnrna2rn0x87ee52dc5e0be9c463f920a0371d81aarn rna3rnern rna4rn0xa3962977a46ba2d91f2554e527ba98d6rnrna1 和 a4 都是对 小写字母e进行了MD5加密。为什么出来的结果不一样?
org.hibernate.SessionException: Session is closed异常 求解
rn19:08:13,953 ERROR OpenSessionInViewFilter:52 - 回滚事务rnorg.hibernate.SessionException: Session is closed!rn at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)rn at org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1341)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.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:342)rn at $Proxy0.getTransaction(Unknown Source)rn at com.xl.web.base.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:48)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.xl.web.base.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:34)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:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn2013-5-7 19:08:13 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet action threw exceptionrnorg.hibernate.SessionException: Session is closed!rn at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)rn at org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1341)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.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:342)rn at $Proxy0.getTransaction(Unknown Source)rn at com.xl.web.base.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:53)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.xl.web.base.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:34)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:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn
一个简单的SQL异常求解
[code=SQL]rn DataSet Ds = new DataSet();rn int Row = Da.Fill(Ds, "Attractions");rn[/code]rn第二句代码报<em>异常</em>:“对象名 'Attractions' 无效。”,可是我在数据库的表名称就是Attractions,这是怎么回事??
MyEclipse8.5 异常报错,急需求解???
[img=C:\Documents and Settings\Administrator\桌面\1.jpg][/img]rn我的MyEclipse经常报这个错误,用的时候好好的就成这样了,也发布不了信息,tomcat也启动不了,急需各位大侠帮助,先谢谢了!
Quartz.Net-----JobDetail重名异常求解,急!!!
ISchedulerFactory sf = new StdSchedulerFactory();rn IScheduler sched = sf.GetScheduler();rn JobDetail job = new JobDetail("job1", "group1", typeof(JobExecute));rn CronTrigger trigger = new CronTrigger("trigger1", "group1", "job1", "group1");rn //二十秒执行一次 :0/20 * * * * ?rn int hh = Convert.ToInt32(TextHH.Text);rn int mm = Convert.ToInt32(TextMM.Text);rn trigger.CronExpressionString = "0 " + mm + " " + hh + " * * ?";rn sched.AddJob(job, true);rn DateTime ft = sched.ScheduleJob(trigger);rn sched.Start();rnrnrnrn出<em>异常</em>:Unable to store Trigger with name: 'trigger1' and group: 'group1', because one already exists with this identification.
hadoop安装 sbin/start-all.sh异常求解
其实就是启动ResourceManager的时报的<em>异常</em>rnrn<em>异常</em>信息:rn--------------------------------------------------------------------rn[user_xyh@master hadoop-2.7.0]$ [color=#FF0000]sbin/start-all.sh[/color]rnThis script is Deprecated. Instead use start-dfs.sh and start-yarn.shrnStarting namenodes on [master.hadoop]rnmaster.hadoop: starting namenode, logging to /usr/program/hadoop-2.7.0/logs/hadoop-user_xyh-namenode-master.hadoop.outrnslave1.hadoop: starting datanode, logging to /usr/program/hadoop-2.7.0/logs/hadoop-user_xyh-datanode-slave1.hadoop.outrnStarting secondary namenodes [master.hadoop]rnmaster.hadoop: starting secondarynamenode, logging to /usr/program/hadoop-2.7.0/logs/hadoop-user_xyh-secondarynamenode-master.hadoop.outrnstarting yarn daemonsrnstarting resourcemanager, logging to /logs/yarn-user_xyh-resourcemanager-master.hadoop.outrn[color=#FF0000]log4j:ERROR setFile(null,true) call failed.rnjava.io.FileNotFoundException: /logs/yarn-user_xyh-resourcemanager-master.hadoop.log (Permission denied)[/color]rn at java.io.FileOutputStream.open(Native Method)rn at java.io.FileOutputStream.(FileOutputStream.java:221)rn at java.io.FileOutputStream.(FileOutputStream.java:142)rn at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)rn at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)rn at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)rn at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)rn at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)rnslave1.hadoop: starting nodemanager, logging to /usr/program/hadoop-2.7.0/logs/yarn-user_xyh-nodemanager-slave1.hadoop.outrn[user_xyh@master hadoop-2.7.0]$ jpsrn[color=#FF0000]18803 Jpsrn18164 NameNodern18371 SecondaryNameNodern18533 ResourceManager[/color]rn-------------------------------------------------------rn显示好像是启动成功了,但日志权限不够 /logs/yarn-user_xyh-resourcemanager-master.hadoop.log (Permission denied)rn但是其他如NameNode怎么日志就有权限呀rn---------------------------------------rn但我查看权限是有的呀rn[user_xyh@master program]$ llrntotal 360724rn[color=#FF0000]drwxr-xr-x. 12 user_xyh user_xyh 4096 5? 29 14:25 hadoop-2.7.0[/color]rn-rwxrw-rw-. 1 user_xyh user_xyh 210343364 5? 25 14:08 hadoop-2.7.0.tar.gzrndrwxr-xr-x. 3 user_xyh user_xyh 24 5? 27 13:31 javarn-rwxrw-rw-. 1 user_xyh user_xyh 153512879 5? 24 15:55 jdk-7u79-linux-x64.tar.gzrn-rwxrw-rw-. 1 user_xyh user_xyh 5517312 5? 22 23:35 SSHSecureShellClient-3.2.9.exern[user_xyh@master program]$ rnrnrn[user_xyh@master hadoop-2.7.0]$ llrntotal 40rndrwxr-xr-x. 2 user_xyh user_xyh 4096 4? 11 02:51 binrndrwxrwxr-x. 3 user_xyh user_xyh 17 5? 29 14:24 dfsrndrwxr-xr-x. 3 user_xyh user_xyh 19 4? 11 02:51 etcrndrwxr-xr-x. 2 user_xyh user_xyh 101 4? 11 02:51 includerndrwxr-xr-x. 3 user_xyh user_xyh 19 4? 11 02:51 librndrwxr-xr-x. 2 user_xyh user_xyh 4096 4? 11 02:51 libexecrn-rw-r--r--. 1 user_xyh user_xyh 15429 4? 11 02:51 LICENSE.txtrn[color=#FF0000]drwxrwxr-x. 2 user_xyh user_xyh 4096 5? 29 16:13 logs[/color]rn-rw-r--r--. 1 user_xyh user_xyh 101 4? 11 02:51 NOTICE.txtrn-rw-r--r--. 1 user_xyh user_xyh 1366 4? 11 02:51 README.txtrndrwxr-xr-x. 2 user_xyh user_xyh 4096 4? 11 02:51 sbinrndrwxr-xr-x. 4 user_xyh user_xyh 29 4? 11 02:51 sharerndrwxrwxr-x. 3 user_xyh user_xyh 16 5? 29 14:25 tmprnrn这是怎么回事?<em>求解</em>??rnrn
求解一个异常:javax.servlet.ServletException: org.jbpm.pvm.internal.wire.JbpmClassNotFo
messagernrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexceptionrnrnjavax.servlet.ServletException: org.jbpm.pvm.internal.wire.JbpmClassNotFoundException: couldn't load class rn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn com.test.filter.LoginFilter.doFilter(LoginFilter.java:117)rn com.struts.EncodingFilter.doFilter(EncodingFilter.java:29)rnroot causernrnorg.jbpm.pvm.internal.wire.JbpmClassNotFoundException: couldn't load class rn org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:143)rn org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487)rn org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466)rn org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:264)rn org.jbpm.pvm.internal.util.ReflectUtil.instantiateUserCode(ReflectUtil.java:414)rn org.jbpm.pvm.internal.wire.usercode.UserCodeReference.getObject(UserCodeReference.java:63)rn org.jbpm.pvm.internal.wire.usercode.UserCodeReference.getObject(UserCodeReference.java:51)rn org.jbpm.pvm.internal.model.ExecutionImpl.initializeAssignments(ExecutionImpl.java:813)rn org.jbpm.jpdl.internal.activity.TaskActivity.execute(TaskActivity.java:107)rn org.jbpm.jpdl.internal.activity.TaskActivity.execute(TaskActivity.java:58)rn org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)rn org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:672)rn org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:632)rn org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:217)rn org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:63)rn org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:36)rn org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)rn org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)rn org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)rn org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)rn org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)rn org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)rn org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:79)rn com.test.jbpm.JbpmServiceImpl.startProcessInstance(JbpmServiceImpl.java:30)rn com.test.formbean.PurchaseSearchBean.execute(PurchaseSearchBean.java:328)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn com.test.filter.LoginFilter.doFilter(LoginFilter.java:117)rn com.struts.EncodingFilter.doFilter(EncodingFilter.java:29)rnroot causernrnjava.lang.ClassNotFoundException: rn java.lang.Class.forName0(Native Method)rn java.lang.Class.forName(Class.java:169)rn org.jbpm.pvm.internal.util.ReflectUtil.classForName(ReflectUtil.java:440)rn org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:141)rn org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487)rn org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466)rn org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:264)rn org.jbpm.pvm.internal.util.ReflectUtil.instantiateUserCode(ReflectUtil.java:414)rn org.jbpm.pvm.internal.wire.usercode.UserCodeReference.getObject(UserCodeReference.java:63)rn org.jbpm.pvm.internal.wire.usercode.UserCodeReference.getObject(UserCodeReference.java:51)rn org.jbpm.pvm.internal.model.ExecutionImpl.initializeAssignments(ExecutionImpl.java:813)rn org.jbpm.jpdl.internal.activity.TaskActivity.execute(TaskActivity.java:107)rn org.jbpm.jpdl.internal.activity.TaskActivity.execute(TaskActivity.java:58)rn org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)rn org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:672)rn org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:632)rn org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:217)rn org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:63)rn org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:36)rn org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)rn org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)rn org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)rn org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)rn org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)rn org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)rn org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:79)rn com.test.jbpm.JbpmServiceImpl.startProcessInstance(JbpmServiceImpl.java:30)rn com.test.formbean.PurchaseSearchBean.execute(PurchaseSearchBean.java:328)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn com.test.filter.LoginFilter.doFilter(LoginFilter.java:117)rn com.struts.EncodingFilter.doFilter(EncodingFilter.java:29)
Java异常相关的一些问题,求解
java中的<em>异常</em>分类,throw与throws的区别,抛出的父类<em>异常</em>是否可以在子类<em>异常</em>之前
IIS发布的访问异常求解
A为数据库服务器,B为IIS服务器,包含本地的另一个库,两台服务器同在一个网内。从内网访问B的IIS时,一切正常,但是从外网访问时,如果单纯为B生成的数据,就是正常的,如果需要生成的数据涉及A的数据,就出现不能访问的状态,提示404错误。rn<em>求解</em>答。。。
(高分求助)---TPReplyException异常求解.
请问各位高手rn 我在做java通过wtc调用tuxedo服务时在取返回值时出现了一个TPReplyException <em>异常</em>.同时也使tuxedo的一个服务自动停止了.rn rn 请问各位高手,TPReplyException 是一个什么样的<em>异常</em>,在什么情况下会产生这个<em>异常</em>.主要原因是否与weblogic与tuxedo的配置有关呢?如何解决或分析此类的<em>异常</em>?谢谢.
IBMJDK引起的问题:Caused by: sun.io.MalformedInputException at sun.io.ByteToCharGB18030.convert
有人遇到过吗?怎么解决的? rnrnorg.springframework.beans.factory.BeanDefinitionStoreException: Unable to determine validation mode for [ServletContext resource [/WEB-INF/contextConfig.xml]]: an error occurred whilst reading from the InputStream.; nested exception is sun.io.MalformedInputException rnCaused by: sun.io.MalformedInputException rnat sun.io.ByteToCharGB18030.convert(ByteToCharGB18030.java:160) rnat sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:286) rnat sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:336) rnat sun.nio.cs.StreamDecoder.read(StreamDecoder.java:222) rnat java.io.InputStreamReader.read(InputStreamReader.java:207) rnat java.io.BufferedReader.fill(BufferedReader.java:152) rnat java.io.BufferedReader.readLine(BufferedReader.java:315) rnat java.io.BufferedReader.readLine(BufferedReader.java:378) rnat org.springframework.util.xml.XmlValidationModeDetector.detectValidationMode(XmlValidationModeDetector.java:79) rnat org.springframework.beans.factory.xml.XmlBeanDefinitionReader.detectValidationMode(XmlBeanDefinitionReader.java:468) rnat org.springframework.beans.factory.xml.XmlBeanDefinitionReader.getValidationModeForResource(XmlBeanDefinitionReader.java:438) rnat org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) rnat org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357) rnat org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) rnat org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) rnat org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) rnat org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123) rnat org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91) rnat org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94) rnat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294) rnat org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) rnat org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) rnat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) rnat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) rnat org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) rnat org.apache.catalina.core.StandardContext.start(StandardContext.java:4343) rnat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) rnat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) rnat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) rnat org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277) rnat org.apache.catalina.core.StandardHost.install(StandardHost.java:832) rnat org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701) rnat org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432) rnat org.apache.catalina.startup.HostConfig.start(HostConfig.java:983) rnat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) rnat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) rnat org.apache.catalina.core.StandardHost.start(StandardHost.java:789) rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) rnat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) rnat org.apache.catalina.core.StandardService.start(StandardService.java:480) rnat org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) rnat org.apache.catalina.startup.Catalina.start(Catalina.java:556) rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) rnat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41) rnat java.lang.reflect.Method.invoke(Method.java:371) rnat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) rnat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) rn
在线等!!!tomcat启动报错,Caused by: sun.io.MalformedInputException at sun.io.ByteToCharGB18030.convert……
环境webwork+Spring+hibernate,jdk1.4.2,tomcat5.0.28,使用tomcat控制台startup.bat能够正常启动,而在eclipse下使用tomcat插件,启动报错,如下:(tomcat插件已替换过,/WEB-INF/conf/applicationContext_hibernate.xml也已经替替换过 ),急!!!在线等!!!rnrn2007-12-25 9:22:00 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2007-12-25 9:22:00 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 2023 msrn2007-12-25 9:22:00 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2007-12-25 9:22:00 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/5.0.28rn2007-12-25 9:22:00 org.apache.catalina.core.StandardHost startrn信息: XML validation disabledrn2007-12-25 9:22:01 org.apache.catalina.loader.WebappClassLoader validateJarFilern信息: validateJarFile(D:\NewEclipsePro\workspace\eoms_sdmobile\ensp\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classrnlog4j: Threshold ="null".rnlog4j: Retreiving an instance of org.apache.log4j.Logger.rnlog4j: Setting [com.inspur] additivity to [false].rnlog4j: Level value for com.inspur is [DEBUG].rnlog4j: com.inspur level set to DEBUGrnlog4j: Class name: [org.apache.log4j.ConsoleAppender]rnlog4j: Parsing layout of class: "org.apache.log4j.PatternLayout"rnlog4j: Setting property [conversionPattern] to [%-5p (%F:%L) - %m%n].rnlog4j: Adding appender named [LogToConsole] to category [com.inspur].rnlog4j: Level value for root is [DEBUG].rnlog4j: root level set to DEBUGrnlog4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig).rnlog4j:WARN Please initialize the log4j system properly.rnPlatform -> platform start ...rnlog4j: Could not find root logger information. Is this OK?rnlog4j: Parsing for [org.loushang] with value=[ERROR,A2].rnlog4j: Level token is [ERROR].rnlog4j: Category org.loushang set to ERRORrnlog4j: Parsing appender named "A2".rnlog4j: Parsing layout options for "A2".rnlog4j: Setting property [conversionPattern] to [%dyyyy-MM-dd hh:mm:ss:%p %t %c - %m%n].rnlog4j: End of parsing for "A2".rnlog4j: Setting property [file] to [D:/NewEclipsePro/workspace/eoms_sdmobile/ensp/logs/inspur.log].rnlog4j: Setting property [maxFileSize] to [1000KB].rnlog4j: Setting property [maxBackupIndex] to [1].rnlog4j: setFile called: D:/NewEclipsePro/workspace/eoms_sdmobile/ensp/logs/inspur.log, truernlog4j: setFile endedrnlog4j: Parsed "A2" options.rnlog4j: Handling log4j.additivity.org.loushang=[null]rnlog4j: Parsing for [com.inspur] with value=[INFO,A1,A2].rnlog4j: Level token is [INFO].rnlog4j: Category com.inspur set to INFOrnlog4j: Parsing appender named "A1".rnlog4j: Parsing layout options for "A1".rnlog4j: Setting property [conversionPattern] to [%dyyyy-MM-dd hh:mm:ss:%-4r [%t] %-5p %c %x - %m%n].rnlog4j: End of parsing for "A1".rnlog4j: Parsed "A1" options.rnlog4j: Parsing appender named "A2".rnlog4j: Appender "A2" was already parsed.rnlog4j: Handling log4j.additivity.com.inspur=[null]rnlog4j: Finished configuring.rnPlatform -> platform start finished. it lasted 0 [s]rnStandardContext[/ensp]Loading Spring root WebApplicationContextrnStandardContext[/ensp]Exception sending context initialized event to listener instance of class com.inspur.eoms.platform.startup.PlatformLoaderListenerrnorg.springframework.beans.factory.BeanDefinitionStoreException: Unable to determine validation mode for [ServletContext resource [/WEB-INF/conf/applicationContext_hibernate.xml]]: cannot open InputStream. Did you attempt to load directly from a SAX InputSource without specifying the validationMode on your XmlBeanDefinitionReader instance?; nested exception is sun.io.MalformedInputExceptionrnCaused by: sun.io.MalformedInputExceptionrn at sun.io.ByteToCharGB18030.convert(ByteToCharGB18030.java:142)rn at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:247)rn at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:297)rn at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)rn at java.io.InputStreamReader.read(InputStreamReader.java:167)rn at java.io.BufferedReader.fill(BufferedReader.java:136)rn at java.io.BufferedReader.readLine(BufferedReader.java:299)rn at java.io.BufferedReader.readLine(BufferedReader.java:362)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.detectValidationMode(XmlBeanDefinitionReader.java:403)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.getValidationModeForResource(XmlBeanDefinitionReader.java:378)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:346)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:277)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:129)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:145)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:279)rn at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:155)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)rn at com.inspur.eoms.platform.startup.PlatformLoader.initWebApplication(PlatformLoader.java:57)rn at com.inspur.eoms.platform.startup.PlatformLoader.init(PlatformLoader.java:47)rn at com.inspur.eoms.platform.startup.PlatformLoaderListener.contextInitialized(PlatformLoaderListener.java:35)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)rn at org.apache.catalina.core.StandardService.start(StandardService.java:480)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:556)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:324)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)rn
开发 soap 在 rebuild project 的时候出现 sun.io.MalformedInputException
各位有无遇到过用 JBuilder 9 + AXIS 开发 SOAP 的时候,在 rebuild project 的时候会出现 rnjava.lang.Error: SrcSimpleElement: sun.io.MalformedInputExceptionrnrn根据 JBUilder 的屏幕提示,build classes 和 copy to webapp 都成功了,是在 generate webservice interface 的时候出现这个问题,此情况是自从改动过一些方法的说明、注释之后出现的,但是我试过把所有的中文都 cut 掉了也是出现同样的错误,未知各位有何良方???rnrn急<em>求解</em>决方案!!!!!!!rn谢谢
求解~!!Oracle RAC查询速度异常缓慢
客户装有两套Oracle RAC,以及一套单机Oracle。RAC均是双应用服务器,存储一套为NAS,一套为SAN。通过千兆网连接。三套系统的硬件配置相差不多。rn大多数数据的应用在RAC上都很正常,但是有个比较复杂的报表的查询,在单机Oracle上执行只需要5秒左右出结果,但是在两套RAC上,都需要超过20秒的时间才能出来。rn后来经过测试,发现还有少数查询速度差异更大,在单机上只要2秒左右,在RAC上超过1分钟,而且远不如报表查询那么复杂。rnRAC上绝大多数查询都和单机是相差无几的速度,只有少数查询有这种情况,不知道这是什么问题,也不知道如何解决,<em>求解</em>答~!rnrnRAC1:IBM 3650M2*2 、IBM NAS3300 、RH 5rnRAC2: IBM 3650M3*2 、IPSAN 、RH 5rn单机:IBM 3650M3 、RH 5rn具体硬件配置有点不记得,但是RAC2和单机的配置是一样的。rnrn所有测试数据都是从RAC1上打的dmp包,并在RAC2和单机上导入的。rnRAC上绝大多数查询都和单机是相差无几的速度,只有少数查询有这种情况,不知道这是什么问题,也不知道如何解决,<em>求解</em>答~!谢谢
急急急,很急 !求解JavaWeb异常!!!!
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjava.lang.NullPointerExceptionrn wyf.wyy.DateUtil.changeStringToDate(DateUtil.java:26)rn wyf.wyy.DateUtil.getDay(DateUtil.java:5)rn wyf.wyy.StuDB.getCurMoney(StuDB.java:138)rn wyf.wyy.StuDB.getStuInfo(StuDB.java:55)rn wyf.wyy.StudentServlet.doPost(StudentServlet.java:38)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.rnrnrn--------------------------------------------------------------------------------rnrnrnrn2012-4-13 21:13:02 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\java\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;D:\Downloads\Apache Software Foundation\Tomcat 6.0\binrn2012-4-13 21:13:02 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2012-4-13 21:13:02 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 460 msrn2012-4-13 21:13:02 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-4-13 21:13:02 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.18rn2012-4-13 21:13:03 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn2012-4-13 21:13:03 org.springframework.web.context.ContextLoader initWebApplicationContextrn信息: Root WebApplicationContext: initialization startedrn2012-4-13 21:13:04 org.springframework.context.support.AbstractApplicationContext prepareRefreshrn信息: Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1d6b049: display name [Root WebApplicationContext]; startup date [Fri Apr 13 21:13:04 CST 2012]; root of context hierarchyrn2012-4-13 21:13:04 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitionsrn信息: Loading XML bean definitions from ServletContext resource [/WEB-INF/appcontext.xml]rn2012-4-13 21:13:04 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactoryrn信息: Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1d6b049]: org.springframework.beans.factory.support.DefaultListableBeanFactory@135f7f3rn2012-4-13 21:13:04 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletonsrn信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@135f7f3: defining beans [bookDataSource,jdbcTemplate,StuDB,DBUtil]; root of factory hierarchyrn2012-4-13 21:13:05 org.springframework.web.context.ContextLoader initWebApplicationContextrn信息: Root WebApplicationContext: initialization completed in 1110 msrn2012-4-13 21:13:05 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2012-4-13 21:13:05 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2012-4-13 21:13:05 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/31 config=nullrn2012-4-13 21:13:05 org.apache.catalina.startup.Catalina startrn信息: Server startup in 3556 msrn2012-4-13 21:13:25 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet StudentServlet threw exceptionrnjava.lang.NullPointerExceptionrn at wyf.wyy.DateUtil.changeStringToDate(DateUtil.java:26)rn at wyf.wyy.DateUtil.getDay(DateUtil.java:5)rn at wyf.wyy.StuDB.getCurMoney(StuDB.java:138)rn at wyf.wyy.StuDB.getStuInfo(StuDB.java:55)rn at wyf.wyy.StudentServlet.doPost(StudentServlet.java:38)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)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.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:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnrn
指针处理链表DEMO异常求解
void CreateNodes(Node *node)rnrn node=(Node *)malloc(sizeof(Node));rn node->data=100; rn;rnrn int main(int argn,char* argv[])// int a[1]//a[0]rn rn Node *phead; rn CreateNodes(phead);rn printf("%d\n",phead->data);rn getchar();rn return 0;rnrn上诉运行会出错,求教如何改进?谢谢。rn
VC6中recv函数异常求解
历史原因,我们在使用VC6给客户制作动态库rnrn其中有一段这样的代码:rn服务器端(HP-UNIX)接收到客户端(windows的动态库)发送的请求,请求大约1000字节,其中头16字节,头16字节中有一个字段是用来标识版本号的,HP-UNIX服务器端先接收16字节,校验,版本号错误的话,直接把错误码赋给一个结构后write回客户端, 然后close这个fd。(结构是我们定义的通讯结构)rnrn现在的问题是: 服务器端的close和客户的recv不确定是谁先执行,于是出现下面的状况:rn1:服务器先close,recv返回10054错误(连接已经reset)rn2:客户先recv, 正常接收到我们业务的错误码rnrn这是动态库的代码,rn如果我把代码原封不动的复制出来,编译成一个控制台程序,无论1,2哪种情况,客户都会正常接收到业务错误码rnrn但是, 根据TCP/IP的原理, 即使对方close, 但是它在close之前write了一些东西,我之后recv,也应该能接收到它write的东西啊, 为何动态库就会返回10054呢?rnrn还有一个现象:服务器不是先接收16字节吗, 如果改为服务器检测到错误的版本号之后,继续接收完剩余的字节,无论1,2,客户端都会正常接收到业务错误码,而不是recv返回10054。rnrn
求解,sendmessage()异常报空指针详细说明如下
多的不说上图吧 这部分是代码,问题主要报的位置在那个sendmessage()那里; 下面的图是报错内容,前面是注释掉那句的打印信息
这段C#代码为什么会异常?求解
List a = new List();nn a[0] = "100";nn hostTextBox.Text = a[0];
(webwork+spring+ibatis+mysql)linux下的异常,100分求解
在服务器硬重启后,过段时间就会产生<em>异常</em>(在保存大表单数据的时候)rn麻烦哪位大侠看看rnClientAbortException: java.net.SocketException: Broken pipern at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)rn at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)rn at org.apache.catalina.connector.Response.flushBuffer(Response.java:537)rn at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:286)rn at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:595)rnCaused by: java.net.SocketException: Broken pipern at java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)rn at java.net.SocketOutputStream.write(SocketOutputStream.java:136)rn at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)rn at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)rn at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)rn at org.apache.coyote.Response.action(Response.java:182)rn at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)rn ... 14 more
200分求解异步服务端套接字异常
本题和http://expert.csdn.net/Expert/topic/2375/2375377.xml?temp=.7517816为同一问题,合并给200分。rnrn本段代码实现一个Windows Form,并用另外一个线程启动一个异步服务端套接字接收信息。现在问题是客户端发起一个连接,并发送消息后,本程序能正确接收到消息,但随后Form就没有响应了。调试时发现异步服务端套接字仍能正常接收信息,并送到Form进行处理,但Form的界面不再进行更新,也没有任何响应。rn请问是什么问题?rnrn服务器相关代码如下:rnForm1.cs中rnprivate void Form1_Load(object sender, System.EventArgs e)rnrn alarmServer = new System.Threading.Thread(new System.Threading.ThreadStart(AlarmServer.StartListening));rn alarmServer.Start();rnrn AlarmServer.Alarm += new AlarmEventHandler(AlarmServer_Alarm);rnrnrnAlarmServer.cs中rn public class AlarmServer rn rn public static event AlarmEventHandler Alarm;rn public const int AlarmPackageLength = 63;rn public const int DataIDPos = 6; rn rn // Thread signal.rn public static ManualResetEvent allDone = new ManualResetEvent(false);rnrn public static void StartListening() rn rn // Data buffer for incoming data.rn byte[] bytes = new Byte[1024];rnrn // Establish the local endpoint for the socket.rn // The DNS name of the computerrn // running the listener is "host.contoso.com".rn IPHostEntry ipHostInfo = Dns.Resolve(Dns.GetHostName());rn IPAddress ipAddress = ipHostInfo.AddressList[0];rn IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 22114);rnrn // Create a TCP/IP socket.rn Socket listener = new Socket(AddressFamily.InterNetwork,rn SocketType.Stream, ProtocolType.Tcp );rnrn // Bind the socket to the local endpoint and listen for incoming connections.rn try rn rn listener.Bind(localEndPoint);rn listener.Listen(100);rnrn while (true) rn rn // Set the event to nonsignaled state.rn allDone.Reset();rnrn // Start an asynchronous socket to listen for connections.rn Console.WriteLine("Waiting for a connection...");rn listener.BeginAccept( rn new AsyncCallback(AcceptCallback),rn listener );rnrn // Wait until a connection is made before continuing.rn allDone.WaitOne();rn rnrn rn catch (Exception e) rn rn Console.WriteLine(e.ToString());rn rn rnrn public static void AcceptCallback(IAsyncResult ar) rn rn // Signal the main thread to continue.rn allDone.Set();rnrn // Get the socket that handles the client request.rn Socket listener = (Socket) ar.AsyncState;rn Socket handler = listener.EndAccept(ar);rnrn // Create the state object.rn StateObject state = new StateObject();rn state.workSocket = handler;rn handler.BeginReceive( state.buffer, 0, StateObject.BufferSize, 0,rn new AsyncCallback(ReadCallback), state);rn rnrn public static void ReadCallback(IAsyncResult ar) rn rn String content = String.Empty;rn rn // Retrieve the state object and the handler socketrn // from the asynchronous state object.rn StateObject state = (StateObject) ar.AsyncState;rn Socket handler = state.workSocket;rnrn // Read data from the client socket. rn int bytesRead = handler.EndReceive(ar);rnrn if (bytesRead > 0) rn rn // There might be more data, so store the data received so far.rn Buffer.BlockCopy(state.buffer, 0, state.receivedData, state.receivedDataLength, bytesRead);rn state.receivedDataLength += bytesRead;rnrn // 测试是否有完整报文rn byte[] package = CheckForPackage(ref state);rn while(null != package)rn // 有完整报文,检出 [9/9/2003]rn Alarm(null, new AlarmEventArgs(package));rnrn // 继续检出 [10/20/2003]rn package = CheckForPackage(ref state);rn rn // 继续接收 [9/9/2003]rn handler.BeginReceive(state.buffer, 0, StateObject.BufferSize, 0,rn new AsyncCallback(ReadCallback), state);rn rn elsern // 客户端已关闭 [10/20/2003]rn// handler.Close();rn rn rnrn
windows下delete []的异常求解,linux下正常
#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rnusing namespace std;rntypedef int Rank;rn#define DEFAULT_CAPACITY 10rnclass myvectorrnprivate:rn Rank _size;rn int _capacity;rn int *_elem;rn //const int i;rnprotected:rn void copyfrom(int *const A, Rank lo, Rank hi)rn int c = 2*(hi - lo);rn _elem = new int[_capacity = c];rn for(int i = 0; i < c; ++i)rn _elem[i] = A[lo + i];rn rn rn void expand()rnrn cout << _size <<< _capacity)return;rn Rank *oldelem = _elem;rn _elem = new Rank(_capacity /=2);rn for(int i = 0; i < _size;++i)rn *(_elem+i)=*(oldelem+i);rn delete []oldelem; rn rn Rank find(Rank lo, Rank hi, Rank const& e)constrn int temp = hi;rn while(temp-- > lo)rn if(*(_elem+temp) == e)rn return temp;rn rn return hi;rn rn Rank find(Rank const& e)constrn return find(0,_size,e);rn rnrnrnpublic:rn myvector(int c = DEFAULT_CAPACITY)rn _elem = new int[_capacity = c];rn _size = 0;rn rn myvector(int *A,Rank lo,Rank hi)rn copyfrom(A,lo,hi);rn rn myvector(int *A,Rank n)rn copyfrom(A,0,n);rn rn myvector(myvector const &V,Rank lo,Rank hi)rn copyfrom(V._elem,lo,hi);rn rn myvector(myvector const &V)rn copyfrom(V._elem,0,V._size);rn rn ~myvector()rn delete []_elem;rn rn Rank size() constreturn _size;rn bool empty() constrn return _size <<
sftp 异常,有遇到的吗?求解
com.jcraft.jsch.JSchException: Auth cancelr at com.jcraft.jsch.Session.connect(Session.java:460)r at com.jcraft.jsch.Session.connect(Session.java:154)r at cn.vivame.util.ftp.SftpServerAccess.connect(SftpServerAccess.java:100)
绘制一张图片时莫名的异常求解
[code=Java] // 绘图 rn // 从资源文件中生成位图rnSystem.out.println("a");rn Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.icon); rn // 绘图rnSystem.out.println("b");rn canvas.drawBitmap(bitmap, 10, 10, paint); rnSystem.out.println("c");[/code]rn代码很简单,我只希望在view上绘制一个图片,但就是有<em>异常</em>,模拟器上提示“很抱歉!XX应用程序(XX.XX进程)意外停止,请重试”,但Eclipse平台没报任何错误,唯一的就是在logcat中只输出了a和b,没输出c,估计是canvas.drawBitmap(bitmap, 10, 10, paint)的问题,到底是错在哪哦?高人给个解释啊
发送邮件异常 Mailbox unavailable 求解~~急
发送有附件的邮件 经常是开始发两封是正常,然后就发送失败 下面是<em>异常</em>rn<em>异常</em>来自:System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: Mailbox unavailable or access deniedrnrn下面是代码,网上这个问题 没啥解决方法,困扰多时了。。。大家帮忙rn[code=VB.NET]rn Tryrn Dim mailMessage As New MailMessagern Dim SmtpClient As New SmtpClientrn Dim strReceiveEmailAddress As String() = ReceiveEmailAddress.Split("|")rn For i As Integer = 0 To strReceiveEmailAddress.Length - 1rn If strReceiveEmailAddress(i).Trim.Length > 0 Thenrn mailMessage.To.Add(strReceiveEmailAddress(i))rn End Ifrn Nextrn mailMessage.From = New MailAddress(BaseInfo.gPara.EmailInfo.EmailAddress)rn mailMessage.Subject = EmailSubjectrn mailMessage.Body = EmailContentrn mailMessage.IsBodyHtml = Falsern mailMessage.BodyEncoding = System.Text.Encoding.UTF8rn mailMessage.Priority = System.Net.Mail.MailPriority.Normalrnrn If Not Attachments Is Nothing Thenrn For i As Integer = 0 To Attachments.Count - 1rn Dim data As System.Net.Mail.Attachment = New System.Net.Mail.Attachment(Attachments(i).ToString.Trim)rn mailMessage.Attachments.Add(data)rn Nextrn End Ifrn SmtpClient.Credentials = New System.Net.NetworkCredential(mailMessage.From.Address, BaseInfo.gPara.EmailInfo.LoginPwd)rn SmtpClient.Host = BaseInfo.gPara.EmailInfo.SmtpServerrn SmtpClient.Timeout = 1000000rn SmtpClient.Send(mailMessage)rn Catch ex As Exceptionrn Throw New Exception("邮件发送失败!<em>异常</em>来自: " & ex.ToString.Trim)rn End Tryrn[/code]
用脚本删除文件异常的问题,求解
我用脚本自动备份数据库并通过FTP上传,备份和上传操作都没有问题,问题出在操作完成后删除FTP脚本上,用rndel "d:/dbback/ftp.txt"删除时会提示找不到文件,但是把脚本文件放到D盘根目录下时,用del "d:/ftp.txt"就能删除成功,请教各位这是怎么回事,我用的是Sql Server2012,系统是win7
求解!!struts 连接数据源 异常报错
严重: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.rnjava.lang.NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedListrn at org.apache.commons.pool.impl.GenericObjectPool.(GenericObjectPool.java:392)rn at org.apache.commons.pool.impl.GenericObjectPool.(GenericObjectPool.java:258)rn at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1165)rn at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:959)rn at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:808)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2010-12-13 4:32:53 org.apache.catalina.core.ApplicationContext logrn信息: Marking servlet action as unavailablern2010-12-13 4:32:53 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /demostrus threw load() exceptionrnjavax.servlet.UnavailableException: org/apache/commons/collections/CursorableLinkedListrn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
s2sh DAO nullpoint异常的问题,求解!!谢谢!
Jdk1.6, spring3,struts2,hibernate3,eclipse v4.2,junit4rnrn @Testrn public void testSave() rn // 这个要根据需要进行修改,在classes路径中去寻找配置文件。rn ApplicationContext ctx = rn new ClassPathXmlApplicationContext("beans.xml");rnrn userDao = (IUserDao) ctx.getBean("userDao");rn rn UserInfo user = new UserInfo();rn user.setId(0);//这句话加或没加都一样的错误rn user.setAge(0);rn user.setName("jack");rn user.setPassword("123456");rn userDao.save(user);rn rnrn测试时提示下列<em>异常</em>rnjava.lang.NullPointerExceptionrn at com.assistant.dao.impl.AbstractBaseDao.save(AbstractBaseDao.java:48)rn at com.assistant.dao.impl.TestUserDao.testSave(TestUserDao.java:30)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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:46)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:43)rn at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)rn at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:270)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:62)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:52)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:307)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rn
@Transactional,,抛异常后不会滚??求解
rn在service层使用了@Transactional(rollbackFor=Exception.class) ,rnrn在某个方法中故意报<em>异常</em>后,居然不回顾,为什么?rnrnrn[code=java]@Servicern@Transactional(rollbackFor=Exception.class) rnpublic class UserBaseServiceImpl implements IUserBaseService rn rn @Autowiredrn private GenericDao userBaseDao; rn @Autowiredrn private GenericDao userPositionDao; rn @Autowiredrn private GenericDao userInfoDao;rn rn /**rn * 数组越界<em>异常</em>后,数据不回顾,why?rn * @param Passwordrn * @param userNamern * @param imeirn */rn @Overridern public void registerTest(String Password, String userName, String imei) rn rn try rn //此处省略若干代码,如下代码运行正常rn //..................rn userBaseDao.save(entity);rn //.................rn userInfoDao.save(entity);rn //.................rn userPositionDao.save(entity);rn rn //以下为<em>异常</em>代码,数组越界!rn String [] str=new String[]"11";rn System.out.println(str[2]);rn rn rn catch (Exception e) rn e.printStackTrace();rn rn rn rnrn[/code]rn
JSP连接oracle出现这种异常 求解
java.sql.SQLException: Io <em>异常</em>: Got minus one from a read callrn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)rn at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)rn at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:414)rn at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:165)rn at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)rn at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)rn at java.sql.DriverManager.getConnection(DriverManager.java:582)rn at java.sql.DriverManager.getConnection(DriverManager.java:185)rn at oracle.SQLHelper.executeQuery(SQLHelper.java:106)rn at oracle.Test.main(Test.java:13)rnException in thread "main" java.lang.RuntimeException: Io <em>异常</em>: Got minus one from a read callrn at oracle.SQLHelper.executeQuery(SQLHelper.java:118)rn at oracle.Test.main(Test.java:13)rnrn需要贴出代码么?
使用PrepareStatements查询数据库的一点异常求解
待查询的表是如下图:rn[img=https://img-bbs.csdn.net/upload/201307/21/1374391487_966844.jpg][/img]rn代码是这样的(没有完全截取 )rn[img=https://img-bbs.csdn.net/upload/201307/21/1374392047_670840.jpg][/img]rn要查询的是 编号大于4的梁山英雄,查询结果是可以出来,但是每到 7号英雄的时候,名字与薪水之间总是隔了很大一段空白,我想知道怎么解决这个问题。rn[img=https://img-bbs.csdn.net/upload/201307/21/1374392163_74631.jpg][/img]rnrn谢谢各位!!!
ADO.NET的异常 求解,急求,谢谢!
base System.SystemException = "无法将类型为“System.Data.SqlClient.SqlInternalConnectionTds”的对象强制转换为类型“System.Data.SqlClient.SqlInternalConnectionSmi”。" 这个<em>异常</em>是怎么回事,应该怎么解决啊,谢谢各位教教小菜我吧。
JNA调用DLL时的异常求解
先把<em>异常</em>贴出来rnException in thread "main" java.lang.UnsatisfiedLinkError: 此操作仅在应用容器上下文中有效。rn at com.sun.jna.Native.open(Native Method)rn at com.sun.jna.Native.open(Native.java:1759)rn at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:260)rn at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)rn at com.sun.jna.Library$Handler.(Library.java:147)rn at com.sun.jna.Native.loadLibrary(Native.java:412)rn at com.sun.jna.Native.loadLibrary(Native.java:391)rn at dll1.GetDll.(GetDll.java:8)rn at dll1.TestDll.main(TestDll.java:11)rnrnVC++生成的DLL放在BIN文件夹下,然后JAVA调用代码如下:rnpublic interface GetDll extends StdCallLibraryrn public abstract int add(int a_x, int a_y);rn GetDll INSTANCE = (GetDll) Native.loadLibrary("Dll1.dll", GetDll.class); rnrnrnpublic static void main(String[] args) rn // TODO Auto-generated method stubrn System.out.println(GetDll.INSTANCE.add(5, 6)); rnrnrn运行便出此<em>异常</em>,求大神解答
java.security.InvalidKeyException: Key must not be null异常求解
[code=java]rnjava.security.InvalidKeyException: Key must not be nullrn at sun.security.rsa.RSAKeyFactory.engineTranslateKey(RSAKeyFactory.java:140)rn at sun.security.rsa.RSAKeyFactory.toRSAKey(RSAKeyFactory.java:79)rn at sun.security.rsa.RSASignature.engineInitVerify(RSASignature.java:75)rn at java.security.Signature$Delegate.init(Signature.java:1070)rn at java.security.Signature$Delegate.chooseProvider(Signature.java:1033)rn at java.security.Signature$Delegate.engineInitVerify(Signature.java:1088)rn at java.security.Signature.initVerify(Signature.java:420)rn at com.ips.security.utility.IpsCrypto.md5WithRSAVerify(IpsCrypto.java:179)rn at com.sp2p.service.IPaymentService.main(IPaymentService.java:493)rn[/code]rn<em>异常</em>信息如上,在调用别人接口出现这个错误,我将相同代码复制到他们demo上,能正常使用rn但是在我这边写的的方法中 报出上述<em>异常</em>rn这个一般是什么原因啊?
类型转换异常catch出错求解 急急急。。。
tryrn temparature = Double.parseDouble(Tx.getText().toString()) ;rn lenth = Double.parseDouble(L.getText().toString());rncatch(NumberFormatException)rn rn // 想在这里处理<em>异常</em>错误 rn rnrnrn错误提示:Syntax error on token "NumberFormatException", VariableDeclaratorId expected after this tokenrnrnrn 求大神指点。。。
设置TrayIcon的Visible时抛异常求解
在程序的退出事件FormClose中加了TrayIcon.Visible := False;rnrn在部分机器上抛出了EOutOfResources Cannot remove shell notification icon.<em>异常</em>rnrn查看了下TrayIcon对应的源码rn[code=Delphi(Pascal)]rnprocedure TCustomTrayIcon.SetVisible(Value: Boolean);rnbeginrn if FVisible <> Value thenrn beginrn FVisible := Value;rn if (not FAnimate) or (FAnimate and FCurrentIcon.Empty) thenrn SetDefaultIcon;rnrn if not (csDesigning in ComponentState) thenrn beginrn if FVisible thenrn Refresh(NIM_ADD)rn else if not (csLoading in ComponentState) thenrn beginrn if not Refresh(NIM_DELETE) thenrn raise EOutOfResources.Create(STrayIconRemoveError);rn end;rn if FAnimate thenrn FTimer.Enabled := Value;rn end;rn end;rnend;rn[/code]rnrn源码中有一处的确抛出了此<em>异常</em>,想请教下,这个<em>异常</em>何时触发的?如何解决这个问题啊?请大家帮忙看看,谢谢。
JBOSS 启动提示发布异常,小白求解
jboss启动遇到下面<em>异常</em>,不知道如何解决,第一次用jboss!rnrn11:28:55,218 ERROR [AbstractKernelController] Error installing to ClassLoader: name=vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/claim.war/ state=Describe mode=Manual requiredState=ClassLoaderrnorg.jboss.deployers.spi.DeploymentException: Error creating classloader for vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/claim.war/rn at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)rn at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.createClassLoader(AbstractDeploymentContext.java:576)rn at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.createClassLoader(AbstractDeploymentUnit.java:159)rn at org.jboss.deployers.spi.deployer.helpers.AbstractClassLoaderDeployer.deploy(AbstractClassLoaderDeployer.java:53)rn at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)rn at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)rn at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)rn at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)rn at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)rn at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)rn at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)rn at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)rn at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)rn at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)rn at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)rn at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)rn at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)rn at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)rn at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)rn at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)rn at org.jboss.Main.boot(Main.java:209)rn at org.jboss.Main$1.run(Main.java:547)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.lang.Error: Error visiting DelegatingHandler@24392888[path=claim.war/WEB-INF/lib/prpall.jar context=file:/D:/jboss-5.0.0.GA/server/default/deploy/ real=file:/D:/jboss-5.0.0.GA/server/default/deploy/claim.war/WEB-INF/lib/prpall.jar]rn at org.jboss.classloading.plugins.vfs.PackageVisitor.determineAllPackages(PackageVisitor.java:98)rn at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.determineCapabilities(VFSDeploymentClassLoaderPolicyModule.java:108)rn at org.jboss.classloading.spi.dependency.Module.getCapabilities(Module.java:485)rn at org.jboss.classloading.spi.dependency.Module.determinePackageNames(Module.java:544)rn at org.jboss.classloading.spi.dependency.Module.getPackageNames(Module.java:529)rn at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.determinePolicy(VFSDeploymentClassLoaderPolicyModule.java:129)rn at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.determinePolicy(VFSDeploymentClassLoaderPolicyModule.java:48)rn at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.getPolicy(ClassLoaderPolicyModule.java:149)rn at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.getPolicy(VFSDeploymentClassLoaderPolicyModule.java:122)rn at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.getPolicy(VFSDeploymentClassLoaderPolicyModule.java:48)rn at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.registerClassLoaderPolicy(ClassLoaderPolicyModule.java:88)rn at org.jboss.deployers.plugins.classloading.AbstractLevelClassLoaderSystemDeployer.createClassLoader(AbstractLevelClassLoaderSystemDeployer.java:120)rn at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.createClassLoader(AbstractDeploymentContext.java:562)rn ... 21 morernCaused by: java.lang.RuntimeException: Failed to read zip file: org.jboss.virtual.plugins.context.zip.ZipFileWrapper@1146f25 - D:\jboss-5.0.0.GA\server\default\tmp\vfs-nested.tmp\3f0874f7_reserve.rarrn at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:563)rn at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:693)rn at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChildren(ZipEntryContext.java:765)rn at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChildren(ZipEntryHandler.java:149)rn at org.jboss.virtual.plugins.context.DelegatingHandler.getChildren(DelegatingHandler.java:120)rn at org.jboss.virtual.plugins.context.AbstractVFSContext.getChildren(AbstractVFSContext.java:171)rn at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:288)rn at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:258)rn at org.jboss.virtual.VFS.visit(VFS.java:404)rn at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:407)rn at org.jboss.virtual.VirtualFile.getChildren(VirtualFile.java:356)rn at org.jboss.virtual.VirtualFile.getChildren(VirtualFile.java:337)rn at org.jboss.classloading.plugins.vfs.PackageVisitor.visit(PackageVisitor.java:200)rn at org.jboss.virtual.plugins.vfs.helpers.WrappingVirtualFileHandlerVisitor.visit(WrappingVirtualFileHandlerVisitor.java:62)rn at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:313)rn at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:328)rn at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:328)rn at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:258)rn at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:326)rn at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:258)rn at org.jboss.virtual.VFS.visit(VFS.java:404)rn at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:407)rn at org.jboss.classloading.plugins.vfs.PackageVisitor.determineAllPackages(PackageVisitor.java:94)rn ... 33 morernCaused by: java.util.zip.ZipException: error in opening zip filern at java.util.zip.ZipFile.open(Native Method)rn at java.util.zip.ZipFile.(ZipFile.java:114)rn at java.util.zip.ZipFile.(ZipFile.java:131)rn at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)rn at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)rn at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:461)rn at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:554)rn ... 55 more
这些异常可以告诉我什么信息求解
我的JAVA程序编译通过,而且能运行,但是会出现如下的<em>异常</em>提示,也看不明白到底是怎么加速,问一下,怎么才能[color=#FF0000]最大限度的从下面的提示得到信息[/color]。比如说可不可看出[color=#FF0000]第二行的downloadStarted是被什么调用[/color]的不?rnrn[code=Java]rnException in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionrn at JDIC.MyWebBrowserListener.downloadStarted(MyWebBrowserListener.java:159)rn at org.jdesktop.jdic.browser.WebBrowser.dispatchWebBrowserEvent(WebBrowser.java:395)rn at org.jdesktop.jdic.browser.NativeEventThread$2.run(NativeEventThread.java:309)rn at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)rn at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)rn at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)rn at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)rnException in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionrn at JDIC.MyWebBrowserListener.titleChange(MyWebBrowserListener.java:35)rn at org.jdesktop.jdic.browser.WebBrowser.dispatchWebBrowserEvent(WebBrowser.java:410)rn at org.jdesktop.jdic.browser.NativeEventThread$2.run(NativeEventThread.java:309)rn at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)rn at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)rn at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)rn at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)[/code]
求解,一段代码产生的异常
[code=C/C++]rnrn((TRMMemoView *)RMReport1->FindObject("Memo_所有总数"))->Memo->Textrnrn= IntToStr( StrToInt( ((TRMMemoView *)RMReport1->FindObject("Memo_河蟹总数"))->Memo->Text )rnrn+ StrToInt( ((TRMMemoView *)RMReport1->FindObject("Memo_靆嫑总数"))->Memo->Text ) );rnrnrnrn结果运行时提示这个错误:rnrnabnormal program terminationrnrn请帮助!rnrn[/code]
在activity中的子线程中startActivity异常求解
Version: 5.4.3(15)rnAndroid: 5.0.2(NX508J)rnException: Attempt to invoke virtual method 'void android.view.View.dispatchCancelPendingInputEvents()' on a null object referencernandroid.view.ViewGroup.dispatchCancelPendingInputEvents(ViewGroup.java:3523)rnandroid.view.ViewGroup.dispatchCancelPendingInputEvents(ViewGroup.java:3523)rnandroid.view.ViewGroup.dispatchCancelPendingInputEvents(ViewGroup.java:3523)rnandroid.view.ViewGroup.dispatchCancelPendingInputEvents(ViewGroup.java:3523)rnandroid.view.ViewGroup.dispatchCancelPendingInputEvents(ViewGroup.java:3523)rnandroid.view.ViewGroup.dispatchCancelPendingInputEvents(ViewGroup.java:3523)rnandroid.view.View.cancelPendingInputEvents(View.java:13503)rnandroid.app.Activity.startActivityForResult(Activity.java:3801)rnandroid.app.Activity.startActivityForResult(Activity.java:3740)rnandroid.app.Activity.startActivity(Activity.java:4050)rnandroid.app.Activity.startActivity(Activity.java:4018)rncom.trustmobi.mixin.app.ui.base.BaseActivityMessage.checkGuestLock(BaseActivityMessage.java:375)rncom.trustmobi.mixin.app.ui.base.BaseActivityMessage$1.run(BaseActivityMessage.java:311)rnjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)rnjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)rnjava.lang.Thread.run(Thread.java:818)
SQL Server2005 时发生的异常求解?
$exception "已成功与服务器建立连接,但是在登录过程中发生错误。 rn(provider: 命名管道提供程序, error: 0 - 管道的另一端上无任何进程。)" rnSystem.Exception System.Data.SqlClient.SqlException--这是在连接SQL Server2005 时发生的<em>异常</em>,rn哪位大虾能不能指点一下错在哪里了,我用windows身份,sa身份登陆数据库,都是这相<em>异常</em>,我是从配置文件里读取数据库信息的rn
一个简单的sql异常求解!!!在线等
[code=C#]rn SqlCommand Comd = new SqlCommand(sqlstr, sqlConn);rn SqlDataAdapter Da = new SqlDataAdapter();rn Da.SelectCommand = Comd;rn Comd.CommandType = CommandType.Text;rn rn DataSet Ds = new DataSet("Attractions");rn Da.Fill(Ds, "Attractions");rn DataTable table = new DataTable();rn table = Ds.Tables["Attractions"];rn[/code]rnrn第6句代码报<em>异常</em>:“对象名 'Attractions' 无效。”,可是我在数据库的表名称就是Attractions,这是怎么回事??请问是哪里错误???
flash制作的铅笔画,非常牛下载
十分不错,欢迎使用,值得初学者学习 flash铅笔画动画 相关下载链接:[url=//download.csdn.net/download/zkb868/3303035?utm_source=bbsseo]//download.csdn.net/download/zkb868/3303035?utm_source=bbsseo[/url]
spring-3.2.0+struts-2.3.4+hibernate-4.0.1下载
【声明】本jar类包的合集是根据书本上以及自己开发中的经验自行配置的,可以保证基本的SSH项目的运行,本人已亲自使用多个大小型项目的开发,可以完美运行。 【注意】在SSH的开发中,不同的jar包有不同的作用,本人不能保证全部功能的包含。本人的此jar合集只能保证SSH2的基础环境,至于更复杂的功能,可能此集合已经包含,或者您可以从您下载的Spring或者hibernate或者struts中寻找您需要的jar包,按要求添加即可。 【因本人能力有限,不能保证此jar集合的完全正确性,所以不喜勿下,下了勿喷】 相关下载链接:[url=//download.csdn.net/download/yali24/4449622?utm_source=bbsseo]//download.csdn.net/download/yali24/4449622?utm_source=bbsseo[/url]
手机所属区域自动查询系统下载
手机所属区域自动查询系统,使用java jsp 技术实现,代码完整,附有数据库 相关下载链接:[url=//download.csdn.net/download/wkkys/4863832?utm_source=bbsseo]//download.csdn.net/download/wkkys/4863832?utm_source=bbsseo[/url]
相关热词 c#异步发送kafka c#窗体编号 c# 操作二进制文件 c# 反射 机制 c#线程 窗体失去响应 c#角度转弧度 c# 解析gps数据 c# vs设置 语法版本 c# json含回车 c#多线程demo
我们是很有底线的