Remoting客户端出的异常,不知是什么原因:不允许在此安全级别上被反序列化. [问题点数:50分,结帖人huoyan999]

Bbs2
本版专家分:201
结帖率 97.56%
Bbs9
本版专家分:54076
Blank
微软MVP 2005年7月 荣获微软MVP称号
2006年7月 荣获微软MVP称号
Bbs9
本版专家分:54076
Blank
微软MVP 2005年7月 荣获微软MVP称号
2006年7月 荣获微软MVP称号
对象反序列化异常原因:java.io.InvalidClassException
对象<em>反序列化</em><em>异常</em><em>原因</em>:java.io.InvalidClassException                 晚上写了个序列化和<em>反序列化</em>的Demo,序列化时程序正常,不过在<em>反序列化</em>由于修改了被序列化类的源码,在<em>反序列化</em>是就报了上述<em>异常</em>;网上查了一下,自己邮箱了一下终于找到<em>异常</em>的<em>原因</em>。        原来,系统为每个实现序列化接口(serializable)的类都分配了一个可序列化I
这个异常是什么原因
在测试一个BMP EJB时,遇到这样的问题:在得到一个引用以后,我先调用了它的一个set方法,接着调用了自己写的一个Update方法,其大致内容如下:rn tryrn rn String sql="update production set a=?,b=?where ID=? ";rn ps = connect.prepareStatement(sql);rn ps.setLong(1,this.a);rn ps.setString(2,this.b);rn ps.setLong(3,this.ID);rn int intResult=ps.executeUpdate();rn if(intResult!=1)rn throw new SQLException("更新记录出错!");rn rn rn catch(Exception ex)rn rn rn throw new EJBException("Exception in Update:"+ex);rn rn就发生了以下<em>异常</em>:rnRemoteException occurred in server thread; nested exception is: com.ibm.ejs.container.UncheckedException: ; nested exception is: javax.ejb.EJBException: Exception in ejbStore:com.ibm.websphere.ce.cm.StaleConnectionException: Connection is closed rn看得出来是和数据库的连接关闭了,但是我在调用这个方法之前只用了一个set方法,而且程序里面也没有显示的关闭连接的代码,为什么就关闭了连接啊?rn大虾们帮忙看看!
异常java.lang.NullPointerException是什么原因
<em>异常</em>java.lang.NullPointerException<em>是什么</em><em>原因</em>
这个异常 是什么原因
Exception in thread "main" java.lang.NoClassDefFoundError: Memoryrnrn在压缩文件后 运行 绘出来这样的问题 都是有什么<em>原因</em>引起的????
下面异常是什么原因
导出数据 出现<em>异常</em> :System.InvalidOperationException: Conversion failed because the DateTime data value overflowed the type specified for the DateTime value part in the consumer's buffer.rn at System.Data.OleDb.ColumnBinding.Value()rn at System.Data.OleDb.OleDbDataReader.GetValues(Object[] values)rn at System.Data.ProviderBase.DataReaderContainer.CommonLanguageSubsetDataReader.GetValues(Object[] values)rn at System.Data.ProviderBase.SchemaMapping.LoadDataRow()rn at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping)rn at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)rn at System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)rn at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)rn at MsaFluxC_2.Service_C.myTimer_Elapsed(Object sender, ElapsedEventArgs e)rn
mmap出错,不知是什么原因.
RT...代码如下...rnrncode:[code=C/C++]rn rn int pid,fd, *share, i;rn char ok[2], filename[6];rn rn sprintf(filename, "%d", getpid());rn rn if (fd = open(filename, O_RDWR | O_CREAT, 0664) == -1)rn err_sys("creat tmpfile failed");rn unlink(filename);rn lseek(fd, sizeof(int) - 1, SEEK_SET);rn write(fd, "A", 1);rn rn share = (int *)mmap(NULL, sizeof(int), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);rn if (share == MAP_FAILED)rn err_sys(" mmap failed");rnrn[/code]rnrn错误:No such devicernrn这是问为什么不成功啊,求教,谢谢...
不知这个错误是什么原因
这段代码怎么会出错??rn string mySelectQuery = "SELECT cn_id,cn_n_parentid FROM tn_sys_product";rn OleDbConnection myConnection = new OleDbConnection(System.Configuration.ConfigurationSettings.AppSettings["strConnection"].ToString());rn OleDbCommand myCommand = new OleDbCommand(mySelectQuery,myConnection);rn myConnection.Open();rn OleDbDataReader myReader;rn myReader = myCommand.ExecuteReader();rn while (myReader.Read()) rn rn Response.Write( myReader.GetString(1));rn rn myReader.Close();rn myConnection.Close();rnrnrnrn未指定的错误:E_FAIL(0x80004005) rn说明: 执行当前 Web 请求期间,出现未处理的<em>异常</em>。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn<em>异常</em>详细信息: System.Data.OleDb.OleDbException: 未指定的错误:E_FAIL(0x80004005)rnrn源错误: rnrnrn行 24: myConnection.Open();rn行 25: OleDbDataReader myReader;rn行 26: myReader = myCommand.ExecuteReader();rn行 27: // Always call Read before accessing data.rn行 28: while (myReader.Read()) rn rn
不知是什么原因,很迷惑
各位:rn 我先安装了Lotus Domino 6英文版服务器,接着安装中文语言包(采用覆盖方式),最后进行服务器初始配置。可系统在进行server setup配置时的显示和server启动时console窗口中的显示都为英文。是不是我装错了,还是其它<em>原因</em>?我以前安装4.66中文版不是这样的,所有显示全是中文。rnrn希望大家指点。谢谢!rn
很奇怪.不知是什么原因~~~
/* 建立链表 */rnSTUDENT* Creat()/* 带头尾插入 */ rnrn STUDENT* head,*p1; rn head=(STUDENT*)malloc(LEN);rn if(head==NULL)rn rn fflush(stdin); rn printf("内存分配出错!\n");rn printf("按任意键结束...\n");rn fflush(stdin); rn getchar();rn exit(0); rn rn p1=head;rn while(1) rn rn p1->next=(STUDENT*)malloc(sizeof(LEN));rn if(!p1->next)rn rn fflush(stdin); rn printf("内存分配出错!\n");rn printf("按任意键结束...\n");rn fflush(stdin); rn getchar();rn exit(0); rn rn printf("学号(整形): ");rn scanf("%d",&p1->next->num); rn if(p1->next->num==0)break; rn printf("姓名(字符串): ");rn scanf("%s",p1->next->name);rn printf("分数(浮点型): ");rn scanf("%f",&p1->next->score);rn p1=p1->next; rn rn p1->next=NULL; rn return head;rnrnrn/* 输出链表 */rnvoid Output(STUDENT* p)rnrn while(p->next)rn rn printf("%5d%6s%8.2f\n",p->next->num,p->next->name,p->next->score); rn p=p->next; rn rn rn建立链表后再输出出了问题,当元素超过6个时,输出就出错了!!rn请那位大侠帮帮忙吧!!
一个不知是什么原因的问题
我在global.asax写了如下代码rn Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)rn ' 在会话启动时激发rn Session.Timeout = 60rn Session("ShoppingCart") = ""rn End Subrnrn然后在某一页面写page_load写了如下代码rn Dim Cart As DataTablern If Session("ShoppingCart") = Nothing Thenrn Cart = New DataTablern Cart.Columns.Add(New DataColumn("Title", GetType(String)))rn Cart.Columns.Add(New DataColumn("Price", GetType(String)))rn Session("ShoppingCart") = Cartrn End If rnrn这个页面在首次运行时没有出现错误提示,但当刷新一下就会出现错误rn“运算符对 类型“DataTable” 和 'Nothing' 无效”
总是报错不知是什么原因!!!
在用CAsyncSocket作一个基于UDP的网络通信程序,作了一个派生类:rnrnclass CMySocket : public CAsyncSocket rn rn rn public: rn CMySocket(); rn virtual ~CMySocket(); rnprotected:rn CShou* m_pDoc; //这里报错 rn ; rn结果编译报错如下:rnf:\c++\example\shou\shoudoc.h(22) : error C2143: syntax error : missing ';' before '*'rnf:\c++\example\shou\shoudoc.h(22) : error C2501: 'CDASocket' : missing storage-class or type specifiersrnf:\c++\example\shou\shoudoc.h(22) : error C2501: 'm_hSocket' : missing storage-class or type specifiersrn一开始并没有出错,当我在class CShouDoc : public CDocument中加入变量rnpublic: rnCDASocket* m_hSocket;rn就报出上面的错误,到底<em>是什么</em>问题啊?急!!请帮帮忙,谢谢
一个错误,不知是什么原因
我做的一个小程序,出现下面的错误提示,我不明白<em>原因</em>,好心的高手指点一下。rnrn500 Servlet Exceptionrnjava.lang.NullPointerExceptionrn at _modify__jsp._jspService(/modify.jsp:24)rn at com.caucho.jsp.JavaPage.service(JavaPage.java:75)rn at com.caucho.jsp.Page.subservice(Page.java:506)rn at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)rn at com.caucho.server.http.Invocation.service(Invocation.java:315)rn at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)rn at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:344)rn at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)rn at com.caucho.server.TcpConnection.run(TcpConnection.java:139)rn at java.lang.Thread.run(Thread.java:534)rnrnrn--------------------------------------------------------------------------------rnResin 2.1.9 (built Tue Apr 15 14:28:40 PDT 2003)
腾讯不允许其他的 QQ 客户端的原因
(这是我以前在论坛发过的老帖子)     QQ 是靠什么赚钱的?一个是会员,一个是广告。如果存在别的没有广告的<em>客户</em>端,QQ 自然就没人用了,广告收入必定大减。 至于会员呢,猫腻就多了。你可以看看下面的地址: http://vip.qq.com/freedom_set.php 这里介绍了 QQ 会员有哪些“特权”。其中很多功能没有 QQ <em>客户</em>端就不行。QQ 秀、红名、靠前、过滤广告、魔...
remoting + call + 反序列化问题
错误提示如下:rn未处理的“System.Runtime.Serialization.SerializationException”类型的<em>异常</em>出现在 mscorlib.dll 中。rnrn其他信息: 未找到<em>反序列化</em> Wintest.Common.LinkNameData 类型对象的构造函数。rnrnWintest.Common.LinkNameData 是我在服务器端新建的一个类(DataSet类),rnrnrnrn<em>客户</em>端:rnfactory=(ILinkobject)Activator.GetObject(typeof(LinkobjectFactory),"http://10.98.97.32:8088/linkname.soap");rnILinkobject obj=factory.CreateInstance();rnrn服务端代码如下rnBinaryServerFormatterSinkProvider serverProvide=new BinaryServerFormatterSinkProvider();rn serverProvide.TypeFilterLevel=TypeFilterLevel.Full;rn rn IDictionary props=new Hashtable();rn props["name"]="server1";rn props["port"]="8088";rn HttpChannel channel1=new HttpChannel(props,null,serverProvide);rn ChannelServices.RegisterChannel(channel1);rnrnRemotingConfiguration.RegisterWellKnownServiceType(typeof(Wintest.Business.LinkNameBus),"linkname.soap",WellKnownObjectMode.Singleton);rnrnrnrn在类Wintest.Business.LinkNameBus里面我有加[Serializable]rnrn如何解决这个问题(反序例化问题)rnrnrn
Remoting反序列化漏洞
Remoting<em>反序列化</em>漏洞 http://www.ifind.cc/view/228
Remoting的异常
经常碰到这个<em>异常</em>:rnServer encounter a internal error,For more information,turn on customsrnErrors in the server's .config file.rnrn在Server 的config文件里,只有一行配置了数据库服务器的信息。rnrn请问各位DX,什么<em>原因</em>会导致这样的<em>异常</em>,看了一下堆栈,是这样的:rnrn Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) rnrnrnrn
webservice调用remoting时报错是什么原因
在同一个服务器上,有我程序的<em>remoting</em>服务程序,然后我在这台服务器上建了一个webservice来调用<em>remoting</em>中的方法。rn非常奇怪,我第一次在服务器上浏览webservice时,调用成功,可以再次调用时报错。。。。。rnrnSystem.Runtime.Remoting.RemotingException: 信道“tcp”已注册。rn 在 System.Runtime.Remoting.Channels.ChannelServices.RegisterChannelInternal(IChannel chnl, Boolean ensureSecurity)rn 在 System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(IChannel chnl)rn 在 SYFLWebS.ProtocolsService.GetProtocols(String companyName) 位置 d:\users\hexe\桌面\SYFLWebS\SYFLWebS\ProtocolsService.asmx.cs:行号 36rnrn
怎么设置客户端的安全级别
我做了个控件放在“网页” 上运行,并且这个控件有个强名,一定要<em>客户</em>端在NET CONFIGURATION里设置 信任这个强名才可以正常运行,我该怎么做?
出现下列异常是什么原因
提示Exception in thread "main" java.lang.NoClassDefFoundError: test (wrong name: com/jfw/db/test)
请问这个异常是什么原因
java.lang.NoClassDefFoundError: Orange/MyCalendarrn at Orange.OPrms.(+20)rn at Orange.Orange.startApp(+16)rnrn工程:Orange ;rnOPrms类里创建MyCalendar实例rn确定MyCalendar.Java在Orange目录里rn环境变量:rnCLASSPATH:.;;%JAVA_HOME%\bin;D:\Java\jdk1.6.0_12\jre\lib\rt.jar;D:\Java\jdk1.6.0_12\lib\tools.jarrnJAVA_HOME:D:\Java\jdk1.6.0_12rnrn问题出在哪里?请大家帮帮忙!!rn谢谢!!!
这个异常是什么原因引起的?
看书的时候有一段代码,就是在applet中调用一个servlet,二者相互通信rnrn执行下面的例子代码的时候,在最后一句的地方出现<em>异常</em>rnString qryString = tfQuery.getText();rnzwg.append("go");rn try rn /* The line below can be adjusted to your local servlet position */rnrn URL url = new URL("http://localhost:8080/EXES/JDBC/servlet/DbServlet");rn String qry = URLEncoder.encode("qry") + "=" + rn URLEncoder.encode(qryString);rnrn URLConnection uc = url.openConnection();rn uc.setDoOutput(true);rn uc.setDoInput(true);rn uc.setUseCaches(false);rn uc.setRequestProperty("Content-type", rn "application/x-www-form-urlencoded");rn DataOutputStream dos = new DataOutputStream(uc.getOutputStream());rn dos.writeBytes(qry);rn dos.flush();rn dos.close();rn rn//再这里跑出<em>异常</em>rnInputStreamReader in = new InputStreamReader(uc.getInputStream());rnrnrn抛出的<em>异常</em>是:rnjava.net.SocketException: Software caused connection abort: JVM_recv in socket input stream readrnrn请问大家这<em>是什么</em><em>原因</em>引起的,怎么解决呢?
tomcat启动时的异常是什么原因
我的tomcat启动时,总是抛出下面的<em>异常</em>,请大家指点rn严重: Parse Error at line 2 column 221: Document root element "web-app", must match DOCTYPE root "null".rnorg.xml.sax.SAXParseException: Document root element "web-app", must match DOCTYPE root "null".rnat org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)rnat org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)rnat org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rnat org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rnat org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unknown Source)rnat org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)rnat org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)rnat org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)rnat org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)rnat org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rnat org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rnat org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rnat org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)rnat org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rnat org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rnat org.apache.commons.digester.Digester.parse(Digester.java:1548)rnat org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)rnat org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)rnat org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)rnat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)rnat org.apache.catalina.core.StandardContext.start(StandardContext.java:3568)rnat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)rnat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)rnat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)rnat org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)rnat org.apache.catalina.core.StandardHost.install(StandardHost.java:772)rnat org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)rnat org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)rnat org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)rnat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)rnat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)rnat org.apache.catalina.core.StandardHost.start(StandardHost.java:738)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)rnat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)rnat org.apache.catalina.core.StandardService.start(StandardService.java:497)rnat org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)rnat org.apache.catalina.startup.Catalina.start(Catalina.java:512)rnat org.apache.catalina.startup.Catalina.execute(Catalina.java:400)rnat org.apache.catalina.startup.Catalina.process(Catalina.java:180)rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rnat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rnat java.lang.reflect.Method.invoke(Method.java:324)rnat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)rn2005-11-14 21:22:28 org.apache.commons.digester.Digester errorrn严重: Parse Error at line 2 column 221: Document is invalid: no grammar found.rnorg.xml.sax.SAXParseException: Document is invalid: no grammar found.rnat org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)rnat org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)rnat org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rnat org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rnat org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)rnat org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)rnat org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)rnat org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)rnat org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rnat org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rnat org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rnat org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)rnat org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rnat org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rnat org.apache.commons.digester.Digester.parse(Digester.java:1548)rnat org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)rnat org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)rnat org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)rnat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)rnat org.apache.catalina.core.StandardContext.start(StandardContext.java:3568)rnat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)rnat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)rnat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)rnat org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)rnat org.apache.catalina.core.StandardHost.install(StandardHost.java:772)rnat org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)rnat org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)rnat org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)rnat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)rnat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)rnat org.apache.catalina.core.StandardHost.start(StandardHost.java:738)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)rnat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)rnat org.apache.catalina.core.StandardService.start(StandardService.java:497)rnat org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)rnat org.apache.catalina.startup.Catalina.start(Catalina.java:512)rnat org.apache.catalina.startup.Catalina.execute(Catalina.java:400)rnat org.apache.catalina.startup.Catalina.process(Catalina.java:180)rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rnat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rnat java.lang.reflect.Method.invoke(Method.java:324)
JBoss的异常,请问是什么原因
javax.naming.CommunicationException. Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: rnjava.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class loader disabled)
抛出的ArgumentOutOfRangeException异常是什么原因
//索引函数的访问对象不一定要是连续的数组,也可以是离散的字段rnusing System;rnpublic class IndexerSamplern static void Main()rn rn Person p1=new Person("刘明");rn p1["BusinessPhone"]="010-60008000";rn p1["BusinessFax"]="010-66668888";rn p1["HomePhone"]="010-677774567";rn p1["MobilePhone"]="13699996666";rn p1.Output();rn rnrnpublic class Personrnrn //字段rn private string m_name;rn private string m_busiPhone;rn private string m_busiFax;rn private string m_homePhone;rn private string m_mobilePhone;rn //属性rn public string Namern rn get return m_name;rn setm_name=value;rn rn //索引函数rn public string this[string sType]rn rn getrn rn string type=sType.ToUpper();rn switch(type)rn rn case "BusinessPhone":rn return m_busiPhone;rn case "BusinessFax":rn return m_busiFax;rn case "HomePhone":rn return m_homePhone;rn case "MobilePhone":rn return m_mobilePhone;rn default:rn return null;rn rn rn setrn rn string type=sType.ToUpper();rn switch(type)rn rn case "BusinessPhone":rn m_busiPhone=value;rn break;rn case "BusinessFax":rn m_busiFax=value;rn break;rn case "HomePhone":rn m_homePhone=value;rn break;rn case "MobilePhone":rn m_mobilePhone=value;rn break;rn default:rn throw new ArgumentOutOfRangeException();rn //break;rn rn rn rn //构造函数rn public Person(string sName)rn rn m_name=sName;rn rn //方法rn public void Output()rn rn Console.WriteLine(m_name);rn Console.WriteLine("商务电话:0",m_busiPhone);rn Console.WriteLine("商务传真:0",m_busiFax);rn Console.WriteLine("家庭电话:0",m_homePhone);rn Console.WriteLine("移动电话:0",m_mobilePhone);rn rn
备份文件异常增大,是什么原因
有个job是每天都做所有数据库的备份的rn其他数据库都正常,某个数据库的size是1G多rn周一因为job报错,一查发现这个数据库的备份文件竟然有19G多,导致硬盘空间不够。。我就把它删掉了rnrn这两天只看job的report发现是正常运行的,没有错误出现,也就疏忽了rnrn今天一看那个备份文件,已经7G多了,可能之后还会一直增长。。直到磁盘满了报错。。rnrn这个备份工作是用我们一直用的script直接创建的,在别的数据库里都是这么用的,找到每一个数据库备份一下,以前也一直没有这类问题出现过。。。rnrn关于BACKUP的语句是这么写的:rnBACKUP DATABASE '+@dbname+' TO DISK = N'''+@devicePath+@dbname+'.'+@fileExt+''''+'WITH NOFORMAT, NOINIT,NAME=N'''+@dbname+'Backup dated'+@DateTimeExt1+''',SKIP,REWIND,NOUNLOAD,STATS=10rnrn大致就是这样啦,其他数据库都好好的,新的备份文件都会替换掉旧的,始终都是保持一份正常的备份文件。。。rnrn这个数据库奇怪了,也<em>不知</em>道怎么会增大的。。。
操作不允许: Unsupported syntax for refreshRow()是什么原因
在sql语句中如果加上排序字段就会出现以上错误,不加就可以,到底<em>是什么</em><em>原因</em>?rn
不允许更改验证者日志是什么原因
配置群集时,在主服务器上添加从服务器时,有“<em>不允许</em>更改验证者日志”的提示<em>是什么</em><em>原因</em>?
NullPointerException是什么原因造成的异常?
Internal Servlet Error:rnrnjava.lang.NullPointerExceptionrn at news_Insert.doPost(news_Insert.java:119)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java)rn at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)rn at org.apache.tomcat.core.Handler.invoke(Unknown Source)rn at org.apache.tomcat.core.Handler.service(Unknown Source)rn at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)rn at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)rn at org.apache.tomcat.core.ContextManager.service(Unknown Source)rn at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)rn at java.lang.Thread.run(Thread.java:484)rnrn
下列异常是什么原因引起的?
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperExceptionrn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)rn at java.lang.Thread.run(Thread.java:536)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn at org.apache.jsp.sysmodelEdit_jsp._jspService(sysmodelEdit_jsp.java:58)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)rn at java.lang.Thread.run(Thread.java:536)rnrnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/4.1.27rn
Remoting是什么
Remoting<em>是什么</em>~~怎么用?
注册表被破坏是什么原因
一台比较老的机器:塞扬333,VIA主板。现在装WINME后经常会注册表被破坏,声卡、显卡驱动全掉。已经装了VIA4和1的驱动,但问题还是常出现。rn<em>不知</em>道会<em>是什么</em><em>原因</em>。
组件“web-app”在此不允许“servlet”。
严重: Parse Error at line 52 column -1: 组件“web-app”<em>在此</em><em>不允许</em>“servlet-mapping”。 org.xml.sax.SAXParseException: 组件“web-app”<em>在此</em><em>不允许</em>“servlet-mapping”。 at org.apache.crimson.parser.Parser2.error(Parser2.java:33...
应用上去就出错,郁闷,不知是什么原因
用ASP+SQL Server2000+IIS开发了一个WEB服务平台在我的机子上运行没问题!rn可到了用户的服务器上问题就出现了:rn用户服务器的IIS已设三个网站(但连OFFICE都没有装)rn打开有数据库连接的页面都出错(数据库连接在我机子是没问题的),显示如下:rnHTTP 500 - 内部服务器错误 rnrn请问会<em>是什么</em>问题呢?rn==================================================================rnrnrn
js中onclick报错,不知是什么原因
nn```n //定义Init的方法n Init.prototype = n changeColor: function($obj) n var opencolor=this.options.openColor;n var closecolor=this.options.closeColor;n document.getElementById("switch").onclick(function()n alert("aaa");n )n```nn
不知是什么原因?向大家求教!
我的一个jsp页面中有几个动态生成的text,我想在提交页面时调用subScore把text的内容交于一个servlet处理,为什么servlet中只打出了rn最后一个text的内容?rn但是我在script中加一个alert后,就会得到所有text的值了,<em>不知</em><em>是什么</em><em>原因</em>?rnrn rnrnrn//servlet中的部分内容rnString score = request.getParameter("score");rnString noticeId = request.getParameter("noticeid");rnrnSystem.out.println("this is score: " + score);rnSystem.out.println("this is noticeid: " + noticeId);rnrnout.print(" ");
在线点播看不了,不知是什么原因
以前可以看的,系统提示media palyer7 的版本太低,升级到9.0后,在线点播就不能看了,也不报错,以及版本低等提示信息,重装系统也无济于事,<em>不知</em>道<em>是什么</em><em>原因</em>,请大侠们帮忙解决,谢谢!
配置sessionFactory 出错。不知是什么原因
配置sessionFactory时出错为:HTTP Status 404 - Servlet action is not availablern去掉下面代码后,运行正确。另外查看所用包都在lib下,<em>不知</em>道<em>原因</em>,请高手指教!rn配置代码如下:rn rn rn com.mysql.jdbc.Driverrn rn rn jdbc:mysql://localhost/testrn rn rn rootrn rn rn wwwrn rn rn rn rn rn rn rn rn rn rn org/apache/my/db/User.hbm.xmlrn rn rn rn rn org.hibernate.dialect.MySQLDialectrn truern rn rn rn
Acrobat Reader出错了,不知是什么原因
我用Acrobat Reader读电子书时,出现了如下错误,<em>不知</em>如何解决?rnThere was an error processing a page.The encoding (CMap) specified by a font is missing or corrupted.
win7普通用户不能进入,不知是什么原因?
装了win7后,除了安装程序,一直使用普通用户(users用户组).rn今天发现进不入,到了用户界面,输入密码后,跟着就显示正在注销,然后又回到登录界面.rn只有用administrators,或power users用户组的用户才能进入.rn<em>不知</em>是中毒还是其它什么<em>原因</em>,希望高手指导!rn
我的win2000出现问题,不知是什么原因
最近我的win2000频繁出现一个问题:就是用着用着系统会“滴”的叫一声,画面定版,鼠标键盘都动不了,过大约30秒,又可以动了,但用着用着又会出现上述问题,<em>不知</em>道<em>是什么</em><em>原因</em>?请高人指点一下!
java空指针错误,不知是什么原因
java.lang.NullPointerExceptionrn 错误:java.lang.NullPointerExceptionrn at org.apache.jsp.customer.hotdeal_jsp._jspService(hotdeal_jsp.java:79)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:268)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:258)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:205)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)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:117)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.valves.AccessLogValve.invoke(AccessLogValve.java:535)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.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:790)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:709)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:572)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)rn at java.lang.Thread.run(Thread.java:534)rnrn
下面这句编译错误,不知是什么原因?
typern TEditStreamCallBack=function(dwCookie: Longint; pbBuff: PByte; cb: Longint; var pcb: Longint): Longint; stdcall;rn editstream = recordrn dwCookie: Longint;rn dwError: Longint;rn pfnCallback:TEditStreamCallBack;rn end;rn——————————rn*******************************************************rn 流入文本 rn*******************************************************rnfunction StreamIn(dwCookie: Longint; pbBuff: PByte; cb: Longint; var pcb: Longint): Longint; stdcall;rn beginrn StreamIn:=fileRead(dwCookie,pbbuff,cb);rn end;rnrn*******************************************************rn 打开文件 rn*******************************************************rnprocedure OpenFile();rn varrn FileHandle:integer;rn TEditStream:editstream;rn beginrn //提示保存rn //TipSaveFile;rn with form1 dorn beginrn //显示打开对话框rn opendialog1.initialdir:=extractfilepath(application.ExeName)+'vbs\';rn opendialog1.filter:='VBScript File (*.vbs)|*.vbs';rn if opendialog1.execute then//选择打开rn beginrn FileHandle:=fileopen(opendialog1.FileName,fmopenread);rn if FileHandle,MB_OK+MB_ICONERROR)rn elsern beginrn TEditStream.dwCookie:=FileHandle;rn TEditStream.pfnCallback:=StreamIn;rn //流入文本rn sendmessage(mWnd,EM_STREAMIN,SF_TEXT,integer(@TEditStream));rn //关闭文件rn fileclose(FileHandle);rn //清空撤销rn SendMessage(mWnd,EM_EMPTYUNDOBUFFER,0,0);rn //清除修改rn SendMessage(mWnd,EM_SETMODIFY,0,0);rn //清空状态栏名称rn form1.StatusBar1.Panels.Items[0].Text:=opendialog1.FileName;rn end;rn end;rn end;rn end;rn
JDBC 连接很慢,不知是什么原因
我在PC机上安装了两个DB2 V9.7数据库,并配置成HADR模式,测试时,用JDBC远程连接,速度很慢,但连接上后访问是正常的,<em>不知</em>道什么<em>原因</em>?rn代码如下:rnClass.forName("com.ibm.db2.jcc.DB2Driver").newInstance();rnConnection conn = DriverManager.getConnection("jdbc:db2://xx.xx.xx.xx:50000/sample","db2inst1","password");rnrn跟踪发现getConnection执行很长时间才有返回(估计有1分钟),然后数据库操作正常。如果把连接串改成错的,可以很快返回并报错。rnrn服务器环境是Linux 2.6.32-100.28.5.el6.x86_64位的。应用是Win7下Eclipse平台,JDBC的Jar包是从服务DB2安装目录下的java目录中拷出来的。rn
怪问题!不知是什么原因做成的!
void fuction1()rnvoid fuction2()rnvoid fuction3()rnvoid fuction4()rnvoid fuction5()rnvoid fuction6()rnrnvoid fuction1();rnvoid fuction2();rnvoid fuction3();rn[b]void fuction4();[/b]rnvoid fuction5();rnrnmian()rnrnvoid fuction1();rnvoid fuction6();rnrn我用keil调试时,在程序号的左边不是有个小箭头的吗?但是在调试时,发现小箭头不指向函数6中的函数1,2,3了,但我继续调试下去的时候,发觉,程序的执行是有执行函数1,2,3的.也就是说程序还是按我的思路去执行的,但是调试时,小箭头就是不指函数1,2,3.但是运行其它程序时不会出现上述问题!为什么呢!?rn
不知是什么原因了,各位朋友瞧瞧。
现在我测试数据库程序在Pocket PC中能正确执行。但在模拟器环境下执行会出错(他连接数据库成功,但对记录的操作却不行)。出错信息如下:An error was encountered while running this program:系统无法从指定的设置上读取。真<em>不知</em>啥<em>原因</em>,各位朋友帮我瞧瞧错在哪?rnrn下面是我的代码:rnOption ExplicitrnPublic objCon As ADOCE.Connectionrn--------------------------------rnPrivate Sub cmdRead_Click()rn Dim objRst As ADOCE.Recordsetrn Set objRst = CreateObject("ADOCE.Recordset.3.0")rn objRst.ActiveConnection = objConrn objRst.Open "T_Login", objCon, adOpenKeyset, adLockOptimisticrn If objRst.RecordCount Thenrn MsgBox objRst.RecordCountrn '主要是下面的三行会出错rn MsgBox objRst.Fields(0).Valuern MsgBox objRst.Fields(1).Valuern MsgBox objRst.Fields(2).Valuern End Ifrn objRst.Closern Set objRst = NothingrnEnd Subrn-----------------------------rnPrivate Sub Form_Load()rn Set objCon = CreateObject("ADOCE.Connection.3.0")rn objCon.Open "data source = \My Documents\Jun.cdb"rnEnd Sub
发布ejb出错,不知是什么原因
发布jbuilder7的例子esite到weblogic7上时出现以下问题,<em>是什么</em><em>原因</em>,错误提示如下:rnEJB : Cart .Unable to initialize method info for remote or home interface.The error is java.lang.NoClassDefFoundError: [Lcom/borland/dx/ejb/RowData;rn....rn如何解决,在线等待...
总是提示内存非法,不知是什么原因
typedef struct BinaryTreern struct BinaryTree *lTree, *rTree; rn ElemType date; rn*Tree, SizeofTree;rnrntypedef struct LinkStackrn Tree da;rn struct LinkStack *next;rn*Stack, SizeofStack;rnrnrnStatus Preorder(Tree T) rnrn Status Push(Stack *, Tree);rn Tree Pop(Stack *);rnrn Stack s, p;rn Tree Pre = NULL;rnrn int lenStack = 1;rnrn s = (Stack)malloc(sizeof(SizeofStack));rn p = s->next;rn /*p->da = (Tree)malloc(sizeof(SizeofStack)); */rn p->da = T; // 这句总是出错。 rnrn printf("%c", T->date);rnrn while(lenStack)rn if(T->lTree && T->lTree != Pre)rn T = T->lTree;rn printf("%c", T->date);rn Push(&s, T);rn lenStack++;rn continue;rn rnrn if(T->rTree && T->rTree != Pre) rn T = T->rTree;rn printf("%c", T->date);rn Push(&s, T);rn lenStack++;rn continue;rn rnrn Pre = Pop(&s);rn lenStack--;rn T = s->next->da;rn rn return OK;rn
显示器出现黑屏,不知是什么原因?
系统刚启动的时候,能显示桌面,但过不了几秒钟,就闪烁,好像是电磁波干扰,进而出现黑屏,显rn示器指示灯也变成橙色的了,<em>不知</em><em>是什么</em><em>原因</em>,望大侠帮帮我,rn谢谢!rn
安全级别
2.6.3 <em>安全级别</em>   安全上下文中含有<em>安全级别</em>,它包括敏感度属性和分类属性,敏感度指安全的等级,如:confidential、secret等。分类属性指数据分成多个隔绝部分,如:数据1仅能A使用,数据2仅能B使用等,分类属性是可选的。   安全上下文结构context中使用成员range成员表示,range成员是2个元素的数组,它将<em>安全级别</em>分为高层和低层的级别,每个层次的级别用结构
remoting异常传递
在服务器端抛出的<em>异常</em>(可序列化的),无法传递到<em>客户</em>端,报错“服务器遇到内部错误。有关更多信息,请打开服务器的.config文件中的customErrors.",怎么办呀???
数据库连接不上是什么原因
一、我的WebSphere5.0的配置:rn1、环境管理 WebSphere 变量rn 设置【ORACLE_JDBC_DRIVER_PATH】的值为"D:\oracle\ora92\jdbc\lib"rn2、资源JDBC 提供程序rn 1)点击【新建】按钮配置rn 【JDBC 提供程序】中选择"Oracle JDBC Thin Driver"rn 2)点击【应用】按钮继续配置常规属性按【确定】按钮。rn 名称:Oracle JDBC Thin Driverrn 3)其它属性数据源【新建】配置常规属性rn 名称:ORACLE_JNDIrn JNDI名:ORACLE_JNDIrn 其它都是默认值。rn 4)JDBC 提供程序 > Oracle JDBC Thin Driver > 数据源 > ORACLE_JNDI中的其它属性rn 【定制属性】:rn URL:jdbc:oracle:thin:@primary-db:1521:orcl rn databaseName:orcl rn driverType:oracle.jdbc.driver.OracleDriver rn serverName:primary-db rn 其它都是默认值 rn rn二、Java代码是:rnInitialContext context = new InitialContext();rnContext envCtx = (Context)context.lookup("java:comp/env");rnDataSource wds = (DataSource)envCtx.lookup("ORACLE_JNDI");rnrnClass.forName(“oracle.jdbc.driver.OracleDriver”);rnconn = DriverManager.getConnection(“jdbc:oracle:thin:@primary-db:1521:orcl”,”student”,”123”);rn执行到DataSource wds = (DataSource)envCtx.lookup("ORACLE_JNDI");就出问题了。rnrn三、查看websphere的日志rn[06-6-6 13:42:06:391 CST] 1d883299 ConnectionFac I J2CA0107I: 没有为连接工厂或数据源 JMS$SampleJMSTopicConnectionFactory$JMSManagedConnection@1884893868 指定组件受管认证别名。rn[06-6-6 13:42:07:469 CST] 1d883299 ConnectionEve A J2CA0056I: 连接管理器接收到来自资源 JMS$SampleJMSTopicConnectionFactory 的资源适配器的致命连接错误。接收到的<em>异常</em>为 Broker command failed: 3157 Reason code 3157rn[06-6-6 13:42:07:469 CST] 1d883299 MDBListenerIm W WMSG0019E: 无法启动 MDB 侦听器 PSSampleMDB,JMSDestination Sample/JMS/listen:com.ibm.mq.jms.BrokerCommandFailedException: Broker command failed: 3157 Reason code 3157rn at com.ibm.mq.jms.MQBrokerSubscriptionEngine.openDurableSubscription(MQBrokerSubscriptionEngine.java:1208)rn at com.ibm.mq.jms.MQConnectionConsumer.pubSubSetup(MQConnectionConsumer.java:318)rn at com.ibm.mq.jms.MQConnectionConsumer.(MQConnectionConsumer.java:192)rn at com.ibm.mq.jms.MQTopicConnection.createCC(MQTopicConnection.java:852)rn at com.ibm.mq.jms.MQTopicConnection.createDurableConnectionConsumer(MQTopicConnection.java:817)rn at com.ibm.ejs.jms.JMSTopicConnectionHandle.createDurableConnectionConsumer(JMSTopicConnectionHandle.java:186)rn at com.ibm.ejs.jms.listener.MDBListenerImpl.createResources(MDBListenerImpl.java:327)rn at com.ibm.ejs.jms.listener.MDBListenerImpl.internalStart(MDBListenerImpl.java:474)rn at com.ibm.ejs.jms.listener.MDBListenerImpl.restart(MDBListenerImpl.java:446)rn at com.ibm.ejs.jms.listener.MDBListenerImpl.alarm(MDBListenerImpl.java:718)rn at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:80)rn at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)rn
上不了网,是什么原因
xp系统,可以ping通外网的ip地址,nslookup网址也正确,但ping域名不行,如:rnping www.sina.com.cn不通,ping它的ip地址通。换浏览器如oprea和腾讯tt都不行,rnQQ可以上,就是不能浏览网页。rnrn系统有重要东西不能删除!rn请有过方面经验的高手说一下<em>原因</em>,怎么解决,谢先!
连接不上,是什么原因
在webconfig文件中已经做了相应的修改,但是出现以下错误,如何解决!rnrnrn“/BBS”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn[DBNETLIB][ConnectionOpen (Connect()).]SQL Server 不存在或拒绝访问。 rn说明: 执行当前 Web 请求期间,出现未处理的<em>异常</em>。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn<em>异常</em>详细信息: System.Data.OleDb.OleDbException: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server 不存在或拒绝访问。rnrn源错误: rnrn执行当前 Web 请求期间生成了未处理的<em>异常</em>。可以使用下面的<em>异常</em>堆栈跟踪信息确定有关<em>异常</em><em>原因</em>和发生位置的信息。 rnrn堆栈跟踪: rnrnrn[OleDbException (0x80004005): [DBNETLIB][ConnectionOpen (Connect()).]SQL Server 不存在或拒绝访问。]rn System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20rn System.Data.OleDb.OleDbConnection.InitializeProvider() +57rn System.Data.OleDb.OleDbConnection.Open() +203rn BusObjectForum.LoginC.getUserCount(String strConn) in c:\inetpub\wwwroot\SampleForum\Code\Forum_BusObj.cs:85rn SampleForum.forumList.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\SampleForum\InitList.aspx.cs:48rn System.Web.UI.Control.OnLoad(EventArgs e) +67rn System.Web.UI.Control.LoadRecursive() +35rn System.Web.UI.Page.ProcessRequestMain() +731rnrn rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
您的设备管理设置不允许在此台iPhone上。。。
xcode真机调试时,安装成功却无法打开应用。 解决方法:手机点设置-》通用-》设备管理-》对应的账号-》信任 这样就好了
解决“设备管理设置中不允许在此台iPhone上。。。。”的问题
xcode7真机调试出现这么个问题:应该装到手机上了,却打不开,因为我是用的个人账号,而且是没有经过开发者认证的账号 2 解决办法很简单:跟着下面的步骤执行 3 1、点击设置 4 2、点击“通用” 5 3、滚动手机屏幕到最下面,点击“描述文件”
JAVA异常堆栈信息被吃掉的原因
背景 线上dubbo请求,报空指针,但是没有具体堆栈信息,无法找到报错的源头 任务 首先找出源头解决燃眉之急,加try catch 块,一步一步缩小范围,最终发现是 map的getOrDefault()方法的一个参数是a-&gt;null类型的参数获取到null并给了toString方法,所以报空。 行动 首先排查了不是dubbo 的<em>异常</em>过滤器(exceptionFilter)导致的。 然后goo...
影响反序列化原因
测试了几种情况后发现: 导致无法<em>反序列化</em>的<em>原因</em>只有一个:修改了实体中属性的类型,如原来的int修改为string 其余如添加属性,删除属性以及修改属性的名称则不受此影响,怪哉! 当然,修改类名或者命名空间后也是无法<em>反序列化</em>的,这个情况可以避免 <em>不知</em>道在其他人眼里这算不算一个常识,反正我是头一次了解此特性...惭愧 转载于:https://www.cnblogs.co...
MVC4无端端出错了
用着用着就出错,重建视图也不行rn[img=https://img-bbs.csdn.net/upload/201601/14/1452777534_878198.png][/img]
Remoting是什么东西?
对这个连个概念都<em>不知</em>道。。请指点一下。
帮我看看这个异常是什么原因
C:\JBuilder4\jdk1.3\bin\javaw -classpath "D:\JB-myProject\UIDesigner\classes;C:\JBuilder4\lib\jbcl.jar;C:\JBuilder4\jdk1.3\jre\lib\i18n.jar;C:\JBuilder4\jdk1.3\jre\lib\jaws.jar;C:\JBuilder4\jdk1.3\jre\lib\rt.jar;C:\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\JBuilder4\jdk1.3\lib\dt.jar;C:\JBuilder4\jdk1.3\lib\tools.jar" uidesigner.UIDesigner rnjava.io.NotSerializableException: com.sun.java.swing.plaf.windows.WindowsFileChooserUIrnException occurred during event dispatching:rnjava.lang.NullPointerExceptionrn at javax.swing.plaf.basic.BasicComboBoxUI.setPopupVisible(BasicComboBoxUI.java:897)rn at javax.swing.JComboBox.setPopupVisible(JComboBox.java:609)rn at javax.swing.JComboBox.hidePopup(JComboBox.java:602)rn at javax.swing.JComboBox$1.ancestorRemoved(JComboBox.java:148)rn at javax.swing.AncestorNotifier.fireAncestorRemoved(AncestorNotifier.java:89)rn at javax.swing.AncestorNotifier.componentHidden(AncestorNotifier.java:186)rn at java.awt.AWTEventMulticaster.componentHidden(AWTEventMulticaster.java:130)rn at java.awt.AWTEventMulticaster.componentHidden(AWTEventMulticaster.java:130)rn at java.awt.Component.processComponentEvent(Component.java:3609)rn at java.awt.Component.processEvent(Component.java:3558)rn at java.awt.Container.processEvent(Container.java:1164)rn at java.awt.Window.processEvent(Window.java:777)rn at java.awt.Component.dispatchEventImpl(Component.java:2595)rn at java.awt.Container.dispatchEventImpl(Container.java:1213)rn at java.awt.Window.dispatchEventImpl(Window.java:912)rn at java.awt.Component.dispatchEvent(Component.java:2499)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)rn at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)rn at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)rn
程序中抛出UnsupportedOperationException异常原因是什么
先看一段代码: List list1 = new ArrayList(); list1.add("test"); String[] array = new String[2]; List list2 = Arrays.asList(array); list2.add("test");//抛出<em>异常</em> 为什么会是这样呢? 上面的代码list1是在正常的创建list,可以增删内容 ...
运行异常具体是什么原因怎么解决
严重: Servlet.service() for servlet [SpringMVC] in context with path [/carsafe] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: com.yunhan.common.utils.weixin.exception.WechatApiException: "errcode":40003,"errmsg":"invalid openid hint: [vAX7pA0352vr23]"] with root causencom.yunhan.common.utils.weixin.exception.WechatApiException: "errcode":40003,"errmsg":"invalid openid hint: [vAX7pA0352vr23]"n at com.yunhan.common.utils.weixin.api.WechatAPIImpl.getFollower(WechatAPIImpl.java:508)n at com.yunhan.service.car.base.GetOpenIdServiceImp.getWXUserByOpenId(GetOpenIdServiceImp.java:65)n at com.yunhan.controller.car.WXMenuUrlController.handleReqByOpenId(WXMenuUrlController.java:212)n at com.yunhan.controller.car.WXMenuUrlController.userCenter(WXMenuUrlController.java:188)n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)n at java.lang.reflect.Method.invoke(Method.java:606)n at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)n at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)n at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)n at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749)n at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689)n at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)n at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)n at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)n at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)n at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)n at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)n at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)n at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)n at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)n at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)n at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)n at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)n at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)n at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)n at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)n at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)n at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)n at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)n at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)n at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)n at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)n at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)n at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)n at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)n at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)n at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)n at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)n at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)n at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)n at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)n at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)n at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)n at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)n at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)n at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)n at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)n at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)n at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)n at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)n at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)n at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)n at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)n at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)n at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)n at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)n at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)n at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)n at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)n at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)n at java.lang.Thread.run(Thread.java:744)nn
谁能告诉我这个异常是什么原因导致的?
在netbeans5.0下运行常出一个错,java.lang.NullPointerException,程序是根据一个样本拷下来的,不存在错误。但我每次运行都会有这个错误出现,请问是怎么回事?怎么解决?
这个SqlCeDataReder.HasRows的异常是什么原因呢?
[code=C#]rn如果基本游标不可滚动,SQL Server Mobile Edition 就不支持对 HasRows 属性的调用rn[/code]rnrnrn程序的写法如下rn[code=C#]rnmySqlCeDataReader = mySqlCeCommand.ExecuteReader();rn[/code]rn如果调用rn[code=C#]rnmySqlCeDataReader.HasRowsrn[/code]rn就会引发上面的<em>异常</em>rn数据已经取到了,也可以用Read()读取.
ClassNotFoundException 抛出这个异常原因是什么
请大家不要仅仅说是 这个类没有找到!rn我调用了别人提供的一个库的start()这个方法后就抛出了这个<em>异常</em>。可是在别人提供的一个DEMO工程中却没有这个问题。rn这个问题一般发生的<em>原因</em><em>是什么</em>?rn如何解决?rn谢谢!rn我的调用方法:MyLibName..start();rn谢谢大家!
这个socket异常是什么原因引起的?
java.net.SocketException: Software caused connection abort: recv failedrnrn谢谢指点。。。。。。
weblogic 抛出这个异常是什么原因?
rnrn我在数据库操作的finally里面已经执行了这个了:rnfinallyrn tryif (rs!=null) rs.close();catch(SQLException se) rn tryif (st!=null) st.close();catch(SQLException se) rn tryif (con!=null) con.close();catch(SQLException se) rn rnrnrnweblogic 抛出这个<em>异常</em><em>是什么</em><em>原因</em>?rn谢谢大家
new抛异常,一般是什么原因
我的程序中需要使用一个已有库中的类,编译、链接都没有问题,Debug时在new这个类对象的地方抛<em>异常</em>Unhandled Exception in xxx.exe(KERNEL32.DLL): 0xE06d7363: Microsoft C++ Exception,而且Debug跟不到这个类的构造函数中去,try catch也捕获不到。rn请问有可能<em>是什么</em><em>原因</em>呢?rn谢谢
高手帮看看这个异常是什么原因
500 Servlet Exceptionrnrnjava.lang.ClassCastExceptionrnat _testgbgame._login__jsp._jspService(/testgbgame/login.jsp:11)rnat com.caucho.jsp.JavaPage.service(JavaPage.java:75)rnat com.caucho.jsp.Page.subservice(Page.java:506)rnat com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)rnat com.caucho.server.http.Invocation.service(Invocation.java:315)rnat com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)rnat com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346)rnat com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)rnat com.caucho.server.TcpConnection.run(TcpConnection.java:139)rnat java.lang.Thread.run(Thread.java:534)
线程的状态异常是什么原因啊?
大家好!我在用郭克华的J2ME聊天系统中,<em>客户</em>端在连接网络时,出现这样的rn提示,<em>是什么</em>问题呢?rnUncaught exception java/lang/IllegalThreadStateException.rn以下是<em>客户</em>端的代码:rnpackage chatsystem;rnrnimport java.io.DataInputStream;rnimport java.io.DataOutputStream;rnimport java.io.IOException;rnimport java.util.Vector;rnrnimport javax.microedition.io.Connector;rnimport javax.microedition.io.ServerSocketConnection;rnimport javax.microedition.io.SocketConnection;rnimport javax.microedition.lcdui.Command;rnimport javax.microedition.lcdui.CommandListener;rnimport javax.microedition.lcdui.Display;rnimport javax.microedition.lcdui.Displayable;rnimport javax.microedition.lcdui.Form;rnimport javax.microedition.lcdui.TextField;rnimport javax.microedition.midlet.MIDlet;rnimport javax.microedition.midlet.MIDletStateChangeException;rnrnpublic class ClientChatMidlet extends MIDlet implements CommandListener rnrn private SocketConnection sc;rn private Form form;rn private Display display;rn private Command cmdSend;rn private Command cmdLogin;rn private TextField txtName;rn private TextField txtMsg;rn private DataOutputStream dos;rn private DataInputStream dis;rnrn rn public ClientChatMidlet() rn form = new Form("<em>客户</em>端聊天界面");rn cmdSend = new Command("发送消息", Command.SCREEN, 1);rn cmdLogin = new Command("登录到 服务器 ", Command.SCREEN, 1);rn txtName = new TextField("昵称", "", 10, TextField.ANY);rn txtMsg = new TextField("发送信息", "", 255, TextField.ANY);rn form.addCommand(cmdLogin);rn form.append(txtName);rn //form.append(txtMsg);rn form.setCommandListener(this);rn rnrn protected void startApp() throws MIDletStateChangeException rn display = Display.getDisplay(this);rn display.setCurrent(form);rn try rn sc = (SocketConnection) Connectorrn .open("socket://localhost:999");rnrn System.out.println(sc.getAddress());//显示:127.0.0.1rn dis = sc.openDataInputStream();rn dos = sc.openDataOutputStream();rn //new ChatThread().start();rn // System.out.println("new ChatThread().start()没问题吧");rn catch (IOException e) rn e.printStackTrace();rn rn rn rnrn public void commandAction(Command c, Displayable d) rn if (c == cmdSend) rn try rnrn dos.writeUTF(txtMsg.getString());rn rnrn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn else if (c == cmdLogin) rn try rn form.removeCommand(cmdLogin);rn form.addCommand(cmdSend);rnrn dos.writeUTF(txtName.getString());rn // 登录成功,显示发送的信息rn form.append(txtMsg);rn new ChatThread().start();rn rnrn // dis = sc.openDataInputStream();rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rn rnrn protected void pauseApp() rnrn rnrn protected void destroyApp(boolean arg0) throws MIDletStateChangeException rnrn rnrn class ChatThread extends Thread rnrn public ChatThread() rnrn rnrn public void run() rn while (true) rnrn try rn sc = (SocketConnection) Connectorrn .open("socket://localhost:999");rn dis = sc.openDataInputStream();rn dos = sc.openDataOutputStream();rn dos.writeUTF(txtName.getString());rn //运行到这里出错了,下面就不执行了。可能是这里的问题,但<em>不知</em>道如何修改rn this.start();rn rnrn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rnrn rn rn rnrn
有个异常出现 不知是什么原因?
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: id to load is required for loadingrn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.lang.IllegalArgumentException: id to load is required for loadingrn org.hibernate.event.LoadEvent.(LoadEvent.java:51)rn org.hibernate.event.LoadEvent.(LoadEvent.java:33)rn org.hibernate.impl.SessionImpl.load(SessionImpl.java:778)rn org.hibernate.impl.SessionImpl.load(SessionImpl.java:774)rn com.yourcompany.dbservice.GetZC.getZcByid(GetZC.java:36)rn com.yourcompany.struts.action.UpdateZCAction.execute(UpdateZCAction.java:45)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)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--------------------------------------------------------------------------------rnrnApache Tomcat/5.0.28rn
请问发生如下IO异常原因是什么
2004-07-08 08:31:58 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exceptionrnorg.apache.jasper.JasperException: Stream closedrn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)rn at java.lang.Thread.run(Thread.java:536)rn----- Root Cause -----rnjava.io.IOException: Stream closedrn at org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:241)rn at org.apache.jasper.runtime.JspWriterImpl.clearBuffer(JspWriterImpl.java:194)rn at org.apache.jsp.broadcastIndex_jsp._jspService(broadcastIndex_jsp.java:403)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)rn at java.lang.Thread.run(Thread.java:536)
数据库异常增大,请教是什么原因
现遇到这样一个问题:数据库<em>异常</em>增大,每天大概增加一个G,主要是有两个表的<em>异常</em>引起;检查这两个表,把这两个表的数据导出到另一个新表中对,发现,原表比新远远大出很多,但是结构又是正常的?<em>不知</em>道什么<em>原因</em>?有知道的请指教!谢谢了
请问是什么原因导致出现这种异常
rnorg.hibernate.MappingException: Error reading resource: StudentManager.hbm.xmlrn at org.hibernate.cfg.Configuration.addResource(Configuration.java:449)rn at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1313)rn at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1285)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1267)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1234)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1162)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1148)rn at com.hibernate.util.HibernateBase.initHibernate(Unknown Source)rn at com.hibernate.util.HibernateBase.(Unknown Source)rn at com.hibernate.student.MainFrame.(Unknown Source)rn at com.hibernate.student.MainFrame.main(Unknown Source)rnCaused by: org.hibernate.MappingException: invalid mappingrn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:396)rn at org.hibernate.cfg.Configuration.addResource(Configuration.java:446)rn ... 10 morernCaused by: org.xml.sax.SAXParseException: Attribute "role" is required and must be specified 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.XML11Configuration.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:465)rn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:395)rn ... 11 more
这个异常原因是什么?谢谢大家
我想调用last()的方法,于是用了rnResultSet rs = ConBean.exeQuery("SELECT * FROM Book"); //建立ResultSet(结果集)对象,并执行SQL语句rn在用rs.last();rn结果出现method last()not found interface java.sql.resultset。rn请问这是这么引起的,我以前也用过没有出现此问题,现在就出现了,望各位大虾指点一下小弟,小弟不胜感激!
HashTable问题,产生异常是什么原因呢?
using System;rnusing System.Drawing;rnusing System.Collections;rnusing System.ComponentModel;rnusing System.Windows.Forms;rnusing System.Data;rnrnnamespace HashTablernrn /// rn /// Form1 的摘要说明。rn /// rn public class Form1 : System.Windows.Forms.Formrn rn private Hashtable _hashtable=new Hashtable();rn private System.Windows.Forms.GroupBox groupBox1;rn private System.Windows.Forms.Label label1;rn private System.Windows.Forms.Label label2;rn private System.Windows.Forms.Label label3;rn private System.Windows.Forms.Label label4;rn private System.Windows.Forms.TextBox txtKey;rn private System.Windows.Forms.TextBox txtValue;rn private System.Windows.Forms.Button btnAdd;rn private System.Windows.Forms.ListBox lstAddedKey;rn private System.Windows.Forms.TextBox txtSelectedValue;rn /// rn /// 必需的设计器变量。rn /// rn private System.ComponentModel.Container components = null;rnrn public Form1()rn rn //rn // Windows 窗体设计器支持所必需的rn //rn InitializeComponent();rnrn //rn // TODO: 在 InitializeComponent 调用后添加任何构造函数代码rn //rn rnrn /// rn /// 清理所有正在使用的资源。rn /// rn protected override void Dispose( bool disposing )rn rn if( disposing )rn rn if (components != null) rn rn components.Dispose();rn rn rn base.Dispose( disposing );rn rnrn #region Windows 窗体设计器生成的代码rn /// rn /// 设计器支持所需的方法 - 不要使用代码编辑器修改rn /// 此方法的内容。rn /// rn private void InitializeComponent()rn rn this.groupBox1 = new System.Windows.Forms.GroupBox();rn this.btnAdd = new System.Windows.Forms.Button();rn this.txtValue = new System.Windows.Forms.TextBox();rn this.txtKey = new System.Windows.Forms.TextBox();rn this.label2 = new System.Windows.Forms.Label();rn this.label1 = new System.Windows.Forms.Label();rn this.label3 = new System.Windows.Forms.Label();rn this.lstAddedKey = new System.Windows.Forms.ListBox();rn this.label4 = new System.Windows.Forms.Label();rn this.txtSelectedValue = new System.Windows.Forms.TextBox();rn this.groupBox1.SuspendLayout();rn this.SuspendLayout();rn // rn // groupBox1rn // rn this.groupBox1.Controls.Add(this.btnAdd);rn this.groupBox1.Controls.Add(this.txtValue);rn this.groupBox1.Controls.Add(this.txtKey);rn this.groupBox1.Controls.Add(this.label2);rn this.groupBox1.Controls.Add(this.label1);rn this.groupBox1.Location = new System.Drawing.Point(8, 8);rn this.groupBox1.Name = "groupBox1";rn this.groupBox1.Size = new System.Drawing.Size(280, 120);rn this.groupBox1.TabIndex = 0;rn this.groupBox1.TabStop = false;rn this.groupBox1.Text = "建立键值";rn // rn // btnAddrn // rn this.btnAdd.Location = new System.Drawing.Point(96, 88);rn this.btnAdd.Name = "btnAdd";rn this.btnAdd.TabIndex = 4;rn this.btnAdd.Text = "添加";rn this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);rn // rn // txtValuern // rn this.txtValue.Location = new System.Drawing.Point(96, 56);rn this.txtValue.Name = "txtValue";rn this.txtValue.Size = new System.Drawing.Size(176, 21);rn this.txtValue.TabIndex = 3;rn this.txtValue.Text = "";rn // rn // txtKeyrn // rn this.txtKey.Location = new System.Drawing.Point(96, 24);rn this.txtKey.Name = "txtKey";rn this.txtKey.Size = new System.Drawing.Size(176, 21);rn this.txtKey.TabIndex = 2;rn this.txtKey.Text = "";rn // rn // label2rn // rn this.label2.AutoSize = true;rn this.label2.Location = new System.Drawing.Point(16, 56);rn this.label2.Name = "label2";rn this.label2.Size = new System.Drawing.Size(29, 17);rn this.label2.TabIndex = 1;rn this.label2.Text = "值:";rn // rn // label1rn // rn this.label1.AutoSize = true;rn this.label1.Location = new System.Drawing.Point(16, 24);rn this.label1.Name = "label1";rn this.label1.Size = new System.Drawing.Size(29, 17);rn this.label1.TabIndex = 0;rn this.label1.Text = "键:";rn // rn // label3rn // rn this.label3.AutoSize = true;rn this.label3.Location = new System.Drawing.Point(8, 136);rn this.label3.Name = "label3";rn this.label3.Size = new System.Drawing.Size(72, 17);rn this.label3.TabIndex = 1;rn this.label3.Text = "已经添加值:";rn // rn // lstAddedKeyrn // rn this.lstAddedKey.ItemHeight = 12;rn this.lstAddedKey.Location = new System.Drawing.Point(96, 136);rn this.lstAddedKey.Name = "lstAddedKey";rn this.lstAddedKey.Size = new System.Drawing.Size(192, 112);rn this.lstAddedKey.TabIndex = 2;rn this.lstAddedKey.SelectedValueChanged += new System.EventHandler(this.lstAddedKey_SelectedValueChanged);rn this.lstAddedKey.SelectedIndexChanged += new System.EventHandler(this.lstAddedKey_SelectedIndexChanged);rn // rn // label4rn // rn this.label4.AutoSize = true;rn this.label4.Location = new System.Drawing.Point(16, 264);rn this.label4.Name = "label4";rn this.label4.Size = new System.Drawing.Size(60, 17);rn this.label4.TabIndex = 3;rn this.label4.Text = "选中的值:";rn // rn // txtSelectedValuern // rn this.txtSelectedValue.Location = new System.Drawing.Point(96, 256);rn this.txtSelectedValue.Name = "txtSelectedValue";rn this.txtSelectedValue.Size = new System.Drawing.Size(192, 21);rn this.txtSelectedValue.TabIndex = 4;rn this.txtSelectedValue.Text = "";rn // rn // Form1rn // rn this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);rn this.ClientSize = new System.Drawing.Size(292, 293);rn this.Controls.Add(this.txtSelectedValue);rn this.Controls.Add(this.label4);rn this.Controls.Add(this.lstAddedKey);rn this.Controls.Add(this.label3);rn this.Controls.Add(this.groupBox1);rn this.Name = "Form1";rn this.Text = "HashTableExam";rn this.Load += new System.EventHandler(this.Form1_Load);rn this.groupBox1.ResumeLayout(false);rn this.ResumeLayout(false);rnrn rn #endregionrnrn /// rn /// 应用程序的主入口点。rn /// rn [STAThread]rn static void Main() rn rn Application.Run(new Form1());rn rnrn private void Form1_Load(object sender, System.EventArgs e)rn rn rn rnrn private void btnAdd_Click(object sender, System.EventArgs e)rn rn tryrn rn _hashtable.Add(txtKey.Text,txtValue.Text); rn rn catch(ArgumentException)rn rn MessageBox.Show("不能添加重负的值","错误",System.Windows.Forms.MessageBoxButtons.OK,rn System.Windows.Forms.MessageBoxIcon.Information);rn //有重复的键值给用户提示,插入动作终止rn return;rn rn catch(Exception)rn rn MessageBox.Show("产生系统错误");//产生未知错误rn Application.Exit();//则关闭应用程序rn rn lstAddedKey.Items.Add(txtKey.Text);rn //txtKey.Text="";rn //txtValue.Text="";rn rnrn private void lstAddedKey_SelectedIndexChanged(object sender, System.EventArgs e)rn rn rn rnrn private void lstAddedKey_SelectedValueChanged(object sender, System.EventArgs e)rn rn string selectedKey=lstAddedKey.SelectedValue.ToString();rn string selectedValue=(string)_hashtable[selectedKey];rn txtSelectedValue.Text=selectedValue;rn rn rnrn
请问这个java.lang.RuntimeException异常原因是什么
执行以下代码时,提示Exception in thread "main" java.lang.ExceptionInInitializerErrorrnCaused by: java.lang.RuntimeException: big.txt not found!!!rnjava菜鸟,请问谁能指点一下这个<em>异常</em>的<em>原因</em>呢,big.txt是存在的啊。rnpublic static Map train()rn [color=#FF6600][color=#FF0000]InputStream is = new SpellCorrect().getClass().getClassLoader().getResourceAsStream("big.txt");rn if(is == null)rn throw new RuntimeException("big.txt not found!!!");rn rn Map map = new HashMap();[/color][/color]rn try rn //读取语料库big.txtrn BufferedReader br = new BufferedReader(new InputStreamReader(is , "UTF-8"), 512);rn String s="";rn while ((s = br.readLine()) != null) rn // 去掉文档中除字母外的所有符号rn s = s.replaceAll("\\pP|\\pS|\\pM|\\pN|\\pC", "");rn // 将文档转成小写,然后切分成单词,存在list中rn s = s.toLowerCase();rn String[] splits = s.split(" ");rn for (int j = 0; j < splits.length; j++) rn if (!" ".equals(splits[j]) && !"".equals(splits[j]) && !splits[j].equals(null))rn if(map.containsKey(splits[j]))rn Integer count=map.get(splits[j]);rn map.put(splits[j], count+1);rn elsern map.put(splits[j], 1);rn rn rn rn rn catch (FileNotFoundException e) rn e.printStackTrace();rn catch(IOException e)rn e.printStackTrace();rn rn finallyrn tryrn is.close();rn catch(Exception e)rn e.printStackTrace();rn rn rn return map;rn
请问java.lang.IllegalStateException异常,一般是什么原因导致的?
调试时候经常出现rnrnrnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjava.lang.IllegalStateExceptionrn org.apache.coyote.tomcat5.CoyoteResponseFacade.sendRedirect(CoyoteResponseFacade.java:399)rn org.apache.jsp.do_005flogin_jsp._jspService(do_005flogin_jsp.java:158)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)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)rnrnrnnote The full stack trace of the root cause is available in the Tomcat logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.0.19rnrnrnrn请问这到底<em>是什么</em>错误导致的呀?晕死了!
EAccessViolation这个异常是什么原因造成的?
我在关闭程序的时候,经常会提示说出现这个<em>异常</em>,某某地址为只读什么的?rn大家有没有见过,要如何解决?
请问以下异常是什么原因产生的??
我想调用NetShareEnum函数,返回SHARE_INFO_502结构类型..rn类型定义如下rnprotected struct SHARE_INFO_502rnrn[MarshalAs(UnmanagedType.LPWStr)] public string shi502_netname;rn[MarshalAs(UnmanagedType.U4)] public uint shi502_type;rn[MarshalAs(UnmanagedType.LPWStr)] public string shi502_remark;rn[MarshalAs(UnmanagedType.U4)]public uint shi502_permissions;rn[MarshalAs(UnmanagedType.U4)]public uint shi502_max_uses;rn[MarshalAs(UnmanagedType.U4)]public uint shi502_current_uses;rn[MarshalAs(UnmanagedType.LPWStr)] public string shi502_path;rn[MarshalAs(UnmanagedType.LPWStr)] public string shi502_passwd;rn[MarshalAs(UnmanagedType.U4)]public uint shi502_reserved;rnrnrn顺利编译,在运行到SHARE_INFO_502 shareInfo = (SHARE_INFO_502)Marshal.PtrToStructure(new IntPtr(ptr), typeof(SHARE_INFO_502));这句时出现报错窗口..rn错误如下:rn未处理的"Syatem.NullReferenceException"类型的<em>异常</em>出现在mscorlib.dll中,其他信息:未将对象引用设置到对象的实例.rnrn请高人指点,到底是哪里出现了问题???
异常,请问是什么原因?">"Unhandled Exception: System.Net.Sockets.SocketException"异常,请问是什么原因?
出错提示:rnUnhandled Exception: System.Net.Sockets.SocketException: 远程主机强迫关闭了一个rn现有的连接。rn at System.Net.Sockets.Socket.ReceiveFrom(Byte[] buffer, Int32 offset, Int32 srnize, SocketFlags socketFlags, EndPoint& remoteEP)rn at System.Net.Sockets.UdpClient.Receive(IPEndPoint& remoteEP)rn at Client.Run()rnrn先声明我没有关闭远程主机,请问引起这种<em>异常</em>的<em>原因</em>有那些?rn
请问java.lang.IllegalStateException异常是什么原因导致的?
请问这样的<em>异常</em><em>是什么</em><em>原因</em>?rntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjava.lang.IllegalStateExceptionrnrn就是找不到什么地方出错了,死活抛出java.lang.IllegalStateException<em>异常</em>,郁闷死了rn
java.lang.UnsatisfiedLinkError这个异常的发生原因是什么
多次对服务器请求后,<em>异常</em>发生,重起便好rnrn想避免这样的错误发生,因为我的程序还未运行完毕rnjava.lang.UnsatisfiedLinkErrorrnjava.lang.Throwable()rnjava.lang.Error()rnjava.lang.LinkageError()rnjava.lang.UnsatisfiedLinkError()rnvoid java.net.PlainSocketImpl.socketClose()rnvoid java.net.PlainSocketImpl.socketClose()rnvoid java.net.PlainSocketImpl.close()rnvoid java.net.Socket.close()rnvoid org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection, java.lang.Object [])rnvoid org.apache.tomcat.service.TcpWorkerThreadSocketQuene.runIt(java.lang.Object [])rnvoid org.apache.tomcat.service.SocketExecuteThread.run()rn rn
IE总是异常关闭,请问是什么原因
描述: rn 浏览某个网站时,如果连续点击了好几个页面,则相关的网页全部被关闭!例如:在CSDN论坛连续点击了多个贴子,则CSDN相关的页面全部关闭(其他网站的页面没问题)。rnrnIE版本:6.0.2600.0000rn环境:win2K professial ;pack 3; rnrnrn
导致java.lang.IllegalThreadStateException异常原因是什么啊?
请问:导致java.lang.IllegalThreadStateException<em>异常</em>的<em>原因</em><em>是什么</em>啊?
这个异常是什么原因??大侠指点
我用以下方法导出数据时 在Repose.end()这里出了<em>异常</em>,rnData = Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.rn但是之前用的时候好像没有这样的<em>异常</em>,<em>不知</em>道什么<em>原因</em>,大侠指点一下!!rn public void Export(string FileType, string FileName)rn rn Response.AppendHeader("Content-Disipostion", "attachment;filename=" + HttpUtility.UrlEncode(FileName, System.Text.Encoding.Default).ToString());rn Response.ContentType = FileType;rn this.EnableViewState = false;rn StringWriter tw = new StringWriter();rn HtmlTextWriter hw = new HtmlTextWriter(tw);rn gv.RenderControl(hw);rn Response.Write(tw.ToString());rn Response.End();rn rn public override void VerifyRenderingInServerForm(Control control)rn rn //base.VerifyRenderingInServerForm(control);rn rnrnData = Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
异常是什么原因">"record/key deleted"异常是什么原因
在dbgrid中编辑记录,当按下方向键"下"的时候,就会出现这个<em>异常</em>.rn(这个表中有一个自动记数的主键)rn请高手帮忙回答
请问出现这种异常是什么原因,谢谢
2007-05-11 15:59:07,133 WARN [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Destroying connection that is not valid, due to the following exception: oracle.jdbc.driver.T4CConnection@19380c1rnjava.sql.SQLException: pingDatabase failed status=-1rn at org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker.isValidConnection(OracleValidConnectionChecker.java:72)rn at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory.isValidConnection(BaseWrapperManagedConnectionFactory.java:389)rn at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkValid(BaseWrapperManagedConnection.java:230)rn at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.matchManagedConnections(LocalManagedConnectionFactory.java:192)rn at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:187)rn at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:574)rn at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:475)rn at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:317)rn at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:527)rn at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:926)rn at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
rmi抛出java.security.AccessControlException异常是什么原因
如题!
这个异常是什么原因造成的?急
java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Object has been closed.
捕捉异常失败,请问是什么原因
这是我捕捉<em>异常</em>的代码rnrn tryrn rdao.addmt(view,result,problems,period);rn catch(SQLException ex)rn %>rn rn );这段代码,请问<em>是什么</em><em>原因</em>,谢谢
Spring-data-redis 反序列化异常
环境: 1. 在做和<em>客户</em>的一个对接项目中,需要从<em>客户</em>的redis缓存中取一些基础数据,遇到了一些问题,<em>在此</em>记录: 2. 环境: spring-data-redis(<em>客户</em>:2.0.7,我方:1.8.9) spring-core:(<em>客户</em>:<em>不知</em>,我方:4.3.8) 心路历程: 1. 查看日志,里面确实有<em>反序列化</em><em>异常</em>,然后,确认双方的序列化方式和<em>反序列化</em>方式对应关系,确定都是使用的sprin...
60款鼠标指针下载
包含很多漂亮的,可爱的WINDOWS鼠标指针! 相关下载链接:[url=//download.csdn.net/download/dkleung/4343466?utm_source=bbsseo]//download.csdn.net/download/dkleung/4343466?utm_source=bbsseo[/url]
小车控制程序下载
用51单片机和继电器控制,小车的往返运动 相关下载链接:[url=//download.csdn.net/download/swordbraveljy/4509736?utm_source=bbsseo]//download.csdn.net/download/swordbraveljy/4509736?utm_source=bbsseo[/url]
AAALogo 2009 Business Edition v3.0 支持中文的Logo设计软件.rar下载
AAALogo 2009 Business Edition v3.0 支持中文的Logo设计软件.rar 支持中文输入的Logo制作软件。 相关下载链接:[url=//download.csdn.net/download/chengyingtao/4786256?utm_source=bbsseo]//download.csdn.net/download/chengyingtao/4786256?utm_source=bbsseo[/url]
相关热词 c#异步发送kafka c#窗体编号 c# 操作二进制文件 c# 反射 机制 c#线程 窗体失去响应 c#角度转弧度 c# 解析gps数据 c# vs设置 语法版本 c# json含回车 c#多线程demo
我们是很有底线的