java.io.FileNotFoundException头疼半天了,求高手解救!

图片说明

 十二月 24, 2016 10:30:16 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [cn.itcast.crm.domain] cannot be resolved to URL because it does not exist
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1486)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:589)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: class path resource [cn.itcast.crm.domain] cannot be resolved to URL because it does not exist
    at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:177)
    at org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:48)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:708)
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1545)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1483)
    ... 21 more

1个回答

检查过,导入包没问题。而且发布编译的文件也都存在。求支招

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求同行高手解救?
我在使用Batik制作SVG监控程序,当我修改了正在显示的SVG文档的个别属性后,没有显示出新的画面,而是依然显示旧的属性,但当鼠标经过或移动一下画面后,就显示出来了,请问有什么可以实现 只要文档属性改变 画面就变化??
求servlet高手解救
现在想在一个JSP页面实现,点击提交按钮,此页面显示处理成功,并给出处理后文件的下载链接rn(后台处理部分略过,只需要点击按钮 这个jsp页面显示处理完成,然后在按钮下方显示后台servlet传过来的一个文件供用户下载。)
求高手解救!!!!
[code=Java][/code]class Creaturern public Creature()rn System.out.println("Creature无参数的构造器");rn rn rn rn class Animal extends Creaturern public Animal(String name)rn System.out.println("Animal带一个参数的构造器,该动物的name为"+name);rn rn public Animal(String name,int age)rn //使用this调用同一个重载的构造器rn this(name);rn System.out.println("Animal带两个参数的构造器,其age为"+age);rn rn rn rn rn public class Wolf extends Animalrn //显式调用父类有两个参数的构造器rn super("土狼",3);rn public static void main(String []args)rn new Wolf();rn rn rnrn报错如下:rnWolf.java:22: 非法的类型开始rn super("土狼",3);rn ^rnWolf.java:22: 非法的类型开始rn super("土狼",3);rn ^rnWolf.java:22: 非法的类型开始rn super("土狼",3);rn ^rn3 错误rnrn不知道是怎么回事啊???
改变背景图片,求高手解救!
.menuGroupTitle rn margin-top:1px;rn padding-top: 6px;rn text-indent:5px;rn font-size:12px;rn font-weight:bold;rn background: #ffffff url(images/index/left/MenuTitleBackground.jpg) repeat-y rn bottom;rn height:25px;rn cursor:hand;rn rn .menuGroupTitleonclick rn margin-top:1px;rn padding-top: 6px;rn text-indent:5px;rn font-size:12px;rn font-weight:bold;rn background: #ffffff url(images/index/left/MenuTitleBackgro.jpg) repeat-y bottom;rn height:25px;rn cursor:hand;rn rnrnrn ]]>rnxsl:for-each select="*">rn<div class="mainMenu">rn<div class="mainMenuTitle"></div>rn<ul>rn rn <li class="menuGroup">rn <div id="menuGroupTitle_" /> </div>rn <ul id="menuGroupUL_]]>rn rn <li class="menuItem">rn <img src="images/index/left/document_small.png"><a rnrntarget="OAFrame" href=""></a>rn </li>rn rn </ul>rn </li>rn rn </ul>rn </div>rn rn rnrnrn rn 怎么在menuToggle里面写方法 改变$('#menuGroupUL_' + menuID)的背景图片;rnrnrnrn我这一些不行啊, 求高手解救!!rnfunction menuToggle(menuID) rn $('.menuGroup > ul').not($('#menuGroupUL_' + menuID)).css('display','none');rn rn if ($('#menuGroupUL_' + menuID).css('display') != 'none') rn if ($('#menuGroupUL_' + menuID).css('display') == 'block') rn $('menuGroupUL_' + menuID).classNma="menuGroupTitleonclick";rn alert('11');rn rn $('#menuGroupUL_' + menuID).toggle(200); rn
内存溢出OOM,求高手解救
错误提示的log如下rnjava.lang.RuntimeException: Unable to start activity ComponentInfocom.snscity.member/com.snscity.member.WelcomeActivity: android.view.InflateException: Binary XML file line #1: Error inflating class rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2198)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2247)rn at android.app.ActivityThread.access$800(ActivityThread.java:141)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)rn at android.os.Handler.dispatchMessage(Handler.java:102)rn at android.os.Looper.loop(Looper.java:136)rn at android.app.ActivityThread.main(ActivityThread.java:5050)rn at java.lang.reflect.Method.invokeNative(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:515)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:807)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623)rn at dalvik.system.NativeStart.main(Native Method)rnCaused by: android.view.InflateException: Binary XML file line #1: Error inflating class rn at android.view.LayoutInflater.createView(LayoutInflater.java:623)rn at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)rn at android.view.LayoutInflater.onCreateView(LayoutInflater.java:672)rn at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:697)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:472)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:400)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:353)rn at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)rn at android.app.Activity.setContentView(Activity.java:1946)rn at com.snscity.member.WelcomeActivity.onCreate(WelcomeActivity.java:78)rn at android.app.Activity.performCreate(Activity.java:5248)rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)rn ... 11 morernCaused by: java.lang.reflect.InvocationTargetExceptionrn at java.lang.reflect.Constructor.constructNative(Native Method)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:423)rn at android.view.LayoutInflater.createView(LayoutInflater.java:597)rn ... 23 morernCaused by: java.lang.OutOfMemoryErrorrn at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)rn at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:597)rn at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:432)rn at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:840)rn at android.content.res.Resources.createFromResourceStream(Resources.java:2477)rn at android.content.res.Resources.loadDrawable(Resources.java:2136)rn at android.content.res.MiuiResources.loadDrawable(MiuiResources.java:359)rn at android.content.res.TypedArray.getDrawable(TypedArray.java:602)rn at android.view.View.(View.java:3558)rn at android.view.View.(View.java:3488)rn at android.view.ViewGroup.(ViewGroup.java:464)rn at android.widget.RelativeLayout.(RelativeLayout.java:236)rn ... 26 morernandroid.view.InflateException: Binary XML file line #1: Error inflating class rn at android.view.LayoutInflater.createView(LayoutInflater.java:623)rn at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)rn at android.view.LayoutInflater.onCreateView(LayoutInflater.java:672)rn at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:697)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:472)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:400)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:353)rn at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)rn at android.app.Activity.setContentView(Activity.java:1946)rn at com.snscity.member.WelcomeActivity.onCreate(WelcomeActivity.java:78)rn at android.app.Activity.performCreate(Activity.java:5248)rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2247)rn at android.app.ActivityThread.access$800(ActivityThread.java:141)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)rn at android.os.Handler.dispatchMessage(Handler.java:102)rn at android.os.Looper.loop(Looper.java:136)rn at android.app.ActivityThread.main(ActivityThread.java:5050)rn at java.lang.reflect.Method.invokeNative(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:515)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:807)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623)rn at dalvik.system.NativeStart.main(Native Method)rnCaused by: java.lang.reflect.InvocationTargetExceptionrn at java.lang.reflect.Constructor.constructNative(Native Method)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:423)rn at android.view.LayoutInflater.createView(LayoutInflater.java:597)rn ... 23 morernCaused by: java.lang.OutOfMemoryErrorrn at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)rn at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:597)rn at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:432)rn at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:840)rn at android.content.res.Resources.createFromResourceStream(Resources.java:2477)rn at android.content.res.Resources.loadDrawable(Resources.java:2136)rn at android.content.res.MiuiResources.loadDrawable(MiuiResources.java:359)rn at android.content.res.TypedArray.getDrawable(TypedArray.java:602)rn at android.view.View.(View.java:3558)rn at android.view.View.(View.java:3488)rn at android.view.ViewGroup.(ViewGroup.java:464)rn at android.widget.RelativeLayout.(RelativeLayout.java:236)rn ... 26 morernrnrnrnrnrn布局文件如下:rnrnrn rnrn rnrnrnrnrnrnRelativeLayout 中的background的图片在hdpi和xhdpi中都有。rnat com.snscity.member.WelcomeActivity.onCreate(WelcomeActivity.java:78) 这句话对应的是activity中的 setContentView(R.layout.activity_welcome)这句rnrnrn求大神搭救~rn
类型转换问题,求高手解救~~
我表中有个int类型的字段(假设名字为ID),但允许为空。在页面上用一个textbox表示,我想textbox为空时将null插入到字段ID中去,可c#中怎么表示null值啊?而且怎么将null(数据库中的)和int,string,DateTime等类型转换呢?请高手指教!
结束QT程序 求高手解救
我在一片板子里面导入了一个QT简单界面,设置为自动启动,忘记加退出程序的功能。现在板子一启动就进这个程序。在rs232也无法用ctrl+c来结束这个程序。求解救
vc6.0问题,求高手解救!!!
QTreeWidgetItemIterator it( m_list );rn for ( ; it.current(); ++it )rn rn item = (YcMessageListItem *)it.current();rnF:\qjkz\qjkz\QAVCServer\YcListView.cpp(170) : error C2064: term does not evaluate to a functionrnF:\qjkz\qjkz\QAVCServer\YcListView.cpp(172) : error C2064: term does not evaluate to a functionrn上段代码显示的是这个错误,求指示,,,,
高手们,帮帮忙,解救解救!!
[code=C#]rn[color=#FF6600]EmployeeUI窗体:[/color]rn EmployeeInfo[] empInfo;rnprivate void Form1_Load(object sender, EventArgs e)rn rn ShowAllRecords();rn rnrnprivate void ShowAllRecords()rn rn this.Cursor = Cursors.WaitCursor;rn EmployeeDB emp = new EmployeeDB();rn empInfo = emp.GetAllEmployee();rn int recPos = this.BindingContext[empInfo].Position;rn if (empInfo != null)rn rn txtEmployeeId.Text = empInfo[recPos].EmployeeId.ToString();rn txtFirstName.Text = empInfo[recPos].FirstName;rn txtLastName.Text = empInfo[recPos].LastName;rn rnrn[color=#FF6600]EmployeeDAL类库下的EmployeeDB类:[/color]rnpublic EmployeeInfo[] GetAllEmployee()rn rn SqlConnection conn = new SqlConnection(connStr);rn SqlCommand cmd = conn.CreateCommand();rn cmd.CommandType = CommandType.StoredProcedure;rn cmd.CommandText = "GetAllEmployee";rnrn ArrayList arrEmp = new ArrayList();rn tryrn rn conn.Open();rn SqlDataReader dr = cmd.ExecuteReader();rn EmployeeInfo emp;rn if (dr.HasRows)rn rn while (dr.Read())rn rn emp = new EmployeeInfo((int)dr["EmployeeId"], (string)dr["FirstName"], (string)dr["LastName"]);rn arrEmp.Add(emp);rn rn rn elsern arrEmp = null;rn dr.Close();rn conn.Close();rn return (EmployeeInfo[])arrEmp.ToArray(typeof(EmployeeInfo));rn rnrn[color=#FF6600]EmployeeModel类库下的EmployeeInfo类:[/color]rnpublic class EmployeeInforn rn public EmployeeInfo()rn rn //构造函数rn rnrn private int employeeId;rn private string firstName;rn private string lastName;rnrn public int EmployeeIdrn rn getreturn employeeId;rn setemployeeId = value;rn rnrn public string FirstNamern rn getreturn firstName;rn setfirstName = value;rn rnrn public string LastNamern rn getreturn lastName;rn setlastName = value;rn rnrn public EmployeeInfo(int employeeId, string firstName, string lastName)rn rn this.employeeId = employeeId;rn this.firstName = firstName;rn this.lastName = lastName;rn rn rn[/code]rnrn原本只想部分代码上来的,怕有人叫我发完整的上来或者怕部分不理解,所以发多了少少,其实这代码不算,懂得的人一看就明白。rn我在群里问过几个人,意见不一致的,所以上来看看大家是怎么说的,希望大家帮帮我。rnrn问题1:Model层,即是实体层,多定义一个带参数的构造函数,像这样的构造函数有什么作用或目的?(我见有不少案例都是这样的)rn问题2:public EmployeeInfo[] GetAllEmployee()中的EmployeeInfo[]是一个类返回类型吧,有什么作用?rn问题3:emp = new EmployeeInfo((int)dr["EmployeeId"], (string)dr["FirstName"], (string)dr["LastName"]);解释一下这一条代码,最好说一下那三个字段是怎么传递和保存的?rn问题4:ShowAllRecords()方法里的empInfo=emp.GetAllEmployee(),当函执行到这里时,empInfo保存了什么值?rnrn你的回答不仅帮到我,可能也帮到很多路过这里的新手们,如果分不够再加分。
高手解救
怎样破解winzp或winrar加密文件密码?
求解救
如何将后台查出的值放入前台页面rnJava后台;rnrnrn[code=Java]public static JSONArray getWitdraw(HttpServletRequest request)rn JSONArray jsonArray = null ;rn //String developer_id = OperateSession.getSession(request, "developer_id").toString(); //开发者IDrnString sql = ("select a.account_name, c.dic_name bank_name, a.account, b.CAN_WITHDRAWPRICE from developer_user a, developer_totalsaleslist b,dic c where 1 = 1 and a.developer_id = b.developer_id and c.dic_id = a.bank_name and a.developer_id = 3" );rn List list= DataBaseOperator.queryList(sql.toString());rn jsonArray = JsonUtil.listDynaBeanToJson(list);rn return jsonArray;[/code]rn前台页面rn<%@page import="net.sf.json.JSONObject"%>rn<%@page import="com.developer_finace.FinaceService"%>rn<%@page import="net.sf.json.JSONArray"%>rn<%@ page language="java" contentType="text/html; charset=utf-8"rn pageEncoding="utf-8"%>rn<%rn JSONArray jsonArray = FinaceService.getWitdraw(request);rn%>rnrnrnrn rn rn rnrnrnrnrn 申请提现 rn rn 1.结账信息填写完整 rn 2.账户金额必须大于或者等于起寄金额 rn 3.申请日期为每月1-5号 rn 4.不能重复申请 rn 申请提现成功后我们将在2个工作日内按照您的结帐信息及时给您汇款,汇款时产生的寄汇费用将从汇款总额中扣除 rn 开户银行: rn 银行帐号: rn 开户人:  rn 结账方式:rn 网上汇款rn Saabrn Opel(这里如何将查出来的三种方式放到这个下拉款中呢,SQL语句是写在这里吗?该语句是这样 select * from dic t where 1=1 and dic_type_id =9)rn Audirn rn 提现金额: rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn
高手解救!!!!
诸位高手,帮帮小弟我,下面程序有没有错误????送分的!!rn******index.htmrnrnrn Untitled Documentrn rnrnrnrn rn rn rn rn rn rn 姓名: rn rn rn rn rn email: rn rn rn rn rn body: rn rn rn rn rn url:rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnrn*************rnadd.jsprnrnrnrnrn<%@ page contentType="text/html; charset=GB2312" %>rn<%@ page import="java.sql.*" %>rn<%@ page language="java" %>rnrn<%! String name,email,url,body,sql; %>rn<%rnname = request.getParameter("name");rnemail = request.getParameter("email");rnurl = request.getParameter("url");rnbody = request.getParameter("body");rnif (name!=""&&email!=""&&body!="")rnrn sql="insert into guestbook (name,email,url,body) values('"+name+"','"+email+"','"+url+"','"+body+"')";rn ConBean.executeInsert(sql);rnrnelsernrn out.print("Sorry,Please enter your name,email and body!!!");rnrn%>rn<%rnResultSet RScount = ConBean.executeQuery("SELECT * FROM guestbook");rnint i=0;rnwhile (RScount.next())rnrn i++;rnrn%>rn<%-- Now,<%= RScount %> Records. --%>rn 现在有<%= i %> 条纪录 rn<%rnRScount.close();rni=0;rn%>rn rn<%rnResultSet RS=ConBean.executeQuery("SELECT * FROM guestbook");rnwhile (RS.next())rnrnname=RS.getString("name");rnemail=RS.getString("email");rnurl=RS.getString("url");rnbody=RS.getString("body");rn%>rn rn rn 昵称: <%=name%>rnrn rn 电子邮件: <%=email%>rnrn rn 个人主页地址: <%=url%>rnrn rn 内容: <%=body%>rnrnrn rn<%rnrnRS.close();rn%>rnrnrnrn******************rnDBCon.javarnpackage sql;rnimport java.sql.*;rnpublic class DBCon rnrn String sDBDriver = "sun.jdbc.odbc.JdbcOdbcDriver";rn String sConnStr = "jdbc:odbc:guestbook";rn Connection conn = null;rn ResultSet rs = null;rn public DBCon ()rn rn try rn rn Class.forName(sDBDriver);rn rn catch(java.lang.ClassNotFoundException e)rn rn System.err.println("DBCon(): " + e.getMessage());rn rn rn public void executeInsert(String sql) rn rn tryrn rn conn = DriverManager.getConnection(sConnStr,"sa","065191");rn Statement stmt = conn.createStatement();rn stmt.executeUpdate(sql);rn rn catch(SQLException ex)rn rn System.err.println("DBCon.executeUpdate:"+ex.getMessage());rn rn rn public ResultSet executeQuery(String sql)rn rn rs = null;rn tryrn rn conn = DriverManager.getConnection(sConnStr,"sa","065191");rn Statement stmt = conn.createStatement();rn rs = stmt.executeQuery(sql);rn rn catch(SQLException ex)rn rn System.err.println("DBCon.executeQuery:"+ex.getMessage());rn rn return rs;rn rn public void executeDelete(String sql)rn rn tryrn rn conn = DriverManager.getConnection(sConnStr,"sa","065191");rn Statement stmt = conn.createStatement();rn stmt.executeUpdate(sql);rn rn catch(SQLException ex)rn rn System.err.println("DBCon.executeDelete:"+ex.getMessage());rn rn rn rnDBCon编译成功后运行程序出现:rn*******************rnjavax.servlet.ServletException: [Microsoft][ODBC SQL Server Driver]无效的描述符索引rn********************rn请问是什么意思?难道我的javabean写错了吗?本人已经建立了一个系统数据源guestbook.rn怎样解决?
java.io.FileNotFoundException:
java.io.FileNotFoundException: /home/custom/CustomWebApp/upload/tsTask/20070820173751long??????.txt: No such file or directoryrn at jrockit.io.FileNativeIO.open0(Ljava.lang.String;I)I(Unknown Source)rn at jrockit.io.FileNativeIO.open(Ljava.lang.String;I)Ljava.io.FileDescriptor;(Unknown Source)rn at java.io.FileOutputStream.(Ljava.lang.String;Z)V(Unknown Source)rn at java.io.FileOutputStream.(Ljava.lang.String;)V(Unknown Source)rn at com.linkage.app.web.manager.TsTaskAddEditAction.execute(Lorg.apache.struts.action.ActionMapping;Lorg.apache.struts.action.ActionForm;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)Lorg.apache.struts.action.ActionForward;(TsTaskAddEditAction.java:94)rn at org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.apache.struts.action.Action;Lorg.apache.struts.action.ActionForm;Lorg.apache.struts.action.ActionMapping;)Lorg.apache.struts.action.ActionForward;(RequestProcessor.java:484)rn at org.apache.struts.action.RequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(RequestProcessor.java:274)rn at org.apache.struts.action.ActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:1482)rn at com.linkage.app.web.COPActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(COPActionServlet.java:32)rn at org.apache.struts.action.ActionServlet.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:525)rn at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760)rn at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)rn at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)rn at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFilter.java:28)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)rn at com.linkage.app.filter.AccessFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(AccessFilter.java:96)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6458)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)rn at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)rn at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)rn at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)rn at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)rnrnrnrnrnrnrn什么原因啊! 我知道 文件目录不存在。 什么原因导致的。 。
java.io.FileNotFoundException
代码rn[code=Java]File file = new File("config/etl_config.properties");rn......rn[/code]rnconfig跟src同级目录rn我在main函数中测试可以读到文件内容,但是放到web里面,启动tomcat就报文件找不到异常,真是奇怪的问题?
地图加载问题,求高手解救
为什么我把地图放在层里,最开始曾是隐藏的,点击显示后,为什么加载不出来。rn如果最开始不隐藏,在google浏览器,加载没问题,上下左右拖动没问题,放大缩小没问题。rnie内核的浏览器就不行了。rnrnrn求高手解救!!!!rn
PHP传值问题,求高手解救!!
我用的是HTML页面.里面有一个按钮.用的是onclick的办法.有什么办法可以传值给PHP文件中?rn我知道有一种直接url="XX.do?id="+user.id+"&name="+user.name+""但是这样传输会在地址栏显示就不安全了.求高手解救!!
急需程序代码,求高手,大神们解救
select语句的翻译程序设计(LL(1)法、输出四元式)
显示器不能显示,求高手解救,急!!!!!!!!!!!!
显示器不能显示,但主机能开,电源,cpu风扇都在运行,也没什么其他的声音rn 重复启动也没用,显卡抽了拿橡皮擦擦了还是不行rn 关机后抽掉电源后过两个小时后重新开机有能显示出来了,关机在启动又不行,不关机就一直可以用。rn 求赐教!!!!
100分求高手解救装机问题
我电脑可能中毒了,很慢很慢,于是我把c盘格掉打算重装rn可是重装不了,光驱读不了xp的安装盘,rn 光驱里是xp盘的时候信息是:NTLDR is missingrn press any key to restart...但敲击任何键都没什么反应rnrn 用2000的安装盘后rn 光驱能读,但是安装一会就不能继续了rnrn
敬请高手出手解救!!!
有两个表如下:rnrna表rn[产品编号] [产品名称] [产品种类]rn1001 a01 arn1002 a02 arn1003 a03 arn1004 b01 brn1005 b02 brn1006 b03 brnrnb表 rn[客户编号] [产品编号] [数量] [时间]rn001 1001 100 2003-07-18rn001 1003 200 2003-11-02rn001 1005 60 2003-12-06rn002 1002 30 2003-01-01 rn002 1005 500 2003-12-07rn003 1003 70 2003-02-05rn003 1004 500 2003-06-02rn003 1006 20 2003-06-02rn004 1002 110 2003-02-09rn005 1001 22 2003-03-07rn005 1006 20 2003-06-01rnrn要根据一下两个条件生成一张报表rn条件1:时间:_____年______月至_____年_____月rn条件2: 产品种类(全部,a,b)rn报表内容:rn[产品名称 时间] [1月] [2月] [3月] [4月] [...] [合计]rn。。rn。。rn。。rn[合计]。。。rnrn敬请高手出手解救。rn
求java达人解救
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoClassDefFoundError: org/springframework/core/io/Resourcern at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)rnrn在下.net出身,无java任何框架基础,目前公司应java部征调,前去编码,在公司搭好的ssh2框架下编码,那是相当简单的事情。但始终不解这三个小框架的精髓所在。闲余时间开始从struts2开始学习。开始就遇到这些问题。感觉java的框架都是配置N多配置文件。不解其中之所以然,是在令人郁闷不已啊。rn上面错误如何解决啊?rn
linux tc 。。求解救
tc qdisc add dev eth0 root handle 1: htb r2q 1rnrntc class add dev eth0 parent 1: classid 1:1 htb rate 3000kbit burst 10krnrntc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10rnrntc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 192.168.1.0/24 flowid 1:1rnrnrn[code=Java]tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 192.168.1.0/24 flowid 1:1rn这个是整个网段3000K不是每台主机3000K,如果我想每台主机3000K~~难道我要加???NNNNNNN多的子类??[/code]
求大神解救~~~~~~~~~~~~~
[img=https://img-bbs.csdn.net/upload/201401/06/1389003441_563674.jpg][/img] 把server写到app_code里面就不行,放到界面后台都不会报错,不放到app_code里面就不会报错,但是又不等调用哪个类了,求大神解救!!!!!!!!!!!!!!!!!!!!!!!急啊!!!!!!!!!
IReport报错求解救
[color=#FF0000]Error filling print... Error retrieving field value from bean : name rnnet.sf.jasperreports.engine.JRException: Error retrieving field value from bean : name      at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:123)      at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getFieldValue(JRAbstractBeanDataSource.java:96)      at net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:100)      at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:1356)      at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1257)      at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1233)      at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1577)      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:149)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:932)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:864)      at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:114)      at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:653)      at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:569)      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:915)      at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:928)      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)  Caused by: java.lang.NoSuchMethodException: Unknown property 'name' on class 'class com.jaspersoft.ireport.examples.beans.PersonBean'      at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1322)      at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:770)      at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:846)      at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:426)      at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:111)      ... 16 more  rnPrint not filled. Try to use an EmptyDataSource...rn[/color]
求大神解救
private void button1_Click(object sender, EventArgs e)rn rn using (SqlConnection conn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDBFilename=|DataDirectory|\Database1.mdf;Integrated Security=true;rn User Instance=true"))rn rn conn.Open();rn string usename=textBox1.Text;rn string password = textBox2.Text;rn using (SqlCommand cmd = conn.CreateCommand())rn rn cmd.CommandText = "select * from ref where uses="+usename+"";rn using (SqlDataReader reader = cmd.ExecuteReader())rn rn if (reader.Read()==true)rn rn string dpasssword = reader.GetString(reader.GetOrdinal("password"));rn if (password == dpasssword)rn rn MessageBox.Show("登录成功");rn rn rn elsern rn MessageBox.Show("登录失败");rn rnrn}rnrn怎么老是SqlDataReader reader = cmd.ExecuteReader()报错说列名无效。
求解救!!代码问题
[code=C#]if (deleteOldFile)rn rn if (System.IO.File.Exists(outputPath)) System.IO.File.Delete(outputPath); rn rn // Create the Excel Application objectrn ApplicationClass excelApp = new ApplicationClass();rnrn // Create a new Excel Workbookrn Workbook excelWorkbook = excelApp.Workbooks.Add(Type.Missing);rnrn int sheetIndex = 0;rnrn // Copy each DataTablern foreach (System.Data.DataTable dt in dataSet.Tables)rn rnrn // Copy the DataTable to an object arrayrn object[,] rawData = new object[dt.Rows.Count + 1, dt.Columns.Count];rnrn // Copy the column names to the first row of the object arrayrn for (int col = 0; col < dt.Columns.Count; col++)rn rn rawData[0, col] = dt.Columns[col].ColumnName;rn rnrn // Copy the values to the object arrayrn for (int col = 0; col < dt.Columns.Count; col++)rn rn for (int row = 0; row < dt.Rows.Count; row++)rn rn rawData[row + 1, col] = dt.Rows[row].ItemArray[col];rn rn rnrn // Calculate the final column letterrn string finalColLetter = string.Empty;rn string colCharset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";rn int colCharsetLen = colCharset.Length;rnrn if (dt.Columns.Count > colCharsetLen)rn rn finalColLetter = colCharset.Substring(rn (dt.Columns.Count - 1) / colCharsetLen - 1, 1);rn rnrn finalColLetter += colCharset.Substring(rn (dt.Columns.Count - 1) % colCharsetLen, 1);rnrn // Create a new Sheetrn Worksheet excelSheet = (Worksheet)excelWorkbook.Sheets.Add(rn excelWorkbook.Sheets.get_Item(++sheetIndex),rn Type.Missing, 1, XlSheetType.xlWorksheet);rnrn excelSheet.Name = dt.TableName;rnrn // Fast data export to Excelrn string excelRange = string.Format("A1:01",rn finalColLetter, dt.Rows.Count + 1);rnrn excelSheet.get_Range(excelRange, Type.Missing).Value2 = rawData;rnrn // Mark the first row as BOLDrn ((Range)excelSheet.Rows[1, Type.Missing]).Font.Bold = true;rn rn //excelApp.Application.AlertBeforeOverwriting = false;rn excelApp.Application.DisplayAlerts = false;rn // Save and Close the Workbookrn excelWorkbook.SaveAs(outputPath, XlFileFormat.xlWorkbookNormal, Type.Missing,rn Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlExclusive,rn Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);rn excelWorkbook.Close(true, Type.Missing, Type.Missing);rn excelWorkbook = null;rnrn // Release the Application objectrn excelApp.Quit();rn excelApp = null;rnrn // Collect the unreferenced objectsrn GC.Collect();rn GC.WaitForPendingFinalizers();rn[/code]rnrn在上面的代码上加段对时间的输出控制,,
头疼!头疼!头疼!头疼!头疼!头疼!头疼!
想不到连流览网页都会有头疼的时候,请问下面网址中顶上面的图片动画是怎么实现的?rn我不知道那些小点点怎么才可以和图片实现渐变。rnhttp://v.gd.chinavnet.com/
awk问题,求解救
我有个文件 rntest.txtrn里面有两行数据rna,1,frnb,2,mrnrnawk 'FS=","print $1 $3' test.txtrn执行这行命令的结果是rna,1,frnbmrnrnrn请问大侠,为神马第一行木有变, 求解释rn
求大神~~解救
进程管理rn1.目的和要求rn加强对进程概念和进程状态转换的理解。rn2.实验内容rn包括:编写程序模拟进程的创建、运行、阻塞、唤醒、终止等过程。rn3.实验环境rn不限。Java、VC++、VB均可。rn4.实验提示rn1)假设内存最多可调入5个进程,即就绪队列中的进程数最多有5个。分别编写进程的创建、运行、阻塞、唤醒、终止等函数,在main函数中通过命令调用各函数,实现进程状态的转换。rn2)至少应包含3个队列,就绪队列、阻塞队列和完成队列,并且各队列随着进程的状态转换而呈动态变化,应能在屏幕上显示出队列的变换情况。此三个队列可用数据结构中的链表、队列或数组来实现。rn3)实验结果可显示的部分内容如下(仅供参考)。
c#编程代码求解救!!!
利用c#中的文本文件读写方法,开发一个简单记事本,要求能实现文件的新建、打开、编辑、保存、退出功能
电白求大神解救
注册表 HKEY_CURRENT_USER\Software\里面没有EPortCA是什么情况 然后strSeqon值没有内容
编译出错!求解救!
我用的VS2010,我在程序中注释掉了一些代码,之后又取消的注释,但是编译时就报错说程序中有很多没有定义过的变量即未声明标识符,我rebulid all 和删除dbug里的文件也不行,怎么办啊!
高手来解救!
小弟新人,不知道C能不能写出图形界面的软件?rn另外,学c要多久才能写出一个图形软件,比如象QQ.需要具备哪些知识呢?rn请大家详细一点哈!谢谢!
请教高手解救
这种布局怎么实现:一个界面同时显示两个ListView,点击列表1弹出右边的子列表![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/14.gif][/img]rn[img=https://img-bbs.csdn.net/upload/201307/11/1373555497_979591.jpg][/img]
有关Iptables高手解救
我在练习配置 iptables,rn一个局育网,有三台机子,每机子一块网卡,通过HUB相联,分别是rn192.168.0.1(LINUX+IPTABLES),rn192.168.0.2(WINDOWS+APACHE+80端口)rn192.168.0.3(机器任意)rnrnrn我现在想配置192.168.0.1的iptables,rn   使:192.168.0.1:80->192.168.0.2:80 相对应rnrn使的192.168.0.3的机子访问http://192.168.0.1/  ,实际上访问的是http://192.168.0.2,但看到的效果是一样的rnrnrn还有一种更复杂的情况如果高手能告诉配置就更好了,情况是跟上面类是,还是三台机器rnrn192.168.0.1(LINUX+IPTABLES),rn192.168.0.2(LINUX+IPTABLES+APACHE+80端口)rn192.168.0.3(机器任意)rnrn192.168.0.2只允许192.168.0.1访问,所有请求192.168.0.1的WEB服务都由192.168.0.1中转到192.168.0.2上rnrnrnrn还有个问题rn 172.16.0.0/32rn这个IP表示什么,前面表面网断,后面是网断内的最大机器32台么??
小问题,请高手解救??
TabbedNotebd控件在DELPHI哪个组件里面啊??
在线请高手解救
我第一次编程,尝试最简单的数据库。做了一个帮助数据库。可以用,我想实现向答复文档那样的层次结构,并有那种展开,折叠的三角形钮,如:rn1、rn 1)rn 2)rn2、rn 1)rn 2)rn 3)rn 看到别人的数据库程序可简单,就实现了。可是,我不知道如何做?别人只是在表单中,见了几个域,在视图中列中取这些域的值就可实现。没有使用答复公式。rn 请指点迷经!
HtmlUnit求解救
本人做HtmlUnit的时候遇到了一个问题,就三行代码,结果都编译不通过。rnrn代码如下:rnrnWebClient webClient=new WebClient();rnrnHtmlPage htmlPage=null;rnhtmlPage=webClient.getPage("http://wenku.baidu.com/album/view/ee33580216fc700abb68fc0c");rnrn求解,这是为何?!
求大神解救,正则表达式
【推荐】【六步】我的新娘在草原rnrn我要提取里面的中文出来,该怎么写正则表达式呢?rnrn就是要提取:【推荐】【六步】我的新娘在草原rn忘路过大神帮忙!!!
新人求解救!
rnrn rn rn rn rn rn rn rn rnrnrnrnrnrn这段代码。 就是想想绘制一条单纯直线,为什么就是,就是出不来, 只有一个框。。。
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview