android中的edittext获得光标就报这样的错误,求大神指点怎么解决啊

04-29 00:37:49.491 2548-2548/jt.com.shoppingcar W/Resources: Drawable android:drawable/text_cursor_material has unresolved theme attributes! Consider using Resources.getDrawable(int, Theme) or Context.getDrawable(int).
java.lang.RuntimeException
at android.content.res.Resources.getDrawable(Resources.java:786)
at android.widget.Editor$InsertionHandleView.getHotspotX(Editor.java:3921)
at android.widget.Editor$HandleView.updateDrawable(Editor.java:3535)
at android.widget.Editor$HandleView.(Editor.java:3526)
at android.widget.Editor$InsertionHandleView.(Editor.java:3877)
at android.widget.Editor$InsertionPointCursorController.getHandle(Editor.java:4185)
at android.widget.Editor$InsertionPointCursorController.access$300(Editor.java:4149)
at android.widget.Editor.onTouchUpEvent(Editor.java:1814)
at android.widget.TextView.onTouchEvent(TextView.java:8373)
at android.view.View.dispatchTouchEvent(View.java:9306)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2403)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1737)
at android.app.Activity.dispatchTouchEvent(Activity.java:2820)
at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2364)
at android.view.View.dispatchPointerEvent(View.java:9526)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4255)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4121)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3662)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3715)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3681)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3807)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3689)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3864)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3662)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3715)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3681)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3689)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3662)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5947)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5921)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5882)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6050)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5432)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:735)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)

下面我我的XML文件:
android:layout_width="260dp"
android:layout_height="40dp"
android:hint="请输入你的用户名"
android:singleLine="true"
android:selectAllOnFocus="true"
android:background="@drawable/bg_edit" />
bg_edit.xml
<?xml version="1.0" encoding="utf-8"?>




bg_normal.xml
<?xml version="1.0" encoding="utf-8"?>





bg_focused.xml
<?xml version="1.0" encoding="utf-8"?>



android:width="1dip"
android:color="#728ea3" />

4个回答

jt.com.shoppingcar W/Resources: Drawable android:drawable/text_cursor_material has unresolved theme attributes! Consider using Resources.getDrawable(int, Theme) or Context.getDrawable(int).
java.lang.RuntimeException
这句话的意思是你不能在xml里面调用@drawable,可以放到代码里面去掉用,尝试一下Resources.getDrawable(int, Theme) or Context.getDrawable(int).这俩个api看看是否可以调用成功!

把@drawable改为@background即可

没看出来你这个text_cursor_material引用在哪,自定义的文件吗,描述不是很清晰啊

你的Log没有拷贝完整,不能定位到是哪里问题,大概是你用了一个有分歧的属性 android 不能处理;
楼主需要再多拷贝一些log定位问题;

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
这样的错误怎么解决啊 急求!!!
rn string Afile = "server=9AA7107A8CBE4FA;uid=pk;pwd=123456;database=成绩表";rn SqlConnection conn = new SqlConnection(Afile);rn SqlDataAdapter da = new SqlDataAdapter("select 姓名,语文,数学,英语", conn);rn conn.Open();rn DataTable dt = new DataTable();rn da.Fill(dt);rn this.textBox1.Text = dt.Rows[1]["姓名"].ToString();rn this.textBox2.Text = dt.Rows[1]["英语"].ToString();rn this.textBox3.Text = dt.Rows[1]["语文"].ToString();rn this.textBox4.Text = dt.Rows[1]["数学"].ToString();rn da.Dispose();rn conn.Close();rn conn.Dispose();rn结果出现:rn 在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)rn 这是什么意思啊 求!怎么解决啊
求大神指点啊!!!
本人是学生,C++刚学了一半吧,想找些编程序的题练习练习,提高一下编程水平,可是不知道去哪找,找什么样的适合我,,,求高手指点,,推荐一些资源!!
求android大神指点
这是我实现的仿网易客户端的源码,里面用了fragment,tabhost等,功能已经实现了一大半,rn但是还有个问题一直解决不了,困了我两天了,rn1.就是点击左边隐藏部分不同的位置,然后右边显示到不同的fragment,我一直搞不定rn2.怎么把每一个fragment弄成一个activity,这样自己感觉方便继承自己的BaseActivity,方便管理。rnrn这是下载连接 [url=http://download.csdn.net/detail/agareminder/5219316][/url]rnrn谢谢啦,我这两天特别着急需要,哪个大神搞定了我必有重谢,求发到邮箱,求大神破rn我邮箱visonnum@gmail.comrnqq:894754617 在线等答案
android隐藏edittext的光标
在edittext之前加这个 [code=&quot;xml&quot;][/code]
Android EditText控件光标消失问题的解决
动态创建EditText时,除了设置editText.setCursorVisible(true) ,editText.requestFocus()之外,最关键的是还要editText.setHint(&quot; &quot;),这样光标就不会消失          
这样的存储过程怎么写啊,求大神指点(SQL SERVER)
rn```rnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnALTER PROCEDURE [dbo].[bb_sx_zptj]rn @KSRQ varchar(20), --开始时间rn @JSRQ varchar(20) --结束时间rnASrnBEGINrn rn drop table t_zptj --这边删除,因为要根据每次输入的时间来重新进行数据统计rn create table t_zptj(rn 月份 datetime,rn 装配总数 varchar(20), rn ) rn rn--2.装配总数 rnupdate t_zptj 装配总数=temp1.发货数量 fromrn(select SUM(1) as 发货数量 from T_CONTRACT_ORDER a left join T_CONTRACT_ORDER_detail brnon a.sub_account_id=b.sub_account_idrnwhere a.EXTEND50>=@KSRQ and a.extend50<=@JSRQ and a.EXTEND1='装配工程单'rngroup by b.OUT_NUM)rntemp1rnwhere t_zptj.装配总数=temp1.发货数量rnrn```rn我写的执行没有数据,请大神看看里面的条件就行了rnrnrn相关联的表 :rnT_CONTRACT_ORDER (订单表) rnT_CONTRACT_ORDER_detail (订单明细表) //这是要查询的2张表rnrn参与计算的字段:rn 1) 2表的sub_account_id字段(即订单的所有人)相等rn 2) extend1 (订单表)rn T_CONTRACT_ORDER .extend1='装配工程单' --订单的分类条件,表明是我需要的装配类订单。rn rn 3) out_num(订单明细表)rn T_CONTRACT_ORDER_detail .out_num 装配数量 rn rn 4) extend50(订单表)rn T_CONTRACT_ORDER .extend50 订单的时间rnrnrn这是在存储过程里创建的表:rncreate table t_zptj(rn 时间 datetime rn 装配总数 intrn)rnrnrnrnrnrn 根据输入的时间参数和订单时间进行比较rn 例:2014年2月 开始时间rn 2014年3月 结束时间rn将2014年2月的属于装配的订单数量汇总rn将2014年3月的属于装配的订单数量汇总rn想得到的结果:(将一段时间的装配数量汇总起来)rn 展示如下: rn 时间 装配总数rn 2017-2 240rn 2017-3 120
android新手,求大神的指点啊
[code=java]rnpackage com.szy.guess.activity;rnrnimport 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.RadioGroup;rnimport android.widget.Toast;rnrnpublic class MainActivity extends Activityrnrn //定义单选和出拳的按钮rn private RadioGroup radioGroup = null;rn private Button btn = null;rnrn @Overridern public void onCreate(Bundle savedInstanceState)rn rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn //找到单选和出拳的这个按钮rn radioGroup = (RadioGroup) findViewById(R.id.radiogroup);rn btn = (Button) findViewById(R.id.btn);rn //绑定出拳时的事件rn btn.setOnClickListener(listener);rn Toast.makeText(this, "出拳", Toast.LENGTH_LONG).show();rn rnrn private OnClickListener listener = new OnClickListener()rn rnrn public void onClick(View v)rn rn System.out.println("开始了");rn switch (v.getId())rn rn case R.id.btn:rn int id = radioGroup.getCheckedRadioButtonId();rn int quan = 0;rn switch (id)rn rn case R.id.ST:rn System.out.println("石头");rn quan = 1;rn break;rn case R.id.JD:rn System.out.println("剪刀");rn quan = 2;rn break;rn case R.id.B:rn System.out.println("布");rn quan = 3;rn break;rn default:rn break;rn rn Intent intent = new Intent();rn intent.setClass(MainActivity.this, ResultActivity.class);rn Bundle bundle = new Bundle();rn bundle.putInt("quan", quan);rn //intent.putExtra("quan", quan);rn startActivity(intent);rn break;rnrn default:rn break;rn rn rn ;rnrn[/code]rn[code=java]rnpackage com.szy.guess.activity;rnrnimport java.util.Random;rnrnimport android.R.integer;rnimport android.app.Activity;rnimport android.content.Intent;rnimport android.os.Bundle;rnimport android.widget.TextView;rnimport android.widget.Toast;rnrnpublic class ResultActivity extends Activityrnrn private TextView textView = null;rnrn @Overridern public void onCreate(Bundle savedInstanceState)rn rn super.onCreate(savedInstanceState);rn setContentView(R.layout.result_layout);rnrn textView = (TextView) findViewById(R.id.view);rnrn Intent intent = new Intent();rn Bundle bun = intent.getExtras();rn int ren = bun.getInt("quan");rn rn Random random = new Random();rn int cpu = random.nextInt(3 - 1) + 1;rnrn String reString = compare(ren, cpu);rn textView.setText(reString);rn rnrn private String compare(int ren, int cpu)rn rn StringBuffer sbf = new StringBuffer("结果:\n" + "人 " + convert(ren) + " VS " + convert(cpu) + " 电脑\n");rn if (ren == cpu)rn rn sbf.append("平局,再接再励!");rn else if (ren == 1 && cpu == 3)rn rn sbf.append("电脑胜,孤独求败!");rn else if (ren == 3 && cpu == 1)rn rn sbf.append("人胜,孤独求败!");rn else if (ren < cpu)rn rn sbf.append("人胜,孤独求败!");rn else if (ren > cpu)rn rn sbf.append("电脑胜,孤独求败!");rn rn return sbf.toString();rn rnrn private String convert(int id)rn rnrn switch (id)rn rn case 1:rn return "石头";rn case 2:rn return "剪刀";rn case 3:rn return "布";rn default:rn break;rn rn return null;rn rnrn[/code]rn[code=text]rnAndroidManifest.xml 文件内容rnrnrnrn rnrn rn rn rn rn rn rn rn rnrn rnrn[/code]rnrn总是报这行的错误int ren = bun.getInt("quan");
郁闷啊!EditText设置android:ellipsize="marquee"就报IllegalArgumentException
我在XML中定义了一个EditText,其中定义了一个属性:android:ellipsize="marquee",我用的是API3,API中显示该属性是从,是从API1就有了的,为何在API3中定义会报rnjava.lang.IllegalArgumentException: EditText cannot use the ellipsize mode TextUtils.TruncateAt.MARQUEErn异常,就是android:ellipsize设置为marquee会报错,换成其他的start、end、none、middle都不会有问题,真是郁闷啊rn哪位仁兄给咱说说道理rn[code=XML]rn [/code]
for陷入无限循环怎么解决,求大神指点……
附上代码rnpublic static void main(String[] args) rn for(int i=1;;i++)rn rn for(int j=1;j<=i;j++)rn rn rn System.out.printf("%2d*%2d=%2d",j,i,i*j);rn rn rn System.out.println();rn rn rnrn rnrn
这个异常怎么解决,求大神指点
编了一个java小问题: 找出数组元素的最大值,并放到原数组之后rn运行,抛出错误:Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8rn at maxOfArray.main(maxOfArray.java:14)rn怎么解决,求大神指点!rnimport java.util.Arrays;rnpublic class maxOfArray rn /**rn * 找出数组元素的最大值,并放到原数组之后rn */rn public static void main(String[] args) rn //先扩容,后找最大值rn int[] arr=3,5,8,2,10,52,1;rn int[] arr1=new int[8];rn System.arraycopy(arr, 0, arr1, 0, 7);rn arr1[arr1.length]=arr1[0];rn for(int i=1;iarr[arr1.length-1])rn arr1[arr1.length-1]=arr1[i];rn rn rn System.out.println(arr1.toString());rn rnrn
这是什么错误啊 求大神解决!
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: For input string: ""rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:500)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:413)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)rn org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:627)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn com.lbs.leaf.sysmanage.webcontroller.OperateLogFilter.doFilter(OperateLogFilter.java:87)rn com.lbs.leaf.sysmanage.webcontroller.SafetyFilter.doFilter(SafetyFilter.java:239)rn com.lbs.leaf.persistence.HibernateFilter.doFilter(Unknown Source)rn com.lbs.leaf.webcontroller.DisableHttpCacheFilter.doFilter(Unknown Source)rn com.lbs.leaf.webcontroller.EncodingFilter.doFilter(Unknown Source)rnrnrnroot cause rnrnjava.lang.NumberFormatException: For input string: ""rn java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)rn java.lang.Integer.parseInt(Integer.java:468)rn java.lang.Integer.parseInt(Integer.java:497)rn org.apache.jsp.topFunc_jsp._jspService(topFunc_jsp.java:92)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)rn org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:627)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn com.lbs.leaf.sysmanage.webcontroller.OperateLogFilter.doFilter(OperateLogFilter.java:87)rn com.lbs.leaf.sysmanage.webcontroller.SafetyFilter.doFilter(SafetyFilter.java:239)rn com.lbs.leaf.persistence.HibernateFilter.doFilter(Unknown Source)rn com.lbs.leaf.webcontroller.DisableHttpCacheFilter.doFilter(Unknown Source)rn com.lbs.leaf.webcontroller.EncodingFilter.doFilter(Unknown Source)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.36 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.36
spring报空值错误,求大神帮我指出错误啊
我这里在spring里面注入之后还是报空值错误啊,求大神帮忙指出下错误啊!rnrn这是报错rnrnjava.lang.NullPointerExceptionrnat com.buybal.ums.servlet.OrderBusinessServlet.doOrderService(OrderBusinessServlet.java:114)rnat com.buybal.ums.servlet.OrderBusinessServlet.doPost(OrderBusinessServlet.java:86)rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:641)rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rnat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rnat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rnat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)rnat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rnat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)rnat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)rnat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)rnat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)rnat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rnat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)rnat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)rnat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)rnat org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)rnat java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)rnat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)rnat java.lang.Thread.run(Thread.java:619)rnrnrn以下是xml文件rnrnapplicationContext.xml:rnrnrnrnrnrnrnrnrnrnrnrnrnapplicationContext-clients.xml:rnrnrnrnrnrnrnrnrnrnrnrnrnrn相关代码:rnpackage com.buybal.ums.plugin.client;rnrnimport javax.jms.JMSException;rnimport javax.jms.Message;rnimport javax.jms.Session;rnrnimport org.springframework.jms.core.JmsTemplate;rnimport org.springframework.jms.core.MessageCreator;rnrnpublic class AsyncOrderMgrNoticeSendClient rnprivate JmsTemplate jmsTemplate;rnrnpublic void publish(final String json) rnjmsTemplate.send(new MessageCreator() rn@Overridernpublic Message createMessage(Session session) throws JMSException rnreturn session.createTextMessage(json);rnrn);rnrnrnpublic void setJmsTemplate(JmsTemplate jmsTemplate) rnthis.jmsTemplate = jmsTemplate;rnrnrnrnrnpackage com.buybal.ums.servlet;rnimport java.io.IOException;rnimport java.util.HashMap;rnimport java.util.Map;rnimport javax.servlet.ServletContext;rnimport javax.servlet.ServletException;rnimport javax.servlet.annotation.WebServlet;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnimport org.apache.commons.lang.StringUtils;rnimport org.apache.log4j.Logger;rnimport org.springframework.beans.factory.annotation.Autowired;rnimport org.springframework.web.context.WebApplicationContext;rnimport org.springframework.web.context.support.WebApplicationContextUtils;rnimport com.buybal.ums.common.DataConstant;rnimport com.buybal.ums.listener.AsyncOrderMgrNoticeListener;rnimport com.buybal.ums.plugin.client.AsyncOrderMgrNoticeSendClient;rnimport com.buybal.ums.plugin.client.OrderMgrClient;rnimport com.buybal.util.JsonUtil;rn@WebServlet("/OrderBusinessServlet")rnpublic class OrderBusinessServlet extends HttpServlet rnAsyncOrderMgrNoticeSendClient as;rnOrderMgrClient orderMgrClient;rn@Overridernpublic void init() throws ServletException rnsuper.init();rnServletContext servletContext = this.getServletContext();rnWebApplicationContext ctx = WebApplicationContextUtilsrn.getWebApplicationContext(servletContext);rnorderMgrClient = (OrderMgrClient) ctx.getBean("orderMgrClient");rnrnrnprotected void doGet(HttpServletRequest request,rnHttpServletResponse response) throws ServletException, IOException rndoPost(request, response);rnrnprotected void doPost(HttpServletRequest request,rnHttpServletResponse response) throws ServletException, IOException rntry rnrestStr = doOrderService(JsonUtil.map2json(map));rn catch (Exception e) rne.printStackTrace();rnrnresponse.getWriter().write(restStr);rnrnrnprivate String doOrderService(String jSon) throws Exception rnMap retMap = new HashMap();rnString result = "";rntryrnas.publish(jSon);rn catch (Exception e) rne.printStackTrace();rnretMap.put("RespMsg", "异常");rnlogger.info("异常");rnreturn JsonUtil.map2json(retMap);rnrnreturn result;rnrnrnpublic AsyncOrderMgrNoticeSendClient getAs() rnreturn as;rnrnpublic void setAs(rnAsyncOrderMgrNoticeSendClient as) rnthis.as = as;rnrnrn
这个怎么解析啊,求大神指点
[code=java]"root": [rnrn "title": "QQQQ",rn "crl": "http://www.baidu.com/2007.html",rn "time": "2014/12/10",rn "img": rn [rn "url":"http://uploads/allimg/1412/1-141210100123.jpg","url":"http://uploads/allimg/1412/1-141210100128.jpg"rn ],rn "cont":[rn rn "des":"",rn "img2": [ rn ]rn rn ] rn ,rnrnrn "title": "WWWWW",rn "crl": "http://www.baidu.com/2007.html",rn "time": "2014/12/10",rn "img": rn [rn "url":"http://uploads/allimg/1412/1-141210094506.jpg","url":"http://uploads/allimg/1412/1-141210094647.jpg"rn ],rn "cont":[rn rn "des":"",rn "img2": [ rn ]rn rn ] rn ]rn[/code]
求大神解决啊
[img=https://img-bbs.csdn.net/upload/201404/09/1396994073_579690.png][/img]rn[img=https://img-bbs.csdn.net/upload/201404/09/1396994087_43546.png][/img]rn[img=https://img-bbs.csdn.net/upload/201404/09/1396994098_35274.png][/img]rn无法解决了,求大神看问题
求pc-lint报322错误怎么解决
pc-lint结果报如下错误:rnError 322: Unable to open include file 'stdio.h'rnrn我的的pc-lint是集成在source insight中的。pc-lint 9.0版本
启动Tomcat就报这样的错。求大神指导
rn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataLimitDao' defined in file [E:\tomcat6036\webapps\sxyerp\WEB-INF\classes\financeBean.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\tomcat6036\webapps\sxyerp\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate collection role mapping com.pojos.QNEOrder.passengersrn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)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.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\tomcat6036\webapps\sxyerp\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate collection role mapping com.pojos.QNEOrder.passengersrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)rn ... 39 morernCaused by: org.hibernate.DuplicateMappingException: Duplicate collection role mapping com.pojos.QNEOrder.passengersrn at org.hibernate.cfg.Mappings.addCollection(Mappings.java:147)rn at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2085)rn at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2060)rn at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:381)rn at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295)rn at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166)rn at org.hibernate.cfg.Configuration.add(Configuration.java:716)rn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:551)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:677)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)rn ... 46 morern2015-9-19 13:18:51 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class com.sxy.tasks.TimerManagerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataLimitDao' defined in file [E:\tomcat6036\webapps\sxyerp\WEB-INF\classes\financeBean.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\tomcat6036\webapps\sxyerp\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate collection role mapping com.pojos.QNEOrder.passengersrn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rnrnrnrnrnrn
求大神指点上传图片错误
Microsoft VBScript 编译器错误 '800a0400' rnrn缺少语句 rnrn\web\ZhiEditor\upload_json.asp, line 2 rnrnrnrn--------------------------------------------------------------------------------rnHost by NetBox Version 2.8 Build 4128rnrnrnrnweb\ZhiEditor\upload_json.asp如下rn<%@ CODEPAGE=65001 %>rn<% Option Explicit %>rn<% Response.CodePage=65001 %>rn<% Response.Charset="UTF-8" %>rnrnrn<%rnDim aspUrl, savePath, saveUrl, maxSize, fileName, fileExt, newFileName, filePath, fileUrl, dirNamernDim extStr, imageExtStr, flashExtStr, mediaExtStr, fileExtStrrnDim upload, file, fso, ranNum, hash, ymd, mm, dd, resultrnrnaspUrl = Request.ServerVariables("SCRIPT_NAME")rnaspUrl = left(aspUrl, InStrRev(aspUrl, "/"))rnrn'文件保存目录路径rnsavePath = "../upload/"rn'文件保存目录URLrnsaveUrl = aspUrl & "../upload/"rn'定义允许上传的文件扩展名rnimageExtStr = "gif|jpg|jpeg|png|bmp"rnflashExtStr = "swf|flv"rnmediaExtStr = "swf|flv|mp3|wav|wma|wmv|mid|avi|mpg|asf|rm|rmvb"rnfileExtStr = "doc|docx|xls|xlsx|ppt|htm|html|txt|zip|rar|gz|bz2"rn'最大文件大小rnmaxSize = 5 * 1024 * 1024 '5MrnrnSet fso = Server.CreateObject("Scripting.FileSystemObject")rnIf Not fso.FolderExists(Server.mappath(savePath)) Thenrn showError("上传目录不存在。")rnEnd IfrnrndirName = Request.QueryString("dir")rnIf isEmpty(dirName) Thenrn dirName = "image"rnEnd IfrnIf instr(lcase("image,flash,media,file"), dirName) < 1 Thenrn showError("目录名不正确。")rnEnd IfrnrnSelect Case dirNamern Case "flash" extStr = flashExtStrrn Case "media" extStr = mediaExtStrrn Case "file" extStr = fileExtStrrn Case Else extStr = imageExtStrrnEnd Selectrnrnset upload = new AnUpLoadrnupload.Exe = extStrrnupload.MaxSize = maxSizernupload.GetData()rnif upload.ErrorID>0 then rn showError(upload.Description)rnend ifrnrn'创建文件夹rnsavePath = savePath & dirName & "/"rnsaveUrl = saveUrl & dirName & "/"rnIf Not fso.FolderExists(Server.mappath(savePath)) Thenrn fso.CreateFolder(Server.mappath(savePath))rnEnd Ifrnmm = month(now)rnIf mm < 10 Thenrn mm = "0" & mmrnEnd Ifrndd = day(now)rnIf dd < 10 Thenrn dd = "0" & ddrnEnd Ifrnymd = year(now) & mm & ddrnsavePath = savePath & ymd & "/"rnsaveUrl = saveUrl & ymd & "/"rnIf Not fso.FolderExists(Server.mappath(savePath)) Thenrn fso.CreateFolder(Server.mappath(savePath))rnEnd Ifrnrnset file = upload.files("imgFile")rnif file is nothing thenrn showError("请选择文件。")rnend ifrnrnset result = file.saveToFile(savePath, 0, true)rnif result.error thenrn showError(file.Exception)rnend ifrnrnfilePath = Server.mappath(savePath & file.filename)rnfileUrl = saveUrl & file.filenamernrnSet upload = nothingrnSet file = nothingrnrnIf Not fso.FileExists(filePath) Thenrn showError("上传文件失败。")rnEnd IfrnrnResponse.AddHeader "Content-Type", "text/html; charset=UTF-8"rnSet hash = jsObject()rnhash("error") = 0rnhash("url") = fileUrlrnhash.FlushrnResponse.EndrnrnFunction showError(message)rn Response.AddHeader "Content-Type", "text/html; charset=UTF-8"rn Dim hashrn Set hash = jsObject()rn hash("error") = 1rn hash("message") = messagern hash.Flushrn Response.EndrnEnd Functionrn%>rn
php 错误 ,求大神指点
[code=php]rnpm.max_children = 100rnrn; The number of child processes created on startup.rn; Note: Used only when pm is set to 'dynamic'rn; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2rnpm.start_servers = 64rn[/code]rn这是php-fpm的配置rnrn这是报的错误提示rn[code=php]rn[09-Sep-2013 18:34:08] NOTICE: [pool www] child 17687 exited with code 0 after 946.277592 seconds from startrn[09-Sep-2013 18:34:08] NOTICE: [pool www] child 17863 startedrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17695 exited with code 0 after 943.633570 seconds from startrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17864 startedrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17680 exited with code 0 after 951.201460 seconds from startrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17865 startedrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17688 exited with code 0 after 947.766371 seconds from startrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17866 startedrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17684 exited with code 0 after 950.690947 seconds from startrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17867 startedrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17699 exited with code 0 after 944.328420 seconds from startrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17868 startedrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17691 exited with code 0 after 947.741519 seconds from startrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17869 startedrn[09-Sep-2013 18:34:13] NOTICE: [pool www] child 17692 exited with code 0 after 947.166478 seconds from startrn[09-Sep-2013 18:34:13] NOTICE: [pool www] child 17870 startedrn[09-Sep-2013 18:34:15] NOTICE: [pool www] child 17681 exited with code 0 after 955.295629 seconds from startrn[09-Sep-2013 18:34:15] NOTICE: [pool www] child 17872 startedrn[09-Sep-2013 18:34:15] NOTICE: [pool www] child 17694 exited with code 0 after 949.284417 seconds from startrn[09-Sep-2013 18:34:15] NOTICE: [pool www] child 17873 startedrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17703 exited with code 0 after 946.927298 seconds from startrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17874 startedrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17690 exited with code 0 after 952.074412 seconds from startrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17875 startedrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17685 exited with code 0 after 954.224209 seconds from startrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17876 startedrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17700 exited with code 0 after 948.412473 seconds from startrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17877 startedrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17682 exited with code 0 after 956.122602 seconds from startrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17878 startedrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17697 exited with code 0 after 950.541924 seconds from startrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17879 startedrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17696 exited with code 0 after 951.072985 seconds from startrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17880 startedrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17704 exited with code 0 after 948.670996 seconds from startrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17881 startedrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17710 exited with code 0 after 946.850688 seconds from startrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17882 startedrn[/code]
求大神指点:cudaError_enum的错误
[color=#FF0000]出错信息:[/color]“test.exe”: 已加载“D:\HealthWay\FDKdll\Debug\test.exe”,已加载符号。rn“test.exe”: 已加载“C:\Windows\SysWOW64\ntdll.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\kernel32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\KernelBase.dll”rn“test.exe”: 已加载“D:\HealthWay\FDKdll\Debug\FDK.dll”,已加载符号。rn“test.exe”: 已加载“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\bin\cudart32_42_9.dll”,未使用调试信息生成二进制文件。rn“test.exe”: 已加载“D:\HealthWay\FDKdll\Debug\cufft32_42_9.dll”,[color=#0000FF]未使用调试信息生成二进制文件[/color]。rn“test.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\msvcr90d.dll”,已加载符号。rn“test.exe”: 已加载“C:\Windows\SysWOW64\apphelp.dll”rn“test.exe”: 已加载“C:\Windows\AppPatch\AcLayers.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\sspicli.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\msvcrt.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\rpcrt4.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\cryptbase.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\sechost.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\user32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\gdi32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\lpk.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\usp10.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\advapi32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\shell32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\shlwapi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\ole32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\oleaut32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\userenv.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\profapi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\winspool.drv”rn“test.exe”: 已加载“C:\Windows\SysWOW64\mpr.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\imm32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\msctf.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\nvcuda.dll”,未使用调试信息生成二进制文件。rn“test.exe”: 已加载“C:\Windows\SysWOW64\setupapi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\cfgmgr32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\devobj.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\ws2_32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\nsi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\dwmapi.dll”rn“test.exe”: 已卸载“C:\Windows\SysWOW64\dwmapi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\nvapi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\version.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\wintrust.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\crypt32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\msasn1.dll”rntest.exe 中的 0x753eb9bc 处最可能的异常: Microsoft C++ 异常: 内存位置 0x001ff388 处的 cudaError_enum。rntest.exe 中的 0x753eb9bc 处最可能的异常: Microsoft C++ 异常: 内存位置 0x001ff314 处的 cudaError_enum。rntest.exe 中的 0x040956a1 处最可能的异常: 0xC0000005: 读取位置 0xbaadf00d 时发生访问冲突rntest.exe 中的 0x777915de 处未处理的异常: 0xC0000005: 读取位置 0xbaadf00d 时发生访问冲突rnrn[color=#FF0000]出错语句:cufftPlan1d(&plan, filterlength, CUFFT_C2C, prjParam->iPrjX);[/color]rnrnrn[color=#FF0000]部分源代码:[/color]rnvoid runFDK(int NumofScan, int totScan, const ProjParameter *prjParam, float voxelsize, int reconSize, float* d_filter, int filterlength, unsigned short* d_bk, unsigned short* d_img, rn cufftComplex* d_data, float* d_filterImg, cudaArray *filteredImg,cudaPitchedPtr devPitchedPtr, cudaExtent extent, const CalibParameter *calib)rnrn //初始化复数投影,同时补零rn CUDA_SAFE_CALL(cudaMemset(d_data,0,sizeof(cufftComplex) * (prjParam->iPrjX) * filterlength));rnrn //GPU上投影预修正、重排rn dim3 threads(16, 16);rn dim3 grid(96, 120); rn preprocessKernel<<< grid, threads >>>(d_bk,d_img,d_data,calib,filterlength, (prjParam->iPrjX));rn cudaThreadSynchronize();rnrn //傅里叶变换rn cufftHandle plan;rn cufftPlan1d(&plan, filterlength, CUFFT_C2C, prjParam->iPrjX);rn rn //cufftExecC2C(plan, d_data, d_data,CUFFT_FORWARD);rnrn
“/”应用程序中的服务器错误。 求大神指点
“/”应用程序中的服务器错误。rnrn未能映射路径“/”。rnrn说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.InvalidOperationException: 未能映射路径“/”。rnrn源错误: rnrn执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。rnrn堆栈跟踪: rnrnrn[InvalidOperationException: 未能映射路径“/”。]rn System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +463rnrn[HttpException (0x80004005): 未能映射路径“/”。]rn System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244rn System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159rn System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949
求大神指导 这个错误怎么解决
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.service.DefaultMultipartResolver] for bean with name 'multipartResolver' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/service/DefaultMultipartResolver : Unsupported major.minor version 51.0rnCaused by: java.lang.UnsupportedClassVersionError: com/service/DefaultMultipartResolver : Unsupported major.minor version 51.0rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.springframework.util.ClassUtils.forName(ClassUtils.java:201)rn at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:327)rn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1066)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:282)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)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.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2018-4-20 18:35:08 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2018-4-20 18:35:08 org.apache.catalina.core.StandardContext startrn严重: Context [/qxj] startup failed due to previous errorsrn2018-4-20 18:35:08 org.apache.catalina.core.ApplicationContext log
这样的错误 怎么解决
我已设了 rn Output File Name 为 .\Debug/my.exern Executable for debug sersion .\Debug/my.exernrnrn但还是提出这样的错误rnError executing c:\winnt\system32\cmd.exe.Error executing c:\winnt\system32\my.exe.rn怎么解决rnrnrn谢谢
这样的错误怎么解决?
Server Error in '/ALinkCRM' Application.rn--------------------------------------------------------------------------------rnrnParser Error rnDescription: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. rnrnParser Error Message: Could not load type 'ALinkCRM.Global'.rnrnSource Error: rnrnrnLine 1: <%@ Application Codebehind="Global.asax.cs" Inherits="ALinkCRM.Global" %>rnrn rnrnSource File: /ALinkCRM/global.asax Line: 1 rnrnrn--------------------------------------------------------------------------------rnVersion Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
这样错误的怎么解决?
一、Failed to set socket to non-blocking mode!rn(创建无阻塞套接字失败,这个错误怎么解决?)rn按确定后点发送在另外一台电脑上的接收程序中还是可以接收的,不过接收的结果不是我希望的结果,如第二个问题:rn二、用socket发送结构还是有问题!rn结构如下:rntype structrnrn char PackFlag[3];rn char TrType[3];rn char RetCode[4];rn char TrDate[9];rn....rnPACK_STRUCT;rn实现代码如下:rnwinSocket m_Socket;//rnrnchar buffer[1024];rnPACK_STRUCT *toB=(PACK_STRUCT *)buffer;rnstrcpy(toB->PackFlag,"S0");//最后一位是结束符rnstrcpy(toB->TrType,"01");rnstrcpy(toB->RetCode,"000");rnstrcpy(toB->TrDate,"20021230");rn...rnm_socket.Send(buffer,strlen(buffer));rnrn//int winSocket::Send(char* strData,int ilen)rn//如果在VB中,本来希望发送的字符串为"S0+结束符+01+结束符+000+结束符+20021230+结束符..."rn//现在在VC++中点发送的时候,接收到的只有S0,后面的没有,这是为何??rnrn
这样的错误怎么解决???????????
Linking...rnLINK : fatal error LNK1168: cannot open Debug/mytry1.exe for writingrnError executing link.exe.
这样的错误怎么解决??
void CSerialPortEx::ProcessErrorMessage(char *ErrorText)rnrn char *Temp=new char[200];rn LPVOID lpMsgBuf;rn FormatMessage(rn FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,rn NULL,rn GetLastError(),rn MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT), //Default languagern (LPTSTR)&lpMsgBuf,rn 0,rn NULL);rn sprintf(Temp,rn "WARNING:%s Failed with the following error:\n%s\nPort:%d\n",rn (char *)ErrorText,rn lpMsgBuf,rn m_nPortNr);rn MessageBox(NULL,rn Temp,rn "Application Error",rn MB_ICONSTOP);rn LocalFree(lpMsgBuf);rn delete[] Temp;rnrnrnerror C2660: “CWnd::MessageBoxA” : 函数不接受 4 个参数rn
关于struts2配置后报404的错误,求大神指点
1.我定义了struts-android.xml配置文件rnrnrnrnrnrnrn rn rn admin/login.jsprn rn rnrn2.把struts2-android.xml文件包含到struts.xml配置文件里rnrnrnrnrn rnrn rn rn rn rn rn rn rn rn rn [color=#FF0000][/color]rn rn rn rn rn admin/login.jsprn admin/admin_main.htmlrn rn rn rn admin/login.jsprn rn rn3.我的web.xml文件配置是rnrn rn struts2 rn org.apache.struts2.dispatcher.FilterDispatcher rn rn rn rn rn struts2 rn /* rn rnrn4我往地址栏输入的地址是http://localhost:8080/daxing/enterpriseAction.do rnrndaixing是我的项目名rn5.我报的错误是rnrnHTTP Status 404 - There is no Action mapped for namespace / and action name enterpriseAction.rnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage There is no Action mapped for namespace / and action name enterpriseAction.rnrndescription The requested resource is not available.rnrnrn
spring注解报空指针错误,求大神指点
[color=#FF0000]bean配置:[/color]rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.Oracle9iDialectrn rn 1024rn truern truern true 1,false 0rn org.hibernate.search.store.FSDirectoryProviderrn rn truern rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rnrn rnrn[color=#FF0000]web.xml配置[/color]rnrn rn spring的log4j监听器rn org.springframework.web.util.Log4jConfigListenerrn rn rn spring的bean销毁回收监听器rn org.springframework.web.util.IntrospectorCleanupListenerrn rn rn rn rn contextConfigLocationrn classpath*:/applicationContext*.xmlrn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rnrn[color=#FF0000]action注解[/color]rnrn@SuppressWarnings( "unused", "serial" )rnpublic class UserinfoAction extends ActionSupport rn //@Autowiredrn @Resourcern private IUserInfoService userInfo;rn rn private String name="admin";rn public String userInfo()rn name="123456";rn name=userInfo.queryUserInfo();rn return "success";rn rn[color=#FF0000]service注解[/color]rnimport org.springframework.stereotype.Service;rnimport org.springframework.transaction.annotation.Transactional;rnrn@Servicern@Transactionalrnpublic class UserInfoService implements IUserInfoService rnrn public String queryUserInfo() rn System.out.println("00000000000");rn return "654321";rn rnrnrn[color=#FF0000]spring注解报空指针错误,求大神指点[/color]
android新手求大神指点
最近准备做一个手机远程控制电脑的软件,是需要学习win32和android然后做一个apk和电脑方面的exe文件吗?有类似的源代码可以学习吗?希望能够指点一二,感激不尽 qq:1241208815
求大神帮助啊,出现这个错误后,程序就异常退出了,怎么解决啊!
事件类型: 错误rn事件来源: .NET Runtimern事件种类: 无rn事件 ID: 1026rn日期: 2014-11-21rn事件: 08:07:36rn用户: N/Arn计算机: GRYYP-BC7rn描述:rnrnApplication: HiXUI.exernFramework Version: v4.0.30319rnDescription: The process was terminated due to an unhandled exception.rnException Info: rnrnSystem.AccessViolationExceptionrnStack:rn at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG ByRef, rnrnSystem.Runtime.InteropServices.HandleRef, Int32, Int32, Int32)rn at System.Windows.Forms.Applicationrnrn+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)rn at rnrnSystem.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)rn at rnrnSystem.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)rn at rnrnSystem.Windows.Forms.Application.Run(System.Windows.Forms.Form)rn at HiXUI.Program.Main()rnrnrn有关更多信息,请参阅在 rnrnhttp://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。rn
Android 修改EditText光标颜色
今天特别无聊,还是写一篇博客吧,有需求就是更改输入框中光标的颜色,android中的EditText中的光标都是有系统自己的颜色,当然我们不喜欢的他的颜色,而且不同的手机的颜色会不一样,我们需要将他们统一颜色,设置EditText的属性android:textCursorDrawable="@null"这样,我们再设置android:textColor="#9d9d9d"的属性,我们光标的颜色就会和
Android Edittext设置光标颜色
Edittext如果想设置自定义颜色可以使用 android:textCursorDrawable 属性 如果想让光标跟字体颜色一样,将 textCursorDrawable 设置为 @null 即可
Android:EditText光标颜色及粗细
在android的输入框里,如果要修改光标的颜色及粗细步骤如下两步即可搞定: 1.在资源文件drawable下新建一个光标控制shape_cursor.xml<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="r
android EditText光标和下划线设置
android studio 改变EditText光标颜色,隐藏下划线
android 中EditText光标不显示问题
加android:textCursorDrawable="@null" (设置光标与字体颜色一致,与背景颜色不一样) 设置textColor,如 android:textColor="@color/font_black"
系统一访问就报这样的错误!
Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Listener refused the connection with the following error:rnORA-12505, TNS:listener does not currently know of SID given in connect descriptorrnThe Connection descriptor used by the client was:rnlocalhost:1521:orcl
Android EditText光标颜色 修改
在android的输入框里,如果要修改光标的颜色及粗细步骤如下两步即可搞定: 1.在资源文件drawable下新建一个光标控制color_cursor.xml 备注:size:设置光标的宽     solid:设置光标颜色 2.设置EditText:android:textCursorDraw
不仅仅是修改(Android EditText光标)
前言:放假三天,玩了两天了,前几天写过一篇博客 Android CardView全解析(二)好吧,本来就是想看看CardView的实现机制,然后看到5.0中实现CardView的方法,于是又感觉发现了新大陆一样,以前不懂的东西顿时又茅塞顿开了,于是打算把我看到的一点点小东西记录下来,唉唉~~我的假期啊!!!先看看5.0以上是怎么实现CardView的。/* * Copyright (C) 2014
android中多个EditText 光标定位问题
[img=C:\Documents and Settings\Admin1\桌面\src_Demo\111.jpg][/img]rn输入IP地址时,多个EditText并排排列,端口号EditText在IP下一行。rn现出现这种情况:IP四个EditText无论哪一个Edittext输入完成后,点击next或是完成,光标都会自动跳转到端口号的Edittext中。rn现在想第一个IPEditText输入完成后,光标自动跳转到下个IP EditText中,而不是直接跳转到端口的EditText中,如何实现。求大虾们指教!!!
android中 EditText的光标大小问题
[color=#FF0000]EditText的光标大小问题可以调吗 怎么调 不通过字体大小调[/color]
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表