element-ui 报错问题,,求解答

图片说明

element-ui 一直报这个错。。
请教大佬这什么原因呢?????

2个回答

检查下index 是否是undefined
还有把代码贴出来,才能定位具体错误的因素

父子组件prop传值出错,

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求解答,网站报错
网站调试的时候总报错:rnrn命令“del ……\webapp\bin\dotcms.data.sqlite.* del ……\webapp\bin\System.Data.SQLite.DLL”已退出,代码为 1.rnrn命令“del ……\webapp\bin\dotcms.editor.tinymce.*”已退出,代码为 1 。rnrn数据库用的是SQLite 那位高人遇到过类似情况,帮忙解答一下。
Maven报错,求解答
刚刚安装maven3rn执行命令 mvn help:systemrnrn报下面的错误:rnrn[ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-plugin:2.1.1:rnsystem (default-cli) on project standalone-pom: Execution default-cli of goal orrng.apache.maven.plugins:maven-help-plugin:2.1.1:system failed: Plugin org.apache.rnmaven.plugins:maven-help-plugin:2.1.1 or one of its dependencies could not be rernsolved: Failure to find junit:junit:jar:3.8.1 in http://repo.maven.apache.org/marnven2 was cached in the local repository, resolution will not be reattempted untirnl the update interval of central has elapsed or updates are forced -> [Help 1]rnrn怎么解决?
指针数组报错,求解答
rn我这么写rn[code=c]char* arr[] = "AA", "BB", "CC";[/code]rnrn出现报错rnwarning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]rnrn我这么写不对吗,网上找了好多人都是这么写的,为什么我就报错了
文件上传的时候报错问题,小白求解答
org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/x-www-form-urlencodedrn at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.(FileUploadBase.java:947)rn at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:310)rn at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:334)rn at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:115)rn at com.atguigu.javaweb.UploadServlet.doPost(UploadServlet.java:41)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)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:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:610)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:503)rn at java.lang.Thread.run(Thread.java:745)rnrnrn[color=#FF0000]jsp页面代码:[/color]rn<%@ page language="java" contentType="text/html; charset=UTF-8"rn pageEncoding="UTF-8"%>rnrnrnrn rn Insert title herernrnrn rn rn rn rn rnrnrnrnrnrn[color=#FF0000]uploadServlet.java代码:[/color]rnpackage com.atguigu.javaweb;rnrnrnimport java.io.File;rnimport java.io.FileOutputStream;rnimport java.io.IOException;rnimport java.io.InputStream;rnimport java.io.OutputStream;rnimport java.util.List;rnrnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnimport org.apache.commons.fileupload.FileItem;rnimport org.apache.commons.fileupload.FileUploadException;rnimport org.apache.commons.fileupload.disk.DiskFileItemFactory;rnimport org.apache.commons.fileupload.servlet.ServletFileUpload;rnrn/**rn * Servlet implementation class UploadServletrn */rnpublic class UploadServlet extends HttpServlet rn private static final long serialVersionUID = 1L;rnrn /**rn * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)rn */rn protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn DiskFileItemFactory factory = new DiskFileItemFactory();rn rn factory.setSizeThreshold(1024 * 500);rn File tempDirectory = new File("D:\\tempDirectory");rn factory.setRepository(tempDirectory);rn rn ServletFileUpload upload = new ServletFileUpload(factory);rn upload.setFileSizeMax(1024 * 1024 * 5);rn rn try rn List items = upload.parseRequest(request);rn for(FileItem item:items)rn if(item.isFormField())rn String name = item.getFieldName();rn String value = item.getString();rn System.out.println(name + ":" + value);rn elsern rn String fieldname = item.getFieldName();rn String filename = item.getName();rn String contentType = item.getContentType();rn long sizeInBytes = item.getSize();rn rn System.out.println(fieldname);rn System.out.println(filename);rn System.out.println(contentType);rn System.out.println(sizeInBytes);rn rn InputStream inputStream = item.getInputStream();rn byte [] buffer = new byte[1024];rn int len = 0;rn rn filename = "D:\\files\\" + filename;rn System.out.println(filename);rn OutputStream outputStream = new FileOutputStream(filename);rn while((len = inputStream.read(buffer)) != -1)rn outputStream.write(buffer, 0, len);rn rn outputStream.close();rn inputStream.close();rn rn rn rn catch (FileUploadException e) rn // TODO 自动生成的 catch 块rn e.printStackTrace();rn rn rnrnrn
hibernate update报错问题 求高手解答
java.lang.NullPointerExceptionrn at org.hibernate.type.LongType.next(LongType.java:54)rn at org.hibernate.engine.Versioning.increment(Versioning.java:25)rn at org.hibernate.event.def.DefaultFlushEntityEventListener.getNextVersion(DefaultFlushEntityEventListener.java:262)rn at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:140)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.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)rn at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
springmvc+mybatis3.3报错,求大神解答
[DEBUG]2015-08-11 22:34:39,338 org.springframework.web.servlet.DispatcherServlet Could not complete requestrnorg.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.ExceptionInInitializerErrorrn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:972)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ExceptionInInitializerErrorrn at cn.sg.dao.impl.ProductDaoImpl.qryProductByPage(ProductDaoImpl.java:66)rn at cn.sg.service.CupboardService.qryProductByPage(CupboardService.java:23)rn at cn.sg.controller.BackStageController.QueStoreList(BackStageController.java:46)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)rn ... 24 morernCaused by: org.apache.ibatis.exceptions.PersistenceException: rn### Error building SqlSession.rn### The error may exist in cn/sg/model/Product1.xmlrn### The error occurred while processing mapper_resultMap[tab_product]rn### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:79)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:71)rn at cn.sg.util.MyBatisUtilNew.(MyBatisUtilNew.java:29)rn ... 38 morernCaused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:106)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:89)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:77)rn ... 40 morernCaused by: java.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:108)rn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:95)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:317)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:104)rn ... 42 morern八月 11, 2015 10:34:39 下午 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [sasmvc] in context with path [/CUPBOARD] threw exception [Handler processing failed; nested exception is java.lang.ExceptionInInitializerError] with root causernjava.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:108)rn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:95)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:317)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:104)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:89)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:77)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:71)rn at cn.sg.util.MyBatisUtilNew.(MyBatisUtilNew.java:29)rn at cn.sg.dao.impl.ProductDaoImpl.qryProductByPage(ProductDaoImpl.java:66)rn at cn.sg.service.CupboardService.qryProductByPage(CupboardService.java:23)rn at cn.sg.controller.BackStageController.QueStoreList(BackStageController.java:46)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)
上传图片报错,求高手解答
对路径“/UploadFile/”的访问被拒绝。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.UnauthorizedAccessException: 对路径“/UploadFile/”的访问被拒绝rnrnASP.NET 未被授权访问所请求的资源。请考虑授予 ASP.NET 请求标识访问此资源的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常,在 IIS 5 上为 MACHINE\ASPNET,在 IIS 6 上为网络服务)。如果应用程序正在通过 模拟,则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。 rnrn要将 ASP.NET 访问权限授予某个文件,请在资源管理器中右击该文件,选择“属性”,然后选择“安全”选项卡。单击“添加”添加适当的用户或组。突出显示 ASP.NET 帐户,选中所需访问权限对应的框。rn
收藏 Maven报错,求解答
刚刚安装maven3rn执行命令 mvn help:systemrnrn报下面的错误:rnrn[ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-plugin:2.1.1:rnsystem (default-cli) on project standalone-pom: Execution default-cli of goal orrng.apache.maven.plugins:maven-help-plugin:2.1.1:system failed: Plugin org.apache.rnmaven.plugins:maven-help-plugin:2.1.1 or one of its dependencies could not be rernsolved: Failure to find junit:junit:jar:3.8.1 in http://repo.maven.apache.org/marnven2 was cached in the local repository, resolution will not be reattempted untirnl the update interval of central has elapsed or updates are forced -> [Help 1]rnrn怎么解决?
net异常报错求解答
************** 异常文本 **************rnSystem.Runtime.InteropServices.SEHException: 外部组件发生异常。rn 在 NationalInstruments.Vision.Internal.VisionDllCommon.imaqClearOverlay(IntPtr _image, String _group)rn 在 NationalInstruments.Vision.Overlay.Clear()rn 在 PinTest.Form1.Cam1work()rn 在 PinTest.Form1.timer1_Tick(Object sender, EventArgs e)rn 在 System.Windows.Forms.Timer.OnTick(EventArgs e)rn 在 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)rn 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn兄弟们能教我下怎么看异常处理文本吗?给个思路吧。。。没思绪不知道怎么看啊~~ 谢谢啦
PLsql新手报错求解答
declare rnaa VARCHAR2 (50);rnbb VARCHAR2(50);rncc VARCHAR2(50);rnCURSOR cur IS rnSELECT a,b,c FROM testarnbeginrn OPEN cur;rn FETCH cur INTO aa,bb,cc;rn LOOPrn EXIT WHEN NOT cur%FOUND;rn IF a='x' THENrn INSERT into testb(a,b,c) VALUES (aa,bb,cc);rn ELSErn INSERT INTO testb(a,b,c) VALUES (aa,'1','1');rn END IF;rn FETCH cur INTO aa,bb,cc;rn END LOOP;rn CLOSE cur;rnend;rnrn这样写的,报一堆错误,用plsql的test windows运行的
testNDK报错,求帮忙解答
先上代码:rn[code=Java]rnpackage com.example.testndk;rnrnimport android.app.Activity;rnimport android.os.Bundle;rnimport android.widget.TextView;rnrnpublic class MainActivity extends Activity rnrn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn TextView tv=new TextView(this);rn tv.setText(stringFromJNI());rn setContentView(tv);rn rn rn public native String stringFromJNI();rn rn static rn System.loadLibrary("hello-jni");rn rn rnrn[/code]rnrn[code=C/C++]rn#include rn#include rnrnjstringrnJava_com_example_testndk_TestNDK_stringFromJNI( JNIEnv* env,jobject thiz )rnrn return (*env)->NewStringUTF(env, "Hello from JNI !");rnrn[/code]rnrn请问大家我的代码错在哪了 运行的时候报异常crashrnrn[color=#FF0000]java.lang.UnsatisfiedLinkError: stringFromJNI[/color]rnrn求解答 万分感谢
hibernate插入报错。。。求解答!
2012-3-23 10:06:11 org.hibernate.util.JDBCExceptionReporter logExceptions rn 警告: SQL Error: 1452, SQLState: 23000 rn 2012-3-23 10:06:11 org.hibernate.util.JDBCExceptionReporter logExceptions rn 严重: Cannot add or update a child row: a foreign key constraint fails (`studysystem`.`articleinfor`, CONSTRAINT `FKE90A0E4EE57DF3E5` FOREIGN KEY (`typeid`) REFERENCES `articletype` (`typeid`)) rn org.springframework.dao.DataIntegrityViolationException: could not insert: [com.studysystem.model.article.ArticleInfor]; SQL [insert into articleinfor (articleName, authorName, brandid, clickcount, commend, content, createDate, description, typeid, viewcount, visible) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [com.studysystem.model.article.ArticleInfor] rn at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:637) rn at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) rn at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411) rn at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) rn at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:683) rn at com.studysystem.dao.handler.imp.spring.SpringHandler.saveObj(SpringHandler.java:58) rn at com.studysystem.dao.BaseDAO.save(BaseDAO.java:41) 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.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) rn at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) rn at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) rn at $Proxy29.save(Unknown Source) rn at com.studysystem.service.BaseService.save(BaseService.java:32) 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.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) rn at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) rn at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) rn at $Proxy39.save(Unknown Source) rn at JUnit.test.ArticleInforServiceTest.testSave(ArticleInforServiceTest.java:68) 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) rn at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) rn at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) rn at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) rn at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) rn at org.junit.runners.ParentRunner.run(ParentRunner.java:300) rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) 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 Caused by: org.hibernate.exception.ConstraintViolationException: could not insert: [com.studysystem.model.article.ArticleInfor] rn at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96) rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) rn at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:64) rn at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2329) rn at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2836) rn at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71) rnrn这是我junit测试出来的rnJava代码 收藏代码rnrn org.hibernate.AssertionFailure: null id in com.studysystem.model.article.ArticleInfor entry (don't flush the Session after an exception occurs) rn at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:82) rn at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:190) rn at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:147) rn at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219) rn at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99) rn at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50) rn at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206) rn at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:375) rn at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137) rn at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:656) rn at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754) rn at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723) rn at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:375) rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120) rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) rn at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) rn at $Proxy39.save(Unknown Source) rn at JUnit.test.ArticleInforServiceTest.testSave(ArticleInforServiceTest.java:68) rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) rn rn
scrapy执行报错,求解答
File "e:\python\app\lib\site-packages\scrapy\downloadermiddlewares\httpproxy.py", line 5, in &lt;module&gt; from urllib2 import _parse_proxy File "e:\python\app\lib\urllib2.py", line 229 ra...
element-ui多选框组件切换报错问题
问题描述:页面定义了三个多选框,根据不同的条件展示不同的&lt;div&gt;下的多选框,但是由班级切换到课程的时候页面报错。 页面源码如下: &lt;div v-if="formModel.radio == 2" &gt; &lt;el-form-item prop="class" :label="$t('system.count.class')"&gt; ...
求解答求解答
一般公司招C++程序员是写什么样的程序?windows程序还是什么?rnC++到底能写些什么东西?rn一直说写游戏写游戏,但是我就是不明白怎么写游戏?rnVC++?MFC?API?我怎么感觉这三样都是另外的语言啊???????
求解答,求解答,求解答,谢谢
![图片](https://img-ask.csdn.net/upload/201512/14/1450082237_371680.jpg)
Android程序新建报错,求解答
最近在学习Android编程,按照教程新建了一个Android工程,发现完成后报出许多错误,但教程上新建完成后就可以运行,由于是新手,不懂到底是哪里出问题了,还请大牛指教,谢谢!!!n![图片说明](https://img-ask.csdn.net/upload/201605/24/1464056981_312557.png)
安装oracle 11g报错,求解答!!!!!!!!!!!!!!!!
[img=https://img-bbs.csdn.net/upload/201305/23/1369300269_256055.png][/img]
更新ListView报错,求高手解答
报错信息: ERROR/AndroidRuntime(302): java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. [in ListView(2131034114, class android.widget.ListView) with Adapter(class com.isoftstone.adapter.MainListViewAdapter)]rnrn通过多线程发送Handle发送消息rn代码:rn rn Message msg = new Message();rn msg.what = 1;rn handle.sendMessage(msg);rnrn // 更新adapterrn adapter.notifyDataSetChanged();
奇怪的报错 C# (新手求大神解答)
大神们,求帮忙看看为什么会报这个错?rnSystem.NullReferenceException: Object reference not set to an instance of an object.rn at ShootSearch.ShootSeg.Segment.SegmentText(String strText) in d:\Tools\ShootSearch_Segment_1_0_bate 070312\ShootSearch_Segment_1_0_bate 070312\ShootSeg\Segment.cs:line 482rn at ShootSearch.ShootSeg.Segment.SegmentText(String strText, Boolean Enter) in d:\Tools\ShootSearch_Segment_1_0_bate 070312\ShootSearch_Segment_1_0_bate 070312\ShootSeg\Segment.cs:line 888rn at SegTest.Form1.Main() in d:\Tools\ShootSearch_Segment_1_0_bate 070312\ShootSearch_Segment_1_0_bate 070312\SegTest\Form1.cs:line 129rnrn报这个错的原因是我在main函数里加了这几句话(红色的):rn [color=#FF0000]Segment seg = new Segment();[/color] rn string str="日前,奇虎董事长周鸿祎新推出了一款反流氓软件“360安全卫士”,并将雅虎中国3721网络实名定义为流氓软件。此举引起了雅虎员工的强烈不满,甚至有就职于雅虎的原3721员工声称将起诉周鸿祎。围绕着3721这个产品,引发了一场雅虎中国与奇虎之间的战争。";rn [color=#FF0000]seg.Separator = "/";[/color]rn Console.WriteLine(seg.SegmentText(str,true));rn报错对应的行:rnline 482: if(h.ContainsKey(strChar1))rnline 888: reText += SegmentText(strArr[i]) + "\r\n";rnline 129: Console.WriteLine(seg.SegmentText(str,true));rn
VS中的报错,急求解答!
C++运行,老出现“错误 1 error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 C:\Users\Administrator\Desktop\vba-learning\vba-learning\LINK vba-learning[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/8.gif][/img]
新人运行程序,package 报错,求解答
[code=java]package lee;rnrn/**rnrn* Description:rnrn* 网站: 疯狂Java联盟 rnrn* Copyright (C), 2001-2012, Yeeku.H.Leernrn* This program is protected by copyright laws.rnrn* Program Name:rnrn* Date:rnrn* @author Yeeku.H.Lee kongyeeku@163.comrnrn* @version 1.0rnrn*/rnrnpublic class JavadocTestrnrnrnrn/**rnrn* 简单测试Fieldrnrn*/rnrnprotected String name;rnrn/**rnrn* 主方法,程序的入口rnrn*/rnrnpublic static void main(String[] args) rnrnrnrnSystem.out.println("Hello World!");rnrnrnrnrn[/code]rn这个JavadocTest 类程序,运行时报错rnException in thread "main" java.lang.NoClassDefFoundError: JavadocTest (wrong narnme: lee/JavadocTest)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:792)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14rn2)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)rn at java.net.URLClassLoader.access$100(URLClassLoader.java:71)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:361)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:355)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:354)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:424)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:357)rn at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)rn请按任意键继续. . .rn去掉package lee; 运行正常 在网上搜了package信息 说是要把代码弄到lee下的 看的迷迷糊糊的,还是没解决 我是按照书上用editplus运行的rn小弟求教到底怎么回事? rnrn
shiro 登录报错,求大神解答!!!!
public String login(String username,String password,HttpServletRequest request,HttpServletResponse response) throws NoSuchAlgorithmException, UnsupportedEncodingExceptionrn rn //User user=userServiceImpl.selectByUsername(username);rn Subject subject = SecurityUtils.getSubject(); rn UsernamePasswordToken token=new UsernamePasswordToken(username,password);rn token.setRememberMe(true);rn subject.login(token);rn token.clear();rn rn //request.setAttribute("user", user);rn rn return "main";rn rn rnrnrealms.javarnprotected AuthenticationInfo doGetAuthenticationInfo(rn AuthenticationToken authcToken) throws AuthenticationException rn // TODO Auto-generated method stubrn UsernamePasswordToken token = (UsernamePasswordToken) authcToken;rn User user = userService.selectByUsername(token.getUsername());rn if (user != null) rn String pass=new String((char[])token.getCredentials());rn try rn if(MD5Kit.authenticatePassword(MD5Kit.mixed(user.getSalt(),pass), user.getPassword()))rn SimpleAuthenticationInfo account= new SimpleAuthenticationInfo(user.getUsername(), userrn .getPassword(), getName());rn ByteSource salt = ByteSource.Util.bytes(user.getSalt());rn account.setCredentialsSalt(salt);rn return account;rn elsern return null;rn rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn return null;rn rn else rn return null;rn rn rn报错:rn八月 27, 2015 9:31:57 上午 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [springMvc] in context with path [/sktask] threw exception [Request processing failed; nested exception is org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=true] did not match the expected credentials.] with root causernorg.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=true] did not match the expected credentials.rn at org.apache.shiro.realm.AuthenticatingRealm.assertCredentialsMatch(AuthenticatingRealm.java:600)rn at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:578)rn at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)rn at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)rn at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)rn at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)rn at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)rn at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)rn at com.sk.main.controller.LoginController.login(LoginController.java:36)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)rn at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)rn at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)rn at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)rn at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)rn at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)rn at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)rn at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)rn at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)rn at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)rn at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)rn at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:745)rnrn
VS2008新建一个wince7报错求解答
1. 在XP环境下,搭建一个VS2008开发环境;rnrn 2. 按照官网安装顺序:rnrnStep 1: Install Visual Studio 2008rnrnStep 2: Installing Microsoft Expression Blend 3 (optional), required for using Silverlight for Windows EmbeddedrnrnStep 3: Install Windows Embedded Compact 7rnrn 3. 安装 Windows Embedded Compact 7过程中,我只选择X86架构;rnrn 4. 通过plate build 在新建一个image的时候,报错了;rn [img=https://img-bbs.csdn.net/upload/201604/28/1461824529_477992.jpg][/img]rn rnrn 提示环境有参数不对,但是一直没有找到解决办法,希望有经验的朋友指导,多谢了!!!
班级管理系统程序报错,求解答
#includern#includern#includernvoid menu();rnvoid imput();rnstruct studentrn char name[10]; rn int num; rn char dorm[10]; rn char qq[50];rn char phone[50];rn;rnvoid menu()rnrn printf("********************************************\n");rn printf("*** 170140342班 ***\n");rn printf("********************************************\n");rn printf("********************************************\n");rn printf("****** 班级同学管理系统 ******\n");rn printf("******1. 输入学生信息 ******\n");rn printf("******2. 保存学生信息 ******\n");rn printf("******3. 显示系统中的学生资料 ******\n");rn printf("******4. 查询学生信息 ******\n");rn printf("******5. 修改学生信息 ******\n");rn printf("******6. 删除学生信息 ******\n");rn printf("******7. 添加学生信息 ******\n");rn printf("******8. 排序学生信息 ******\n");rn printf("******9. 退出系统 ******\n");rn printf("********************************************\n");rn printf("请选择操作项目:");rnrnvoid imput()rnrn int a,b=0;rn struct student stu[100];rnprintf("学生人数:");rnscanf("%d",&a);rnsystem("cls");rnwhile(b=70)rnrn printf("%d%s%s%s%s",stu[b].num,stu[b].name,stu[b].dorm,stu[b].qq,stu[b].phone);rn b--;rnprintf("信息有误,请重新输入学号:");rnscanf("%d",&stu[b].num);rnfflush(stdin);rnprintf("姓名:");rnscanf("%d",stu[b].name);rnfflush(stdin);rnprintf("宿舍:");rnscanf("%d",stu[b].dorm);rnfflush(stdin);rnprintf("QQ:");rnscanf("%d",stu[b].qq);rnfflush(stdin);rnprintf("电话:");rnscanf("%d",stu[b].phone);rnprintf("%d%s%s%s%s",stu[b].num,stu[b].name,stu[b].dorm,stu[b].qq,stu[b].phone);rnrnrnrnrnvoid main()rnrnint a;rnmenu();rnscanf("%d",&a);rn switch(a)rn rn case 1:system("cls");imput();break;rn rnsystem("pause");rnrn输入学号为1却显示学号有误 值为-858993460,而且输出时,字符串均为烫
MFC 创建excel时候报错,求解答
n //删除表 只剩下一个表n for (short i = 1; i<= (short)m_wsExcels.get_Count(); i++)n n m_wsExcelSingle.AttachDispatch(m_wsExcels.get_Item(COleVariant((short)i)));n m_wsExcelSingle.Delete();n n运行到这里的时候报错,是什么原因呢nnCATCH_ALL(e)n n lResult = AfxProcessWndProcException(e, &pThreadState->m_lastSentMsg);n TRACE(traceAppMsg, 0, "Warning: Uncaught exception in WindowProc (returning %ld).\n",n lResult);n DELETE_EXCEPTION(e);n
reader读取XML报错,求解答?
我自编译的一个XML文件,放在d盘下,名字是1.xml。rn代码如下rn Document doc =null;rn SAXReader reader = new SAXReader();rn List rowList=null;rn File xmlFile = new File(path); rn tryrn System.out.println(path);rn System.out.println("aaaa"); rn doc = reader.read(xmlFile);//此句报错:[Ljava.lang.StackTraceElement;@145e044rn System.out.println("bbbb");rnrn我想问下,为什么报错,为什么读取不了,求大神解答,谢谢!
启动时报错DependencyResolutionException 求大神解答
[ERROR] Failed to execute goal on project hellomaven: Could not resolve dependencies for project com.rr:hellomaven:war:0.0.1-SNAPSHOT: Could not find artifact com.oracle:ojdbc6:jar:11.2.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]rn[ERROR] rn[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.rn[ERROR] Re-run Maven using the -X switch to enable full debug logging.rn[ERROR] rn[ERROR] For more information about the errors and possible solutions, please read the following articles:rn[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
cxf2.6和spring3.0 访问报错求解答
<2013-6-21 下午02时57分30秒 CST> rn<2013-6-21 下午02时57分31秒 CST> rn<2013-6-21 下午02时57分31秒 CST> rn<2013-6-21 下午02时57分31秒 CST> rn<2013-6-21 下午02时57分32秒 CST> rn<2013-6-21 下午02时57分32秒 CST> rn<2013-6-21 下午02时57分32秒 CST> rn<2013-6-21 下午02时57分32秒 CST> rn<2013-6-21 下午02时57分34秒 CST> rn<2013-6-21 下午02时57分35秒 CST> rn<2013-6-21 下午02时57分38秒 CST> rn<2013-6-21 下午02时57分38秒 CST> rn2013-6-21 14:57:43 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClassrn信息: Creating Service http://cxf.zx.com/HelloWorldImplService from class com.zx.cxf.IHelloWorldrn2013-6-21 14:57:44 org.apache.cxf.endpoint.ServerImpl initDestinationrn信息: Setting the server's publish address to be /CxfTesterrn2013-6-21 14:57:46 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClassrn信息: Creating Service http://cxf.zx.com/HelloWorldImplService from class com.zx.cxf.IHelloWorldrn2013-6-21 14:57:47 org.apache.cxf.endpoint.ServerImpl initDestinationrn信息: Setting the server's publish address to be /CxfTesterrn<2013-6-21 下午02时57分47秒 CST> rn<2013-6-21 下午02时57分47秒 CST> rn<2013-6-21 下午02时57分47秒 CST> rn<2013-6-21 下午02时57分48秒 CST> rn<2013-6-21 下午02时57分48秒 CST> rn<2013-6-21 下午02时57分48秒 CST> rn<2013-6-21 下午02时57分48秒 CST> rn<2013-6-21 下午02时57分48秒 CST> rn<2013-6-21 下午02时57分48秒 CST> rn<2013-6-21 下午02时57分48秒 CST> rn2013-6-21 14:57:58 org.apache.cxf.phase.PhaseInterceptorChain doDefaultLoggingrn警告: Interceptor for http://cxf.zx.com/HelloWorldImplService has thrown exception, unwinding nowrnorg.apache.cxf.frontend.WSDLQueryException: Exception occurred while trying to process http://127.0.0.1:8001/spring/cxf/CxfTesterrn at org.apache.cxf.frontend.WSDLGetUtils.getDocument(WSDLGetUtils.java:267)rn at org.apache.cxf.frontend.WSDLGetInterceptor.getDocument(WSDLGetInterceptor.java:160)rn at org.apache.cxf.frontend.WSDLGetInterceptor.handleMessage(WSDLGetInterceptor.java:112)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)rn at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)rn at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:237)rn at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:214)rn at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:194)rn at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:130)rn at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:225)rn at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:150)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)rn at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:201)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3686)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)rnCaused by: java.lang.RuntimeException: Problem creating schema implementationrn at org.apache.cxf.wsdl11.ServiceWSDLBuilder.getSchemaImplementation(ServiceWSDLBuilder.java:296)rn at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:312)rn at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:202)rn at org.apache.cxf.frontend.WSDLGetUtils.getDocument(WSDLGetUtils.java:188)rn ... 25 morernCaused by: javax.wsdl.WSDLException: WSDLException: faultCode=CONFIGURATION_ERROR: No Java extensionType found to represent a 'http://www.w3.org/2001/XMLSchemaschema' element in the context of a 'javax.wsdl.Types'.rn at javax.wsdl.extensions.ExtensionRegistry.createExtension(ExtensionRegistry.java:350)rn at org.apache.cxf.wsdl11.ServiceWSDLBuilder.getSchemaImplementation(ServiceWSDLBuilder.java:294)rn ... 28 more
SVN提交的时候报错!求解答!
org.apache.subversion.javahl.ClientException: svn: E160024: Commit failed (details follow):rnsvn: E160024: File or directory '.settings/org.eclipse.core.resources.prefs' is out of date; try updatingrnsvn: E160024: resource out of date; try updatingrnsvn: E175002: CHECKOUT of '/svn/EDM/!svn/ver/30/FENRUN/EDMWEB/.settings/org.eclipse.core.resources.prefs': 409 Conflict (https://pc-201208221447:8443)rnorg.apache.subversion.javahl.ClientException: svn: E160024: Commit failed (details follow):rnsvn: E160024: File or directory '.settings/org.eclipse.core.resources.prefs' is out of date; try updatingrnsvn: E160024: resource out of date; try updatingrnsvn: E175002: CHECKOUT of '/svn/EDM/!svn/ver/30/FENRUN/EDMWEB/.settings/org.eclipse.core.resources.prefs': 409 Conflict (https://pc-201208221447:8443)
springMVC报错,在线等,求大神解答
在使用spring框架的时候出现找不到类的异常,我自己下载包到导入了,还是这样。这个javax/portlet/PortletException到底是什么???求大神解答rn十二月 23, 2015 11:57:05 上午 org.apache.catalina.core.ApplicationContext logrn严重: StandardWrapper.Throwablernjava.lang.NoClassDefFoundError: javax/portlet/PortletExceptionrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:800)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3114)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1342)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1823)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)rn at java.lang.Class.getDeclaredMethods(Class.java:1868)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:507)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1069)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:667)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:633)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:681)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:552)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:493)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5253)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5543)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.ClassNotFoundException: javax.portlet.PortletExceptionrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn ... 48 morern十二月 23, 2015 11:57:05 上午 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet [SpringMVC05] in web application [/SpringMVC04] threw load() exceptionrnjava.lang.ClassNotFoundException: javax.portlet.PortletExceptionrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:800)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3114)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1342)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1823)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)rn at java.lang.Class.getDeclaredMethods(Class.java:1868)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:507)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1069)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:667)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:633)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:681)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:552)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:493)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5253)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5543)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn
c程序 报错诸多 求解答
程序写的比较繁琐,但偶尽力了~~rnrn#include rn#include rn#include rnstruct student rnrn char name[20]; //姓名rn char number[20]; //学号rn char sex[2];//性别 rns[60];rnstruct kechengrnrn char xuefen[5];rn char ming[5];rnk[60];rnstruct scorernrn double pinshi; //平时成绩 rn double qizhong; //期中成绩rn double qimo; //期末成绩rnsc[60];rnvoid head() //界面rnrn printf(rn "*************************************\n"rn "** **\n"rn "** 学生成绩管理系统 **\n"rn "** **\n"rn "** 1.信息录入 **\n" rn "** 2.信息浏览 **\n"rn "** 3.信息查询 **\n"rn "** 4.信息排序 **\n"rn "** 5.信息删除 **\n"rn "** 6.信息修改 **\n"rn "** 0.退出系统 **\n"rn "** **\n"rn "*****************************************\n"rn );rnrnvoid daoru1(struct student s[], int* n) //文件导入函数rnrn int i=*n;rn FILE *fp;rn if((fp=fopen("student.txt", "w"))==NULL)rn rn *n=*n;rn return;rn rn elsern rn while(!feof(fp))rn rn fscanf(fp, "%s%s%s\n", s[i].name, s[i].number,s[i].sex);rn i++;rn rn rn *n = i;rn fclose(fp);rnrnvoid daoru2(struct kecheng k[], int* n) //文件导入函数rnrn int i=*n;rn FILE *fp;rn if((fp=fopen("kecheng.txt", "w"))==NULL)rn rn *n=*n;rn return;rn rn elsern rn while(!feof(fp))rn rn fscanf(fp, "%s%s\n", k[i].ming,k[i].xuefen);rn i++;rn rn rn *n = i;rn fclose(fp);rnrnvoid daoru3(struct score sc[], int* n) //文件导入函数rnrn int i=*n;rn FILE *fp;rn if((fp=fopen("score.txt", "w"))==NULL)rn rn *n=*n;rn return;rn rn elsern rn while(!feof(fp))rn rn fscanf(fp, "%d%d%d\n", sc[i].pinshi,sc[i].qizhong,sc[i].qimo);rn i++;rn rn rn *n = i;rn fclose(fp);rnrnvoid daochu1(struct student s[], int n)rnrn FILE *p;rn int i=0;rn if((p=fopen("student.txt", "w"))==NULL)rn rn printf("无法打开此文件!");rn exit(-1);rn rn elsern rn while(i
求大神解答fragment 切换过快报错
Fragment 里面有listView 是从网络上获取数据显示,网络上获取数据有延迟可能要1秒左右才能显示 ,当数据还没有显示出来时,切换到其他的 fragment 就会报错如下:rnrnFATAL EXCEPTION: mainrnjava.lang.NullPointerExceptionrnat android.view.LayoutInflater.from(LayoutInflater.java:210)rnat com.xdj.alat.adapter.NeedSupplyAdapter.(NeedSupplyAdapter.java:23)rnat com.xdj.alat.fragment.ServiceFragment$1.handleMessage(ServiceFragment.java:75)rnrnrn我用的handler传的数据:rn Handler handler = new Handler() rn public void handleMessage(Message msg) rn String data = (String) msg.obj;rn list_need = new ArrayList();rn if (adapter == null) rn adapter = new NeedSupplyAdapter(getActivity(), list_need);rn needlist.setAdapter(adapter);rn rn ServiceNeedJson.serviceneedjson(data, list_need);rn rn ;rn求大神解答下这种要怎么处理下。还有个问题时,当我访问服务器 ,服务器却没有打开,当开了时这边只要访问过也会报错。
首次使用webservice报错,求解答
代码:import java.util.HashMap;nimport java.util.Map;nnimport javax.jws.WebMethod;nimport javax.jws.WebService;nimport javax.xml.ws.Endpoint;nimport net.sf.json.JSON;nimport net.sf.json.JSONObject;nn@WebServicenpublic class sayhello n @WebMethodn public JSON add()n Maptest=new HashMap();n test.put("1", "a1");n test.put("2", "a2");n test.put("3", "a3");n test.put("4", "a4");n test.put("5", "a5");n test.put("6", "a6");n JSONObject jsonObject = JSONObject.fromObject(test);n return jsonObject;n nn public static void main(String[] args) n System.out.println(System.getProperty("java.endorsed.dirs"));n Endpoint.publish("http://localhost:9001/service/sayhello", new sayhello());n System.out.println("success");n nnnnnnnnSLF4J: Class path contains multiple SLF4J bindings.nSLF4J: Found binding in [jar:file:/E:/jdk/lib/endorsed/slf4j-jdk14-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]nSLF4J: Found binding in [jar:file:/C:/Users/%e7%8e%8b%e8%b4%9d%e8%b4%9d/Workspaces/MyEclipse%208.5/service/WebRoot/WEB-INF/lib/slf4j-jdk14-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.nSLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]nException in thread "main" java.lang.ExceptionInInitializerErrorn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)n at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)n at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)n at java.lang.reflect.Constructor.newInstance(Unknown Source)n at java.lang.Class.newInstance(Unknown Source)n at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:36)n at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:95)n at javax.xml.ws.spi.Provider.provider(Provider.java:76)n at javax.xml.ws.Endpoint.publish(Endpoint.java:156)n at com.net.cn.sayhello.main(sayhello.java:29)nCaused by: java.lang.NullPointerExceptionn at java.util.ResourceBundle.getBundle(Unknown Source)n at org.apache.cxf.common.i18n.BundleUtils.getBundle(BundleUtils.java:80)n at org.apache.cxf.common.logging.LogUtils.createLogger(LogUtils.java:249)n at org.apache.cxf.common.logging.LogUtils.getL7dLogger(LogUtils.java:201)n at org.apache.cxf.jaxws.spi.ProviderImpl.(ProviderImpl.java:68)n ... 10 more
html报错:Uncaught TypeError的错误,求解答
html报错:Uncaught TypeError: $(...).dropdown is not a function,但是控制台没有报错,页面的下拉图标没有显示,这是哪里出错了呢?引用的js以前还是可以用的。
两次comboBox1绑定后报错..求解答
[code=C#] private void AddNews_Load(object sender, EventArgs e)rn rn tryrn rn label5.Text = Nowtime.ToString();rn string commandNew = "select * from News";rn AdapterNew = new SqlDataAdapter(commandNew, dbconn.connection);rn AdapterNew.Fill(dtNew,"News");rn dataGridViewNews.DataSource=dtNew.Tables["News"];rn string News_Class = "select * from News_Class";rn AdapterNew = new SqlDataAdapter(News_Class, dbconn.connection);rn AdapterNew.Fill(dtNew,"News_Class");rn comboBox1.DataSource = dtNew.Tables["News_Class"];rn comboBox1.DisplayMember = "ClassName";rn comboBox1.ValueMember="ClassID";rn rn catch (Exception ex)rn rnrn MessageBox.Show(ex.ToString());rn rnrnrnrn [/code]rnrn[code=C#] private void comboBox1_SelectionChangeCommitted(object sender, EventArgs e)rn rn comboBox2.Items.Clear();rn string News_SubClass = string.Format("select * from News_SubClass where ClassID=0", comboBox1.SelectedValue.ToString());rn AdapterNew = new SqlDataAdapter(News_SubClass, dbconn.connection);rn AdapterNew.Fill(dtNew, "News_SubClass");rn //DataTable dt = dtNew.Tables["News_SubClass"];rn //DataRow dr = dt.NewRow();rn //dr["SubClassName"] = "测试";rn //dt.Rows.InsertAt(dr, 0);rn DataTable dt = dtNew.Tables["News_SubClass"]; ;rn // comboBox2.DataSource = dtNew.Tables["News_SubClass"];rn //dtNew.Tables.Add(rn dtNew.Tables.Remove(dt);rn dtNew.Tables.Add(dt);rn comboBox2.DataSource = dtNew.Tables["News_SubClass"];rn comboBox2.DisplayMember = "SubClassName";rn comboBox2.ValueMember = "SubClassID";rn [/code]rn代码如上..求解
导入项目后R.id.lv 报错!求大神解答
[size=24px]不知道怎么了 我截了图 但是 图片无法上传,我导入了项目后 R文件中有lv1这个变量 可是 在引用的时候却报错[/size]rnpackage com.example.listadapter;rnrnimport java.util.ArrayList;rnimport java.util.List;rnrnimport android.R;rnimport android.os.Bundle;rnimport android.app.Activity;rnimport android.view.Menu;rnimport android.widget.ArrayAdapter;rnimport android.widget.ListView;rnrnpublic class MainActivity extends Activity rnrn @Overridern protected void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.activity_list_item);rn //返回listView实例rn ListView lv1=(ListView) findViewById(R.id.lv1);[color=#FF0000]!!!!!!!!!!这个位置lv1下报错 lv1 cant be resolved or it is not a field[/color]rn List items=new ArrayList();rn //向集合中添加数据rn for (int i = 0; i < 10; i++) rn items.add("数据"+(i+1));rn rn /**rn * 第一种适配器rn * ArrayAdapter(Context,textViewResourceId 就是listview中每一行的布局,数据集合)rn */ rn ArrayAdapter adapter=new ArrayAdapter(this,android.R.layout.simple_expandable_list_item_1,items);rn //设置适配器rn lv1.setAdapter(adapter);rn rnrn @Overridern public boolean onCreateOptionsMenu(Menu menu) rn // Inflate the menu; this adds items to the action bar if it is present.rn getMenuInflater().inflate(R.menu.main, menu);rn return true;rn rnrnrn
编译通过,链接报错!求解答!
代码如下所示:rn#includernusing namespace std;rnclass Shapernrnpublic:rn float area();//面积rn float per();//周长rn void show();rn;rnclass Circle:virtual public Shapernrn float x,y,r;rnpublic:rn Circle(float xx,float yy,float rr)rn rn x=xx;y=yy;r=rr;rn rn float area()rn rn return 3.14159*r*r;rn rn float per()rn rn return 2*3.14159*r;rn rn void show()rn rn cout<<"cir.area="<
关于phpExcel导入数据库的报错,求大神解答
用phpexcel导入数据库,提示如下报错:rn[img=https://img-bbs.csdn.net/upload/201803/12/1520860779_575907.png][/img]rnrnrn我的关键代码如下:rn[img=https://img-bbs.csdn.net/upload/201803/12/1520860801_741611.png][/img]rnrnrn从语法角度 没发现什么问题。报错提示中给出了K重庆市永川区……。但是我的通讯地址列应该是J,而不是K。rnrn我直接在数据库中导入表是没有问题的,但是通过phpexcel程序导入就出现了这个报错。求大神解答!
eclipse import报错,求高人解答!
小弟最近入手了一个旧的maven项目,碰到一个很奇怪的问题,代码如下rnimport com.lowagie.text.BadElementException;rnimport com.lowagie.text.Cell;rnimport com.lowagie.text.Chunk;rnimport com.lowagie.text.Document;rnimport com.lowagie.text.Element;rnimport com.lowagie.text.Font;rnimport com.lowagie.text.FontFactory;rnimport com.lowagie.text.HeaderFooter;rnimport com.lowagie.text.PageSize;rnimport com.lowagie.text.Phrase;rnimport com.lowagie.text.Rectangle;rnimport com.lowagie.text.Table;rnimport com.lowagie.text.pdf.PdfWriter;rneclipse提示报错rnarchive for required library"....jar包路径....." could not be readrnrn上面的import代码除了最后一句import com.lowagie.text.pdf.PdfWriter;没有报错以外其余的都报错,我已经确认了jar包的路径没有错。即使我再建立一个项目导入该jar包,再弄个import com.lowagie.text.BadElementException;上去还是报错,但是import com.lowagie.text.pdf.PdfWriter;就是不报错,对此我很疑惑,为什么同个jar包下的不同的路径的类会不能导入?求解答!
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件