This application has no explicit mapping for

我本地是正常的,但是放到服务器上报了错

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Jun 02 11:17:01 GMT+08:00 2017
There was an unexpected error (type=Internal Server Error, status=500).
TIMEOUT
请问下这个是什么原因

3个回答

查看服务器上的mapping文件是否少了,确保跟你本地一致,是不是没有更新上去

weixin_44896250
吴 ’ R 你好,请问解决了吗,求助
3 个月之前 回复

兄弟 我的问题和你一样的,放到阿里云就访问不了了,本地正常,请问怎么解决的?

weixin_44896250
吴 ’ R 你好,请问解决了吗,求助
3 个月之前 回复

我之前在实体类中使用建造者模式,也报这个错误;图片说明;之后我还是改成setter/getter就好了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
spring-boot 错误 This application has no explicit mapping for /error, so you are s
rnpom也导进去了rn[code=text]rnrn org.apache.tomcat.embedrn tomcat-embed-jasperrn providedrn rnrn rn javax.servletrn javax.servlet-apirn rn rnrn rn javax.servletrn jstlrn rn[/code]rn[img=https://img-bbs.csdn.net/upload/201806/16/1529150764_851045.png][/img]rn我也确定controller有进去,就是跳转页面那里挂了rn跳转我是这么写的rn[code=java]@Controllerrnpublic class Sign rnrn @RequestMapping("/")rn public String index()rn System.out.println("HELLO world");rn return "index";rn rn[/code]
idea :This application has no explicit mapping for /error, so you are seeing this as a fallback.
新建Spring Boot项目报错,具体解决步奏,请帮忙解答一下,谢谢!rn![图片说明](https://img-ask.csdn.net/upload/201903/25/1553519047_208140.png)
Application of GIS Sieve Mapping
目的:为建筑物选址提供合适区域的视觉表示; 这是为了降低通常与环境因素相关的建设成本,使用ArcGIS 10.1的空间分析工具来叠加地图层的约束和准则。方法/统计分析:本研究采用地理信息系统(GIS)筛选方法,选择合适的地点,为联邦科技大学Gidan-Kwano校区,Minna未开发区分配部分的大学教职工学校选址建议的公寓单元。所考虑的限制因素包括不在河流或沼泽附近的地区,而标准是坡度不超过25%,场地面积在距电力线路400米以内的2000平方米以上的地区以及离主干道100米的地区。使用Hi-Target V30 GNSS接收机从地面测量获得3D坐标(xyz)数据以创建该地点的地形图。调查结果:结果显示,只有四(4)个地点适合选址建筑,占地面积2.30公顷(1.65%),占总面积55.30公顷。从适宜性图中发现,研究区南部最适合选址建设。
the application has stopped unexpectedly
09-25 13:46:46.038: W/dalvikvm(378): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/mycomp/games/mygame/Mygame;rn09-25 13:46:46.098: W/dalvikvm(378): Class init failed in newInstance call (Lcom/mycomp/games/mygame/Mygame;)rn09-25 13:46:46.098: D/AndroidRuntime(378): Shutting down VMrn09-25 13:46:46.118: W/dalvikvm(378): threadid=1: thread exiting with uncaught exception (group=0x40015560)rn09-25 13:46:46.168: E/AndroidRuntime(378): FATAL EXCEPTION: mainrn09-25 13:46:46.168: E/AndroidRuntime(378): java.lang.ExceptionInInitializerErrorrn09-25 13:46:46.168: E/AndroidRuntime(378): at java.lang.Class.newInstanceImpl(Native Method)rn09-25 13:46:46.168: E/AndroidRuntime(378): at java.lang.Class.newInstance(Class.java:1409)rn09-25 13:46:46.168: E/AndroidRuntime(378): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)rn09-25 13:46:46.168: E/AndroidRuntime(378): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)rn09-25 13:46:46.168: E/AndroidRuntime(378): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)rn09-25 13:46:46.168: E/AndroidRuntime(378): at android.app.ActivityThread.access$1500(ActivityThread.java:117)rn09-25 13:46:46.168: E/AndroidRuntime(378): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)rn09-25 13:46:46.168: E/AndroidRuntime(378): at android.os.Handler.dispatchMessage(Handler.java:99)rn09-25 13:46:46.168: E/AndroidRuntime(378): at android.os.Looper.loop(Looper.java:123)rn09-25 13:46:46.168: E/AndroidRuntime(378): at android.app.ActivityThread.main(ActivityThread.java:3683)rn09-25 13:46:46.168: E/AndroidRuntime(378): at java.lang.reflect.Method.invokeNative(Native Method)rn09-25 13:46:46.168: E/AndroidRuntime(378): at java.lang.reflect.Method.invoke(Method.java:507)rn09-25 13:46:46.168: E/AndroidRuntime(378): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)rn09-25 13:46:46.168: E/AndroidRuntime(378): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)rn09-25 13:46:46.168: E/AndroidRuntime(378): at dalvik.system.NativeStart.main(Native Method)rn09-25 13:46:46.168: E/AndroidRuntime(378): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load game: findLibrary returned nullrn09-25 13:46:46.168: E/AndroidRuntime(378): at java.lang.Runtime.loadLibrary(Runtime.java:429)rn09-25 13:46:46.168: E/AndroidRuntime(378): at java.lang.System.loadLibrary(System.java:554)rn09-25 13:46:46.168: E/AndroidRuntime(378): at com.mycomp.games.mygame.Mygame.(Mygame.java:61)rn09-25 13:46:46.168: E/AndroidRuntime(378): ... 15 morern09-25 13:50:58.168: W/dalvikvm(407): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/mycomp/games/mygame/Mygame;rn09-25 13:50:58.218: W/dalvikvm(407): Class init failed in newInstance call (Lcom/mycomp/games/mygame/Mygame;)rn09-25 13:50:58.218: D/AndroidRuntime(407): Shutting down VMrn09-25 13:50:58.248: W/dalvikvm(407): threadid=1: thread exiting with uncaught exception (group=0x40015560)rn09-25 13:50:58.368: E/AndroidRuntime(407): FATAL EXCEPTION: mainrn09-25 13:50:58.368: E/AndroidRuntime(407): java.lang.ExceptionInInitializerErrorrn09-25 13:50:58.368: E/AndroidRuntime(407): at java.lang.Class.newInstanceImpl(Native Method)rn09-25 13:50:58.368: E/AndroidRuntime(407): at java.lang.Class.newInstance(Class.java:1409)rn09-25 13:50:58.368: E/AndroidRuntime(407): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)rn09-25 13:50:58.368: E/AndroidRuntime(407): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)rn09-25 13:50:58.368: E/AndroidRuntime(407): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)rn09-25 13:50:58.368: E/AndroidRuntime(407): at android.app.ActivityThread.access$1500(ActivityThread.java:117)rn09-25 13:50:58.368: E/AndroidRuntime(407): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)rn09-25 13:50:58.368: E/AndroidRuntime(407): at android.os.Handler.dispatchMessage(Handler.java:99)rn09-25 13:50:58.368: E/AndroidRuntime(407): at android.os.Looper.loop(Looper.java:123)rn09-25 13:50:58.368: E/AndroidRuntime(407): at android.app.ActivityThread.main(ActivityThread.java:3683)rn09-25 13:50:58.368: E/AndroidRuntime(407): at java.lang.reflect.Method.invokeNative(Native Method)rn09-25 13:50:58.368: E/AndroidRuntime(407): at java.lang.reflect.Method.invoke(Method.java:507)rn09-25 13:50:58.368: E/AndroidRuntime(407): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)rn09-25 13:50:58.368: E/AndroidRuntime(407): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)rn09-25 13:50:58.368: E/AndroidRuntime(407): at dalvik.system.NativeStart.main(Native Method)rn09-25 13:50:58.368: E/AndroidRuntime(407): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load game: findLibrary returned nullrn09-25 13:50:58.368: E/AndroidRuntime(407): at java.lang.Runtime.loadLibrary(Runtime.java:429)rn09-25 13:50:58.368: E/AndroidRuntime(407): at java.lang.System.loadLibrary(System.java:554)rn09-25 13:50:58.368: E/AndroidRuntime(407): at com.mycomp.games.mygame.Mygame.(Mygame.java:61)rn09-25 13:50:58.368: E/AndroidRuntime(407): ... 15 morern我是新手,才刚下载好软件,这是按照官网教程做hello World的,求教大神!
解决idea的web项目使用springBoot可以部署成功使用tomcat部署报错404和浏览器访问报错This application has no explicit mapping error
解决idea的web项目使用springBoot可以部署成功使用tomcat部署,在页面访问报错404参考链接:https://blog.csdn.net/xxkalychen/article/details/77425043解决办法:在Application的启动类中SpringBootServletInitializer 并且重写configure方法即可package com.example...
The application has stopped unexpectly怎么回事?
Android模拟器运行程序时经常会出现这个问题~不知道怎么回事?rnrn显示:The application has stopped unexpectly,please try again.rnrn路过的帮帮忙~解答下啊~~~
the application *** has stopped unexpectedly问题求解
小弟刚刚入门android 做一个控件有关的练习 实现输入姓名学号,点击确定后,在另一个activity中显示。rn出现the application *** has stopped unexpectedly 求大师解答下,先感谢了!rnsubmitSystemActivity.java如下rnpackage Sub.Activity;rnimport android.app.Activity;rnimport android.content.Intent;rnimport android.os.Bundle;rnimport android.view.View;rnimport android.view.View.OnClickListener;rnimport android.widget.Button;rnimport android.widget.EditText;rnimport android.widget.TextView;rnrnpublic class SubmitSystemActivity extends Activity rn /** Called when the activity is first created. */rn private EditText name;rn private EditText school;rn private TextView text1;rn private TextView text2;rn private Button submit;rn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn text1 = (TextView)this.findViewById(R.id.text1);rn name = (EditText)this.findViewById(R.id.name);rn text2 = (TextView)this.findViewById(R.id.text2);rn school = (EditText)this.findViewById(R.id.school);rn submit = (Button)this.findViewById(R.id.submit);rn text1.setText("姓名" );rn text2.setText("学校" );rn submit.setText("确定");rn submit.setOnClickListener(new submitListener());rn rn rn class submitListener implements OnClickListenerrn rn @Overridern public void onClick(View v) rn // TODO Auto-generated method stubrn String nameStr = name.getText().toString();rn String schoolStr = school.getText().toString();rn Intent intent = new Intent();rn intent.putExtra("one",nameStr);rn intent.putExtra("two",schoolStr);rn intent.setClass(SubmitSystemActivity.this,Result.class);rn SubmitSystemActivity.this.startActivity(intent);rn rn rnrnrnrnrnrnmain.xml如下rnrnrnrn rnrnrnrnrnrnrnResult.java 如下rnpackage Sub.Activity;rnrnimport android.app.Activity;rnimport android.content.Intent;rnimport android.os.Bundle;rnimport android.widget.TextView;rnrnpublic class Result extends Activityrn private TextView resultView;rn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.result);rn resultView = (TextView)this.findViewById(R.id.result);rn Intent intent = getIntent();rn String name = intent.getStringExtra("one");rn String school = intent.getStringExtra("two");rn resultView.setText("姓名"+name+"学校"+school);rn rnrnrnresult.xml如下rnrnrnrnrnrnAndroidManiFest.xml加入如下rn
Explicit Nonlinear Model Predictive Control Theory and Application
显式非线性模型预测控制
explicit
class Arn...rnpublic:rn explicit A(int i);rn...rnrnrn这个地方的explicit是什么意思?rn有什么作用?
explicit???
#include rnusing namespace std;rnclass onernrnpublic:rn one()rn cout << "one constructor" << endl;rn;rnclass twornrnpublic:rn two(const one&) //explicit two(const one&)rn rn cout << "two constructor" << endl;rn rn;rnvoid f(two)rnrnrnrnint main()rnrn one a;rn f(a);//f(two(a))rn system("pause");rn return 0;rnrnrn问题:rn1、书上说上面这段代码的代价是隐藏了构造函数对two的调用rn应该将two(const one&) ==〉explicit two(const one&)rnf(a) ==〉f(two(a)),可是他们的输出都是:rnone constructorrntwo constructorrn我不太理解这段话的意思!!!rn2、explicit是什么意思?为什么使用它后,只能将f(a) ==〉f(two(a))
VS2010+arcgis server10创建web mapping application调试报错!
本人初次接触Arcgis server的开发,在按照网上的帖子发布地图后在VS2010中建立web mapping application模板,完成相应的配置之后启用调试网页报错如图所示,希望各位大神能够帮小弟指出错在哪里、怎么解决!先谢过各位了![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/83.gif][/img]rn[img=https://img-bbs.csdn.net/upload/201407/17/1405587827_371058.jpg][/img]
vs2010中web mapping application模板
为什么我安装完vs和server后,vs中还是没有web mappingapplication模板啊?server是10.2版本的。
this application has failed to start because MFC42D.DLL was found .Re-installing the application m
this application has failed to start because MFC42D.DLL was found .Re-installing the application may fix this problemrnrnrnrn我编译好的程序 放到人家机器上出现 这样的错误rnrn请问怎么解决啊
计算器AppWizard has created this cal application for you
AppWizard has created this cal application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application. This file contains a summary of what you will find in each of the files that make up your cal application.
This application has requested the runtime to terminate it in an unusual way.
在VC7.0环境下执行程序,报出如下错误:rnThis application has requested the Runtime to terminate it in an unusual way.Please contact the application's support team for more information.rn是怎么回事呢? rnrn在线等,多谢多谢:)
Application has generated an exception that could not be handled 错误
我的程序(.Net1.1) 运行在 2000 XP 下 提示 Application has generated an exception that could not be handled 错误rnrn。NET1.1框架我全部安装 ,但是不行,麻烦您给予帮助。。谢谢
the application has requested the runtime to terminate it in an unusual way
游戏中运行这种问题,查看代码没有什么问题,而且在VS上调试下出现 了这个东西程序仍然可以正常运行,只是不要点确实就可以了,这是为什么我查了一天查不出来原因。
Application has generated an exception that coult not be handled
Application has generated an exception that coult not be handledrn小弟我遇到一个问题,请各位大虾,帮忙看看,我是做医保读卡器的接口,在我电脑上可以执行,但是到客户机子上就出先这个错误,具体的是,调试到我调用的动态库函数那出错,但是在我电脑上为什么不出错呢。请各位大虾指点下!
出现错误“The application ...has stopped unexpectedly.”
小弟在调试芒果广告时出现错误“The application ...has stopped unexpectedly.”,代码如下:rn--------------------------------------------------------------------------------------rnpackage mogot2.x;rnrnimport com.admogo.AdMogoLayout;rnimport com.admogo.AdMogoListener;rnimport com.admogo.AdMogoManager;rnrnrnrnrnimport android.app.Activity;rnimport android.os.Bundle;rnimport android.util.Log;rnimport android.view.Gravity;rnimport android.widget.FrameLayout;rnrnpublic class Mogot2Activity extends Activity implements AdMogoListener rn rn private final String mogoID = "399b65e0b89346c9b59f7ed90fbd5949";rnrn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn rnrn /************************ 代码方式添加Banner广告 ***********************/rn AdMogoLayout adMogoLayoutCode = new AdMogoLayout(this, mogoID);rn FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(rn FrameLayout.LayoutParams.FILL_PARENT,rn FrameLayout.LayoutParams.WRAP_CONTENT);rn // 设置广告出现的位置(悬浮于底部)rn params.bottomMargin = 0;rn // 添加广告状态监听rn rn params.gravity = Gravity.BOTTOM;rn addContentView(adMogoLayoutCode, params);rn /*************************** 添加Banner广告结束 ************************/rnrn rn rnrn @Overridern public void onClickAd() rn Log.v("=onClickAd=", "Click the buttom ad.");rn rnrn @Overridern public void onFailedReceiveAd() rn Log.v("=onFailedReceiveAd=", "Failed to receive the buttom ad.");rn rnrn @Overridern public void onReceiveAd() rn Log.v("=onReceiveAd=", "Receive the buttom ad.");rn rnrn @Overridern protected void onDestroy() rn AdMogoManager.clear();rn super.onDestroy();rn rnrnrn-------------------------------------------------------------------------------------rn备注:同样的代码在芒果给出的例子上调试没有任何错误,但自己另外创建一个应用,然后将以上代码复制上去,就会出现错误“The application ...has stopped unexpectedly.”
程序运行报错 this application has requested the runtime
用vs2008做opencv的程序,在vs2008的“调试”、“开始执行(不调试)”中运行程序可以成功运行,rn但是去Debug或release下去点击运行就会弹出以下错误:rnruntime errorrnthis application has requested the runtime to terminate……rn这两种方式运行时有什么区别?rn开始直接去Debug或release下点击运行或提示某些dll找不到,手动添加了后就提示上面的错误。rnrn
This application has requested the Runtime to terminate it in an unusual way.
rn 编写ADO时出现这样的问题:rn [b] 在 Windows XP 中运行自定义 Microsoft Visual C++ 6.0 程序时,收到“This application has requested rn the Runtime to terminate it in an unusual way”(此应用程序已请求运行时以异常方式终止它)错误消息[/b]rnrn 请问要如何解决啊?rnrn 微软官网上也有这个问题[url=http://support.microsoft.com/kb/884538/zh-cn#appliesto][/url],但是感觉说了根没说一样,有的说用早期的 Msvcrt.dll 文件和 Msvcirt.dll 文件替换,我分别用5.0和6.0版本的两个文件还是不行,请问要如何解决啊?rn 谢谢了!!!
application has generated an exception that could not be handled
今天在WIN2000上试一个.Net的程序,HELLO性质,然后在WIN98下运行,结果弹出错误rnapplication has generated an exception that could not be handledrn后面还跟一些参数.rn这是什么原因?rn另:WIN98下装了Framework
This application has requested the Runtime to terminate it in an unusual way
各位大神rn我在网上down了一个程序rn程序中给出了测试数据rn运行测试数据的时候很正常,得到的结果也是正确的rnrn但是我在用程序处理我自己的数据的时候,就出现了以下错误:rnThis application has requested the Runtime to terminate it in an unusual way.Please contact the application's support team for more information.rnrn上网搜索得到的结果是:rnrn原因:rn如果使用 /GR 和 /MD 编译器开关,并且 Msvcrt.dll 文件和 Msvcirt.dll 文件的版本是 7.0.x,则可能出现此问题。rn注意:当使用早于 7.0 版本的 Msvcrt.dll 文件和 Msvcirt.dll 文件时,不会出现此问题。rnrn各位大神,这两个早期的文件从哪儿下啊,我看网上说这两个文件删都删不掉,更不用说替换了,这个问题原因到底在什么地方啊?rn敬请指教。
Application has generated an exception that could not be handled.
如题,rndebug的时候不见compiler报出这样的exception,rn执行Release版本跳出MessageBox:Application has generated an exception that could not be handled.rnrn
"This application has requested the Runtime to terminate it in an usual way"
我用 编的xml和xls 文件转换的工具 在我自己的机器上面没有问题rn但是在别人的机器上面运行之后就报此错误 请问有办法避免吗rn谢谢 !!rn
出现错误The application ...has stopped unexpectedly.
小弟下载了一个源码,读取通讯录中的信息,代码如下。rn可是运行有就出现“[color=#FF0000]The application ...has stopped unexpectedly[/color].”rn用logcat抓出一段信息,不知道什么意思,不知道怎么改!rnrnrn[color=#FF0000]Activity01.java[/color]rnrnpackage com.yarin.android.Examples_03_02;rnrnimport android.app.Activity;rnimport android.content.ContentResolver;rnimport android.database.Cursor;rnimport android.os.Bundle;rnimport android.provider.ContactsContract;rnimport android.provider.ContactsContract.PhoneLookup;rnimport android.widget.TextView;rnrnpublic class Activity01 extends Activityrnrn public void onCreate(Bundle savedInstanceState)rn rn TextView tv = new TextView(this);rn String string = ""; rn super.onCreate(savedInstanceState); rn //得到ContentResolver对象rn ContentResolver cr = getContentResolver(); rn //取得电话本中开始一项的光标rn Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);rn //向下移动一下光标rn while(cursor.moveToNext()) rn rn //取得联系人名字rn int nameFieldColumnIndex = cursor.getColumnIndex(PhoneLookup.DISPLAY_NAME); rn String contact = cursor.getString(nameFieldColumnIndex); rn //取得电话号码rn int numberFieldColumnIndex = cursor.getColumnIndex(PhoneLookup.NUMBER); rn String number = cursor.getString(numberFieldColumnIndex);rn rn string += (contact+":"+number+"\n");rn rn cursor.close();rn //设置TextView显示的内容rn tv.setText(string);rn //显示到屏幕rn setContentView(tv);rn rnrnrn[color=#FF0000]main.xml[/color]rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rnrn[color=#FF0000]logcat 错误信息[/color]rnrn05-24 13:58:18.052: ERROR/CursorWindow(227): Bad request for field slot 0,-1. numRows = 2, numColumns = 17rn05-24 13:58:18.052: DEBUG/AndroidRuntime(227): Shutting down VMrn05-24 13:58:18.052: WARN/dalvikvm(227): threadid=3: thread exiting with uncaught exception (group=0x4001b188)rn05-24 13:58:18.052: ERROR/AndroidRuntime(227): Uncaught handler: thread main exiting due to uncaught exceptionrn05-24 13:58:18.062: DEBUG/KeyguardViewMediator(53): pokeWakelock(5000)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): java.lang.RuntimeException: Unable to start activity ComponentInfocom.yarin.android.Examples_03_02/com.yarin.android.Examples_03_02.Activity01: java.lang.IllegalStateException: get field slot from row 0 col -1 failedrn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2481)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2497)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.app.ActivityThread.access$2200(ActivityThread.java:119)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1848)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.os.Handler.dispatchMessage(Handler.java:99)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.os.Looper.loop(Looper.java:123)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.app.ActivityThread.main(ActivityThread.java:4338)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at java.lang.reflect.Method.invokeNative(Native Method)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at java.lang.reflect.Method.invoke(Method.java:521)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at dalvik.system.NativeStart.main(Native Method)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): Caused by: java.lang.IllegalStateException: get field slot from row 0 col -1 failedrn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.database.CursorWindow.getString_native(Native Method)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.database.CursorWindow.getString(CursorWindow.java:329)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:49)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.database.CursorWrapper.getString(CursorWrapper.java:135)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at com.yarin.android.Examples_03_02.Activity01.onCreate(Activity01.java:30)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2444)rn05-24 13:58:18.171: ERROR/AndroidRuntime(227): ... 11 morern
unhandled exception has occurred in your application
我在.net 3.5下写的程序,win7上正常运行,放到XP系统上(安装了.net 3.5)为何程序出错?rn[img=https://img-bbs.csdn.net/upload/201407/12/1405150538_812638.jpg][/img]
解决问题下代码 application ...has stopped unexpectedly.
我的代码www.bigmir2.com/androidstudy1027.rarrn 主activity注册register.onclick事件后就起不来了
【求助】the application xxx (...) has stopped unexpectedly...
照个例子做个简单的程序,一共两个activity,布局也很简单,但始终都调不通。rn全部代码如下rnmain.xmlrn[code=XML]rnrnrn rn rn rn rn rn rn rnrn[/code]rnresult.xmlrn[code=XML]rnrnrn rn rnrnrnrnIntentDemo.javarn[/code]rn[code=Java]package com.android.jiashie;rnrnimport android.app.Activity;rnimport android.os.Bundle;rnimport android.view.View;rnimport android.widget.EditText;rnimport android.widget.Button;rnimport android.widget.RadioButton;rnimport android.widget.TextView;rnimport android.content.Intent;rnrnpublic class IntentDemo extends Activity rn private EditText height;rn private RadioButton sex;rn private Button btn;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 TextView tv1 = (TextView)findViewById(R.id.tv1);rn tv1.setText(R.string.intro);rn height=(EditText)findViewById(R.id.height);rn sex = (RadioButton)findViewById(R.id.sex);rn btn = (Button)findViewById(R.id.submit);rn btn.setText(R.string.submit);rn btn.setOnClickListener(new Button.OnClickListener() rn public void onClick(View v)rn rn //TODO:rn rn );rn rn[/code]rnrnResultActivity.javarn[code=Java]rnpackage com.android.jiashie;rnrnimport android.app.Activity;rnimport android.os.Bundle;rnimport android.widget.Button;rnimport android.view.View;rnrnpublic class ResultActivity extends Activityrnrnrn private Button btn;rn rn @Overridern protected void onCreate(Bundle savedInstanceState)rn rn // TODO Auto-generated method stubrn super.onCreate(savedInstanceState);rn setContentView(R.layout.result);rn btn = (Button)findViewById(R.id.back);rn btn.setOnClickListener(new Button.OnClickListener() rn public void onClick(View v) rn //TODO:rn rn );rn rn[/code]rn
This application has requested the Runtime to terminate it in an unusual way .
用vc++ 和sql server 2005 做实验室管理系统, 手动运行正常。。。开机自启动就出现如下问题:rnThis application has requested the Runtime to terminate it in an unusual way . rnrn请高手支支招。
The application cal(process ql.cal) has stopped unexpectedly
包名:rnql.calrnrnActivity: rnNum0=(Button)findViewById(R.id.Num0);rn Num0.setOnClickListener(new OnClickListener()rn rn public void onClick(View v)rn rn InputNum= AnBox.getText().toString()+((Button)v).getText().toString().trim();rn AnBox.setText(InputNum);rn rn );rnAndroidManifest.xml:rn rn rn当点击Num0按钮时,则出现The application cal(process ql.cal) has stopped unexpectedly;
OR Mapping
OR Mapping,一个基于Config配置的对象映射解决方案。
explicit关键字
当构造函数只有一个参数或有n个参数,但有n-1个参数有默认值时 class A { public: A(int a, int b = 10) x(a),y(b){} private: int x; int y; }; A a(1);//定义一个对象a A a = 1;//虽然有点莫名其妙,但在编译器看来这合法的,编译器会用1来建立一个A类对象,等效于A a(1);或A b(1)...
转换函数和explicit
定义一个类通常需要定义转换函数,如何选择隐式还是显式模式应当好好考虑
explicit 的用法?????
[code=C/C++]#include "stdafx.h"rn#include rnusing namespace std;rnclass CArnrnpublic:rn explicit CA(const string &a)//intrn rn s=a;rn rn ~CA()rn operator const char*()rn rn return s.c_str();rn rn string s;//intrn;rnrnint _tmain(int argc, _TCHAR* argv[])rnrn CA dd("dd");//intrn string bb=dd;//intrn return 0;rnrn[/code]rnrn为什么 VS2008 与 VC6 都可以编译正确?rn不是说加上explict则屏蔽此隐式转换构造函数rnrn如果用把 用int 代替 string 就不支持 隐式转换。。rn
Option Explicit
Option Explicit 可以放在函数中 或者过程中吗??rnrn如果一个ASP页面 include 引入一个ASP页面rnrnoption explicit 对这个页面起作用吗??
关于explicit
请看以下这段代码rntemplate rnclass tvectorrnrn public:rnrn tvector( ); rn explicit tvector( int size ); rn tvector( int size, const itemType & fillValue );rn tvector( const tvector & vec ); rn ~tvector( ); rn rn其中explicit是什么用法?rn而且在tvector( const tvector & vec );中tvector是一个还没有定义完整的类,rn怎么可以这样“递归”定义?
explicit的用法
在很多类的声明中都有一个explicit的修饰,不知是什么意思,请指教。
关键词explicit
关键词explicit[size=large][/size][align=center][/align] 项目中经常看到关键词explicit,MSDN上的解释为:为了防止隐式使用拷贝构造函数的,就是限制编辑器私自使用默认的转换。 例子如下: [code=&quot;C++&quot;] class A{ public: //explicit A(int i) : m_i(i){ c...
C++PRIMER explicit
举例说说:explicit 的作用和用法吧rnrnrn注:C++ Primer P394页中的例子 same_isbn()不知道是什么意思,所以不好理解
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件