Android在用运行app的时候直接崩掉,出现这些错误 5C

12-30 02:44:28.058: E/AndroidRuntime(2071): FATAL EXCEPTION: main
12-30 02:44:28.058: E/AndroidRuntime(2071): java.lang.RuntimeException: Unable to create application com.way.chat.activity.MyApplication: android.os.NetworkOnMainThreadException
12-30 02:44:28.058: E/AndroidRuntime(2071): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4394)
12-30 02:44:28.058: E/AndroidRuntime(2071): at android.app.ActivityThread.access$1300(ActivityThread.java:141)
12-30 02:44:28.058: E/AndroidRuntime(2071): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
12-30 02:44:28.058: E/AndroidRuntime(2071): at android.os.Handler.dispatchMessage(Handler.java:99)
12-30 02:44:28.058: E/AndroidRuntime(2071): at android.os.Looper.loop(Looper.java:137)
12-30 02:44:28.058: E/AndroidRuntime(2071): at android.app.ActivityThread.main(ActivityThread.java:5039)
12-30 02:44:28.058: E/AndroidRuntime(2071): at java.lang.reflect.Method.invokeNative(Native Method)
12-30 02:44:28.058: E/AndroidRuntime(2071): at java.lang.reflect.Method.invoke(Method.java:511)
12-30 02:44:28.058: E/AndroidRuntime(2071): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
12-30 02:44:28.058: E/AndroidRuntime(2071): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
12-30 02:44:28.058: E/AndroidRuntime(2071): at dalvik.system.NativeStart.main(Native Method)
12-30 02:44:28.058: E/AndroidRuntime(2071): Caused by: android.os.NetworkOnMainThreadException
12-30 02:44:28.058: E/AndroidRuntime(2071): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117)
12-30 02:44:28.058: E/AndroidRuntime(2071): at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84)
12-30 02:44:28.058: E/AndroidRuntime(2071): at libcore.io.IoBridge.connectErrno(IoBridge.java:144)
12-30 02:44:28.058: E/AndroidRuntime(2071): at libcore.io.IoBridge.connect(IoBridge.java:112)
12-30 02:44:28.058: E/AndroidRuntime(2071): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
12-30 02:44:28.058: E/AndroidRuntime(2071): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
12-30 02:44:28.058: E/AndroidRuntime(2071): at java.net.Socket.connect(Socket.java:842)
12-30 02:44:28.058: E/AndroidRuntime(2071): at com.way.client.Client.start(Client.java:28)
12-30 02:44:28.058: E/AndroidRuntime(2071): at com.way.chat.activity.MyApplication.onCreate(MyApplication.java:29)
12-30 02:44:28.058: E/AndroidRuntime(2071): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
12-30 02:44:28.058: E/AndroidRuntime(2071): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
12-30 02:44:28.058: E/AndroidRuntime(2071): ... 10 more

(需要代码的可以私我)

13个回答

android.os.NetworkOnMainThreadException网络请求放在主线程中进行了,网络请求不能再主线程发起请求,必须new Runnable,在这个子线程中发起

把下载操作放到子线程中

不要在主线程中进行一些耗时操作,network操作也包含在内

主线程不应该操作网络请求,task去执行,或者直接加入第三方框架去做网络请求

java.lang.RuntimeException: Unable to create application com.way.chat.activity.MyApplication: android.os.NetworkOnMainThreadException
请求网络是耗时操作,你在主线程执行,会阻塞线程的,需要把请求网络等耗时操作放在子线程执行,new Tread(new Runnable(){ }).start();

网络操作不能放在主线程里面,

参考一下:

 http://blog.csdn.net/guolin_blog/article/details/17482095

不能放在主线程中。。。。

android在4.x之后就规定在主线程中不能做网络操作,必须要开启新的线程,在正常情况是,我们也会将网络请求,文件操作等耗时操作放在子线程中进行处理,以免主线程中UI的刷新的阻碍

NetworkOnMainThreadException是因为你的网络操作放在了主线程中运行,可以开启子线程把网络操作放在里面运行就可运行了。

NetworkOnMainThreadException 网络操作属于耗时操作,不应该放在主线程中执行

共13条数据 1 尾页
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
android虚拟机运行app出现错误Unfortunately
在虚拟机打开app出现Unfortunately,Activity_02 has stopped。LogCat   显示 android.content.ActivityNotFoundExceptiona:Unable to find explicit activity class 提醒找不到activity,由于每一个新增的Activity类型的子类都需要在AndroidManifest.xm...
在用vs2005运行directx例子的时候出现d3d9.lib的错误
1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data lossrn1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h(1) : error C2018: unknown character '0x14'rn1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h(1) : error C2014: preprocessor command must start as first nonwhite spacern1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h(1) : error C2018: unknown character '0x17'rn1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h(1) : error C2146: syntax error : missing ';' before identifier 'LOCKit倠屾'rn1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h(1) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-intrn1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h(1) : error C2018: unknown character '0x1d'rn1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h(1) : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data lossrn1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h(1) : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data lossrn1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h(1) : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data lossrn1>d:\program files\microsoft directx sdk (april 2006)\include\d3d9.h(1) : fatal error C1004: unexpected end-of-file found
运行Client的时候出现错误
javax.naming.NameNotFoundException: Unable to resolve 'EmployeesRemote' Resolved: '' Unresolved:'EmployeesRemote' ; remaining name 'EmployeesRemote'rnrn at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)rnrn at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)rnrn at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)-- Failed initializing bean access.rnrnrnrn at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)rnrn at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)rnrn at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)rnrn at javax.naming.InitialContext.lookup(InitialContext.java:350)rnrn at cmpmodule2.EmployeesTestClient.(EmployeesTestClient.java:28)rnrn at cmpmodule2.EmployeesTestClient.main(EmployeesTestClient.java:1245)rnrnjava.lang.NullPointerExceptionrnrn at cmpmodule2.EmployeesTestClient.findByPrimaryKey(EmployeesTestClient.java:107)rnrn at cmpmodule2.EmployeesTestClient.main(EmployeesTestClient.java:1251)rnrn-- Calling findByPrimaryKey(1)rnrn-- Failed: findByPrimaryKey(1)rnrn-- Return value from findByPrimaryKey(1): null.rnrnErrorrnrn这是不是因为没有部署好?rn我是用JBuilder+WEBLOGICrn怎样知道有没有部署成功?rn谢谢rn
在运行eclipse的时候出现错误?
出错信息如下,如何解决? rnrn!SESSION ----------------------------------------------------------------------rn!ENTRY org.eclipse.core.launcher 4 0 九月 16, 2004 10:26:11.734rn!MESSAGE Exception launching the Eclipse Platform:rn!STACKrnjava.lang.ExceptionInInitializerErrorrn at org.eclipse.core.internal.plugins.RegistryLoader.processManifestFile(RegistryLoader.java:89)rn at org.eclipse.core.internal.plugins.RegistryLoader.processPluginPathFile(RegistryLoader.java:136)rn at org.eclipse.core.internal.plugins.RegistryLoader.processPluginPathEntry(RegistryLoader.java:127)rn at org.eclipse.core.internal.plugins.RegistryLoader.processManifestFiles(RegistryLoader.java:104)rn at org.eclipse.core.internal.plugins.RegistryLoader.parseRegistry(RegistryLoader.java:63)rn at org.eclipse.core.internal.plugins.RegistryLoader.parseRegistry(RegistryLoader.java:71)rn at org.eclipse.core.internal.runtime.InternalPlatform.parsePlugins(InternalPlatform.java:890)rn at org.eclipse.core.internal.runtime.InternalPlatform.loadRegistry(InternalPlatform.java:834)rn at org.eclipse.core.internal.runtime.InternalPlatform.loaderStartup(InternalPlatform.java:684)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at org.eclipse.core.internal.boot.InternalBootLoader.startup(InternalBootLoader.java:1040)rn at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:838)rn at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at org.eclipse.core.launcher.Main.basicRun(Main.java:291)rn at org.eclipse.core.launcher.Main.run(Main.java:747)rn at org.eclipse.core.launcher.Main.main(Main.java:583)rnCaused by: java.lang.ClassCastExceptionrn at org.apache.xerces.parsers.SAXParser.(SAXParser.java:95)rn at org.eclipse.core.internal.plugins.PluginParser.initializeParser(PluginParser.java:80)rn at org.eclipse.core.internal.plugins.PluginParser.(PluginParser.java:44)rn ... 23 morernrn
编译出现这些错误:
1.rnrnvoid CTmp2Dlg::OnButton1() rnrn // TODO: Add your control notification handler code herernrnrn CButton * b;rn b=new CButton [5];rnrn b[1]->Create("b1",WS_CHILD,CRect(20,20,100,100),this,100);rn b[1]->ShowWindow(SW_SHOW);rnrnrnrnrn编译出现这些错误:rnrn--------------------Configuration: tmp2 - Win32 Debug--------------------rnCompiling...rntmp2Dlg.cpprnD:\myVC\tmp2\tmp2Dlg.cpp(218) : error C2819: type 'CButton' does not have an overloaded member 'operator ->'rn d:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2704) : see declaration of 'CButton'rnD:\myVC\tmp2\tmp2Dlg.cpp(218) : error C2227: left of '->Create' must point to class/struct/unionrnD:\myVC\tmp2\tmp2Dlg.cpp(219) : error C2819: type 'CButton' does not have an overloaded member 'operator ->'rn d:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2704) : see declaration of 'CButton'rnD:\myVC\tmp2\tmp2Dlg.cpp(219) : error C2227: left of '->ShowWindow' must point to class/struct/unionrnError executing cl.exe.rnrntmp2.exe - 4 error(s), 0 warning(s)
cocos2d-x交叉编译android文件 运行./build_native.sh 的时候出现如下错误
[img=https://img-bbs.csdn.net/upload/201310/18/1382095961_647302.jpg][/img]
eclipse极光推送运行崩掉,报错
eclipse极光推送,报错java.lang.ClassNotFoundException: Didn't find class "com.example.jpushdemo.MyReceiver" on path: /data/app/com.jiguang.feilong-1.apk.n![从服务器端给手机端一发送程序就崩掉,然后报这个错误](https://img-ask.csdn.net/upload/201608/02/1470144898_802747.png)n但是服务器端显示已经发送成功,然后在点击打开应用就可以看到推送消息。还有程序刚运行的话也会直接崩掉。但是下次再直接点击应用app打开可又不会蹦掉。![图片说明](https://img-ask.csdn.net/upload/201608/02/1470145135_276577.png)
Android 运行app时解析包错误
今天在vivoZ1i手机上运行时,发现解析包错误,解决方法是在Androidstudio中设置一下就好了。如图所示:
运行corba称许时候出现错误
[color=#FF6600]运行corba时候出现这样的错误,本人E太差了看不多大懂,[/color][color=#FF00FF]我输入的是rnappletviewer UpperClientApplet.html出现下面错误,高手帮忙!rnrn[/color]rnrn[code=Java]rnE:\JavaChengXu\net\corba>appletviewer UpperClientApplet.htmlrn2008-3-31 2:48:11 com.sun.corba.se.impl.transport.SocketOrChannelConnectionImplrnrnWARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEARrn_TEXT; hostname: 192.168.13.47; port: 900"rnorg.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: Norn at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(OrnRBUtilSystemException.java:2172)rn at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(OrnRBUtilSystemException.java:2193)rn at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.(rnSocketOrChannelConnectionImpl.java:205)rn at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.(rnSocketOrChannelConnectionImpl.java:218)rn at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.creaternConnection(SocketOrChannelContactInfoImpl.java:101)rn at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginrnRequest(CorbaClientRequestDispatcherImpl.java:152)rn at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaCrnlientDelegateImpl.java:118)rn at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(BootstraprnResolverImpl.java:74)rn at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(BootstrarnpResolverImpl.java:107)rn at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositrneResolverImpl.java:22)rn at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositrneResolverImpl.java:22)rn at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositrneResolverImpl.java:22)rn at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.rnjava:1157)rn at chapter3.UpperClientApplet.init(UpperClientApplet.java:17)rn at sun.applet.AppletPanel.run(AppletPanel.java:374)rn at java.lang.Thread.run(Thread.java:595)rnCaused by: java.net.ConnectException: Connection refused: connectrn at sun.nio.ch.Net.connect(Native Method)rn at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)rn at java.nio.channels.SocketChannel.open(SocketChannel.java:146)rn at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocketrn(DefaultSocketFactoryImpl.java:60)rn at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.(rnSocketOrChannelConnectionImpl.java:188)rn ... 13 morernERROR:org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: Nornorg.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: Norn at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(OrnRBUtilSystemException.java:2172)rn at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(OrnRBUtilSystemException.java:2193)rn at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.(rnSocketOrChannelConnectionImpl.java:205)rn at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.(rnSocketOrChannelConnectionImpl.java:218)rn at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.creaternConnection(SocketOrChannelContactInfoImpl.java:101)rn at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginrnRequest(CorbaClientRequestDispatcherImpl.java:152)rn at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaCrnlientDelegateImpl.java:118)rn at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(BootstraprnResolverImpl.java:74)rn at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(BootstrarnpResolverImpl.java:107)rn at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositrneResolverImpl.java:22)rn at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositrneResolverImpl.java:22)rn at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositrneResolverImpl.java:22)rn at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.rnjava:1157)rn at chapter3.UpperClientApplet.init(UpperClientApplet.java:17)rn at sun.applet.AppletPanel.run(AppletPanel.java:374)rn at java.lang.Thread.run(Thread.java:595)rnCaused by: java.net.ConnectException: Connection refused: connectrn at sun.nio.ch.Net.connect(Native Method)rn at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)rn at java.nio.channels.SocketChannel.open(SocketChannel.java:146)rn at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocketrn(DefaultSocketFactoryImpl.java:60)rn at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.(rnSocketOrChannelConnectionImpl.java:188)rn ... 13 morernException in thread "AWT-EventQueue-1" java.lang.NullPointerException: String isrn nullrn at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2638)rn at chapter3.UpperClientApplet.paint(UpperClientApplet.java:31)rn at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)rn at sun.awt.RepaintArea.paint(RepaintArea.java:224)rn at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)rn at java.awt.Component.dispatchEventImpl(Component.java:4031)rn at java.awt.Container.dispatchEventImpl(Container.java:2024)rn at java.awt.Component.dispatchEvent(Component.java:3803)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)rn at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrnread.java:242)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrernad.java:163)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)rnrn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)rnrn at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)rnException in thread "AWT-EventQueue-1" java.lang.NullPointerException: String isrn nullrn at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2638)rn at chapter3.UpperClientApplet.paint(UpperClientApplet.java:31)rn at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)rn at sun.awt.RepaintArea.paint(RepaintArea.java:224)rn at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)rn at java.awt.Component.dispatchEventImpl(Component.java:4031)rn at java.awt.Container.dispatchEventImpl(Container.java:2024)rn at java.awt.Component.dispatchEvent(Component.java:3803)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)rn at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrnread.java:242)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrernad.java:163)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)rnrn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)rnrn at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)rnrn[/code]
xml+asp运行的时候出现缺少对象的错误
出错信息rnrnMicrosoft VBScript 运行时错误 错误 '800a01a8' rn缺少对象: 'objRootsite.childNodes.item(...).childNodes.item(...)' rnrn/index.asp,行51 rn源代码rnrnrn<%rnstrSourceFile = Server.MapPath("list.xml") //list.xml和index.asp文件在同一个目录下rn'获取XML文件的路径这里根据你的虚拟目录不同而不同rnSet objXML = Server.CreateObject("Microsoft.FreeThreadedXMLDOM")rn'以自由线程创建一个XML对像rnobjXML.load(strSourceFile)'把XML文件读入内存rnSet objRootsite = objXML.documentElement.selectSingleNode("NewList")rn'选取NewList节点rn%>rn<% rnPageSize =10'假设每页显示10条留言rnAllNodesNum =objRootsite.childNodes.length-1rn'获取子节点数据(因为是从节点数从0开始的所最大子节点数要减1)rnPageNum=AllNodesNum\PageSize+1'算出总页数rnPageNo=request.querystring("PageNo")rnif PageNo="" then'如果是每一次获得页面则定位到每一页显示最新的留言rnPageNo=PageNumrnend ifrnStarNodes=PageNo*PageSize-1'获得起始节点rnEndNodes=(PageNo-1)*PageSize'获得结束节点rnif EndNodes<0 thenrnEndNodes=0rnend ifrnif StarNodes>AllNodesNum then'判断起始节点数是否超过总的节点数rnEndNodes=EndNodes-(StarNodes-AllNodesNum)rn'如果超过则结束节点要减去(StarNodes-AllNodesNum)的差值否则下标会超界出错rnStarNodes=AllNodesNumrnend ifrnif EndNodes<0 thenrnEndNodes=0rnend ifrnwhile StarNodes>=EndNodesrn'从结束节点到超始节点之间读取节点数据rnusername = objRootsite.childNodes.item(StarNodes).childNodes.item(1).text //这是51行rn%>rn rn
vs.net在运行调试的时候出现以下错误
vs在运行调试的时候出现以下错误 rn错误为: rn未能将临时文件复制到输出目录中。 rn无法将文件“bin\test.pdb”复制到运行目录。进程无法访问文件,因为另一个程序正 rn在使用此文件。 rn无法将文件“bin\test.dll”复制到运行目录。进程无法访问文件,因为另一个程序正 rn在使用此文件。 rn看来是有进程锁定文件了,但是注销也没用。且每次重启,能正常调试一两次后便出现 rn此错误。 rn文件系统为fat32,os为windows 2000 server. rn怪! rn这里所谓的临时文件在哪呢? rn
运行BBS论坛的时候出现这个错误
[img=https://img-bbs.csdn.net/upload/201406/17/1403010411_296099.jpg][/img]
VC 运行程序的时候,出现0X80000004错误
突然出现的这个问题,按F5运行的时候,有时候就出现这个,有的时候不出现,代码太长,我也不知道哪出的问题,所以没粘上来,就是大概是什么原因导致的这个问题,我做的是DLL+MFC
mapreduce 运行时候出现的错误,ZipException
**用tomcat跑一个web工程,用mapreduce从mysql导入数据时遇到如下问题,求解:**rnrn13/12/05 20:39:35 INFO mapred.JobClient: Running job: job_201311251041_0681rn13/12/05 20:39:36 INFO mapred.JobClient: map 0% reduce 0%rn13/12/05 20:39:40 INFO mapred.JobClient: Task Id : attempt_201311251041_0681_m_000003_0, Status : FAILEDrnError initializing attempt_201311251041_0681_m_000003_0:rn**java.util.zip.ZipException: error in opening zip file**rn at java.util.zip.ZipFile.open(Native Method)rn at java.util.zip.ZipFile.(ZipFile.java:114)rn at java.util.jar.JarFile.(JarFile.java:133)rn at java.util.jar.JarFile.(JarFile.java:97)rn at org.apache.hadoop.util.RunJar.unJar(RunJar.java:36)rn at org.apache.hadoop.mapred.TaskTracker.localizeJob(TaskTracker.java:815)rn at org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:1664)rn at org.apache.hadoop.mapred.TaskTracker.access$1200(TaskTracker.java:97)rn at org.apache.hadoop.mapred.TaskTracker$TaskLauncher.run(TaskTracker.java:1629)rnrn**13/12/05 20:39:40 WARN mapred.JobClient: Error reading task outputhttp://dell4:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_m_000003_0&filter=stdoutrn13/12/05 20:39:40 WARN mapred.JobClient: Error reading task outputhttp://dell4:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_m_000003_0&filter=stderr**rn13/12/05 20:39:43 INFO mapred.JobClient: Task Id : attempt_201311251041_0681_r_000002_0, Status : FAILEDrnError initializing attempt_201311251041_0681_r_000002_0:rnjava.util.zip.ZipException: error in opening zip filern at java.util.zip.ZipFile.open(Native Method)rn at java.util.zip.ZipFile.(ZipFile.java:114)rn at java.util.jar.JarFile.(JarFile.java:133)rn at java.util.jar.JarFile.(JarFile.java:97)rn at org.apache.hadoop.util.RunJar.unJar(RunJar.java:36)rn at org.apache.hadoop.mapred.TaskTracker.localizeJob(TaskTracker.java:815)rn at org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:1664)rn at org.apache.hadoop.mapred.TaskTracker.access$1200(TaskTracker.java:97)rn at org.apache.hadoop.mapred.TaskTracker$TaskLauncher.run(TaskTracker.java:1629)rnrn13/12/05 20:39:43 WARN mapred.JobClient: Error reading task outputhttp://dell4:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_r_000002_0&filter=stdoutrn13/12/05 20:39:43 WARN mapred.JobClient: Error reading task outputhttp://dell4:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_r_000002_0&filter=stderrrn13/12/05 20:39:46 INFO mapred.JobClient: Task Id : attempt_201311251041_0681_m_000003_1, Status : FAILEDrnError initializing attempt_201311251041_0681_m_000003_1:rnjava.util.zip.ZipException: error in opening zip filern at java.util.zip.ZipFile.open(Native Method)rn at java.util.zip.ZipFile.(ZipFile.java:114)rn at java.util.jar.JarFile.(JarFile.java:133)rn at java.util.jar.JarFile.(JarFile.java:97)rn at org.apache.hadoop.util.RunJar.unJar(RunJar.java:36)rn at org.apache.hadoop.mapred.TaskTracker.localizeJob(TaskTracker.java:815)rn at org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:1664)rn at org.apache.hadoop.mapred.TaskTracker.access$1200(TaskTracker.java:97)rn at org.apache.hadoop.mapred.TaskTracker$TaskLauncher.run(TaskTracker.java:1629)rnrn13/12/05 20:39:46 WARN mapred.JobClient: Error reading task outputhttp://dell1:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_m_000003_1&filter=stdoutrn13/12/05 20:39:46 WARN mapred.JobClient: Error reading task outputhttp://dell1:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_m_000003_1&filter=stderrrn13/12/05 20:39:49 INFO mapred.JobClient: Task Id : attempt_201311251041_0681_r_000002_1, Status : FAILEDrnError initializing attempt_201311251041_0681_r_000002_1:rnjava.util.zip.ZipException: error in opening zip filern at java.util.zip.ZipFile.open(Native Method)rn at java.util.zip.ZipFile.(ZipFile.java:114)rn at java.util.jar.JarFile.(JarFile.java:133)rn at java.util.jar.JarFile.(JarFile.java:97)rn at org.apache.hadoop.util.RunJar.unJar(RunJar.java:36)rn at org.apache.hadoop.mapred.TaskTracker.localizeJob(TaskTracker.java:815)rn at org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:1664)rn at org.apache.hadoop.mapred.TaskTracker.access$1200(TaskTracker.java:97)rn at org.apache.hadoop.mapred.TaskTracker$TaskLauncher.run(TaskTracker.java:1629)rnrn13/12/05 20:39:49 WARN mapred.JobClient: Error reading task outputhttp://dell1:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_r_000002_1&filter=stdoutrn13/12/05 20:39:49 WARN mapred.JobClient: Error reading task outputhttp://dell1:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_r_000002_1&filter=stderrrn13/12/05 20:39:52 INFO mapred.JobClient: Task Id : attempt_201311251041_0681_m_000003_2, Status : FAILEDrnError initializing attempt_201311251041_0681_m_000003_2:rnjava.util.zip.ZipException: error in opening zip filern at java.util.zip.ZipFile.open(Native Method)rn at java.util.zip.ZipFile.(ZipFile.java:114)rn at java.util.jar.JarFile.(JarFile.java:133)rn at java.util.jar.JarFile.(JarFile.java:97)rn at org.apache.hadoop.util.RunJar.unJar(RunJar.java:36)rn at org.apache.hadoop.mapred.TaskTracker.localizeJob(TaskTracker.java:815)rn at org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:1664)rn at org.apache.hadoop.mapred.TaskTracker.access$1200(TaskTracker.java:97)rn at org.apache.hadoop.mapred.TaskTracker$TaskLauncher.run(TaskTracker.java:1629)rnrn13/12/05 20:39:52 WARN mapred.JobClient: Error reading task outputhttp://dell2:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_m_000003_2&filter=stdoutrn13/12/05 20:39:52 WARN mapred.JobClient: Error reading task outputhttp://dell2:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_m_000003_2&filter=stderrrn13/12/05 20:39:58 INFO mapred.JobClient: Task Id : attempt_201311251041_0681_m_000002_0, Status : FAILEDrnError initializing attempt_201311251041_0681_m_000002_0:rnjava.util.zip.ZipException: error in opening zip filern at java.util.zip.ZipFile.open(Native Method)rn at java.util.zip.ZipFile.(ZipFile.java:114)rn at java.util.jar.JarFile.(JarFile.java:133)rn at java.util.jar.JarFile.(JarFile.java:97)rn at org.apache.hadoop.util.RunJar.unJar(RunJar.java:36)rn at org.apache.hadoop.mapred.TaskTracker.localizeJob(TaskTracker.java:815)rn at org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:1664)rn at org.apache.hadoop.mapred.TaskTracker.access$1200(TaskTracker.java:97)rn at org.apache.hadoop.mapred.TaskTracker$TaskLauncher.run(TaskTracker.java:1629)rnrn13/12/05 20:39:58 WARN mapred.JobClient: Error reading task outputhttp://dell2:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_m_000002_0&filter=stdoutrn13/12/05 20:39:58 WARN mapred.JobClient: Error reading task outputhttp://dell2:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_m_000002_0&filter=stderrrn13/12/05 20:40:01 INFO mapred.JobClient: Task Id : attempt_201311251041_0681_r_000001_0, Status : FAILEDrnError initializing attempt_201311251041_0681_r_000001_0:rnjava.util.zip.ZipException: error in opening zip filern at java.util.zip.ZipFile.open(Native Method)rn at java.util.zip.ZipFile.(ZipFile.java:114)rn at java.util.jar.JarFile.(JarFile.java:133)rn at java.util.jar.JarFile.(JarFile.java:97)rn at org.apache.hadoop.util.RunJar.unJar(RunJar.java:36)rn at org.apache.hadoop.mapred.TaskTracker.localizeJob(TaskTracker.java:815)rn at org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:1664)rn at org.apache.hadoop.mapred.TaskTracker.access$1200(TaskTracker.java:97)rn at org.apache.hadoop.mapred.TaskTracker$TaskLauncher.run(TaskTracker.java:1629)rnrn13/12/05 20:40:01 WARN mapred.JobClient: Error reading task outputhttp://dell2:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_r_000001_0&filter=stdoutrn13/12/05 20:40:01 WARN mapred.JobClient: Error reading task outputhttp://dell2:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_r_000001_0&filter=stderrrn13/12/05 20:40:07 INFO mapred.JobClient: Task Id : attempt_201311251041_0681_m_000002_1, Status : FAILEDrnError initializing attempt_201311251041_0681_m_000002_1:rnjava.util.zip.ZipException: error in opening zip filern at java.util.zip.ZipFile.open(Native Method)rn at java.util.zip.ZipFile.(ZipFile.java:114)rn at java.util.jar.JarFile.(JarFile.java:133)rn at java.util.jar.JarFile.(JarFile.java:97)rn at org.apache.hadoop.util.RunJar.unJar(RunJar.java:36)rn at org.apache.hadoop.mapred.TaskTracker.localizeJob(TaskTracker.java:815)rn at org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:1664)rn at org.apache.hadoop.mapred.TaskTracker.access$1200(TaskTracker.java:97)rn at org.apache.hadoop.mapred.TaskTracker$TaskLauncher.run(TaskTracker.java:1629)rnrn13/12/05 20:40:07 WARN mapred.JobClient: Error reading task outputhttp://dell4:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_m_000002_1&filter=stdoutrn13/12/05 20:40:07 WARN mapred.JobClient: Error reading task outputhttp://dell4:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_m_000002_1&filter=stderrrn13/12/05 20:40:10 INFO mapred.JobClient: Task Id : attempt_201311251041_0681_r_000001_1, Status : FAILEDrnError initializing attempt_201311251041_0681_r_000001_1:rnjava.util.zip.ZipException: error in opening zip filern at java.util.zip.ZipFile.open(Native Method)rn at java.util.zip.ZipFile.(ZipFile.java:114)rn at java.util.jar.JarFile.(JarFile.java:133)rn at java.util.jar.JarFile.(JarFile.java:97)rn at org.apache.hadoop.util.RunJar.unJar(RunJar.java:36)rn at org.apache.hadoop.mapred.TaskTracker.localizeJob(TaskTracker.java:815)rn at org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:1664)rn at org.apache.hadoop.mapred.TaskTracker.access$1200(TaskTracker.java:97)rn at org.apache.hadoop.mapred.TaskTracker$TaskLauncher.run(TaskTracker.java:1629)rnrn13/12/05 20:40:10 WARN mapred.JobClient: Error reading task outputhttp://dell4:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_r_000001_1&filter=stdoutrn13/12/05 20:40:10 WARN mapred.JobClient: Error reading task outputhttp://dell4:50060/tasklog?plaintext=true&taskid=attempt_201311251041_0681_r_000001_1&filter=stderrrnrn_我是调用hadoop中对数据库操作的库,实现把某一个表从mysql数据库并行导入hdfs,我单独写一个java程序可以成功导入,但是放到web工程里边,mapreduce就会出现这个ZipException问题_rn
我在运行asp.net时候出现的错误.
我在运行asp.net时候出现的错误.rnrn出现了以下的错误:rnrn“/WebApplication1”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn请求因 HTTP 状态 401 失败:Access Denied。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Net.WebException: 请求因 HTTP 状态 401 失败:Access Denied。rnrn源错误: rnrn执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 rnrn堆栈跟踪: rnrnrn[WebException: 请求因 HTTP 状态 401 失败:Access Denied。]rn System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)rn System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)rn WebApplication1.BankService.Bank.QueryHistoryMoney(Int32 iAccountID, String strStartTime, String strEndTime)rn WebApplication1.QueryMoney.btnSearch_Click(Object sender, EventArgs e)rn System.Web.UI.WebControls.Button.OnClick(EventArgs e)rn System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)rn System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)rn System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)rn System.Web.UI.Page.ProcessRequestMain()rnrn谁帮帮我?rnrn rn
运行Visual studio 2005时候出现的错误
我的代码是rn#include rnusing namespace std;rnint main()rnint a,b,sum;rncin>>a>>b;rnsum=a+b;rncout<<"a+b="<项目 : error PRJ0003 : 生成“cmd.exe”时出错。
我的2000SERVER运行的时候出现一个错误
我的2000SERVER运行的时候出现一个错误,在事件查看器中可以看到以下描述:rn事件 ID ( 1001 )的描述(在资源( SQLCTR70 )中)无法找到。本地计算机可能没有必要的注册信息或消息 DLL 文件来从远端计算机显示消息。部分事件包含了下列信息: Cannot open the Registry Key..rn请问我应如何处理?谢谢!
运行工程的时候出现这样的错误怎么办?
java.sql.SQLException: Network error IOException: Connection refused: connectrn at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:372)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)rn at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)rn at java.sql.DriverManager.getConnection(DriverManager.java:525)rn at java.sql.DriverManager.getConnection(DriverManager.java:140)rn at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39)rn at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)rn at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:217)rn at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89)rn at java.sql.DriverManager.getConnection(DriverManager.java:525)rn at java.sql.DriverManager.getConnection(DriverManager.java:193)rn at jxgdpro.common.DBConnection.getConnection(DBConnection.java:42)rn at jxgdpro.common.InitParameter.initGlobals(InitParameter.java:10)rn at jxgdpro.common.InitParameter.contextInitialized(InitParameter.java:41)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:551)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)rnCaused by: java.net.ConnectException: Connection refused: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)rn at java.net.Socket.connect(Socket.java:516)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:289)rn at net.sourceforge.jtds.jdbc.SharedSocket.(SharedSocket.java:250)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:297)rn ... 28 morern2006-12-19 9:58:48 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class jxgdpro.common.InitParameterrnjava.lang.NullPointerExceptionrn at jxgdpro.common.DBConnection.CloseConnonection(DBConnection.java:57)rn at jxgdpro.common.InitParameter.initGlobals(InitParameter.java:31)rn at jxgdpro.common.InitParameter.contextInitialized(InitParameter.java:41)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:551)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)rn2006-12-19 9:58:48 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2006-12-19 9:58:48 org.apache.catalina.core.StandardContext startrn严重: Context [/aqsc] startup failed due to previous errorsrn2006-12-19 9:58:50 org.logicalcobwebs.proxool.Prototyper sweeprn严重: Prototypernjava.sql.SQLException: Network error IOException: Connection refused: connectrn at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:372)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)rn at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)rn at java.sql.DriverManager.getConnection(DriverManager.java:525)rn at java.sql.DriverManager.getConnection(DriverManager.java:140)rn at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39)rn at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)rn at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102)rn at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44)rnCaused by: java.net.ConnectException: Connection refused: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)rn at java.net.Socket.connect(Socket.java:516)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:289)rn at net.sourceforge.jtds.jdbc.SharedSocket.(SharedSocket.java:250)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:297)rn ... 8 morern2006-12-19 9:58:51 org.apache.coyote.http11.Http11BaseProtocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2006-12-19 9:58:51 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2006-12-19 9:58:51 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/94 config=nullrn2006-12-19 9:58:51 org.apache.catalina.storeconfig.StoreLoader loadrn信息: Find registry server-registry.xml at classpath resourcern2006-12-19 9:58:51 org.apache.catalina.startup.Catalina startrn信息: Server startup in 7235 msrnException in thread "HouseKeeper" java.lang.NullPointerExceptionrn at org.logicalcobwebs.proxool.HouseKeeperController.getHouseKeeperToRun(HouseKeeperController.java:53)rn at org.logicalcobwebs.proxool.HouseKeeperThread.run(HouseKeeperThread.java:33)rn
Android创建数据库的时候出现Not Table错误解析
Android创建数据库的时候出现Not Table错误解析背景介绍:Android中使用SQLite存储数据的时候,当第二次创建表的时候,Log显示Not this Table错误解决办法。问题描述:当我们使用数据库SQLite的时候,需要穿件数据库帮助类SQLiteDBhelp类,通过其OnCreate方法进行穿件,OnUpdate进行升级。最近做项目。大致是写一个收货地址管理和银行卡信息管理。
Android 解析包时候出现错误
这是发生在凌晨1点的错误,当一切就绪各种功能都ok,就准备发布的时候,突然发现小米4的升级出现了下载包成功,但是覆盖安装apk报解析包出现错误的问题,但是我的mx4 pro确没有这个问题,首先想到的是系统区别,小米4用的是Android 4.4.4 而mx4 Pro 是5.0系统,又找了一个4.3的机器,发现还是不能安装,在这都快精疲力尽的时候出这样的错误,真是想死了,已经打算加班到天明了,但是静下
android studio 编译的时候出现的错误和解决方法
遇到一个添加一个 1、android()方法找不到了  Gradle sync failed: Gradle DSL method not found: 'android()' 解决方法:删掉android()方法,原因好像是新版的gradle中没有这个方法了 2、Error:Module 'com.github.lecho:hellocharts-library:
android studio run的时候出现空指针错误
Error:Execution failed for task ':Disentanglement:transformNative_libsWithStripDebugSymbolForDebug'.rn> java.lang.NullPointerException (no error message)rnrnrn以上是错误信息,这是什么情况...
编译android源码时候出现错误
/usr/include/zlib.h:34:19: 致命错误: zconf.h:没有那个文件或目录rnrn我在源码的目录和各级子目录下找到了10个zconf.hrn这就说明这个文件是存在的。rnrn是不是需要给我的ubuntu系统做什么路径配置?rn谢谢!
Android 命令行编译项目时候出现错误
我在编译自己的项目时候出现:rn执行这个命令后:rndx.bat --dex --output=C:/local_programs/testProject/bin/classes.dex C:/local_programs/testProject/bin/classes/test/Android/cmd/rnrnrn出现这个错误:rnrn[code=Java]trouble processing:rnbad class file magic (cafebabe) or version (0033.0000)rn...while parsing com/szy/dialogs/MainActivity$1.classrn...while processing com/szy/dialogs/MainActivity$1.classrnrntrouble processing:rnbad class file magic (cafebabe) or version (0033.0000)rn...while parsing com/szy/dialogs/MainActivity$10.classrn...while processing com/szy/dialogs/MainActivity$10.classrnrntrouble processing:rnbad class file magic (cafebabe) or version (0033.0000)rn...while parsing com/szy/dialogs/MainActivity$11.classrn...while processing com/szy/dialogs/MainActivity$11.classrnrntrouble processing:rnbad class file magic (cafebabe) or version (0033.0000)rn...while parsing com/szy/dialogs/MainActivity$12.classrn...while processing com/szy/dialogs/MainActivity$12.classrnrntrouble processing:rnbad class file magic (cafebabe) or version (0033.0000)rn...while parsing com/szy/dialogs/MainActivity$13.classrn...while processing com/szy/dialogs/MainActivity$13.classrnrntrouble processing:rnbad class file magic (cafebabe) or version (0033.0000)rn...while parsing com/szy/dialogs/MainActivity$14.classrn...while processing com/szy/dialogs/MainActivity$14.classrnrntrouble processing:rnbad class file magic (cafebabe) or version (0033.0000)rn...while parsing com/szy/dialogs/MainActivity$2.classrn...while processing com/szy/dialogs/MainActivity$2.classrnrntrouble processing:rnbad class file magic (cafebabe) or version (0033.0000)rn...while parsing com/szy/dialogs/MainActivity$3.classrn...while processing com/szy/dialogs/MainActivity$3.class[/code]rnrn谁遇到过,提供下信息。。。rnrn
编译android 4.0.3的时候出现错误。
1.先下载google 源码编译,通过rn2.然后按照需求修改framework里面的代码rn3.然后再编译就出现如下提示:rnmake -j8rn============================================rnPLATFORM_VERSION_CODENAME=RELrnPLATFORM_VERSION=4.0.3rnTARGET_PRODUCT=fullrnTARGET_BUILD_VARIANT=engrnTARGET_BUILD_TYPE=releasernTARGET_BUILD_APPS=rnTARGET_ARCH=armrnTARGET_ARCH_VARIANT=armv7-arnHOST_ARCH=x86rnHOST_OS=linuxrnHOST_BUILD_TYPE=releasernBUILD_ID=IML74Krn============================================rnChecking API: checkapi-lastrnChecking API: checkapi-currentrnInstall: out/host/linux-x86/bin/dx-testsrnCopy: vm-tests (out/host/linux-x86/obj/EXECUTABLES/vm-tests_intermediates/vm-tests)rnInstall: out/host/linux-x86/framework/layoutlib.jarrncom.google.doclava.apicheck.ApiParseException: Error parsing APIrn at com.google.doclava.apicheck.XmlApiFile.parseApi(XmlApiFile.java:60)rn at com.google.doclava.apicheck.ApiCheck.parseApi(ApiCheck.java:152)rn at com.google.doclava.apicheck.ApiCheck.checkApi(ApiCheck.java:108)rn at com.google.doclava.apicheck.ApiCheck.main(ApiCheck.java:67)rnCaused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)rn at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1024)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)rn at com.google.doclava.apicheck.XmlApiFile.parseApi(XmlApiFile.java:54)rn ... 3 morernError parsing APIrnrn******************************rnYou have tried to change the API from what has been previously approved.rnrnTo make these errors go away, you have two choices:rn 1) You can add "@hide" javadoc comments to the methods, etc. listed in thern errors above.rnrn 2) You can update current.txt by executing the following command:rn make update-apirnrn To submit the revised current.txt to the main Android repository,rn you will need approval.rn******************************rnrnrnrnmake: *** [out/target/common/obj/PACKAGING/checkapi-current-timestamp] 错误 38rnmake: *** 正在等待未完成的任务....rncom.google.doclava.apicheck.ApiParseException: Error parsing APIrn at com.google.doclava.apicheck.XmlApiFile.parseApi(XmlApiFile.java:60)rn at com.google.doclava.apicheck.ApiCheck.parseApi(ApiCheck.java:152)rn at com.google.doclava.apicheck.ApiCheck.checkApi(ApiCheck.java:109)rn at com.google.doclava.apicheck.ApiCheck.main(ApiCheck.java:67)rnCaused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)rn at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1024)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)rn at com.google.doclava.apicheck.XmlApiFile.parseApi(XmlApiFile.java:54)rn ... 3 morernError parsing APIrnrn******************************rnYou have tried to change the API from what has been previously released inrnan SDK. Please fix the errors listed above.rn******************************rnrnrnmake: *** [out/target/common/obj/PACKAGING/checkapi-last-timestamp] 错误 38rnanku-serv1@anku-serv1-desktop:~/workspace/test/android_4_0_org$ rnrn按照上面的提示make update-api以后再编译还是不行。rn我做过如下尝试:rn尝试一:rnmake cleanrnlunch full-engrnmake -j8rn结果失败。rnrn尝试二:rnmake cleanrnrm framework/base/api/curent.txtrnlunch full-engrnmake -j8rn结果失败rnrn尝试三:rnmake cleanrnrm framework/base/api/curent.txtrnmake update-apirnlunch full-engrnmake -j8rn结果失败rn每次都是提示上面的错误。rn求高手指点
android停止运行app
adb shell     1. ps | grep 进程名 2.kill 进程编号 或者 am force-stop 包名   启动app adb shell am start -n 包名/类名
运行时候的错误
#include"student.h"rn#includern#includern//studentdriver.cpprnusing namespace std;rnint main()rnrn const int size=3;rn CStudent students[size];rn //input some informationrn for(int i=0;irn#includernusing namespace std;rnCStudent::CStudent(string n,int a,char s,float m,float e)rnrn name=n;rn age=a;rn sex=s;rn math=m;rn english=e;rnrnvoid CStudent::SetInformation()rnrn cout<<"Name:";rn getline(cin,name);rn cout<<"SEX:";rn cin>>sex;rn cout<<"Age:";rn cin>>age;rn cout<<"Math:";rn cin>>math;rn cout<<"English:";rn cin>>english;rn cin.ignore(1);rn cout<rnrnusing namespace std;rnclass CStudentrnrnpublic:rn CStudent(string n="zhouFa",int a=3,char sex='m',float m=78,float e=90);rn void SetInformation();//Input some informationrn void GetInformation()const;//output all informationrn friend void SortInmath(CStudent* stu,int n);rn //friend void sortInmath();rnprotected:rn string name;rn int age;rn char sex;rn float math;rn float english;rn;rn#endifrnrn为什么运行到SortInmath(students,size);时出错呢rnFirst-chance exception at 0x102337fe in Students.exe: 0xC0000005: Access violation reading location 0x00133000.rnUnhandled exception at 0x102337fe in Students.exe: 0xC0000005: Access violation reading location 0x00133000.rn
水晶报表的运行时候的错误
Web报表,每天早上运行一直很好,到了下午17点后,都会出现下面的错误。rnrn当前异常信息 rn打开报表失败。 rn导致错误的应用程序或对象的名称 rnAnalysis Server rn获取引发当前异常的方法 rnOpen rn描述调用堆栈的内容,其中首先显示最近的方法调用. rn在 CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) 在 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) 在 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() rnrn--------------------------------------------------------------------------------rn rn当前异常信息 rn加载报表失败。 rn导致错误的应用程序或对象的名称 rnCrystalDecisions.CrystalReports.Engine rn获取引发当前异常的方法 rnEnsureDocumentIsOpened rn描述调用堆栈的内容,其中首先显示最近的方法调用. rn在 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() 在 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) 在 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) 在 Reports.DataSetConfiguration.getPullDocument(String strRptName, ReportDocument customerReport) 在 Reports.DataSetConfiguration.getPullDocument(String strRptName) 在 Module_Reports_ReportUserControl.Page_Init(Object sender, EventArgs e) 在 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) 在 System.Web.UI.Control.OnInit(EventArgs e) 在 System.Web.UI.UserControl.OnInit(EventArgs e) 在 System.Web.UI.Control.InitRecursive(Control namingContainer) 在 System.Web.UI.Control.AddedControl(Control control, Int32 index) 在 System.Web.UI.ControlCollection.Add(Control child) 在 ReportPageBase.Page_Init(Object sender, EventArgs e) 在 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) 在 System.Web.UI.Control.OnInit(EventArgs e) 在 System.Web.UI.Page.OnInit(EventArgs e) 在 PageBase.OnInit(EventArgs e) 在 System.Web.UI.Control.InitRecursive(Control namingContainer) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) rnrn--------------------------------------------------------------------------------rn rn当前异常信息 rn引发类型为“System.Web.HttpUnhandledException”的异常。 rn导致错误的应用程序或对象的名称 rnSystem.Web rn获取引发当前异常的方法 rnHandleError rn描述调用堆栈的内容,其中首先显示最近的方法调用. rn在 System.Web.UI.Page.HandleError(Exception e) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 在 System.Web.UI.Page.ProcessRequest() 在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) 在 System.Web.UI.Page.ProcessRequest(HttpContext context) 在 ASP.module_reports_pos_flashsalesreport_aspx.ProcessRequest(HttpContext context) 位置 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\getretail\ea32c23d\478c5581\App_Web_9b2qztkd.2.cs:行号 0 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) rn
在用setOnClickListener的时候出现了下面的错误。新手不解
The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments (PinGou)rnrn代码rnpublic class PinGou extends Activity rn /** Called when the activity is first created. */rn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn rn Button goubutton=(Button)findViewById(R.id.goubutton);rn goubutton.setOnClickListener(this);rn rn rnrn不懂了求教
在用net use 映射盘的时候出现了一个错误!!
错误是:rnrn系统发生67错误rnrn找不到网络名rnrn这是怎么回事啊??rn
在用odbc连接access数据库时候出现如下错误
我通过pb连接的,出现如下错误:sqlstate=s1003 rnmicrosoft[odbc 管理起]程序类型错误rn
我在用CryptoAPI的时候,为什么会出现这样的错误呢?
我在用CryptoAPI的时候,已经包含了头文件wincrypt.h,可为什么会出现这样的错误呢?error C2065: 'HCRYPTPROV' : undeclared identifier,出现这个错误的原因好像是wincrypt.h这个文件没有包含,不知为什么?有那位仁兄碰到过这种情况吗?
我在用jacob的时候出现了这样的错误...请高手帮忙.
com.jacob.com.ComFailException: Can't map name to dispid: documentrn这是出现的错误.rnrn下面的程序.rnpublic class FileExtracterrn public static void main(String[] args) rn ActiveXComponent component = new ActiveXComponent("Word.Application");rn String inFile = "c:\\my.doc";rn String tpFile = "c:\\my.htm";rn String otFile = "c:\\my.xml";rn boolean flag = false;rn try rn component.setProperty("Visible", new Variant(false));rn Object wordacc = component.getProperty("document").toDispatch();rn Object wordfile = Dispatch.invoke(wordacc,"Open", Dispatch.Method, rn new Object[]inFile,new Variant(false), new Variant(true),rn new int[1] ).toDispatch();rn Dispatch.invoke(wordfile,"SaveAs", Dispatch.Method, new Object[]tpFile,new Variant(8), new int[1]);rn Variant f = new Variant(false);rn Dispatch.call(wordfile, "Close", f);rn flag = true;rn catch (Exception e) rn e.printStackTrace();rn finally rn component.invoke("Quit", new Variant[] );rn rn rnrn谢谢.......
在用struts编JSP时候,出现下面错误,帮帮忙!!!!!!!!!
2004/08/27 15:12:48 org.apache.struts.util.RequestUtils createActionFormrn致命的: FORM Bean com.logon.app.LogonForm 生成错误rnjava.lang.ClassCastExceptionrn at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:352)rn at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:234)rn at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:468)rn at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:448)rn at org.apache.jsp.login_jsp._jspx_meth_html_form_0(login_jsp.java:137)rn at org.apache.jsp.login_jsp._jspService(login_jsp.java:96)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)rn at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)rn at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)rn at java.lang.Thread.run(Thread.java:536)rn
我在用jstl 自定义函数库的时候 出现错误!
rn rn $bi.arearn rn rnrn------------------------------------------rnrnpublic class Functions rn rn public static List getBankList()rn rn List banklist =null;rn Session session=null;rn tryrn session=HibernateFilter.getSession();rn session.beginTransaction();rn banklist=session.createQuery("from BankInfo a order by id").list();rn session.getTransaction().commit();rn rn catch(Exception e)rn rn e.printStackTrace();rn session.getTransaction().rollback();rn rn return banklist;rn rn rn public static List getAreaList()rn rn List arealist =null;rn Session session=null;rn tryrn session=HibernateFilter.getSession();rn session.beginTransaction();rn arealist=session.createQuery("from Area").list();rn System.out.println(arealist.get(0));rn session.getTransaction().commit();rn catch(Exception e)rn rn e.printStackTrace();rn session.getTransaction().rollback();rn rn return arealist;rn rn--------------------------------------rnrnrnrnrnrn fanfull functionsrn 1.0rn fanfullrn http://www.fanfull.com/fanfull/functionsrn rn getBankListrn fanfull.order.util.Functionsrn java.util.List getBankList()rn rn rn getAreaListrn fanfull.order.util.Functionsrn java.util.List getAreaList()rn rnrnrn控制台报空指针 错误。rn2011-7-7 10:28:17 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.NullPointerExceptionrn at fanfull.order.util.Functions.getAreaList(Functions.java:49)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.el.parser.AstFunction.getValue(AstFunction.java:110)rn at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)rn at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)rn at org.apache.jsp.area.areadetial_005fadd_jsp._jspx_meth_c_005fforEach_005f0(areadetial_005fadd_jsp.java:257)rn at org.apache.jsp.area.areadetial_005fadd_jsp._jspService(areadetial_005fadd_jsp.java:147)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)rn at org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)rn at org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)rn at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)rn at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)rn at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rn2011-7-7 10:28:17 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet action threw exceptionrnrnrn页面上:rnjavax.servlet.ServletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /area/areadetial_add.jsp at line 59rnrn56: rn57: *: rn58: rn59: rn60: $bi.arearn61: rn62: rnrn
android运行直接终止
rn01-08 04:30:05.250: I/dalvikvm(1976): CheckJNI enabled: not enabling JNI app bug workarounds.rn01-08 04:30:06.290: I/dayofweek(1976): 4rn01-08 04:30:06.380: I/SQLiteConnectionPool(1976): The connection pool for /data/data/org.caotao.profile/databases/Settings.db has been closed but there are still 1 connections in use. They will be closed as they are released back to the pool.rn01-08 04:30:06.380: D/AndroidRuntime(1976): Shutting down VMrn01-08 04:30:06.380: W/dalvikvm(1976): threadid=1: thread exiting with uncaught exception (group=0xb3adfb90)rn01-08 04:30:06.390: E/AndroidRuntime(1976): FATAL EXCEPTION: mainrn01-08 04:30:06.390: E/AndroidRuntime(1976): Process: org.caotao.profile, PID: 1976rn01-08 04:30:06.390: E/AndroidRuntime(1976): java.lang.RuntimeException: Unable to start activity ComponentInfoorg.caotao.profile/org.caotao.profile.MainActivity: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/org.caotao.profile/databases/Settings.dbrn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2176)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.app.ActivityThread.access$700(ActivityThread.java:135)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.os.Handler.dispatchMessage(Handler.java:102)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.os.Looper.loop(Looper.java:137)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.app.ActivityThread.main(ActivityThread.java:4998)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at java.lang.reflect.Method.invokeNative(Native Method)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at java.lang.reflect.Method.invoke(Method.java:515)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at dalvik.system.NativeStart.main(Native Method)rn01-08 04:30:06.390: E/AndroidRuntime(1976): Caused by: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/org.caotao.profile/databases/Settings.dbrn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:55)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:520)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:263)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:188)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at org.caotao.sqlite.DBAdapter.getOneOfSmart(DBAdapter.java:71)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at org.caotao.profile.MainActivity.initService(MainActivity.java:47)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at org.caotao.profile.MainActivity.onCreate(MainActivity.java:26)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.app.Activity.performCreate(Activity.java:5243)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)rn01-08 04:30:06.390: E/AndroidRuntime(1976): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)rn01-08 04:30:06.390: E/AndroidRuntime(1976): ... 11 morern
传递参数时候出现的错误?
project euler第十四题rn求解100万内最长链。rnrnrnrn#include "stdafx.h"rnrnint chain_length(int num);rnrnint _tmain(int argc, _TCHAR* argv[])rn rn int i;rn int temp = 0;rn int mark;rn int llength = 0;rn for (i = 1 ; i < 1000000 ;i++)rn rn temp = chain_length(i);rn if (temp > llength)rn rn llength = temp;rn mark = i;rn rn rn rn return 0;rnrnrnrnint chain_length(int anum)rnrn int i = 0;rn int num = anum;rn while (1)rn rn i ++;rn if(num == 1)rn rn rn break;rn rn else if(num % 2 == 0)rn rn rn num = num / 2;rn rn elsern rn num = num * 3 + 1;rn rn rn return i; rnrnrn当main函数执行到计算113383这值 的时候函数里头的num值(由anum传来)就会自动变成负数,然后进入死循环,为什么?rn编译环境是vs2005,win32 console application,请教问题在什么地方
调试程序的时候出现错误
调试aspx文件时出现这个错误是怎么回事,怎么解决啊rnrnServer Application Unavailable rnThe web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. rnrnAdministrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. rn
编译的时候出现错误!
---------- Deploy: Deploy of p_score_exernCreating executable file . . .rnInspecting Application Dependencies. . .rnBuilding type C:\Documents and Settings\lising\桌面\c\score.pbl(m_main_mdi.srm) . . .rnBuilding type C:\Documents and Settings\lising\桌面\c\score.pbl(m_main_mdi.srm) . . .rnBuilding type C:\Documents and Settings\lising\桌面\c\score.pbl(m_main_mdi.srm) . . .rnInspecting Application Dependencies. . .rnBuilding type C:\Documents and Settings\lising\桌面\c\score.pbl(w_mian_mdi.srw) . . .rnBuilding type C:\Documents and Settings\lising\桌面\c\score.pbl(m_main_mdi.srm) . . .rnRegenerating C:\Documents and Settings\lising\桌面\c\score.pbl(w_mian_mdi.srw) . . .rnRegenerating C:\Documents and Settings\lising\桌面\c\score.pbl(m_main_mdi.srm) . . .rnInspecting application libraries . . .rnUnresolved DataWindow 'none' referenced from object 'w_sysuser.win'rnUnresolved DataWindow 'none' referenced from object 'w_cjgl_cjlr.win'rnUnresolved DataWindow 'd_ssxs' referenced from object 'w_zydm.win'rnUnresolved DataWindow 'none' referenced from object 'w_zydm.win'rnUnresolved DataWindow 'none' referenced from object 'w_zydm.win'rnError writing object informationrn ---------- Finished Deploy of p_score_exern
查询的时候出现错误
“/”应用程序中的服务器错误。rnrncalsses_idrnrn说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.IndexOutOfRangeException: calsses_idrnrn源错误: rnrnrn行 17: public IList GetAllClasses()rn行 18: rn行 19: return SqlMap.QueryForList("SelectAllClasses", null);rn行 20: rn行 21: /// rnrn源文件: c:\Users\qq\Downloads\IbatisDemo01\BLLService\ClassesService.cs 行: 19 rnrn堆栈跟踪: rnrnrn[IndexOutOfRangeException: calsses_id]rn System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) +5328314rn System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) +61rn IBatisNet.DataMapper.Commands.DataReaderDecorator.System.Data.IDataRecord.GetOrdinal(String name) +11rn IBatisNet.DataMapper.TypeHandlers.Int32TypeHandler.GetValueByName(ResultProperty mapping, IDataReader dataReader) +19rn IBatisNet.DataMapper.Configuration.ResultMapping.ResultProperty.GetDataBaseValue(IDataReader dataReader) +35rn IBatisNet.DataMapper.MappedStatements.PropertyStrategy.DefaultStrategy.Get(RequestScope request, IResultMap resultMap, ResultProperty mapping, Object& target, IDataReader reader) +251rn IBatisNet.DataMapper.MappedStatements.PropertyStrategy.DefaultStrategy.Set(RequestScope request, IResultMap resultMap, ResultProperty mapping, Object& target, IDataReader reader, Object keys) +26rn IBatisNet.DataMapper.MappedStatements.ResultStrategy.ResultMapStrategy.Process(RequestScope request, IDataReader& reader, Object resultObject) +252rn IBatisNet.DataMapper.MappedStatements.ResultStrategy.MapStrategy.Process(RequestScope request, IDataReader& reader, Object resultObject) +105rn IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForList(RequestScope request, ISqlMapSession session, Object parameterObject, IList`1 resultObject, RowDelegate`1 rowDelegate) +453rn IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForList(ISqlMapSession session, Object parameterObject) +108rn IBatisNet.DataMapper.SqlMapper.QueryForList(String statementName, Object parameterObject) +181rn BLLService.ClassesService.GetAllClasses() in c:\Users\qq\Downloads\IbatisDemo01\BLLService\ClassesService.cs:19rn IbatisDemo01.TestPage.BindData() in c:\Users\qq\Downloads\IbatisDemo01\IbatisDemo01\TestPage.aspx.cs:25rn IbatisDemo01.TestPage.Page_Load(Object sender, EventArgs e) in c:\Users\qq\Downloads\IbatisDemo01\IbatisDemo01\TestPage.aspx.cs:20rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51rn System.Web.UI.Control.OnLoad(EventArgs e) +92rn System.Web.UI.Control.LoadRecursive() +54rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772rnrn版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.18408
相关热词 c# 线程结束时执行 c# kb mb 图片 c# 替换第几位字符 c#项目决定成败 c# 与matlab c# xml缩进 c#传感器基础 c#操作wps c# md5使用方法 c# 引用父窗口的组件