Android运行报错 求大神指导

12-01 20:49:04.872: D/AndroidRuntime(2097): Shutting down VM
12-01 20:49:04.872: W/dalvikvm(2097): threadid=1: thread exiting with uncaught exception (group=0xb4addb90)
12-01 20:49:04.922: E/AndroidRuntime(2097): FATAL EXCEPTION: main
12-01 20:49:04.922: E/AndroidRuntime(2097): Process: com.doudou, PID: 2097
12-01 20:49:04.922: E/AndroidRuntime(2097): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.doudou/com.doudou.DadoudouActivity}: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]]
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2102)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.access$700(ActivityThread.java:135)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.os.Handler.dispatchMessage(Handler.java:102)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.os.Looper.loop(Looper.java:137)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.main(ActivityThread.java:4998)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.reflect.Method.invokeNative(Native Method)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.reflect.Method.invoke(Method.java:515)
12-01 20:49:04.922: E/AndroidRuntime(2097): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
12-01 20:49:04.922: E/AndroidRuntime(2097): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
12-01 20:49:04.922: E/AndroidRuntime(2097): at dalvik.system.NativeStart.main(Native Method)
12-01 20:49:04.922: E/AndroidRuntime(2097): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]]
12-01 20:49:04.922: E/AndroidRuntime(2097): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2093)
12-01 20:49:04.922: E/AndroidRuntime(2097): ... 11 more
12-01 20:49:07.812: I/Process(2097): Sending signal. PID: 2097 SIG: 9

0
suannai0314
鹳狸媛 楼主的这个问题解决了么?下边的答案能解决问题么?如果可以麻烦点击答案旁的√采纳哦~如果没有也可以将自己的答案贴上然后进行采纳的。
5 年多之前 回复

24个回答

1.删除bin再编译调试
2.项目Properties>Java Build Path>Order and export,调整library顺序,把其他library都提前试试

6
yuanquan323
yuanquan323 正解~
大约 4 年之前 回复
crazy1235
月盡天明 ok
4 年多之前 回复
Jary163
Crazy_soldier 确实 问题解决了
5 年多之前 回复

Properties>Java Build Path>Order and export 中的android-support-v4.jar选中

3

标准答案:clean一把,
一把先看Caused by: java.lang.ClassNotFoundException: 还有空指针异常,都是去clean一把,非常的有效果

1

12-01 20:49:04.922: E/AndroidRuntime(2097): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]]

com.doudou.DadoudouActivity 这个Activity没有找到,看看是否在manifest.xml里面注册。

1

Manifest.xml 中声明了吗?仔细看看声明是否正确

0

如果这个DadoudouActivity没有找到,(1)看看是不是这个程序的AndroidManifest.xml文件里面没有生命这个activity。(2)或者看看这个是不是调用的另外一个应用啊,然后没有安装这个apk,所以找不到。或者安装了这个apk,这个apk的清单文件里面没有声明此activity。

0

java.lang.ClassNotFoundException 类没有找到啊,应该缺少了依赖库

0

如果这个DadoudouActivity没有找到,可能有以下三种情况:(1在这个程序的AndroidManifest.xml文件里面没有注册这个activity。(2)看看这个是不是调用的另外一个应用,而另一个应用没有安装,所以找不到。或者安装了那个应用了,可是那个应用里面没有声明此activity。(3)如果说是导入的另一个应用程序jar包的话,有可能你在打jar是把DadoudouActivity这个类给遗漏了,所以提示找不到这个类。

0

我之前AndroidManifest.xml 里面的application 属性设置里面android:label="@string/app_name" 写成了android:name="@string/app_name" 也会报类似的错误

0

去看看manifast 的xml 中对应 的类名 和 包名写对嘛

0
共24条数据 1 3 尾页
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
xcode7beta6 运行报错 ,求大神指导
rn在Xcode6.4上跑的好好的代码,用Xcode7beta6运行就报错rn*** Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:],rn/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.4/UIApplication.m:3267rnrn本人小白,请教为何出错?我在别的Xcode版本能用啊,另外Xcode7也能运行别的demo不出错。。。
安卓线程的使用
android中试用线程的几种方式,很简单。求大神指导一下。
基于MFC ppi计算器
新手自己写的ppi计算器,开发环境:vs2010 win8.1 ,求指导,求大神指导
求大神指导求大神指导求大神指导
1>main.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CSpeechRecognition1::CSpeechRecognition1(void)" (??0CSpeechRecognition1@@QAE@XZ),该符号在函数 "public: __thiscall main::main(class CWnd *)" (??0main@@QAE@PAVCWnd@@@Z) 中被引用rn1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall main::OnInitDiaLog(void)" (?OnInitDiaLog@main@@UAEHXZ)rn1>main.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall CSpeechRecognition1::~CSpeechRecognition1(void)" (??1CSpeechRecognition1@@UAE@XZ),该符号在函数 "public: virtual __thiscall main::~main(void)" (??1main@@UAE@XZ) 中被引用rn1>D:\tttttt\RecordSpeech\Debug\RecordSpeech.exe : fatal error LNK1120: 3 个无法解析的外部命令
08cms房产门户系统7.1gbk源码
这个是7.1的源码,非常齐全,就是不会构架,求大神指导
qq游戏找茬破解
有很多冗余代码 不是专业人士 见谅 另外可能会出现无响应bug 求大神指导修改
易语言钓鱼源码
求大神买走 求大神买走 易语言钓鱼源码
android app中调用其他应用程序
原文网址:原文 一、打开第三方应用 方法一 Intent intent=new Intent(); //包名 包名+类名(全路径) intent.setClassName("com.linxcool", "com.linxcool.PlaneActivity"); startActivity(intent); 方法二 Intent intent = new Int
真机运行报错!!!求大神解决问题
[img=https://img-bbs.csdn.net/upload/201604/25/1461562092_581149.png][/img]rnrn电脑系统从10.11升级到10.11.4真机就运行不了,其他项目都可以,就这个以前在真机上跑过得项目不可以,一直报这个错误rnThe application does not have a valid signature.
代码运行报错,求大神指点
filename、fennei_name、gc_name是从帆软报表中传递过来的参数,是中文的,先转换成cjkEkcode,再转换回去,不然就无法下载,代码如下:rn rn rn<%@page language="java" contentType="application/x-msdownload" pageEncoding="gb2312" %>rn<% rn response.reset(); rn response.setContentType("application/x-download"); rn String downloadfile = "E:/文件/"+gc_name+"/"+fennei_name+"/"+filename; //设置下载文件的路径及名称 rn response.setHeader("Content-disposition","attachment; filename="+gc_name+"_"+fennei_name+"_"+filename); //设rnrn置下载文件的名称 rn java.io.OutputStream outp = null; rn java.io.FileInputStream in = null; rn try rn rn outp = response.getOutputStream(); rn in = new java.io.FileInputStream(downloadfile); rn rn byte[] b = new byte[1024]; rn int i = 0; rn rn while((i = in.read(b)) > 0) rn rn outp.write(b, 0, i); rn rn outp.flush(); rn rn catch(Exception e) rn rn System.out.println("Error!"); rn e.printStackTrace(); rn rn finally rn rn if(in != null) rn rn in.close(); rn in = null; rn rn if(outp != null) rn rn outp.close(); rn outp = null; rn rn rn%> rnrn错误如下:rntype 异 常 报 告rnrn信 息rnrn描 述 服务器遇到内部错误,无法满足这个访问请求rnrn异 常rnrnorg.apache.jasper.JasperException: 无法编译JSPrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rngc_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfennei_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfilename cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rngc_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfennei_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfilename cannot be resolvedrnrnrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn起 因rnrnorg.apache.jasper.JasperException: 无法编译JSPrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rngc_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfennei_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfilename cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rngc_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfennei_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfilename cannot be resolvedrnrnrn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)rn org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn注 意 完整的起因在Apache Tomcat/5.5.20里。
求大神指导指导一下
[img=https://img-bbs.csdn.net/upload/201505/27/1432717312_644686.jpg][/img][b][img=https://img-bbs.csdn.net/upload/201505/27/1432717340_762836.jpg][/img][img=https://img-bbs.csdn.net/upload/201505/27/1432717366_514225.jpg][/img][/b]
解决butterknife依赖添加报错
解决Android studio 添加butterknife依赖,运行报错。
Android如何实现新手指引操作
本人是学习借鉴鸿阳大神的 首先在build.grade文件中导入     compile 'com.isanwenyu.highlight:highlight:1.8.0' 布局文件如下: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_wid
android实现连一线
android练一练,参考大神作品,实现连连看效果,简单的效果,另求积分
国内外Android大神博客
Avatar Github Blog Descriptionhttps://github.com/google http://android-developers.blogspot.com/ Google Android Developers Bloghttps://github.com/JakeWharton http://jakewharton.com/ ActionBarSherlock, A
S2SH不完整版
没事整个框架,用的是myeclipse10.0,tomcat 7.0,框架包全部是myeclipse自带。xwork-core-2.2包调试出问题,求大神指导
QML - 动态柱状图
只是实现了动态显示柱状图的内容. 一直在努力实现动态显示音频频谱的功能,如果有哪位大神实现了,麻烦留言告知。求指导。
求大神指导
编写程序,提示用户输入一个mp3歌曲文件的文件名(可以带有路径),通过代码将该歌曲中的歌手名修改为自己的学号和姓名,并通过音乐播放器进行播放验证。
求大神指导~~
//对象创建rn shopmodel.GoodsBean goods=new shopmodel.GoodsBean();rn ToolBean.DB db=new ToolBean.DB();rn String info="";rn String forward="";rn String ext="";rn String url="upload/";rn String picurl="/uploadimage";rn FileInputStream imagefile=null;rn PreparedStatement pstmt=null;rn Connection conn=null;rn rn //处理上传的图片文件rn SmartUpload su=new SmartUpload(); //创建新的上传对象rn long maxsize=200*1024; //设置每个上传文件的大小为200KB rn tryrn su.initialize(this.getServletConfig(),request,response);//初始化rn rn su.setMaxFileSize(maxsize); //限制上传文件的大小rn su.setDeniedFilesList("exe,bat,jsp,htm,html,,");//设定禁止上传的文件。禁止上传罗列的那些及没有扩展名的文件。rn su.setAllowedFilesList("jpg,JPG,gif,GIF"); //设定允许上传的格式rn su.upload(); //上传文件rn //将上传文件保存到指定目录rn su.save(picurl,SmartUpload.SAVE_VIRTUAL);rn rn //获取上传的文件,因为只上传了一个文件,所以可直接获取 rn com.jspsmart.upload.File myfile=su.getFiles().getFile(0);rn if(!myfile.isMissing()) rn String filename=myfile.getFilePathName(); //获取完整的带路径的文件名rn imagefile=new FileInputStream(filename);rn //获取用户提交的其他数据rn Request req=su.getRequest(); rn String cid=req.getParameter("cid");rn String cname=req.getParameter("cname");rn String number=req.getParameter("cnumber");rn String price=req.getParameter("cprice");rn String cintro=req.getParameter("cintro");rn //转换数量和价格的格式rn int cnumber=Integer.parseInt(number);rn float cprice=Float.parseFloat(price);rn rn //将图片存到upload文件夹中,并重命名rn ext=myfile.getFileExt();rn Calendar cal=Calendar.getInstance();rn String newfilename=String.valueOf(cal.getTimeInMillis());rn //String saveurl=request.getRealPath("/")+url;rn //saveurl+=newfilename+"."+ext;rn rn //设置存到数据库中的路径rn String cimage=url+newfilename+"."+ext;rn rn rn rn// java.io.File iofile = new java.io.File(filename); rn// java.io.FileInputStream fis = new java.io.FileInputStream(iofile); rn //写入到GoodsBean中rn// goods.setCid(cid);rn// goods.setCname(cname);rn// goods.setCnumber(cnumber);rn// goods.setCprice(cprice);rn// goods.setCintro(cintro);rn// goods.setCimage(cimage);rn rn int cmark=0;rn rn String sql="insert into goods(cid,cname,cnumber,cprice,cintro,cimage,cpic) values (?,?,?,?,?,?,?)";rn rn conn=db.createConn();rn conn.setAutoCommit(true);rn pstmt=conn.prepareStatement(sql); rn pstmt.setString(1,cid);rn pstmt.setString(2,cname);rn pstmt.setInt(3,cnumber);rn pstmt.setFloat(4,cprice);rn pstmt.setString(5,cintro);rn pstmt.setString(6,cimage);rn //pstmt.setBinaryStream(parameterIndex, x, length)rn //pstmt.setBinaryStream(6,fis,419);rn pstmt.setBinaryStream(7,imagefile,imagefile.available());rn //cmark=pstmt.execute();rn cmark=pstmt.executeUpdate();rn if(cmark==1)rn //myfile.saveAs(saveurl,SmartUpload.SAVE_PHYSICAL); //su.SAVE_PHYSICALrn info="添加成功!";rn //conn.commit();rn forward="c_manager.jsp";rn elsern info="添加失败!";rn forward="c_add.jsp";rn rn rn elsern info="请选择要上传的文件!";rn forward="c_add.jsp";rn rn rn catch(Exception e)rn e.printStackTrace();rn info="添加异常!";rn forward="c_add.jsp";rn finallyrn try pstmt.close();catch(Exception e)rn try imagefile.close();catch(Exception e)rn try conn.close();catch(Exception e)rn rnrn rn request.setAttribute("info",info);rn RequestDispatcher rd=request.getRequestDispatcher(forward);rn rd.forward(request,response);rn rn rnrnrn为什么我添加的时候出现添加异常????
求jstree大神指导
用jstree插件,遇到一个问题 ,使用jstree checkbox的时候,选中父节点下的所有子节点,父节点才是selected状态,才能拿到父节点的id。 我想知道  怎么只选中父节点下的一个或多个子节点 ,也能拿到父节点的id。如下图 父节点是半选状态  也能拿到父节点和子节点的id。 求大神指导~
求大神指导,十万火急!!!
如何只用action调用别的网站的查找功能查找地址所在位置?n如:输入自定义接口http://127.0.0.1:8080/WebManagePlatform/inter/hc_ip.do?ip=121.199.26.86n就可以查找ip地址所在位置。n求大神指导........n
求c#大神指导
我想指导为什么创建不了用户 (NGUSER)?????rnrnrnrnrn private void btnSetNg_Click(object sender, EventArgs e)rn rn string strSql = "create user NGUSER identified by '9003' default tablespace std; grant connect,resource to NGUSER ; grant create any sequence to NGUSER ; grant create any table to NGUSER ; grant delete any table to NGUSER ; grant insert any table to NGUSER ; grant select any table to NGUSER ; grant unlimited tablespace to NGUSER ; grant execute any procedure to NGUSER ; grant update any table to NGUSER ; grant create any view to NGUSER ; "; rn rn //"CREATE USER NGUSER PROFILE DEFAULT IDENTIFIED BY 9003 DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK;GRANT CREATE ANY TABLE TO NGUSER;GRANT UNLIMITED TABLESPACE TO NGUSER;GRANT CONNECT TO NGUSER;GRANT RESOURCE TO NGUSER;";rn rn tryrn rn Form1.oclConnection.Open();rn rn OracleCommand oclCommand = new OracleCommand(strSql, Form1.oclConnection);rn rnrn MessageBox.Show("创建成功");rnrn /*rn rn rn create user NGUSER identified by 9003; grant create session to NGUSER; grant create table to NGUSER; grant create tablespace to NGUSER; grant create view to NGUSER; rn rn */rnrnrn rn catch (Exception ex)rn rnrn MessageBox.Show("SQL语句出错!\n" + strSql.ToString() + "\n请检查:\n" + ex.ToString());rnrn rn finallyrn rn Form1.oclConnection.Close();rn rn FormEnterDatabase_Load(this,e);rn rn
初学者求大神指导
小弟初学Java遇到一个难题,求大神指导。rnrn题目:从键盘输入三个数,并赋值,比较之后按从小到大的顺序输出。
求大神指导?编译预处理
为什么要进行编译预处理?n编译预处理是怎么进行的?特别想知道这是怎么样一回事!
求大神指导SQL
Public Function LoadEQPDailyReport(Optional ByVal AreaNo As String = defString, Optional ByVal EquipmentNo As String = defString, _rn Optional ByVal StartTime As Date = defDateTime, Optional ByVal EndTime As Date = defDateTime, Optional ByVal AdditionalXml As String = "") As Stringrn Dim cnnTemp As OleDb.OleDbConnectionrn Dim daTemp As OleDb.OleDbDataAdapterrn Dim dsTemp As DataSetrn Dim drTemp As OleDb.OleDbDataReaderrn Dim strSQL As Stringrn Dim StartEndTime As Doublern Dim Rows() As DataRowrn Tryrn '//Create connectionrn cnnTemp = objLic.CreateConnection(strConnectionString)rn strSQL = "Select * From tblEQPStateBasis Order By EquipmentState"rn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn drTemp = cmmTemp.ExecuteReader()rn strSQL = " Select (Select ContainareaNo From tblSMDAreaRelation Where ObjectNo = Z.EquipmentNo And ObjectType = 2) AreaNo," & _rn " (Select EquipmentType From tblEQPEquipmentBasis Where EquipmentNo = Z.EquipmentNo) EquipmentType," & _rn " Z.EquipmentNo," & _rn " 0 Moves"rn StartEndTime = DateDiff(DateInterval.Second, StartTime, EndTime)rn Do While drTemp.Readrn If strDataBaseType = "oracle" Thenrn rn strSQL = strSQL & " ,Nvl(Round(( Select Sum(Least(A.EndTime,To_Date('" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')) -" & _rn " Greatest(A.StartTime,To_Date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')))*24*60*60" & _rn " From (Select EquipmentType, EquipmentNo, EquipmentState, StartTime, EndTime From tblEMSEquipmentStateLog" & _rn " UNION All" & _rn " Select EquipmentType, EquipmentNo, EquipmentState, StartTime, SysDate EndTime From tblEMSEquipmentState" & _rn " ) A" & _rn " Where A.StartTime <= to_date('" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')" & _rn " And A.EndTime > to_date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')" & _rn " And A.EquipmentState = " & drTemp("EquipmentState") & _rn " And A.EquipmentNo = Z.EquipmentNo" & _rn " Group By A.EquipmentNo, A.EquipmentState)/" & StartEndTime & "*100,2),0) """ & drTemp("StateName") & """"rn ElseIf DataBaseType = "mssql" Or DataBaseType = "msaccess" Thenrn strSQL = strSQL & " ,ISNull(Round((CAST((Select Sum(DateDiff(Second," & _rn " (Case" & _rn " When A.StartTime > '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "' Then A.StartTime" & _rn " Else '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " End)," & _rn " (Case" & _rn " When A.EndTime < '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "' Then A.EndTime" & _rn " Else '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " End)))" & _rn " From (Select EquipmentType, EquipmentNo, EquipmentState, StartTime, EndTime From tblEMSEquipmentStateLog" & _rn " UNION All" & _rn " Select EquipmentType, EquipmentNo, EquipmentState, StartTime, GetDate() EndTime From tblEMSEquipmentState" & _rn " ) A" & _rn " Where A.StartTime <= '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " And A.EndTime > '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " And A.EquipmentState = " & drTemp("EquipmentState") & _rn " And A.EquipmentNo = Z.EquipmentNo" & _rn " Group By A.EquipmentNo, A.EquipmentState) as float) /CAST(" & StartEndTime & " AS float))*100,2),0) " & drTemp("StateName")rn End Ifrn Looprn drTemp.Close()rn cmmTemp.Dispose()rn strSQL = strSQL & " From tblEQPEquipmentBasis Z" & _rn " Where Z.EquipmentNo Is Not Null"rn rn If AreaNo <> defString Thenrn strSQL = strSQL & " And (Select ContainareaNo From tblSMDAreaRelation Where ObjectNo = Z.EquipmentNo And ObjectType = 2) = '" & AreaNo & "'"rn End Ifrn rn If EquipmentNo <> defString Thenrn strSQL = strSQL & " And EquipmentNo In ('" & Replace(EquipmentNo, ",", "','") & "')"rn End Ifrn rn If AdditionalXml <> "" Thenrn '//additionalconditionrn strSQL = strSQL & SeparateAddXML_Condition(AdditionalXml)rn End Ifrn strSQL = strSQL & " Order By EquipmentNo"rn '//Select Datarn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn daTemp = New OleDb.OleDbDataAdapter(cmmTemp)rn dsTemp = New DataSetrn daTemp.Fill(dsTemp, "EQPDailyReport")rn If strDataBaseType = "oracle" Thenrn strSQL = " Select EquipmentNo, Sum(B.GoodQty) Moves" & _rn " From tblWIPCont_Equipment A, tblWIPLotLog_Report B" & _rn " Where A.LogGroupSerial = B.LogGroupSerial" & _rn " And A.EndTime Is Not Null " & _rn " And A.EndTime >= To_Date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS') " & _rn " And A.EndTime < To_Date('" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS') " & _rn "Group By EquipmentNo"rn ElseIf DataBaseType = "mssql" Or DataBaseType = "msaccess" Thenrn strSQL = " Select EquipmentNo, Sum(B.GoodQty) Moves" & _rn " From tblWIPCont_Equipment A, tblWIPLotLog_Report B" & _rn " Where A.LogGroupSerial = B.LogGroupSerial" & _rn " And A.EndTime Is Not Null " & _rn " And A.EndTime >= '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " And A.EndTime < '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn "Group By EquipmentNo"rn End Ifrn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn drTemp = cmmTemp.ExecuteReader()rn Do While drTemp.Readrn Rows = dsTemp.Tables("EQPDailyReport").Select("EquipmentNo = '" & drTemp("EquipmentNo") & "'")rn If Rows.Length <> 0 Thenrn Rows(0).Item("Moves") = drTemp("Moves")rn End Ifrn Looprn drTemp.Close()rn cmmTemp.Dispose()rn '//Combine Return Valuern LoadEQPDailyReport = CombineXMLReturnValue("loadeqpdailyreport", "EQPDailyReport", _rn "DataSet", FormatXMLSchema(dsTemp.GetXmlSchema), dsTemp.GetXml, "")rn Catch e1 As Exceptionrn LoadEQPDailyReport = "fail"rn rn Throw 'New Exception("clsReport.LoadEQPDailyReport: " & e1.Message)rn Finallyrn Call objLic.CloseConnection(cnnTemp)rn If Not daTemp Is Nothing Thenrn daTemp.Dispose()rn End Ifrn If Not dsTemp Is Nothing Thenrn dsTemp.Dispose()rn End Ifrn End Tryrn End Functionrnrnrn谁能帮我从里面抠出最终的SQL来,用的是ORACLE数据库
菜鸟求大神指导
int res(int a,int b,int prio)rnrn int x=14,y=14,z=14;rn if(a!=b)rn rn if(a*2*2+b>prio)rn x=a;rn printf("%d ",x);rn if(b*2*2+a>prio)rn y=b;rn printf("%d ",y);rn if(prio-a-b>0)rn z=prio-a-b+1;rn printf("%d \n",z);rn return min(z,min(x,y)); rn rnrn这是我写的一个简单地函数,传递的值为a=1,b=2,prio=15;可是运行出来的结果并不是13啊,当把这个函数直接写进主函数的时候结果又正确,求解释,这是怎么回事
急~~大神求指导
我现在在做一个注册登录,用vc#窗体编程,要求用户注册后信息写入txt,修改密码时需要匹配txt中的部分信息,如果匹配成功,可以修改密码;为什么匹配非汉字行的时候可以,匹配汉字行的时候不可以;而且有时候能匹配成功,有时候匹配不成功~~
求大神 指导
rn rnrn[img=https://img-bbs.csdn.net/upload/201603/30/1459302126_60264.png][/img]rn[img=https://img-bbs.csdn.net/upload/201603/30/1459302174_955188.png][/img]rn 求大神知道哪里错了
oracle大神求指导
怎么同时执行查询语句和修改语句
求occi大神指导
我使用的是vs2012 orcale11g客户端 编译时出现链接错误:rn1>------ 已启动生成: 项目: ConnectDatabase, 配置: Release Win32 ------rnrn1> ConnectDatabase.cpprnrn1>ConnectDatabase.obj : error LNK2001: 无法解析的外部符号 "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z)rnrn1>ConnectDatabase.obj : error LNK2001: 无法解析的外部符号 "public: static void __cdecl oracle::occi::Environment::terminateEnvironment(class oracle::occi::Environment *)" (?terminateEnvironment@Environment@occi@oracle@@SAXPAV123@@Z)rnrn1>C:\Users\my\documents\visual studio 2012\Projects\ConnectDatabase\Release\ConnectDatabase.exe : fatal error LNK1120: 2 个无法解析的外部命令rn========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========rnrn代码如下:rn[code=c]rnrn// ConnectDatabase.cpp : 定义控制台应用程序的入口点。rn//rn#include "stdafx.h"rnrn#define WIN32COMMON //避免函数重定义错误rnrn#include rnrnusing namespace std;rnrnusing namespace oracle::occi;rnrnint main()rnrnrnrn Environment *env=Environment::createEnvironment();rnrn cout<<"success"<createConnection("bsm3", "bsm3", "BSM3");rnrn cout<<"conn success"<terminateConnection(conn);rnrn rnrn catch(SQLException& e)rnrn rnrn cout<
myeclipse6.5求大神指导
安装了myeclipse6.5版本的,比如在写System.的时候不能带出System这个类中的方法,求解决办法。已重新安装。
求大神指导!谢谢!!
一张Excel表:序号 姓名 时间 备注 第1周描述rn 1 小明 9.15 .. ....rn 2 小红 9.15 aa dddddrn ...rn要把这个界面做到Delphi中去,可以简单修改查询,现在要在数据库里建2张表,第1张表包含前面的几列内容:序号、姓名、时间、备注,还有1张表就是每周描述,因为每周都要更新,请问第2张表怎么建,界面里的“第1周描述”可以变成第2(3、4、5...)周描述,还是也建到第一张表里去,2张的话Delphi的query中SQL语句怎么写???
求大神指导!!~~急
Linux挂载存储服务器失败rn存储服务器已经映射到主机,Linux可以发现,并且登录.rn[root@master /]# iscsiadm -m session -o show rntcp: [17] 10.1.1.2:3260,3 iqn.1986-03.com.ibm:2145.cunchu02.node1 (non-flash)rntcp: [18] 10.1.1.21:3260,3 iqn.1986-03.com.ibm:2145.cunchu01.node2 (non-flash)rntcp: [19] 10.1.1.1:3260,3 iqn.1986-03.com.ibm:2145.cunchu01.node1 (non-flash)rn使用的是multipath多路径,配置如下rnblacklist rn devnode "^sda"rnrndefaults rn user_friendly_names yesrn path_grouping_policy multibusrn failback immediatern no_path_retry failrnrn可是在fdisk和partitions中没有发现,我不知道哪里出现错误了rnrn[root@master /]# cat /proc/partitions rnmajor minor #blocks namernrn 8 0 1169920000 sdarn 8 1 204800 sda1rn 8 2 1048576 sda2rn 8 3 1168664576 sda3rn 253 0 52428800 dm-0rn 253 1 4194304 dm-1rn 253 2 1112039424 dm-2rn 7 0 2880 loop0rn 7 1 488281 loop1rn 253 3 204800 dm-3rn[root@master /]# fdisk -lrnWARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.rnrnDisk /dev/sda: 1198.0 GB, 1197998080000 bytes, 2339840000 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 262144 bytes / 262144 bytesrnDisk label type: gptrnDisk identifier: 795E086A-1F39-4BD1-B589-FB71E3F07825rnrnrn# Start End Size Type Namern 1 2048 411647 200M EFI System EFI System Partitionrn 2 411648 2508799 1G Microsoft basic rn 3 2508800 2339837951 1.1T Linux LVM rnrnDisk /dev/mapper/cl-root: 53.7 GB, 53687091200 bytes, 104857600 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 262144 bytes / 262144 bytesrnrnrnDisk /dev/mapper/cl-swap: 4294 MB, 4294967296 bytes, 8388608 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 262144 bytes / 262144 bytesrnrnrnDisk /dev/mapper/cl-home: 1138.7 GB, 1138728370176 bytes, 2224078848 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 262144 bytes / 262144 bytesrnrnYou must set cylinders.rnYou can do this from the extra functions menu.rnrnDisk /dev/loop0: 2 MB, 2949120 bytes, 5760 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 512 bytes / 512 bytesrnDisk label type: dosrnDisk identifier: 0x00000000rnrn Device Boot Start End Blocks Id SystemrnrnDisk /dev/loop1: 499 MB, 499999744 bytes, 976562 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 512 bytes / 512 bytesrnrnrnDisk /dev/mapper/vg1-data1: 209 MB, 209715200 bytes, 409600 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 512 bytes / 512 bytesrnrnrnrn
新手求大神指导~~~
public class SimpleTypesrn public static void main(String[] args)rn System.out.printf("byte \t数值范围: %d ~ %d\n",Byte.MAX_VALUE, Byte.MIN_VALUE);rn System.out.printf("short \t数值范围:%hd ~ %hd\n",Short.MAX_VALUE, Short.MIN_VALUE);rn System.out.printf("int \t数值范围: %d ~ %d\n",Integer.MAX_VALUE, Integer.MIN_VALUE);rn System.out.printf("long \t数值范围:%ld ~ %ld\n",Long.MAX_VALUE, Long.MIN_VALUE);rn System.out.printf("char \t数值范围: %c ~ %c\n",Character.MAX_VALUE, Character.MIN_VALUE);rn System.out.printf("float \t数值范围: %f ~ %f\n",Float.MAX_VALUE, Float.MIN_VALUE);rn System.out.printf("double \t数值范围:%lf ~ %lf\n",Double.MAX_VALUE, Double.MIN_VALUE);rn rn rnrn为啥char,float,double都不能用呢?我看过这三个都有MAX_VALUE和MIN_VALUE啊。。。求指导。。。rn运行结果如下:rnbyte 数值范围: 127 ~ -128rnshort 数值范围:7fffd ~ ffff8000drnint 数值范围: 2147483647 ~ -2147483648rnException in thread "main" java.util.UnknownFormatConversionException: Conversion = 'l'rn at java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2606)rn at java.util.Formatter$FormatSpecifier.(Formatter.java:2634)rn at java.util.Formatter.parse(Formatter.java:2480)rn at java.util.Formatter.format(Formatter.java:2414)rn at java.io.PrintStream.format(PrintStream.java:920)rn at java.io.PrintStream.printf(PrintStream.java:821)rn at SimpleTypes.main(SimpleTypes.java:7)
求大神指导!!!
五月 05, 2017 3:41:57 下午 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:manage' did not find a matching property.rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version: Apache Tomcat/7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server built: Mar 28 2017 16:01:48 UTCrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server number: 7.0.77.0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 7rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Version: 6.1rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Architecture: amd64rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java Home: C:\Program Files\Java\jre7rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Version: 1.7.0_04-b22rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Vendor: Oracle Corporationrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: D:\develop\apache-tomcat-7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:51933rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=D:\develop\apache-tomcat-7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dwtp.deploy=E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebappsrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.endorsed.dirs=D:\develop\apache-tomcat-7.0.77\endorsedrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dfile.encoding=GBKrn五月 05, 2017 3:41:57 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.rn五月 05, 2017 3:41:57 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.AprLifecycleListener initializeSSLrn信息: OpenSSL successfully initialized (OpenSSL 1.0.2k 26 Jan 2017)rn五月 05, 2017 3:41:58 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-apr-8080"]rn五月 05, 2017 3:41:58 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-apr-8009"]rn五月 05, 2017 3:41:58 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1758 msrn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.77rn五月 05, 2017 3:41:59 下午 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]rn at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)rn at java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1119)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)rn ... 7 morernCaused by: java.lang.IllegalArgumentException: The servlets named [manage1.Single2Search] and [manage1.Single2Search2] are both mapped to the url-pattern [/Single2Search] which is not permittedrn at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:293)rn at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2458)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2133)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2094)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1303)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5522)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn ... 7 morernrnrn
文章热词 机器学习教程 Objective-C培训 交互设计视频教程 颜色模型 设计制作学习
相关热词 mysql关联查询两次本表 native底部 react extjs glyph 图标 nlp学习指导 数据库课程设计指导