python AttributeError: _exit_ 这是什么错误

python AttributeError: exit 这是什么错误

2个回答

你可能要贴出完整的代码才行,猜测你出错的代码可能是在with语句块中。
下面是在stackoverflow撒花姑娘找到的一句话
with statement is for object that have __enter__ and __exit__ functions, i.e. Context Manager Types
希望对你有些启发

没有这个属性,或者定义有问题

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
这是什么错误这是?
[code=Java]rn03:37:39,501 ERROR HibernateStrategy:96 - EXCEPTION opening sessionrn03:37:39,501 ERROR HibernateStrategy:327 - During QUERYrnjava.lang.RuntimeExceptionrn at com.beida.jbedu.persistence.hibernate.HibernateStrategy.getSession(HibernateStrategy.java:98)rn at com.beida.jbedu.persistence.hibernate.HibernateStrategy.query(HibernateStrategy.java:323)rn at com.beida.jbedu.elmsV2.business.manager.RoleNewManager.listAllMenuWithoutPageWithCloseSession(RoleNewManager.java:429)rn at com.beida.jbedu.v2.common.filter.URLFilter.doFilter(URLFilter.java:63)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.beida.jbedu.common.filter.PermissionCheckFilter.doFilter(PermissionCheckFilter.java:163)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.beida.jbedu.v2.common.filter.LoginFilter.doFilter(LoginFilter.java:108)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.beida.jbedu.common.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:56)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:156)rn at com.beida.jbedu.v2.common.filter.SSOFilter.doFilter(SSOFilter.java:41)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:214)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)rn at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:534)rnURLFilter过滤器出现异常,发生在获取所有功能模块业务中,IRoleNewManager--listAllMenuWithoutPage()rnjavax.servlet.ServletException: set local elms session error javax.servlet.ServletException: During QUERY: nullrn at com.beida.jbedu.v2.common.filter.LoginFilter.doFilter(LoginFilter.java:110)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.beida.jbedu.common.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:56)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:156)rn at com.beida.jbedu.v2.common.filter.SSOFilter.doFilter(SSOFilter.java:41)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:214)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)rn at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:534)rnrn[/code]
Python出现属性错误(Attributeerror)的原因之一
检查类中构造函数__init__()是否写正确,左右两边各两条下划线
Python中的AttributeError错误的常见原因
常见的原因如下: 类构造函数出了问题,本来是init()函数,但有几个类的构造函数成了_init,少了一个’_’符号 缩进不正确,把空格当做tab。
Python AttributeError异常
遇到一个很奇怪的问题,本人刚学习Python ,在学类与对象的方法时,在调用方法时,我的对象名取名为k ,然而死活就是报AttributeError异常; 在反复检查代码无误后,然后我试着改一下名字,奇迹出现了,名字一改就好了,我以为不能使用单个字母,抱着试一试的心态,我将对象名改为a ,奇迹再次出现,成功了!!!规则不是很懂,还请大神指教nn```n class Person:n population=0n def __init__(self,name):n self.name=namen print '(Initializing %s)'%self.namen Person.population+=1n def __del__(self):n print'%s says bye.'%self.namen Person.population-=1n if Person.population==0:n print 'I am the last one.'n else:n print 'There are still %d people left.'% Person.populationn def sayHi(self):n print 'Hi,my name is %s.' % self.namen def howMany(self):n if Person.population==1:n print 'I am the only person here.'n else :n print 'We have %d persons here.' % Person.populationnswaroop=Person('swaroop')nswaroop.sayHi()nswaroop.howMany()nn# 此处有问题 na=Person('Abdul Kalam')na.sayHi()na.howMany()nnswaroop.sayHi()nswaroop.howMany()n```nn
AttributeError
Traceback (most recent call last):rn File "model_test.py", line 20, in rn import commonrn File "/home/tl/deeplab/common.py", line 45, in rn flags.DEFINE_enum('model_variant', 'xception_65', ['xception_65'],rnAttributeError: module 'tensorflow.python.platform.flags' has no attribute 'DEFINE_enum'rnrncommom.py,line45:rnflags.DEFINE_enum('model_variant', 'xception_65', ['xception_65'],rn 'DeepLab model variants.')rnrn
msado15.dll错误,这是什么错误?
我写了一个小程序,分发给网友用,用Delphi7编写,主要是对ACCESS数据库进行操作的,使用了TADOQuery控件。但有两个网友先后向我反映保存数据库时出现下面错误:rn“Acces violation at address 1F453E7E in module 'msado15.dll'.Write of address 00D99000.”rn此时退出软件又出现下面错误:rn“Exception EAccessViolation in module Car.exe at CD09A400.Access violation at address CD09B400.Read of address CD09B400.”rnrn这是什么错误啊?我的电脑上从未出现这样的错误。请高手指教如何解决这个问题!!!
这是什么错误
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: /index1.jsp(1,5) Invalid directivern org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:90)rn org.apache.jasper.compiler.Parser.parseDirective(Parser.java:506)rn org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)rn org.apache.jasper.compiler.Parser.parse(Parser.java:126)rn org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)rn org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrnrn--------------------------------------------------------------------------------rn
这是什么错误?
Error 404--Not Found rnFrom RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:rn10.4.5 404 Not FoundrnThe server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.rnrnIf the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.rn rn
这是什么错误?
ie报错rnMicrosoft OLE DB Provider for SQL Server 错误 '80004005' rnrn用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。 rn我的代码rnset conn = Server.CreateObject("ADODB.Connection")rnaa="Provider=SQLOLEDB;Data Source=127.0.0.1;UID=sa;PWD=sa;DataBase=testdb"rnconn.open aarnrn
这是什么错误??
网上的一段代码,帮忙看看。rnrn/* (swing1.1beta3) */rn//package jp.gr.java_conf.tame.swing.examples;rnrnimport java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rnimport javax.swing.table.*;rnimport javax.swing.event.*;rnrnrn/**rn * @version 1.0 12/05/98rn */rnrnpublic class FixedColumnExample extends JFrame rn Object[][] data;rn Object[] column;rn JTable fixedTable,table;rnrn public FixedColumnExample() rn super( "Fixed Column Example" );rn setSize( 400, 150 );rn rn data = new Object[][]rn "1","11","A","","","","","",rn "2","22","","B","","","","",rn "3","33","","","C","","","",rn "4","44","","","","D","","",rn "5","55","","","","","E","",rn "6","66","","","","","","F";rn column = new Object[]"fixed 1","fixed 2","a","b","c","d","e","f";rn rn AbstractTableModel fixedModel = new AbstractTableModel() rn public int getColumnCount() return 2; rn public int getRowCount() return data.length; rn public String getColumnName(int col) rn return (String)column[col]; rn rn public Object getValueAt(int row, int col) rn return data[row][col]; rn rn ;rn AbstractTableModel model = new AbstractTableModel() rn public int getColumnCount() return column.length -2; rn public int getRowCount() return data.length; rn public String getColumnName(int col) rn return (String)column[col +2]; rn rn public Object getValueAt(int row, int col) rn return data[row][col+2]; rn rn public void setValueAt(Object obj, int row, int col) rn data[row][col +2] = obj; rn rn public boolean CellEditable(int row, int col) rn return true; rn rn ;rn rn fixedTable = new JTable( fixedModel ) rn public void valueChanged(ListSelectionEvent e) rn super.valueChanged(e);rn checkSelection(true); rn rn ;rn table = new JTable( model ) rn public void valueChanged(ListSelectionEvent e) rn super.valueChanged(e);rn checkSelection(false); rn rn ;rn fixedTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);rn table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);rn fixedTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);rn table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);rn rn JScrollPane scroll = new JScrollPane( table );rn JViewport viewport = new JViewport();rn viewport.setView(fixedTable);rn viewport.setPreferredSize(fixedTable.getPreferredSize());rn scroll.setRowHeaderView(viewport);rn scroll.setCorner(JScrollPane.UPPER_LEFT_CORNER,fixedTable.getTableHeader());rn rn getContentPane().add(scroll, BorderLayout.CENTER);rn rn rn private void checkSelection(boolean isFixedTable) rn int fixedSelectedIndex = fixedTable.getSelectedRow();rn int selectedIndex = table.getSelectedRow();rn if (fixedSelectedIndex != selectedIndex) rn if (isFixedTable) rn table.setRowSelectionInterval(fixedSelectedIndex,fixedSelectedIndex);rn else rn fixedTable.setRowSelectionInterval(selectedIndex,selectedIndex);rn rn rn rnrn public static void main(String[] args) rn FixedColumnExample frame = new FixedColumnExample();rn frame.addWindowListener( new WindowAdapter() rn public void windowClosing( WindowEvent e ) rn System.exit(0);rn rn );rn frame.setVisible(true);rn rnrnrn执行结果:rnException in thread "main" java.lang.NullPointerExceptionrn at ..........................................................(省略)rnrn什么错误,帮忙看看,谢谢!!
技术问题:这是什么错误?
我在VC++6.0下建立了一个win32 console application工程,然后添加两个文件,一个头文件design.h和一个源文件design.c,编译时无错,但在建立和运行时就出现如下得错误提示:LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _mainrnDebug/3des.exe : fatal error LNK1120: 1 unresolved externalsrn请问这是什么问题呢?应该怎样修改?
这是什么错误啊?
exetest error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall CMath::~CMath(void)" (__imp_??1?$CMath@H@@QAE@XZ) ,该符号在函数 _main 中被引用rnrnrn在WIN32的控制台程序中调用MFC扩展DLL导出的类时遇到的错误~rn我已经在项目属性的LINK那里把相应的lib文件加进去了,但还是这样
请问这是什么错误?
我在webapps下建立了helloapp虚拟目录,目录下有login.jsp,只是一个登陆页面。rn打127.0.0.1/helloapp/login.jsp出现以下错误。编译不了rn但我以把系统变量path中加入了%java_home%\binrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrnrnNo Java compiler was found to compile the generated source for the JSP. rnThis can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK rnto the common/lib directory of the Tomcat server, followed by a Tomcat restart. rnIf using an alternate Java compiler, please check its installation and access path.rnrn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)rn org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:413)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn我把j2sdk与tomcat安装在不同的盘里,是否有关系?rnrn
请问这是什么错误???????????
at java.net.SocketOutputStream.socketWrite0(Native Method)rnrn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)rnrn at java.net.SocketOutputStream.write(SocketOutputStream.java:136)rnrn at org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:674)rnrn at org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:764)rnrn at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:647)rnrn at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:312)rnrn at org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:189)rnrn at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1921)rnrn at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1670)rnrn at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1215)rnrn at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:525)rnrn at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)rnrn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rnrn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rnrn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rnrn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)rnrn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rnrn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rnrn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rnrn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)rnrn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rnrn at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)rnrn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rnrn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rnrn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rnrn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)rnrn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rnrn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rnrn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)rnrn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rnrn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)rnrn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rnrn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rnrn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rnrn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rnrn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rnrn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rnrn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rnrn at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)rnrn at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)rnrn at java.lang.Thread.run(Thread.java:536)rnrn
这是什么错误啊
net.sf.hibernate.MappingException: Error reading resource: DataBase/code/TbSupertype.hbmrn at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:339)rn at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:1018)rn at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:974)rn at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:902)rn at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:888)rn at DataBase.code.dao._RootDAO.initialize(Unknown Source)rn at TestCase.TestCase.setUp(Unknown Source)rn at junit.framework.TestCase.runBare(TestCase.java:125)rn at junit.framework.TestResult$1.protect(TestResult.java:106)rn at junit.framework.TestResult.runProtected(TestResult.java:124)rn at junit.framework.TestResult.run(TestResult.java:109)rn at junit.framework.TestCase.run(TestCase.java:118)rn at junit.framework.TestSuite.runTest(TestSuite.java:208)rn at junit.framework.TestSuite.run(TestSuite.java:203)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)rnCaused by: net.sf.hibernate.MappingException: invalid mappingrn at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:287)rn at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:336)rn ... 16 morernCaused by: org.xml.sax.SAXParseException: Attribute "iverse" must be declared for element type "set".rn at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)rn at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)rn at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.dom4j.io.SAXReader.read(SAXReader.java:339)rn at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:286)rn ... 17 more
这是什么错误啊?
package com.example.eclipse.java1;rnrn这个是什么错误啊?rnrn怎么下面一直有红线rnrn我该怎么修改?rn
这是一个什么错误???
Error: 500 Location: /bbs/index.htmlInternal Servlet Error:java.lang.IllegalStateException: Can't happen - classname is null, who added this ?rn at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)rn at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)rn at org.apache.tomcat.core.Handler.service(Handler.java:254)rn at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)rn at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)rn at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)rn at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)rn at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)rn at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)rn at java.lang.Thread.run(Thread.java:484)rnrnrnrnrnrn
这是什么错误???急!
--------------------Configuration: i4U - Win32 Debug Unicode--------------------rnLinking...rnmsvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16rnDebugUnicode/i4U.exe : fatal error LNK1120: 1 unresolved externalsrnError executing link.exe.rn但我的程序里面根本就没有调用msvcrt的函数啊!
请问这是什么错误?
javax.servlet.ServletExceptionrn at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.sunrex.rexass.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:38)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.sunrex.rexass.util.HttpSessionExpiredFilter.doFilter(HttpSessionExpiredFilter.java:104)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(Thread.java:595)
这是什么错误呢?
Linking...rnlibcmtd.lib(crt0.obj) : error LNK2001: unresolved external symbol _mainrnDebug/气球.exe : fatal error LNK1120: 1 unresolved externalsrnError executing link.exe.rnrn在MFC编程中,我已经选择了using MFC in a static Library,怎么会有这种错误呢?
这是什么错误???
Compiler Error C2720rn'identifier' : 'specifier' storage-class specifier illegal on membersrnrnA storage class was illegally specified for the given identifier.rnrnThe following is an example of this error:rnrnstruct Srnrn static int i;rn;rnstatic S::i; // errorrn这个msdn上的错误是什么意思?rnrn
这是什么错误。。。。。。。
事件 791rnID : 204rn类型 : 错误rn日期 : 2003年1月9日rn时间 : 16:01:52rn来源 : WAMrn描述 : HTTP 服务器在处理 ISAPI 应用程序 'rnIISRTL!ALLOC_CACHE_HANDLER::Alloc(void) + 0x7rnISATQ!_AtqAddAsyncHandle@24 + 0x1CrnISATQ!CDirMonitor::Monitor(class CDirMonitorEntry *,char const *,int,unsigned long) + 0xACrnasp!TS_RESOURCE::Unlock(void) + 0x2B87rn + rn计算机 : HErnrn这个错误会有什么样的后果,我的iis不能够用,与它有关吗?
这是什么错误...
唉..rn(224) : error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (__stdcall *)(void *)'rnrn怎么解决.??rn我太菜了.rnrn
请问这是什么错误???
我在连接ACCESS数据库的时候,程序出现如下错误,请问是什么原因。谢谢rnjavax.servlet.ServletException: [Microsoft][ODBC 驱动程序 管理器] 未发现数据源名称并且未指定默认驱动程序rn源程序如下:rnrnrn rn rn rn rn Viewrnrnrn rnrn<%rnString name;rnString password;rn%>rn<%@ page import="java.sql.*" %>rn<%rnString url=new String();rnString sql=new String();rnurl="jdbc:odbc:test";rnClass.forName("sun.jdbc.odbc.JdbcOdbcDriver");rnConnection conn=DriverManager.getConnection(url);rnStatement stat=conn.createStatement();rn%>rn<%rntryrn sql="select name,password from test";rn ResultSet rs1=stat.executeQuery(sql);rn while(rs1.next())rn for(int j=1;j<3;j++)rn rn name=rs1.getString("name");rn password=rs1.getString("password");rn out.println(" "+name+" "+password);rn rn rn rs1.close();rnrncatch(Exception e)rn String errorcode=new String();rn errorcode=e.toString();rn out.println(" error:"+errorcode);rnrn%>rnrnrn
这是什么错误》
写了一个类,rnStudentMgt rn编译过了,运行的时候出现下面的问题,rnException in thread "main" java.lang.NoClassDefFoundError: StudentMgt (wrong namrne: com/tarena/biz/StudentMgt)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(Unknown Source)rn at java.security.SecureClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.access$000(Unknown Source)rn at java.net.URLClassLoader$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClassInternal(Unknown Source)rn不知道是什么问题
这是什么错误?救我!!!!
2002-10-09 09:33:20 HTTP Web Server: Lotus Notes Exception - The Address Book does not contain a cross certificate capable of validating the public key.rn[/oa_fileflow.nsf/a9f31a2cc7968afb48256ae7001138bb?OpenForm]rnrn这是什么错误?我打不开oa_fileflow.nsf/a9f31a2cc7968afb48256ae7001138bb?OpenForm页面.rnrnrn
请问这是什么错误
“/”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn磁盘空间不足。 rn说明: 使用 CodeDomProvider“Microsoft.CSharp.CSharpCodeProvider”进行编译的过程中发生未处理的异常。请检查堆栈跟踪,了解有关此错误以及代码中发生此错误的位置的详细信息。 rnrn异常详细信息: System.IO.IOException: 磁盘空间不足。 rnrn源错误: rnrn执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 rnrn堆栈跟踪: rnrnrn[IOException: 磁盘空间不足。rn]rn System.IO.__Error.WinIOError(Int32 errorCode, String str) +723rn System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count) +134rn System.IO.FileStream.FlushWrite() +55rn System.IO.FileStream.Flush() +39rn System.IO.FileStream.Dispose(Boolean disposing) +32rn System.IO.FileStream.Close() +17rn System.CodeDom.Compiler.CodeCompiler.FromDomBatch(CompilerParameters options, CodeCompileUnit[] ea) +383rn System.CodeDom.Compiler.CodeCompiler.FromDom(CompilerParameters options, CodeCompileUnit e) +90rn System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit e) +37rn System.Web.Compilation.BaseCompiler.GetCompiledType() +250rnrn rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET 框架版本:1.0.3705.209; ASP.NET 版本:1.0.3705.0
★★这是什么错误啊?★★
“Error creating Form:Invalid stream format”rn这是什么错误?是什么原因导致出现这个错误?
jboss下这是什么错误????
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrn[color=#FF0000]javax.servlet.ServletException: Servlet execution threw an exceptionrn org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)[/color]rnrnrnroot cause rnrn[color=#FF0000]java.lang.NoClassDefFoundErrorrn sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[/color]rn sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn java.lang.reflect.Constructor.newInstance(Constructor.java:494)rn java.lang.Class.newInstance0(Class.java:350)rnrn
----请问这是什么错误??????
used #pragma pack to change alignment
看看这是什么错误??
Error: 500rnLocation: /mis/conn.jsprnInternal Servlet Error:rnrnjava.lang.IllegalStateException: Response has already been committedrn at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:157)rn at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)rn at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)rn at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)rn at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)rn at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)rn at java.lang.Thread.run(Thread.java:484)rnrn
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池