spring 路径错误,求大神帮忙看看 [问题点数:40分]

Bbs1
本版专家分:0
结帖率 0%
大神帮忙 看看!!
Fatal error: Call to a member function recordcount() on a non-object in C:\Users\Administrator\Desktop\oecsm\Apache2\htdocs\classes\user.class.php on line 34rnrnrn项目更改数据库之后就报这个错!
大神帮忙,!看看
/* 题目:一球从100米高度自由落下,rn * 每次落地后反跳回原高度的一半;rn * 再落下,求它在 第N次落地时,共经过多少米?rn * 第N次反弹多高?(将处理写到方法中,rn * 并且方法需要带一个参数,该参数表示第N次落地)rn */import java.util.Scanner;rnpublic class Test3 rnrn rn public static double method(int k)rn rn double sum=100;rn double h=100;rn for(int i=1;i);rn int n=scanner.nextInt();rn double y=method(n);rn System.out.println(y);rnrn rn rn rn rn rn rnrn我的方案不行!求<em>大神</em><em>帮忙</em>!rn
大神帮忙看看
public static void main(String[] args)rn System.out.println(getFormatNum("0.000",1.2224));rn System.out.println(getFormatNum("0.000",1.2225));rn System.out.println(getFormatNum("0.000",1.2226));rn System.out.println(getFormatNum("0.000",0.2224));rn System.out.println(getFormatNum("0.000",0.2225));rn System.out.println(getFormatNum("0.000",0.2226));rn System.out.println(getFormatNum("0.000",2.4924));rn System.out.println(getFormatNum("0.000",2.4925));rn System.out.println(getFormatNum("0.000",2.4926));rn rn rn public static Double getFormatNum(String pattren,Double data)rn String reStr = "";rn reStr = new java.text.DecimalFormat(pattren).format(data); rn return Double.parseDouble(reStr);rn rn为什么执行结果会是rn1.222rn1.222rn1.223rn0.222rn0.223rn0.223rn2.492rn2.493rn2.493rn当个位为1时并没有按照四舍五入的规则执行
大神帮忙看看~
";rn $datanum = mysqli_num_rows($result);rn echo "共有".$totalnum."条留言,每页".$pagesize."条,共".$totalpage."页。 ";rn for( $i = 1; $i rnrnrnrnrnrnrnrnwamp报错:Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\wamp64\www\message\ceshi1.php on line 45rnrn $datanum = mysqli_num_rows($result);也就是这一行<em>错误</em>,跪求~
大神帮忙看看!!!
>>> a = [1, 2]rn>>> b = arn>>> print b.append(3)rnNonernrnrnrn我查看了 a 和b的id, 是一样的 rnprint b 也确实显示出 【1, 2】rnrn为什么 调用append()方法打印出来是None。rnrn是赋值只是把值赋值过去,列表的方法不能调用?
大神帮忙看看这个错误
0 0x105dbf342 __assert_rtn + 144n1 0x105dfa2c6 archive::File::makeObjectFileForMember(archive::File::Entry const*) const + 1138n2 0x105df9c74 archive::File::justInTimeforEachAtom(char const*, ld::File::AtomHandler&) const + 122n3 0x105e12a75 ld::tool::InputFiles::searchLibraries(char const*, bool, bool, bool, ld::File::AtomHandler&) const + 265n4 0x105e1bdb8 ld::tool::Resolver::resolveUndefines() + 160n5 0x105e1e117 ld::tool::Resolver::resolve() + 79n6 0x105dc0060 main + 812n7 0x7fff928705ad start + 1nA linker snapshot was created at:n /tmp/yuefei-2016-00-04-174524.ld-snapshotnld: Assertion failed: (memberIndex != 0), function makeObjectFileForMember, file /Library/Caches/com.apple.xbs/Sources/ld64/ld64-253.9/src/ld/parsers/archive_file.cpp, line 355.nclang: error: linker command failed with exit code 1 (use -v to see invocation)
sql建表错误,求大神帮忙看看
drop table if exists t_progress_display;nn/*==============================================================*/n/* Table: t_progress_display */n/*==============================================================*/ncreate table t_progress_displayn(n id national varchar(32) not null,n create_time datetime default NULL comment '创建时间',n create_user varchar(32) default NULL comment '创建人',n update_time datetime default NULL comment '修改时间',n update_user varchar(32) default NULL comment '修改人',n institutions varchar(32) comment '所属驻外机构',n prj_id national varchar(32) comment '工程编码',n prj_name varchar(512) comment '工程名称',n post_sub_name varchar(512) comment '分指',n part_name varchar(512) comment '标段',n Item_name national varchar(120) comment '分项名称',n finish_fact national int,n plan_prj national int,n unit national varchar(10) comment '工程量单位',n finish_month_f int comment '本月完成比例',n plan_prj_month int comment '本月计划',n total_start int comment '开工累计',n total_percent double comment '累计完成比例',n total_year int comment '本年累计',n plan_prj_year int comment '本年计划',n name national varchar(120) comment '名称',n plan_start_date date comment '计划开始日期',n plan_end_date date comment '计划结束时间',n start_date date comment '实际开始时间',n end_date date comment '实际结束时间',n state int default 0,n primary key (id)n);n![图片说明](https://img-ask.csdn.net/upload/201701/17/1484636558_705713.png)
大神帮忙看看错误在哪
use warnings;use strict;open(INFILE, &quot;/Users/lizeshuo/Desktop/test2.txt&quot;) ||   die &quot;Cannot open the newfile: $!\n&quot;;open(OUTFILE, &quot;&amp;gt;test3.txt&quot;) ||   die &quot;Cannot open the newfile: $!\n&quot;;my @a;while (...
大神帮忙看看,这个是什么错误
[code=text]07-26 18:13:19.311: E/StrictMode(13027): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.rn07-26 18:13:19.311: E/StrictMode(13027): java.lang.Throwable: Explicit termination method 'release' not calledrn07-26 18:13:19.311: E/StrictMode(13027): at dalvik.system.CloseGuard.open(CloseGuard.java:184)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.Surface.(Surface.java:294)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.SurfaceView.(SurfaceView.java:96)rn07-26 18:13:19.311: E/StrictMode(13027): at java.lang.reflect.Constructor.constructNative(Native Method)rn07-26 18:13:19.311: E/StrictMode(13027): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.LayoutInflater.createView(LayoutInflater.java:587)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:643)rn07-26 18:13:19.311: E/StrictMode(13027): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:66)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)rn07-26 18:13:19.311: E/StrictMode(13027): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)rn07-26 18:13:19.311: E/StrictMode(13027): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)rn07-26 18:13:19.311: E/StrictMode(13027): at android.app.Activity.setContentView(Activity.java:1881)rn07-26 18:13:19.311: E/StrictMode(13027): at com.thinkerx.kshow.zxing.MipcaActivityCapture.onCreate(MipcaActivityCapture.java:47)rn07-26 18:13:19.311: E/StrictMode(13027): at android.app.Activity.performCreate(Activity.java:5104)rn07-26 18:13:19.311: E/StrictMode(13027): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)rn07-26 18:13:19.311: E/StrictMode(13027): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)rn07-26 18:13:19.311: E/StrictMode(13027): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)rn07-26 18:13:19.311: E/StrictMode(13027): at android.app.ActivityThread.access$600(ActivityThread.java:141)rn07-26 18:13:19.311: E/StrictMode(13027): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)rn07-26 18:13:19.311: E/StrictMode(13027): at android.os.Handler.dispatchMessage(Handler.java:99)rn07-26 18:13:19.311: E/StrictMode(13027): at android.os.Looper.loop(Looper.java:137)rn07-26 18:13:19.311: E/StrictMode(13027): at android.app.ActivityThread.main(ActivityThread.java:5041)rn07-26 18:13:19.311: E/StrictMode(13027): at java.lang.reflect.Method.invokeNative(Native Method)rn07-26 18:13:19.311: E/StrictMode(13027): at java.lang.reflect.Method.invoke(Method.java:511)rn07-26 18:13:19.311: E/StrictMode(13027): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)rn07-26 18:13:19.311: E/StrictMode(13027): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)rn07-26 18:13:19.311: E/StrictMode(13027): at dalvik.system.NativeStart.main(Native Method)rn[/code]rnrn调用扫描二维码,从拍照界面返回到原来界面时,动一下就报错,求人<em>帮忙</em><em>看看</em>这个什么<em>错误</em>,为何在平板上报错,在我的手机上却能正常运行
大神帮忙看看 是哪里的错误
[img=https://img-bbs.csdn.net/upload/201511/18/1447814960_170082.png][/img]
java.lang.ClassNotFoundException: com.chat.common.User错误,求大神帮忙看看
public ChatServer()rn rn try rn System.out.println("我是服务器在8888监听...");rn ServerSocket ss=new ServerSocket(8888);rn while(true)rn rn Socket s=ss.accept();rn rn //接受客户发来的信息rn ObjectInputStream ois=new ObjectInputStream(s.getInputStream());rn //User u=(User)ois.readObject();rn Object o = ois.readObject();rn System.out.println(o.getClass());rn User u = (User) o;rn System.out.println("服务器接收到的ID:"+u.getUserId()+" 密码:"+u.getPasswd());rn Message m=new Message();rn ObjectOutputStream oos=new ObjectOutputStream(s.getOutputStream());rn if(u.getPasswd().equals("123456"))rn rn rn m.setMesType("1");rn oos.writeObject(m);rn rn elsern m.setMesType("2");rn oos.writeObject(m);rn //关闭连接rn s.close();rn rn rn rn rnrnrnpublic boolean sendLoginInfoToServer(Object o)rn rn boolean b=false;rn try rn System.out.println("正在连接...");rn Socket s=new Socket("127.0.0.1",8888);rn ObjectOutputStream oos=new ObjectOutputStream(s.getOutputStream());rn User u = (User) o;rn oos.writeObject(u);rn rn ObjectInputStream ois=new ObjectInputStream(s.getInputStream());rn rn Message ms=(Message)ois.readObject();rn if(ms.getMesType().equals("1"))rn rn b=true;rn rn rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn finallyrn rn rn return b;rn rnrnrnpublic class User implements Serializablern private static final long serialVersionUID = 511142319526449270L;rn private String userId;rn private String passwd;rn public String getUserId() rn return userId;rn rn public void setUserId(String userId) rn this.userId = userId;rn rn public String getPasswd() rn return passwd;rn rn public void setPasswd(String passwd) rn this.passwd = passwd;rn rnrnpublic class Message implements java.io.Serializablern rn private String mesType;rnrn public String getMesType() rn return mesType;rn rnrn public void setMesType(String mesType) rn this.mesType = mesType;rn rnrn调用rn private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) rn // TODO add your handling code here:rn System.out.println("OK");rn// new ChatFriendList();rn// this.dispose();rn if(evt.getSource()==jButton2)rn rn ChatClientUser chatClientUser=new ChatClientUser();rn User u=new User();rn u.setUserId(jTextField1.getText().trim());rn u.setPasswd(new String(jPasswordField1.getPassword()));rn //chatClientUser.checkUser(u);rn if(chatClientUser.checkUser(u))rn rn new ChatFriendList();rn //关闭登陆界面rn this.dispose();rn elsern JOptionPane.showMessageDialog(this,"用户名或密码<em>错误</em>!");rn rn rn rnrn<em>错误</em>rnjava.lang.ClassNotFoundException: com.chat.common.Userrn at java.net.URLClassLoader$1.run(URLClassLoader.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:247)rn at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)rn at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)rn at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)rn at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)rn at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)rn at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)rn at com.chat.server.model.ChatServer.(ChatServer.java:23)rn at com.chat.server.view.ServerFrame.jb1ActionPerformed(ServerFrame.java:75)rn at com.chat.server.view.ServerFrame.access$0(ServerFrame.java:71)rn at com.chat.server.view.ServerFrame$1.actionPerformed(ServerFrame.java:41)rn at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)rn at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)rn at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)rn at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)rn at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)rn at java.awt.Component.processMouseEvent(Component.java:6216)rn at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)rn at java.awt.Component.processEvent(Component.java:5981)rn at java.awt.Container.processEvent(Container.java:2041)rn at java.awt.Component.dispatchEventImpl(Component.java:4583)rn at java.awt.Container.dispatchEventImpl(Container.java:2099)rn at java.awt.Component.dispatchEvent(Component.java:4413)rn at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)rn at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)rn at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)rn at java.awt.Container.dispatchEventImpl(Container.java:2085)rn at java.awt.Window.dispatchEventImpl(Window.java:2475)rn at java.awt.Component.dispatchEvent(Component.java:4413)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)rn at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)rn at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)rn at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
大神看看错误原因!!!
程序类名叫LogCleanJob,我按照命令hadoop jar运行报错,网上说是classpath的问题,可是我的classpath没问题,jar包也都导入了![图片说明](https://img-ask.csdn.net/upload/201612/09/1481280991_365812.png)
spring log4j 求大神帮忙
遇到个问题 大概是这样的 rn 我用<em>spring</em>初始化 然后在进程里面使用脚本又启动了一个进程rnrn现在导致最原始的<em>spring</em>里面默认是使用log4j的rn而我新启动的进程里面也使用log4jrn导致写日志写不进去 请问能否把<em>spring</em>默认初始化的时候不让其去加载log4jrn
求各位大神帮忙看看
用c写的一个关于把视频转换成图片的程序,但是一直显示不出来,然后出现下面这个rn“delect.exe”: 已加载“E:\my projects\delect\Debug\delect.exe”,已加载符号。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\ntdll.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\kernel32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\KernelBase.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\system\highgui100.dll”,Cannot find or open the PDB filern“delect.exe”: 已加载“C:\Windows\system\cxcore100.dll”,Cannot find or open the PDB filern“delect.exe”: 已加载“C:\Windows\SysWOW64\user32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\gdi32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\lpk.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\usp10.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\msvcrt.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\advapi32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\sechost.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\rpcrt4.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\sspicli.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\cryptbase.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\system\libguide40.dll”,未使用调试信息生成二进制文件。rn“delect.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18837_none_ec86b8d6858ec0bc\comctl32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\avifil32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\winmm.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\ole32.dll”,已加载符号。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\msacm32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\msvfw32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\shell32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\shlwapi.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\avicap32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\version.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\msvcr100d.dll”,已加载符号。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\imm32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\msctf.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\uxtheme.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\clbcatq.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\oleaut32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\apphelp.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\SogouPY.ime”,Cannot find or open the PDB filern“delect.exe”: 已加载“C:\Windows\SysWOW64\msimg32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\ws2_32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\nsi.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\oleacc.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\ntmarta.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\Wldap32.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\dwmapi.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“E:\sougou\SogouInput\Components\PicFace\1.0.0.1272\PicFace.dll”,Cannot find or open the PDB filern“delect.exe”: 已加载“E:\sougou\SogouInput\7.5.0.5674\Resource.dll”,未使用调试信息生成二进制文件。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\profapi.dll”,已加载符号(去除源信息)。rn“delect.exe”: 已加载“C:\Windows\SysWOW64\psapi.dll”,已加载符号(去除源信息)。rn线程 'Win32 线程' (0xa08) 已退出,返回值为 0 (0x0)。rn线程 'Win32 线程' (0x29a0) 已退出,返回值为 0 (0x0)。rn线程 'Win32 线程' (0x16e4) 已退出,返回值为 0 (0x0)。rn线程 'Win32 线程' (0x24f4) 已退出,返回值为 0 (0x0)。rn线程 'Win32 线程' (0x2abc) 已退出,返回值为 0 (0x0)。rn程序“[9916] delect.exe: 本机”已退出,返回值为 0 (0x0)。rn
matlab 求大神帮忙看看
[img=https://img-bbs.csdn.net/upload/201804/21/1524307765_259653.png][/img]rnrn如何用matlab实现
大神帮忙看看内联汇编
有一个gcc下AT$T格式的内联汇编函数,就几行,要转到windows下masm格式的,实现的是rncompare-and-swap的一个基本操作,求<em>大神</em><em>帮忙</em><em>看看</em>,感激不尽!!rnrninline bool CAS(long *ptr, long oldv, long newv) rn rn unsigned char ret;rn /* Note that sete sets a 'byte' not the word */rn __asm__ __volatile__ ( // AT&T assemblyrn " lock\n"rn " cmpxchgq %2,%1\n"rn " sete %0\n"rn : "=q" (ret), "=m" (*ptr)rn : "r" (newv), "m" (*ptr), "a" (oldv)rn : "memory");rn return ret;rn rn
求各位大神帮忙看看~!
各位大哥好,我现在在一家五星级酒店实习,做系统维护工作。他们那个客房电脑系统是用的网吧的系统,现在就是老是出现卡频,自动死机重启,还有就是自动断网重启 ,我们让做系统的来看了的,他们说要限制那个上传和下载的速度。可是改了之后比以前还不如了,我们纠结了半天,都没有弄明白到底是哪里出问题了,哪位大哥能<em>帮忙</em>解决哈!
求高手,大神帮忙看看.....
我做一个struts2的下载,但是,弹不出保存的对话框,整了很久都没有效果,一看,才知道,[img=https://img-bbs.csdn.net/upload/201310/27/1382864710_718899.jpg][/img]rn就是Content-Disposition:返回为空。rnrn我的struts配置是:rnrn rn rn downloadFilern $mimeTypern attachment;filename="$fileName" rn 100000rn rnrnrn代码如下:rnpublic String getFileName()rn try rn return new String(fileName.getBytes(), "ISO8859-1");rn catch (UnsupportedEncodingException e) rn e.printStackTrace();rn return this.fileName;rn rnrnpublic void setFileName(String fileName) rn try rn this.fileName = new String(fileName.getBytes("ISO-8859-1"),"UTF-8");rn catch (UnsupportedEncodingException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rn public String download()rn mimeType = context.getMimeType(fileName);rn return "success";rn rn public InputStream getDownloadFile() throws UnsupportedEncodingExceptionrn rn String path = "/file/";rn // 取得目录文件流返回。rn inStream = context.getResourceAsStream(path+fileName);rn return inStream; rn rnrn求各位能给<em>看看</em>是什么情况,谢谢了。rnrnrn
大神进来帮忙看看
输入gsettings set com.canonical.Unity.launcher launcher-position Bottom 报错 怎么也调整不到下面。输入以上命令就出错
Spring的错误,高手帮忙看看
Lib文件中有Hbiernate3.0和Spring的Jar包,但是配置这样的Bean 的时候却抛出<em>错误</em>。弄不懂为什么还找不到类阿!!rn-------------------------------------rn rn rn rn rn rn rn net/xiaxin/dao/entity/User.hbm.xmlrn rn rn rn rn org.hibernate.dialect.Oracle9Dialectrn truern rn rn rnrn rn rn rn rn rn---------------------------------------------rnrnContext initialization failedrnorg.<em>spring</em>framework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/hibernateContext.xml]: Class that bean class [org.<em>spring</em>framework.orm.hibernate.HibernateTransactionManager] depends on not found; nested exception is java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateExceptionrnjava.lang.NoClassDefFoundError: net/sf/hibernate/HibernateExceptionrn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:217)rn
大神帮忙 诡异错误
我用keil编程 在proteus上仿真 一个串口的小程序 有个按键接到外部中断0 代码如下:rn#include rnrntypedef unsigned char uchar;rntypedef unsigned int uint;rnrn //数据输入按键rnrnbit start ; //编码开始标志rnrnrn/******INT0初始化函数******/rnvoid init_int0()rnrn EX0 = 1; //允许外部中断0rn IT0 = 1; //INT0低电平触发rn EA = 1; //允许总中断rnrnvoid delay1ms()rnrn uchar i,j;rn for(i=0;i0; j--);rnrnrnrn/******初始化串口******/rnvoid init_serial()rnrn SCON = 0x50; //SCON: serail mode 1, 8-bit UART, enable ucvrrn TMOD = (TMOD & 0x0f) | 0x20;rn PCON |= 0x80;rn TH1 = 0xFA; //Baud:9600 fosc=11.0592MHzrn TL1 = TH1;rnrn IE |= 0x90; //Enable Serial Interruptrn TR1 = 1; //timer 1 runrn rnrnrnvoid send_char(uchar ch) //向串口发送一个字符rnrn SBUF = ch;rn while(0 == TI);rn TI = 0;rnrnrnvoid send_string(uchar *str) rnrn while(*str)rn send_char(*str++);rn rnrnrn/******编码程序******/rnvoid encode()rn rn send_char(49);rn send_char(49);rn rnrn/******INT0中断服务程序******/rnvoid int0_isr() interrupt 0rn rn EX0 = 0;delay1ms(); delay1ms(); delay1ms();rn send_char(48);send_string("hello");rn delay1ms();delay1ms(); delay1ms(); start = 1;rnrnvoid main()rnrn init_serial();rn init_int0(); //初始化外部中断0rn while(1)rn if(1 == start)rn start = 0;rn rn EX0 = 1;rn rn rn rn rnrn但是如果我在rnif(1 == start)rn start = 0;rn rn EX0 = 1;rn rn rn中括号里加一句send_char(48);或者send_string("hello");按按键串口就只输出一次 再按没反应不输出了 而且send_string("hello");还会乱码 但是不加 程序运行完全正确
大神看看这个路径怎么回事?
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. rnrnError 404rnlocalhostrnApache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 rnrn在服务器上可以,但是在我本地上就报错了,代码没有修改。<em>路径</em>http://localhost/thinkphp/Admin/index.php?s=/tjarea/index/
关于spring错误帮忙
严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'testAction': Injection of resource methods failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'testService': Injection of resource methods failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'testDao': Injection of resource methods failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [application.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [application.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: com.bbs.model.User, at table: topic, for columns: [org.hibernate.mapping.Column(user)]rnat org.<em>spring</em>framework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:305)
帮忙看看错误,谢谢
A OpenFileDialog .hrn#ifndef OPENFILEDIALOG_Hrn#define OPENFILEDIALOG_Hrnrn#include rn#include "QFileDialog"rn#include "QString"rnrnclass OpenFileDialog : public QDialogrnrn Q_OBJECTrnrnpublic:rn OpenFileDialog(QWidget *parent = 0);rn ~OpenFileDialog();rn QString filename;rn;rnrn#endif // OPENFILEDIALOG_HrnrnB OpenFileDialog .cxxrn#include "OpenFileDialog.h"rn#include rn#include rnrnOpenFileDialog::OpenFileDialog(QWidget *parent): QDialog(parent)rn rn QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")) ;rn filename = QFileDialog::getOpenFileName(this,rn tr("选择文件"), rn "", rn tr("Files (*.txt)")); //选择<em>路径</em> rn if(filename.isEmpty()) rn rn return; rn rnrnrnrnOpenFileDialog::~OpenFileDialog()rnrnrnrnrn1 严重性 代码 说明 项目 文件 行 禁止显示状态rn<em>错误</em> LNK2019 无法解析的外部符号 "public: virtual __cdecl OpenFileDialog::~OpenFileDialog(void)" (??1OpenFileDialog@@UEAA@XZ),该符号在函数 "private: void __cdecl MainImageWindow::on_actionAddTransformInit_2_triggered(void)" (?on_actionAddTransformInit_2_triggered@MainImageWindow@@AEAAXXZ) 中被引用 ITK-SNAP E:\DeepIRT\DeepIRT2.0\SNAP3.6\itksnapui_qt.lib(MainImageWindow.obj) 1 rn2 严重性 代码 说明 项目 文件 行 禁止显示状态rn<em>错误</em> LNK2019 无法解析的外部符号 "public: __cdecl OpenFileDialog::OpenFileDialog(class QWidget *)" (??0OpenFileDialog@@QEAA@PEAVQWidget@@@Z),该符号在函数 "private: void __cdecl MainImageWindow::on_actionAddTransformInit_2_triggered(void)" (?on_actionAddTransformInit_2_triggered@MainImageWindow@@AEAAXXZ) 中被引用 ITK-SNAP E:\DeepIRT\DeepIRT2.0\SNAP3.6\itksnapui_qt.lib(MainImageWindow.obj) 1 rn3 严重性 代码 说明 项目 文件 行 禁止显示状态rn<em>错误</em> LNK1120 2 个无法解析的外部命令 ITK-SNAP E:\DeepIRT\DeepIRT2.0\SNAP3.6\Debug\ITK-SNAP.exe 1 rn
spring mvc demo运行失败,求大神帮忙看看~~~
web.xml:rn[code=text]rnrnrn Spring Web MVC Applicationrn rn rn contextConfigLocationrn /WEB-INF/<em>spring</em>-mvc-dispatcher-servlet.xmlrn rn rn rn <em>spring</em>-mvc-dispatcherrn org.<em>spring</em>framework.web.servlet.DispatcherServletrn 1rn rnrn rn <em>spring</em>-mvc-dispatcherrn /data/*rn rnrn rn org.<em>spring</em>framework.web.context.ContextLoaderListenerrn rnrn[/code]rnrnrn<em>spring</em>-mvc-dispatcher-servlet.xml:rn[code=text] rnrn rnrn rn rn rn rn rn rn rn rn rnrn rn rn rn text/html;charset=UTF-8rn application/json;charset=UTF-8rn application/xml;charset=UTF-8rn rn rn rn rn rnrn[/code]rnrn项目结构rn[img=https://img-bbs.csdn.net/upload/201403/08/1394288017_483858.jpg][/img]rnrn运行结果rn[img=https://img-bbs.csdn.net/upload/201403/08/1394288104_54512.jpg][/img]
急!求大神帮忙看看,struts和spring集成的问题
Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'productTypeServiceBean': Injection of persistence fields failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [file:/F:/学习软件/Tomcat%206.0/webapps/guanquan9/WEB-INF/classes/beans.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Cannot parse persistence unit from ServletContext resource [/META-INF/persistence.xml]rn at org.<em>spring</em>framework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:311)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:957)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)rn at org.<em>spring</em>framework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)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:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)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:578)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)rnCaused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [file:/F:/学习软件/Tomcat%206.0/webapps/guanquan9/WEB-INF/classes/beans.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Cannot parse persistence unit from ServletContext resource [/META-INF/persistence.xml]rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:308)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:297)rn at org.<em>spring</em>framework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:224)rn at org.<em>spring</em>framework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:503)rn at org.<em>spring</em>framework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:473)rn at org.<em>spring</em>framework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:598)rn at org.<em>spring</em>framework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:569)rn at org.<em>spring</em>framework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)rn at org.<em>spring</em>framework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)rn at org.<em>spring</em>framework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:308)rn ... 40 morernCaused by: java.lang.IllegalArgumentException: Cannot parse persistence unit from ServletContext resource [/META-INF/persistence.xml]rn at org.<em>spring</em>framework.orm.jpa.persistenceunit.PersistenceUnitReader.readPersistenceUnitInfos(PersistenceUnitReader.java:148)rn at org.<em>spring</em>framework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.readPersistenceUnitInfos(DefaultPersistenceUnitManager.java:294)rn at org.<em>spring</em>framework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.preparePersistenceUnitInfos(DefaultPersistenceUnitManager.java:266)rn at org.<em>spring</em>framework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.afterPropertiesSet(DefaultPersistenceUnitManager.java:251)rn at org.<em>spring</em>framework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:195)rn at org.<em>spring</em>framework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:273)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)rn ... 59 morernCaused by: java.io.FileNotFoundException: Could not open ServletContext resource [/META-INF/persistence.xml]rn at org.<em>spring</em>framework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:116)rn at org.<em>spring</em>framework.orm.jpa.persistenceunit.PersistenceUnitReader.readPersistenceUnitInfos(PersistenceUnitReader.java:136)rn ... 66 morernrn到底什么错,急死我了
spring 双数据源 mysql 类找不到 求大神帮忙看看
2012-4-14 22:15:04 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet JeeCmsFront threw exceptionrnorg.hibernate.MappingException: Unknown entity: cn.com.ivisions.sms.entity.SmgpApiMtrn at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:628)rn at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1366)rn at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:121)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)rn at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)rn at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)rn at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:563)rn at org.hibernate.impl.SessionImpl.save(SessionImpl.java:551)rn at org.hibernate.impl.SessionImpl.save(SessionImpl.java:547)rn at com.jeecms.common.hibernate3.HibernateBaseDao.save(HibernateBaseDao.java:200)rn at cn.com.ivisions.cms.manager.impl.IcSmsMtMngImpl.send(IcSmsMtMngImpl.java:22)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.<em>spring</em>framework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)rn at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)rn at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)rn at org.<em>spring</em>framework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)rn at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn at org.<em>spring</em>framework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)rn at $Proxy73.send(Unknown Source)rn at cn.com.ivisions.cms.action.front.SmsAct.validate(SmsAct.java:119)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.<em>spring</em>framework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)rn at org.<em>spring</em>framework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)rn at org.<em>spring</em>framework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)rn at org.<em>spring</em>framework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)rn at org.<em>spring</em>framework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.<em>spring</em>framework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.<em>spring</em>framework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.<em>spring</em>framework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.<em>spring</em>framework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.jeecms.common.web.ProcessTimeFilter.doFilter(ProcessTimeFilter.java:38)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rn
图像路径错误百思不得其解,求大神指点
我把之前一个项目的生成随机验证码的servlet复制到了一个新的项目里,然后这个图像就死活显示不出来了,我看了一下,应该没什么问题啊,而且我用原来的servlet再生成一个验证码也没有问题。后来我发现,请求根本没有传到现在项目里的servlet,这是为什么呢,求<em>大神</em>指点rnrnUsersManager是我现在的项目,checkcode是我原来的项目,checkcode能显示说明我的代码没问题啊,那是我<em>路径</em>哪里错了吗?rn[img=https://img-bbs.csdn.net/upload/201708/24/1503587341_63084.png][/img]rnrn这是我用servlet写的页面代码rn[img=https://img-bbs.csdn.net/upload/201708/24/1503587473_219900.png][/img]rnrn这是我的文件<em>路径</em>rn[img=https://img-bbs.csdn.net/upload/201708/24/1503587546_275495.png][/img]rn
Spring 整合mybatis 出现错误,求大神帮忙指点
2个项目,项目A打成jar包,引入到项目B中rn两个项目是可以正常运行访问的,但是把项目A打成jar包引入到项目中,启动就报以下<em>错误</em>:rnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.web.servlet.mvc.support.ControllerClassNameHandlerMapping#0' defined in URL [jar:file:/D:/workSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/app-enntry-web/WEB-INF/lib/eshore-khala-core-controller-1.0.0-SNAPSHOT.jar!/conf/<em>spring</em>/<em>spring</em>-mvc-pluginmgr.xml]: Initialization of bean failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'interfaceController': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: com.eshore.backframe.backend.service.IUserService com.eshore.appentry.InterfaceController.userService; nested exception is org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.eshore.backframe.backend.service.IUserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @org.<em>spring</em>framework.beans.factory.annotation.Autowired(required=true)rnrnCaused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: com.eshore.backframe.backend.service.IUserService com.eshore.appentry.InterfaceController.userService; nested exception is org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.eshore.backframe.backend.service.IUserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @org.<em>spring</em>framework.beans.factory.annotation.Autowired(required=true)rn at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:517)rn at org.<em>spring</em>framework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)rn at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)rn ... 47 morernCaused by: org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.eshore.backframe.backend.service.IUserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @org.<em>spring</em>framework.beans.factory.annotation.Autowired(required=true)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:993)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:863)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)rn at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)rn ... 49 morernrnrnorg.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.eshore.backframe.backend.service.IUserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @org.<em>spring</em>framework.beans.factory.annotation.Autowired(required=true)rnrn配置文件如下:rn<em>spring</em>-mvc.xml:rnrn rn rn rn rnrnapplicationContext.xml:rnrn rn rn rnrn两个配置文件的beans节点下面都设置了default-autowire="byName" default-lazy-init="true"rnrnrnrn网上找了很多类似的帖子都没解决,求各位<em>大神</em>指教以下,不甚感激
spring 3.1与hibernate4.1的错误大神帮忙解决
严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [<em>spring</em>.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Unable to read XMLrn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: org.hibernate.InvalidMappingException: Unable to read XMLrn at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:109)rn at org.hibernate.cfg.Configuration.add(Configuration.java:478)rn at org.hibernate.cfg.Configuration.add(Configuration.java:474)rn at org.hibernate.cfg.Configuration.add(Configuration.java:647)rn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:685)rn at org.<em>spring</em>framework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:272)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)rn ... 26 morernCaused by: org.dom4j.DocumentException: http://www.jboss.org/dtd/hibernate/hibernate-mapping-3.0.dtd%20 Nested exception: http://www.jboss.org/dtd/hibernate/hibernate-mapping-3.0.dtd%20rn at org.dom4j.io.SAXReader.read(SAXReader.java:484)rn at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:78)rn ... 33 morern2012-12-13 22:44:21 org.apache.catalina.core.StandardContext startInternalrn<em>spring</em>.xml中的配置rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.Oracle9Dialectrn rn rn rn rn rn com/entity/Inputer.hbm.xmlrn com/entity/Goodsspend.hbm.xmlrn com/entity/Admin.hbm.xmlrn com/entity/Goods.hbm.xmlrn com/entity/Workday.hbm.xmlrn com/entity/Intogoods.hbm.xmlrn com/entity/Employer.hbm.xmlrn com/entity/Goodssell.hbm.xmlrn com/entity/Employerwage.hbm.xmlrn
大神帮忙看看这是什么错误
07-24 10:22:16.461: E/AndroidRuntime(8394): FATAL EXCEPTION: mainrn07-24 10:22:16.461: E/AndroidRuntime(8394): Process: com.example.test, PID: 8394rn07-24 10:22:16.461: E/AndroidRuntime(8394): java.lang.RuntimeException: Unable to start activity ComponentInfocom.example.test/com.android.activity.FristActivity: android.content.res.Resources$NotFoundException: Resource ID #0x0rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2464)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2526)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread.access$800(ActivityThread.java:169)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.os.Handler.dispatchMessage(Handler.java:111)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.os.Looper.loop(Looper.java:194)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread.main(ActivityThread.java:5549)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at java.lang.reflect.Method.invoke(Native Method)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at java.lang.reflect.Method.invoke(Method.java:372)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)rn07-24 10:22:16.461: E/AndroidRuntime(8394): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.content.res.Resources.getValue(Resources.java:1442)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.content.res.MiuiResources.getValue(MiuiResources.java:145)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.content.res.Resources.loadXmlResourceParser(Resources.java:2903)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.content.res.Resources.getLayout(Resources.java:1222)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.view.LayoutInflater.inflate(LayoutInflater.java:416)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.view.LayoutInflater.inflate(LayoutInflater.java:365)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:400)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.Activity.setContentView(Activity.java:2168)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at com.android.activity.FristActivity.onCreate(FristActivity.java:20)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.Activity.performCreate(Activity.java:5975)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)rn07-24 10:22:16.461: E/AndroidRuntime(8394): ... 10 more
大神帮忙看看这是asm-jar错误
[code=java]严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListenerrnorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/E:/apache-tomcat-6.0.41/webapps/a/WEB-INF/classes/applicationContext-core.xml]: Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerErrorrn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:587)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)rn at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)rn at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)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:583)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:822)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: java.lang.ExceptionInInitializerErrorrn at org.<em>spring</em>framework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:277)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)rn ... 36 morernCaused by: java.lang.IllegalStateException: Expected method not found: java.lang.NoSuchMethodException: org.hibernate.cfg.Configuration.addAnnotatedClass(java.lang.Class)rn at org.<em>spring</em>framework.util.ClassUtils.getMethod(ClassUtils.java:638)rn at org.<em>spring</em>framework.orm.hibernate4.LocalSessionFactoryBuilder.(LocalSessionFactoryBuilder.java:79)rn ... 39 morern2014-7-21 16:44:47 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2014-7-21 16:44:47 org.apache.catalina.core.StandardContext startrn严重: Context [/a] startup failed due to previous errors[/code]rnrn[img=https://img-bbs.csdn.net/upload/201407/21/1405932373_86377.png][/img]
指针的引用传参错误大神帮忙看看
#include "stdio.h"rn#include "conio.h"rnrnmain()rn rn int * p1 = NULL;rn text(p1);rn printf("p1=%d\n",p1);rnrnrnvoid text(int * &p2) //这里winTC<em>错误</em>rnrn int a =1;rn *p2 = a;rn printf("p2=%d\n",p2);rnrnrn这样写对么,p1指向的值会因为p2指向a而改变么,定义函数text显示<em>错误</em>,不知道为什么
容器类Draw出现错误大神帮忙看看
模拟器上没有<em>错误</em>,真机上<em>错误</em>Bide 1。代码简介:rnclass TChatDatarn rn public: rn TBuf iChatTime;rn TBuf iChatData;rn TBuf iContactName;rn ;rnCArrayFixFlat* iChatDrawArray;rnDraw()函数里:rnTInt nMaxLenCount = iChatDrawArray->Count();rnfor(TInt i = 0; i < nMaxLenCount ; i++)rn rn point.iX = 13; rn TChatData chatdata;rn chatdata = iChatDrawArray->At(nMaxLenCount - i - 1); rn TBuf buf;rn buf.Copy(chatdata.iChatData);rn gc.DrawText(buf,point);rnrnrn在第一次界面初始化时给chatdata.iChatData赋超过17个字符的字符串,界面能直接画出来,但是刷新一下界面,就出现Bidi 1的<em>错误</em>,<em>大神</em>们<em>帮忙</em><em>看看</em>
java发送邮件503错误!!!急急急急,求各位大神帮忙看看
代码如下[code=java]rnsendEmail.java:rnpackage test;rnrnimport java.util.Date;rnimport java.util.Properties;rnrnimport javax.mail.Authenticator;rnimport javax.mail.Message;rnimport javax.mail.MessagingException;rnimport javax.mail.PasswordAuthentication;rnimport javax.mail.Session;rnimport javax.mail.Transport;rnimport javax.mail.internet.InternetAddress;rnimport javax.mail.internet.MimeMessage;rnrnrnrnpublic class SendEmail rn public static final String HOST = "smtp.qq.com"; rn public static final String PROTOCOL = "smtp"; rn public static final int PORT = 25; rn public static final String FROM = "123456789@qq.com";//发件人的email ,由于个人邮箱,修改了,自己测试时用的是自己的正确的邮箱密码rn public static final String PWD = "123456";//发件人密码 rn rn /** rn * 获取Session rn * @return rn */ rn private static Session getSession() rn Properties props = new Properties(); rn props.put("mail.smtp.host", HOST);//设置服务器地址 rn props.put("mail.store.protocol" , PROTOCOL);//设置协议 rn props.put("mail.smtp.port", PORT);//设置端口 rn props.put("mail.smtp.auth" , true); rn rn Authenticator authenticator = new Authenticator() rn rn @Override rn protected PasswordAuthentication getPasswordAuthentication() rn return new PasswordAuthentication(FROM, PWD); rn rn rn ; rn Session session = Session.getDefaultInstance(props , authenticator); rn rn return session; rn rn rn public static void send(String toEmail , String content) rn Session session = getSession(); rn try rn System.out.println("--send--"+content); rn // Instantiate a message rn Message msg = new MimeMessage(session); rn rn //Set message attributes rn msg.setFrom(new InternetAddress(FROM)); rn InternetAddress[] address = new InternetAddress(toEmail); rn msg.setRecipients(Message.RecipientType.TO, address); rn msg.setSubject("账号激活邮件"); rn msg.setSentDate(new Date()); rn msg.setContent(content , "text/html;charset=utf-8"); rn rn //Send the message rn Transport.send(msg); rn Transport tran = session.getTransport("smtp"); // 通过SMTP效验用户,密码等进行连接rn tran.connect(HOST, FROM, PWD);rn tran.sendMessage(msg, msg.getAllRecipients());rn rn catch (MessagingException mex) rn mex.printStackTrace(); rn rn rn rn rnrnrnrn[/code]rnrnrnregistervalidateService.java:[code=java]rnpackage test.service;rnrnimport java.util.Date;rnrnimport javax.annotation.Resource;rnimport javax.mail.internet.ParseException;rnrnimport org.<em>spring</em>framework.stereotype.Service;rnrnimport test.MD5Util;rnimport test.SendEmail;rnimport test.ServiceException;rnimport test.dao.UserDAO;rnimport test.entity.UserModel;rnrn@Servicernpublic class RegisterValidateService rn @Resource(name="userDAO")rn private UserDAO userDAO;rn /** rn * 处理注册 rn */ rn rn public void processregister(String email) rn UserModel user=new UserModel(); rn user.setId(1);rn user.setName("xiaoming");rn user.setPassword("324545");rn user.setEmail(email); rn user.setRegisterTime(new Date()); rn user.setStatus(0); rn //如果处于安全,可以将激活码处理的更复杂点,这里稍做简单处理 rn user.setValidateCode(MD5Util.encode2hex(email)); rn System.out.println(user); rn userDAO.save(user);//保存注册信息 rn System.out.println("************************************");rn ///邮件的内容 rn StringBuffer sb=new StringBuffer("点击下面链接激活账号,48小时生效,否则重新注册账号,链接只能使用一次,请尽快激活! "); rn sb.append("http://localhost:8080/email-test/user/register?action=activate&email="); rn sb.append(email); rn sb.append("&validateCode="); rn sb.append(user.getValidateCode()); rn sb.append(""); rn rn //发送邮件 rn SendEmail.send(email, sb.toString()); rn System.out.println("发送邮件"); rn rn rn rn /** rn * 处理激活 rn * @throws ParseException rn */ rn //传递激活码和email过来 rn public void processActivate(String email , String validateCode)throws ServiceException, ParseException rn //数据访问层,通过email获取用户信息 rn UserModel user=userDAO.findByEmail(email); rn //验证用户是否存在 rn if(user!=null) rn //验证用户激活状态 rn if(user.getStatus()==0) rn ///没激活 rn Date currentTime = new Date();//获取当前时间 rn //验证链接是否过期 rn currentTime.before(user.getRegisterTime()); rn if(currentTime.before(user.getLastActivateTime())) rn //验证激活码是否正确 rn if(validateCode.equals(user.getValidateCode())) rn //激活成功, //并更新用户的激活状态,为已激活 rn System.out.println("==sq==="+user.getStatus()); rn user.setStatus(1);//把状态改为激活 rn System.out.println("==sh==="+user.getStatus()); rn userDAO.update(user); rn else rn throw new ServiceException("激活码不正确"); rn rn else throw new ServiceException("激活码已过期!"); rn rn else rn throw new ServiceException("邮箱已激活,请登录!"); rn rn else rn throw new ServiceException("该邮箱未注册(邮箱地址不存在)!"); rn rn rn rnrnrn[/code]rnregisterController.java:rn[code=java]rnpackage test.controller;rnrnimport javax.annotation.Resource;rnimport javax.mail.internet.ParseException;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnimport org.<em>spring</em>framework.stereotype.Controller;rnimport org.<em>spring</em>framework.web.bind.annotation.RequestMapping;rnimport org.<em>spring</em>framework.web.bind.annotation.RequestMethod;rnimport org.<em>spring</em>framework.web.servlet.ModelAndView;rnrnimport test.ServiceException;rnimport test.service.RegisterValidateService;rnrn@Controllerrnpublic class RegisterController rn @Resource rn private RegisterValidateService service; rn rn @RequestMapping(value="/user/register",method=RequestMethod.GET,RequestMethod.POST) rn public ModelAndView load(HttpServletRequest request,HttpServletResponse response) throws ParseException rn String action = request.getParameter("action");rn rn System.out.println("-----r----"+action); rn ModelAndView mav=new ModelAndView(); rn rn if("register".equals(action)) rn //注册 rn String email = request.getParameter("email"); rn System.out.println(email);rn service.processregister(email);//发邮箱激活 rn mav.addObject("text","注册成功"); rn mav.setViewName("register/register_success"); rn rn else if("activate".equals(action)) rn //激活 rn String email = request.getParameter("email");//获取email rn String validateCode = request.getParameter("validateCode");//激活码 rn rn try rn service.processActivate(email , validateCode);//调用激活方法 rn mav.setViewName("register/activate_success"); rn catch (ServiceException e) rn request.setAttribute("message" , e.getMessage()); rn mav.setViewName("register/activate_failure"); rn rn rn rn return mav; rn rnrnrn[/code]rnrnrnrn出现<em>错误</em>:[code=java]rnrncom.sun.mail.smtp.SMTPSendFailedException: 503 Error: need EHLO and AUTH first !rnrn at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)rn at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)rn at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)rn at javax.mail.Transport.send0(Transport.java:169)rn at javax.mail.Transport.send(Transport.java:98)rn at test.SendEmail.send(SendEmail.java:64)rn at test.service.RegisterValidateService.processregister(RegisterValidateService.java:50)rn at test.controller.RegisterController.load(RegisterController.java:32)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.<em>spring</em>framework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)rn at org.<em>spring</em>framework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.<em>spring</em>framework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)rn at org.<em>spring</em>framework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)rn at org.<em>spring</em>framework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)rn at org.<em>spring</em>framework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn rnrn[/code]
大神帮忙看看,为啥老是验证码错误
[img=https://img-bbs.csdn.net/upload/201404/07/1396857945_51460.jpg][/img]rnrnrnrn代码在这[url=http://pan.baidu.com/s/1eQuwc18][/url]
共享栈的时候出现的错误,求大神帮忙看看什么原因
[img=https://img-bbs.csdn.net/upload/201506/03/1433321951_691596.png][/img]rn出现<em>错误</em>程序段如下:rnint PopStack(SSeqStack *S,DataType *e,int flag)rn //将栈顶元素出栈,flag为1,左栈顶元素出栈,并令栈顶指针减1,flag为2,右栈顶元素出栈,令指针加1.rn //最后返回1表示出栈成功,返回0表示出栈失败rnrn rn switch(flag)rn rn case 1:rn if(S->top[0]==0)rn return 0;rn S->top[0]--;rn *e=S->stack[S->top[0]];rn break;rn case 2:rn if(S->top[1]==StackSize-1)rn return 0;rn S->top[1]++;rn// *e=(DataType)malloc(sizeof(DataType)); 在此处出现<em>错误</em>,<em>错误</em>提示如上图,强制加了开辟物理 *e=S->stack[S->top[2]]; 地址后还是<em>错误</em>rn break;rn default:rn return 0;rn rn return 1;rn
提示:“System.Net.ServicePointManager.CertificatePolicy”已过时,错误,求大神帮忙看看
我要做网页的CAS单点登录的集成,按原文件编写如下,但是提示<em>错误</em>,求<em>大神</em><em>帮忙</em>改正。代码如下:rnrnusing System;rnusing System.Data;rnusing System.Data.OleDb;rnusing System.Data.SqlClient;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnusing System.Web.UI.Adapters;rnusing System.IO;rnusing System.Xml;rnusing System.Net;rnusing System.Security.Cryptography.X509Certificates;rnrnpublic partial class login : System.Web.UI.Pagernrn // Local specific CAS hostrn private const string CASHOST = "http://192.168.191.1:38080/cas/";rnrn protected void Page_Load(object sender, EventArgs e)rn rn System.Net.ServicePointManager.CertificatePolicy = new MyPolicy();rnrn // Look for the "ticket=" after the "?" in the URLrn string tkt = Request.QueryString["ticket"];rnrn // This page is the CAS service=, but discard any query string residuern string service = Request.Url.GetLeftPart(UriPartial.Path);rnrn // First time through there is no ticket=, so redirect to CAS loginrn if (tkt == null || tkt.Length == 0)rn rn string redir = CASHOST + "login?" +rn "service=" + service;rn Response.Redirect(redir);rn return;rn rnrn // Second time (back from CAS) there is a ticket= to validatern string validateurl = CASHOST + "serviceValidate?" +rn "ticket=" + tkt + "&" +rn "service=" + service;rn StreamReader Reader = new StreamReader(new WebClient().OpenRead(validateurl));rn string resp = Reader.ReadToEnd();rn // I like to have the text in memory for debugging rather than parsing the streamrnrn // Some boilerplate to set up the parse.rn NameTable nt = new NameTable();rn XmlNamespaceManager nsmgr = new XmlNamespaceManager(nt);rn XmlParserContext context = new XmlParserContext(null, nsmgr, null, XmlSpace.None);rn XmlTextReader reader = new XmlTextReader(resp, XmlNodeType.Element, context);rnrn string netid = null;rnrnrn rn // A very dumb use of XML. Just scan for the "user". If it isn't there, its an error.rn while (reader.Read())rn rn if (reader.IsStartElement())rn rn string tag = reader.LocalName;rn if (tag == "user")rn netid = reader.ReadString();rnrn rnrnrn rn rn // if you want to parse the proxy chain, just add the logic abovern reader.Close();rn // If there was a problem, leave the message on the screen. Otherwise, return to original page.rn if (netid == null)rn rn Label1.Text = "CAS returned to this application, but then refused to validate your identity.";rn rn elsern rn if (!Page.IsPostBack)rn rn SqlConnection myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["DTDC"].ConnectionString);rn myConnection.Open();rn string cmd_text = "SELECT * from 学生 where 标准学号='" + netid + "'";rn string cmd_text01="SELECT * from 教师 where 标准工号='" + netid + "'";rn SqlDataReader datar;rn SqlCommand mycommand = new SqlCommand(cmd_text, myConnection);rn SqlCommand mycommand01 = new SqlCommand(cmd_text01, myConnection);rn datar = mycommand.ExecuteReader();rn while (datar.Read())rn rn if (datar != null) rn Session.Add("身份", null);rn Session["身份"] = "学生";rn Response.Redirect ("~/index_student.aspx");rn else rn datar =mycommand01.ExecuteReader();rn if (datar != null)rn rn Session["身份"] = "教师";rn Response.Redirect("~/index_teacher.aspx");rn rn else rn Response.Redirect("~/index.aspx");rn rn rn rn rnrn rnrn myConnection.Close();rnrn rnrn rn Response.Write("连接成功");rn rn rn rnrnpublic class MyPolicy : ICertificatePolicyrnrn public bool CheckValidationResult(rn ServicePoint srvPointrn , X509Certificate certificatern , WebRequest requestrn , int certificateProblem)rn rnrn //Return True to force the certificate to be accepted.rn return true;rnrn // end CheckValidationResultrn // class MyPolicyrn
大神帮忙看看运行maven install错误怎么解决
[code=java][ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: 1 problem was encountered while building the effective model for org.apache.maven.plugins:maven-clean-plugin:2.5rn[ERROR] [FATAL] Non-parseable POM C:\Users\lenovo\.m2\repository\org\apache\maven\maven-parent\21\maven-parent-21.pom: entity reference names can not start with character '&' (position: START_TAG seen ...Firefox\') > -1; var isSafari = userAgent.indexOf(\'Safari\') > -1 &&... @3:114) @ C:\Users\lenovo\.m2\repository\org\apache\maven\maven-parent\21\maven-parent-21.pom, line 3, column 114[/code]rn如题 感觉好像是maven版本不对啊
VC++导入MSWORD.OLB后的一些错误,求大神帮忙看看
问题是这样的,想实现一个vc操作word文档的一个小功能,然后去看了看教程,但是第一步就跨不过去了.rn首先:rn 使用类向导添加一个类型库中的MFC类,然后打开文件:"C:\Program Files (x86)\Microsoft Office\Office14\MSWORD.OLB"如图所示rn[img=https://img-bbs.csdn.net/upload/201607/02/1467468487_68349.png][/img]rnrn导入所有类点击完成后,类视图这里生成了很多类,如下图:rn[img=https://img-bbs.csdn.net/upload/201607/02/1467468507_34653.png][/img]rnrn然后自己新建一个类,在类里写入如下代码,编译器就开始报错rn[img=https://img-bbs.csdn.net/upload/201607/02/1467468527_132651.png][/img]rn/********************************************************************************************/rn[img=https://img-bbs.csdn.net/upload/201607/02/1467468546_745125.png][/img]rn/********************************************************************************************/rn[img=https://img-bbs.csdn.net/upload/201607/02/1467468557_280831.png][/img]rnrn在网上查了很多例子都没涉及到这个问题,所以不知道如何解决了.请求<em>大神</em>们<em>帮忙</em>!rnrnhttp://jingyan.baidu.com/article/2f9b480db690e741cb6cc29b.html 这里是教程链接,查找了许多类似教程都没涉及到这个问题.rn顺带一提 我的环境 Windows10/vs2015/office2010rnrn然后下面是一些我搜出来的一些资料 似乎都未能解决问题rnhttp://bbs.csdn.net/topics/390886808rnhttp://www.cr173.com/html/4229_1.html
Java程序运行出现错误,求大神帮忙看看怎么回事
![![图片说明](https://img-ask.csdn.net/upload/201608/03/1470215560_418478.png)图片说明](https://img-ask.csdn.net/upload/201608/03/1470215491_435811.png)
eclipse导入文件后好多错误,求大神帮忙看看
[img=https://img-bbs.csdn.net/upload/201804/25/1524619805_99110.png][/img][img=https://img-bbs.csdn.net/upload/201804/25/1524619815_689928.png][/img][img=https://img-bbs.csdn.net/upload/201804/25/1524619294_52116.png][/img][img=https://img-bbs.csdn.net/upload/201804/25/1524619835_800471.png][/img][img=https://img-bbs.csdn.net/upload/201804/25/1524619844_502154.png][/img]
Spring MVC问题,求大神进来看看
页面显示正常,但是控制台报错,实在不解,求<em>大神</em><em>看看</em>rnrncontroller:rn[code=java]rn@RequestMapping("/id","/id/")rn public String index(@PathVariable String id,HttpSession session,Model model)rn User user = userService.getTemplate().selectOne("User.selectByIdOrDomain", id);rn if(user == null)rn return "error/404";rn rn return "home/home";rn rn[/code]rnrn报错:rn[code=java]rn[WARNING] /favicon.icornjavax.servlet.ServletException: Could not resolve view with name 'error/404' in servlet with name 'artvoi-web'rn at org.<em>spring</em>framework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1162)rn at org.<em>spring</em>framework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)rn at org.<em>spring</em>framework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)rn at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)rn at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)rn at com.artvoi.web.filter.XssFilter.doFilter(XssFilter.java:25)rn at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)rn at org.<em>spring</em>framework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.<em>spring</em>framework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)rn at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)rn at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)rn at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)rn at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)rn at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)rn at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)rn at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)rn at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)rn at org.mortbay.jetty.Server.handle(Server.java:326)rn at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)rn at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)rn at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)rn at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)rn at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)rn at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)rn at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)rn[/code]rnrn页面一切正常
路径问题,求大神
java.lang.RuntimeException: org.dom4j.DocumentException: E:\myeclipse\MyEclipse%2010\Workspaces\MyEclipse%2010\day09_user\WebRoot\WEB-INF\classes\users.xml (系统找不到指定的<em>路径</em>。) Nested exception: E:\myeclipse\MyEclipse%2010\Workspaces\MyEclipse%2010\day09_user\WebRoot\WEB-INF\classes\users.xml (系统找不到指定的<em>路径</em>。)rn上面找到的<em>路径</em>与实际的<em>路径</em>(E:\myeclipse\MyEclipse 10\Workspaces\MyEclipse 10\day09_user\src\users.xml)不一致,怎么办?rnrn代码是:[code=java]package cn.itcast.utils;rnrnimport java.io.File;rnimport java.io.FileNotFoundException;rnimport java.io.FileOutputStream;rnimport java.io.IOException;rnimport java.net.URL;rnrnimport org.dom4j.Document;rnimport org.dom4j.DocumentException;rnimport org.dom4j.io.OutputFormat;rnimport org.dom4j.io.SAXReader;rnimport org.dom4j.io.XMLWriter;rnrnpublic class XmlUtils rn private static String filename="users.xml";rn rn public static Document getDocument() throws DocumentExceptionrn URL url=XmlUtils.class.getClassLoader().getResource(filename);rn String path=url.getPath();rn rn SAXReader reader = new SAXReader();rn Document document = reader.read(new File(path));rn return document;rn [/code]
求助!!!!!Sybase恢复数据错误!!!!求大神看看!!!
原数据库win Service2008上运行备份下来的,具体版本忘记了,也是通过客户端备份的rn恢复数据库在64位win7上的32位15.03rnrn[img=https://img-bbs.csdn.net/upload/201410/19/1413728856_931652.jpg][/img]rnrn页大小设置成4krn已经把空间调到足够大了rnrn跪求<em>大神</em>解答!谢谢!!!!!!!!!!!
make 时出错误~求大神看看
编译git clone git://git.linphone.org/msx264.gitrnrn./configure -prefix=/usr --enable-shared --disable-staticrn[code=c]rn$ ./configure -prefix=/usr --enable-shared --disable-staticrnchecking for a BSD-compatible install... /bin/install -crnchecking whether build environment is sane... yesrnchecking for a thread-safe mkdir -p... /bin/mkdir -prnchecking for gawk... gawkrnchecking whether make sets $(MAKE)... yesrnchecking how to create a ustar tar archive... gnutarrnchecking build system type... i686-pc-mingw32rnchecking host system type... i686-pc-mingw32rnchecking target system type... i686-pc-mingw32rnchecking warning make an error on compilation... checking for gcc... gccrnchecking whether the C compiler works... yesrnchecking for C compiler default output file name... a.exernchecking for suffix of executables... .exernchecking whether we are cross compiling... nornchecking for suffix of object files... ornchecking whether we are using the GNU C compiler... yesrnchecking whether gcc accepts -g... yesrnchecking for gcc option to accept ISO C89... none neededrnchecking for style of include used by make... GNUrnchecking dependency style of gcc... gcc3rnchecking for as... asrnchecking for dlltool... dlltoolrnchecking for objdump... objdumprnchecking how to print strings... printfrnchecking for a sed that does not truncate output... /bin/sedrnchecking for grep that handles long lines and -e... /bin/greprnchecking for egrep... /bin/grep -Ernchecking for fgrep... /bin/grep -Frnchecking for ld used by gcc... c:/mingw/mingw32/bin/ld.exernchecking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yesrnchecking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nmrnchecking the name lister (/mingw/bin/nm) interface... BSD nmrnchecking whether ln -s works... no, using cp -prnchecking the maximum length of command line arguments... 8192rnchecking whether the shell understands some XSI constructs... yesrnchecking whether the shell understands "+="... yesrnchecking how to convert i686-pc-mingw32 file names to i686-pc-mingw32 format...rnfunc_convert_file_msys_to_w32rnchecking how to convert i686-pc-mingw32 file names to toolchain format... func_crnonvert_file_msys_to_w32rnchecking for c:/mingw/mingw32/bin/ld.exe option to reload object files... -rrnchecking for objdump... (cached) objdumprnchecking how to recognize dependent libraries... file_magic ^x86 archive import|rn^x86 DLLrnchecking for dlltool... (cached) dlltoolrnchecking how to associate runtime and link libraries... func_cygming_dll_for_imprnlibrnchecking for ar... arrnchecking for archiver @FILE support... @rnchecking for strip... striprnchecking for ranlib... ranlibrnchecking command to parse /mingw/bin/nm output from gcc object... okrnchecking for sysroot... nornchecking for mt... nornchecking if : is a manifest tool... nornchecking how to run the C preprocessor... gcc -Ernchecking for ANSI C header files... yesrnchecking for sys/types.h... yesrnchecking for sys/stat.h... yesrnchecking for stdlib.h... yesrnchecking for string.h... yesrnchecking for memory.h... yesrnchecking for strings.h... yesrnchecking for inttypes.h... yesrnchecking for stdint.h... yesrnchecking for unistd.h... yesrnchecking for dlfcn.h... nornchecking for objdir... .libsrnchecking if gcc supports -fno-rtti -fno-exceptions... nornchecking for gcc option to produce PIC... -DDLL_EXPORT -DPICrnchecking if gcc PIC flag -DDLL_EXPORT -DPIC works... yesrnchecking if gcc static flag -static works... yesrnchecking if gcc supports -c -o file.o... yesrnchecking if gcc supports -c -o file.o... (cached) yesrnchecking whether the gcc linker (c:/mingw/mingw32/bin/ld.exe) supports shared lirnbraries... yesrnchecking whether -lc should be explicitly linked in... yesrnchecking dynamic linker characteristics... Win32 ld.exernchecking how to hardcode library paths into programs... immediaternchecking whether stripping libraries is possible... yesrnchecking if libtool supports shared libraries... yesrnchecking whether to build shared libraries... yesrnchecking whether to build static libraries... nornchecking for ANSI C header files... (cached) yesrnchecking for an ANSI C-conforming const... yesrnchecking for inline... inlinernchecking whether time.h and sys/time.h may both be included... yesrnchecking whether byte ordering is bigendian... nornchecking for pkg-config... /usr/local/bin/pkg-configrnchecking pkg-config is at least version 0.9.0... yesrnchecking for MEDIASTREAMER... yesrnchecking for X264... yesrnchecking for epm... falsernchecking for mkepmlist... falsernchecking for epminstall... falsernconfigure: creating ./config.statusrnconfig.status: creating Makefilernconfig.status: creating build/Makefilernconfig.status: creating build/vs/Makefilernconfig.status: creating src/Makefilernconfig.status: creating msx264.issrnconfig.status: creating msx264.specrnconfig.status: creating config.hrnconfig.status: config.h is unchangedrnconfig.status: executing depfiles commandsrnconfig.status: executing libtool commandsrnconfig.status: executing libtool-hacking commandsrnconfig.status: Hacking libtool to work with mingw...rn[/code]rnrn[code=c]rnrnrn[color=#FF0000]$ make[/color]rnmake all-recursivernmake[1]: Entering directory `/c/msx264'rnMaking all in srcrnmake[2]: Entering directory `/c/msx264/src'rn/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_rnREENTRANT -DORTP_INET6 -IC:/MinGW/msys/1.0/include -I/usr/include/srtp -IC:/MinrnGW/msys/1.0/include -g -O2 -Wall -Werror -MT msx264.lo -MD -MP -MF .deps/msx26rn4.Tpo -c -o msx264.lo msx264.crnlibtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DORTP_INET6 -IC:/MrninGW/msys/1.0/include -I/usr/include/srtp -IC:/MinGW/msys/1.0/include -g -O2 -Warnll -Werror -MT msx264.lo -MD -MP -MF .deps/msx264.Tpo -c msx264.c -DDLL_EXPORTrn-DPIC -o .libs/msx264.ornmsx264.c:58:2: error: initialization makes pointer from integer without a cast [rn-Werror]rnmsx264.c:58:2: error: (near initialization for 'x264_conf_list[0].extra') [-Werrrnor]rnmsx264.c:58:2: error: excess elements in struct initializer [-Werror]rnmsx264.c:58:2: error: (near initialization for 'x264_conf_list[0]') [-Werror]rnmsx264.c:59:2: error: initialization makes pointer from integer without a cast [rn-Werror]rnmsx264.c:59:2: error: (near initialization for 'x264_conf_list[1].extra') [-Werrrnor]rnmsx264.c:59:2: error: excess elements in struct initializer [-Werror]rnmsx264.c:59:2: error: (near initialization for 'x264_conf_list[1]') [-Werror]rnmsx264.c:60:2: error: initialization makes pointer from integer without a cast [rn-Werror]rnmsx264.c:60:2: error: (near initialization for 'x264_conf_list[2].extra') [-Werrrnor]rnmsx264.c:60:2: error: excess elements in struct initializer [-Werror]rnmsx264.c:60:2: error: (near initialization for 'x264_conf_list[2]') [-Werror]rnmsx264.c:61:2: error: initialization makes pointer from integer without a cast [rn-Werror]rnmsx264.c:61:2: error: (near initialization for 'x264_conf_list[3].extra') [-Werrrnor]rnmsx264.c:61:2: error: excess elements in struct initializer [-Werror]rnmsx264.c:61:2: error: (near initialization for 'x264_conf_list[3]') [-Werror]rnmsx264.c:62:2: error: initialization makes pointer from integer without a cast [rn-Werror]rnmsx264.c:62:2: error: (near initialization for 'x264_conf_list[4].extra') [-Werrrnor]rnmsx264.c:62:2: error: excess elements in struct initializer [-Werror]rnmsx264.c:62:2: error: (near initialization for 'x264_conf_list[4]') [-Werror]rnmsx264.c:63:2: error: initialization makes pointer from integer without a cast [rn-Werror]rnmsx264.c:63:2: error: (near initialization for 'x264_conf_list[5].extra') [-Werrrnor]rnmsx264.c:63:2: error: excess elements in struct initializer [-Werror]rnmsx264.c:63:2: error: (near initialization for 'x264_conf_list[5]') [-Werror]rnmsx264.c:64:2: error: initialization makes pointer from integer without a cast [rnrn。。。。。。。。。。。。。。。。。。。。。。。。。rn[/code]
大神看看八皇后问题的逻辑错误。。。
八皇后问题 遍历的二维数组[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/10.gif][/img]rn[code=java]public class No6_20 rn public static void main(String[] args)rn int [][] a=new int[8][8];rn boolean key=true;rn int m1=3,n1=1,count=0;rn dorn count=0;rn for(int n=0;n<8;m++)rn if(((n+m)==(x+y)&&(a[n][m]==1))||((m-n)==(y-x)&&a[n][m]==1))rn return false;rn rn rn return true;rn rnrn[/code]
Spring结合JUnit测试报错,求大神帮忙下。。。
log4j:ERROR Could not find value for key log4j.appender.FATALrnlog4j:ERROR Could not instantiate appender named "FATAL".rn[2017-03-30 10:54:05,236] [ INFO] TestContextManager - @TestExecutionListeners is not present for class [class sodocus.dao.comptest.CompTest]: using defaults.rn[2017-03-30 10:54:05,460] [ INFO] XmlBeanDefinitionReader - Loading XML bean definitions from URL [file:/E:/workspace/ditop/ditop_qh_cloud/webapps/ROOT/WEB-INF/classes/applicationContext.xml]rn[2017-03-30 10:54:08,692] [ INFO] GenericApplicationContext - Refreshing org.<em>spring</em>framework.context.support.GenericApplicationContext@60413157: startup date [Thu Mar 30 10:54:08 CST 2017]; root of context hierarchyrn[2017-03-30 10:54:11,738] [ INFO] PropertyPlaceholderConfigurer - Loading properties file from class path resource [jdbc.properties]rn[2017-03-30 10:54:12,017] [ERROR] TestContextManager - Caught exception while allowing TestExecutionListener [org.<em>spring</em>framework.test.context.support.DependencyInjectionTestExecutionListener@5dbf4fca] to prepare test instance [sodocus.dao.comptest.CompTest@3b0f86db]rnjava.lang.IllegalStateException: Failed to load ApplicationContext
spring MVC的问题,求大神帮忙啊!!!
给出web.xml dispatcher-servlet.xml的配置信息rn[code=text]rnrn dispatcher rn rn rn dispatcherrn org.<em>spring</em>framework.web.servlet.DispatcherServletrnrn 1rnrnrnrn dispatcherrn /rnrn rn rn rn index.jsprn rn rn[/code]rnrn[code=text]rnrn rn rn rn rn rn[/code]rnrnrn[code=java]package com.minx.crm.web.controller;rnrnimport org.<em>spring</em>framework.stereotype.Controller;rnimport org.<em>spring</em>framework.web.bind.annotation.RequestMapping;rnrnrn@Controllerrn@RequestMapping(value = "index")rnpublic class IndexController rn rn @RequestMapping(value = "say")rn public String sayHello() rn return "index";rn rn[/code]rnrn[img=https://img-bbs.csdn.net/upload/201407/30/1406682081_703482.jpg][/img]rnrn所有的信息都在上面 Spring已经放在tomcat的webapps文件夹下面 但是访问rnhttp://localhost:8080/Spring/index/say 就是404rnrn单独访问http://localhost:8080/Spring/index.jsp是可以的rnrn<em>大神</em><em>帮忙</em><em>看看</em>是哪里出问题了啊
Spring Hibernate整合问题,求大神帮忙~~~~~~~
SSH整合,全部采用注解配置。[img=https://img-bbs.csdn.net/upload/201505/07/1430962095_172871.png][/img]rnrnStruts已经整合好了,将Hibernate整合到Spring时,出现了空指针。rn[code=java]2015-05-07 10:10:58,495 DEBUG (com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor:84) - Error calling method through OGNL: object: [com.gmc.action.user.LoginAction@433a316a] method: [execute] args: [[]]rnjava.lang.NullPointerExceptionrn at com.gmc.dao.BaseDaoHibernate4.get(BaseDaoHibernate4.java:27)rn at com.gmc.service.UserServiceImpl.checkUser(UserServiceImpl.java:37)rn at com.gmc.action.user.LoginAction.execute(LoginAction.java:28)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:497)rn at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:870)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)rn at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)rn rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:745)rn2015-05-07 10:10:58,497 DEBUG (com.opensymphony.xwork2.DefaultActionInvocation:76) - No result returned for action com.gmc.action.user.LoginAction at nullrn2015-05-07 10:10:58,498 DEBUG (com.opensymphony.xwork2.interceptor.I18nInterceptor:80) - after Locale=zh_CNrn2015-05-07 10:10:58,498 DEBUG (com.opensymphony.xwork2.interceptor.I18nInterceptor:76) - intercept rn[/code]rnrn文件目录:[img=https://img-bbs.csdn.net/upload/201505/07/1430964849_689657.png][/img]rnrn具体代码如下:rnapplicationContext.xml:rn[code=html]rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn com.gmc.entity.Userrn com.gmc.entity.Articlern rn rn rn rn rn rn rn org.hibernate.dialect.MySQL5InnoDBDialectrn rn updatern truern true rn rn rn rn rn rn rn rnrn[/code]rnLoginAction:rn[code=html]package com.gmc.action.user;rnrnimport org.apache.struts2.convention.annotation.Namespace;rnimport org.apache.struts2.convention.annotation.ParentPackage;rnimport org.<em>spring</em>framework.beans.factory.annotation.Autowired;rnimport org.<em>spring</em>framework.stereotype.Controller;rnrnimport com.gmc.service.UserService;rnimport com.gmc.service.UserServiceImpl;rnimport com.opensymphony.xwork2.ActionSupport;rnrnrnrn@Namespace("/user")rn@Controllerrnpublic class LoginAction extends ActionSupportrn private UserServiceImpl userServiceImpl;rn rn @Autowiredrn private void setUserService(UserServiceImpl userServiceImpl)rn this.userServiceImpl = userServiceImpl;rn rn rn public String execute() rn rn rn System.out.println("LoginAction");rn if (userServiceImpl.checkUser("ccc", "aaa")) //rn System.out.println("##############");rn else rn System.out.println("@@@@@@@@@@@@@@@");rn rn rn rn return SUCCESS;rn rnrn[/code]rnrnrnUserServiceInpl:rn[code=java]package com.gmc.service;rnrnimport org.hibernate.Session;rnimport org.hibernate.Transaction;rnimport org.<em>spring</em>framework.beans.factory.annotation.Autowired;rnimport org.<em>spring</em>framework.stereotype.Service;rnrnimport com.gmc.dao.UserDao;rnimport com.gmc.dao.UserDaoHibernate4;rnimport com.gmc.entity.User;rnrn@Servicernpublic class UserServiceImpl implements UserService rnrn private UserDaoHibernate4 userDaoHibernate4;rn rn @Autowiredrn public void serUserDao(UserDaoHibernate4 userDaoHibernate4) rn this.userDaoHibernate4 = userDaoHibernate4;rn rn rn @Overridern public boolean checkUser(String user_name, String user_pass) rnrn User user = userDaoHibernate4.get(User.class, 1);rn System.out.println(user.getUserName());rn rnrn System.out.println("22222222222222222222");rn rnrn return true;rn rnrnrn[/code]rnrn
求java大神看看这是什么错误
[img=https://img-bbs.csdn.net/upload/201606/14/1465900315_815858.png][/img]
spring aop配置出错,求大神帮忙
我在使用<em>spring</em> mvc 的时候,想学习下aop的用法,但是在配置的时候出错了。由于在applicationContext.xml中,通过对所有Service进行事务增强,因此Spring容器会对所有所有XxxService的Bean进行动态代理,在配置aop的时候就会报错,请<em>帮忙</em>解决下.....rnapplicationContext.xm 代码:rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn com.system.service.UserLoginServicern rn rn rn rn rn rn userInterceptorrn rn rn
spring自动注入问题,求大神帮忙
新手刚接触<em>spring</em>自动注入,搭了个环境想学习一下,结果报错,检查了一上午了,没发现原因,请<em>大神</em>指教rnrn严重: StandardWrapper.Throwablernorg.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserController': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private com.guosen.cmp.service.iservice.ISysUserService com.guosen.cmp.controller.SysUserController.sysUserService; nested exception is org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.guosen.cmp.service.iservice.ISysUserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @org.<em>spring</em>framework.beans.factory.annotation.Autowired(required=true)rn at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)rn at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)rn at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)rn at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)rn at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)rn at org.<em>spring</em>framework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5231)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5518)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private com.guosen.cmp.service.iservice.ISysUserService com.guosen.cmp.controller.SysUserController.sysUserService; nested exception is org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.guosen.cmp.service.iservice.ISysUserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @org.<em>spring</em>framework.beans.factory.annotation.Autowired(required=true)rn at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:508)rn at org.<em>spring</em>framework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)rn at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)rn ... 29 morern代码rnweb.xmlrn rn rn contextConfigLocationrn classpath:config/<em>spring</em>-config.xmlrn rn rn rn <em>spring</em>Mvcrn org.<em>spring</em>framework.web.servlet.DispatcherServletrn rn contextConfigLocationrn classpath:config/<em>spring</em>-mvc-config.xmlrn rn 1rn rn rn <em>spring</em>Mvcrn /rn rnrn<em>spring</em>-config.xmlrnrnrnrn<em>spring</em>-mvc-configrn rnrn rn rnrnrn@RestControllerrnpublic class SysUserController rn @Autowiredrn private ISysUserService sysUserService;rnrn@Servicernpublic class SysUserService implements ISysUserService rn @Autowiredrn private ISysUserDao sysUserDao;rnrn@Repositoryrnpublic class SysUserDao extends BaseDao implements ISysUserDao rn
spring事务管理问题,求大神帮忙
这样配置有错吗?每次保存数据时都会出错,会不会是网上说什么的什么session冲突,求<em>大神</em>解决啊!!infoDAO.save()没错,但writeDAO.save()有错rnrnrn rn rn rn rn classpath:hibernate.cfg.xmlrn 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 rn PROPAGATION_REQUIREDrn PROPAGATION_REQUIREDrnrn rn rn rn rn rn rn rn rn rn infoDAOrn writeDAOrn rn rn rn rn rn transactionInterceptorrn rn rn rn rn rn rnrnrn出现这样的<em>错误</em>rnHibernate: rn insert rn intorn lybrn (lycontent, date, read, id) rn valuesrn (?, ?, ?, ?)rn2013-5-1 10:42:24 org.hibernate.util.JDBCExceptionReporter logExceptionsrn警告: SQL Error: 1064, SQLState: 42000rn2013-5-1 10:42:24 org.hibernate.util.JDBCExceptionReporter logExceptionsrn严重: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'read, id) values ('fhs', '2013-05-01', 1, 2011081071)' at line 1rn2013-5-1 10:42:24 org.hibernate.event.def.AbstractFlushingEventListener performExecutionsrn严重: Could not synchronize database state with sessionrnorg.hibernate.exception.SQLGrammarException: Could not execute JDBC batch updaternrnrn映射文件有错吗rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn
PHP 数据连接错误大神看看怎么改
function get_connection( $default_book_id = 0, $pcon = 0 ) { global $cfg_account_book_array; global $cfg_database_debug; global $cfg_skip_error; $cfg_skip_error = $cfg_skip_error ? $cf
大神看看,这段代码有没有错误
if (ids != null) rn for (String id : ids.split(",")) rn if (!id.trim().equals(0)) rn Tbc_student tbs = studentDao.get(Tbc_student.class, id.trim());rn if (tbs != null) rn studentDao.executeHql("delete Tbc_student st where st.id = ?", new Object[] tbs );rn studentDao.delete(tbs);rn rn rn rn rn rn看一下HQl语句有没有<em>错误</em>,求指导
PHP 数据连接错误大神看看怎么改
[code=php]pconnect( 'p:'$cfg_db_hostname.$server, $cfg_db_username, $cfg_db_password, $cfg_db_name );rnrn rn elsern rn $r = $db->connect('p:' $cfg_db_hostname.$server, $cfg_db_username, $cfg_db_password, $cfg_db_name );rn rn if ( !$r && !$cfg_skip_error )rn rn rn error( "数据库连接失败,请稍后重试!" );rn rn $db->setfetchmode( ADODB_FETCH_ASSOC );rn $db->execute( "SET NAMES gbk" );rn $db->debug = $cfg_database_debug ? true : false;rn $db->fnExecute = "CountExecs";rn $db->fnCacheExecute = "CountCachedExecs";rn $_global_connection_ = $db;rn return $db;rn rn elsern rn return $_global_connection_;rn rnrnrnfunction get_tablename( $name, $default_book_id = 0 )rnrn global $cfg_account_book_array;rn reset( $cfg_account_book_array );rn $default_book_id = $default_book_id ? $default_book_id : key( $cfg_account_book_array );rn $current_book_id = $_SESSION['_SESSION_BOOK_ID_'] ? $_SESSION['_SESSION_BOOK_ID_'] : $default_book_id;rn $current_account_book = $cfg_account_book_array[$current_book_id];rn $cfg_table_prefix = $current_account_book['prefix'];rn return $cfg_table_prefix.$name;rnrnrnfunction get_prefix( $default_book_id = 0 )rnrn global $cfg_account_book_array;rn reset( $cfg_account_book_array );rn $default_book_id = $default_book_id ? $default_book_id : key( $cfg_account_book_array );rn $current_book_id = $_SESSION['_SESSION_BOOK_ID_'] ? $_SESSION['_SESSION_BOOK_ID_'] : $default_book_id;rn $current_account_book = $cfg_account_book_array[$current_book_id];rn $cfg_table_prefix = $current_account_book['prefix'];rn return $cfg_table_prefix;rnrnrnfunction get_current_bid( )rnrn global $cfg_account_book_array;rn reset( $cfg_account_book_array );rn $current_book_id = $_SESSION['_SESSION_BOOK_ID_'] ? $_SESSION['_SESSION_BOOK_ID_'] : key( $cfg_account_book_array );rn return $current_book_id;rnrnrnfunction &countexecs( $db, $sql, $inputarray )rnrn global $EXECS;rn if ( !is_array( inputarray ) )rn rn ++$EXECS;rn rn else if ( is_array( reset( $inputarray ) ) )rn rn $EXECS += sizeof( $inputarray );rn rn elsern rn ++$EXECS;rn rn $null = null;rn return $null;rnrnrnfunction countcachedexecs( $db, $secs2cache, $sql, $inputarray )rnrn global $CACHED;rn ++$CACHED;rnrnrn?>rn[/code]rnrn我用的是PHP5.5的环境 报[img=https://img-bbs.csdn.net/upload/201608/17/1471402630_502661.png][/img]rnrn求<em>大神</em><em>看看</em>怎么改
Spring ClassPathXmlApplicationContext报错,求大神帮忙
[img=https://img-bbs.csdn.net/upload/201805/30/1527641391_312592.png][/img]rnrnJAVA用的是 Eclipse Jee Oxygen,SPRING用的是<em>spring</em>-webmvc 3.2.8
ssh整合freemarker 求大神帮忙看看
WEB.XMLrnrnrn GMMrn rn contextConfigLocationrn classpath:/applicationContext.xmlrn rn rn managefilterrn com.gmango.manage.common.filter.SysManageFilterrn rn rn managefilterrn /manage/*rn rn rn strutsFilterrn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn actionPackagesrn com.gmango.compare.web.actionrn rn rn rn strutsFilterrn *.actionrn rnrn[color=#FF0000] rn FilterDispatcherrn org.apache.struts2.dispatcher.FilterDispatcherrn rn rn FilterDispatcherrn /*rn rnrn rn Used to cleanup when a session is destroyedrn ZK Session cleanerrn org.zkoss.zk.ui.http.HttpSessionListenerrn rnrn rn org.<em>spring</em>framework.web.context.ContextLoaderListenerrn rn rn rn JspSupportServletrn org.apache.struts2.views.JspSupportServletrn 1rn [/color]rn rn rn The ZK loader for ZUML pagesrn zkLoaderrn org.zkoss.zk.ui.http.DHtmlLayoutServletrn rn update-urirn /zkaurn rn 1rn rn rn rn 60rn rn rn The asynchronous update engine for ZKrn auEnginern org.zkoss.zk.au.http.DHtmlUpdateServletrn rn rn zkLoaderrn *.zulrn rn rn zkLoaderrn *.zhtmlrn rn rn auEnginern /zkau/*rn rn rn java.lang.Throwablern /error.zulrn rn rn index.zulrn index.htmlrn index.htmrn index.jsprn default.htmlrn default.htmrn default.jsprn rn rn BASICrn rnrn我又在config里面加了属性文件freemarker.perprotiesrnrntemplate_update_delay=2rndefault_encoding=UTF-8rnoutput_encoding=UTF-8rnlocale=zh_CNrndate_format=yyyy-MM-ddrntime_format=HH:mm:ssrndatetime_format=yyyy-MM-dd HH:mm:ssrnrn这样已经可以实现整合了。rnrn但是我有疑问。 我根本没有配置跟freemarker.perproties有关的配置。请问这个属性文件能起到作用吗?rn[color=#000080][b]rn还有一种方式。也是可以的。[/b][/color]rnrn2、 在web.xml中添加如下配置:rnrnrn org.<em>spring</em>framework.web.context.ContextLoaderListenerrnrnrnrn contextConfigLocationrn classpath*:applicationContext-*.xmlrnrnrnrn dispatcherrn org.<em>spring</em>framework.web.servlet.DispatcherServletrn rn contextConfigLocationrn /WEB-INF/dispatcher.xmlrn rn 1rnrnrnrn dispatcherrn *.dornrn上面分别是添加Spring的监听器、以及配置Spring的配置文件、还有SpringMVC的控制器;rn3、 在WEB-INF中添加文件dispatcher.xml,和web.xml中的对应。内容如下:rnrnrnrn rnrn rn rn rn rn rn rn rn rnrnrn上面是SpringMVC的基本配置rn4、 在src中添加applicationContext-beans.xml,内容如下:rnrnrnrn里面可以添加一些bean的配置rn5、 在src目录添加freemarker.properties配置文件,这个文件是freemarker一些常用的转换,内容如下:rntag_syntax=auto_detectrntemplate_update_delay=2rndefault_encoding=UTF-8rnoutput_encoding=UTF-8rnlocale=zh_CNrndate_format=yyyy-MM-ddrntime_format=HH:mm:ssrndatetime_format=yyyy-MM-dd HH:mm:ssrnrn6、 在dispatcher.xml中添加freemarker的配置,配置如下:rnrnrn rnrnrnrnrn rn rn /WEB-INF/ftl/rn rn rn rn rn rn rnrnrnrnrnrnrn rn rn rn rn rn rn rnrn上面最关键的就是freeMarker的视图解析器viewResolver的配置,viewClass是使用哪个视图解析器,这里是类<em>路径</em>;其他的和jsp的视图解析器都很类似。rnrn他这个配置 我还是不明白。 但是这个我知道他配置rn rn 可以跟freemarker.properties 有联系。rnrn我想知道 这两种配置具体的意义 跟差别在哪里。rn
大神帮忙看看。。。。。关于sql语句。。。。。
我先定义了 int型的a 赋值为quytitle的查询的一个结果rn然后定义了 int型的c 赋值为a+某个数rn然后同样使用quytitle执行下面的语句 rnquytitle->SQL->Add("update titles set ytd_sales="+c+" where title_id='"+title_id->Text+"'");rn编译器<em>错误</em>提示:rn[C++ Error] Unit1.cpp(122): E2085 Invalid pointer additionrn大家<em>帮忙</em><em>看看</em> 怎么回事儿
急求~~速来大神帮忙看看
r += '';rnr += '';rnrnrn需要将2个功能合并,当onclick="acceptItem(' + id + ',ITEMS.Invoice);" 成功执行在执行 onclick="invoiceConfirm(' + id + ',ITEMS.Invoice);"rnrn不要2个按钮来实现
C#求大神帮忙看看程序
this.textBox1.Invoke(new ThreadStart(delegate())rnrn this.textBox1.AppendText(str1+Environment.NewLine);rnthis.textBox1.ScrollToCaret();rn));rn这段代码总是提示未将引用对象设置到对象的实例,不知道哪里错了!rn注:str1是收到的字符串rnthis.textBox1.ScrollToCaret();是在将字符创加入textbox时,让光标自动移动到最新加入的地方!
数据结构作业!求大神帮忙看看啊!
#include rn#include rn#include rnint map[20][20];rnint book[20][20];rnint n;rnstruct nodern int x;rn int y;rn int step;rn struct node*pre;rn struct node*next;rn;rnstruct node queue[401];rnstruct node *head=NULL,*tail=NULL;rnstruct node *create(struct node*head)rn struct node* p=(struct node*)malloc(sizeof(struct node));rn if(p==NULL) return 0;rn head=p;rn head->pre=NULL;rn head->next=NULL;rn tail=head;rn return head;rnrn void hpush(struct node*head,struct node* a)rn struct node*tem=(struct node*)malloc(sizeof(struct node));rn if(tem==NULL) return ;rn tem->x=a->x;rn tem->y=a->y;rn tem->step=a->step;rn if(head->next!=NULL)rn head->next->pre=tem;rn tem->next=head->next;rn tem->pre=head;rn head->next=tem;rn rn else rn head->next=tem;rn tem->next=NULL;rn tail=tem;rnrnrnvoid tpush(struct node*head,struct node *a)rn struct node*tem=(struct node*)malloc(sizeof(struct node));rn if(tem==NULL) return ;rn tail->next=tem;rn tem->x=a->x;rn tem->y=a->y;rn tem->step=a->step;rn tem->pre=tail;rn tem->next=NULL;rn tail=tem;rnrnvoid hpop(struct node*head)rn struct node*tem=head->next;rn if(tem==NULL) return ;rn head->next=tem->next;rn if(tem->next!=NULL)tem->next->pre=head;rn free(tem);rnrn void tpop(struct node*head)rn if(tail==head) return ;rn struct node*tem2=tail->pre;rn free(tail);rn tail=tem2;rn tail->next=NULL;rnrnvoid visit(struct node*head)rn struct node*tem=head->next;rn if(tem==NULL) return ;rn while(tem!=NULL)rn printf("%d ",tem->x);rn tem=tem->next;rn rnrnvoid createmap(int n)rn for(int i=0;ix=0,tem->y=0;rn book[tem->x][tem->y]=1;rn tem->step=0;rn tpush(head,tem);rn while(head!=tail)rn tem=head->next;rn hpop(head);rn if(tem->x==n-1&&tem->y==n-1)rn return tem->step;rn for(int i=0;ix=tem->x;rn next->y=tem->y;rn next->step=tem->step;rn next->x=tem->x+dir[i][0];rn next->y=tem->y+dir[i][1];rn if(next->xyx==n||next->y==n||book[next->x][next->y]==1||map[next->x][next->y]==1)rn rn free(next);rn continue;rn rn book[next->x][next->y]=1;rn tpush(head,next);rn rn rn return 0;rnrnint main(int argc, char* argv[])rn head=create(head);rn memset(map,0,sizeof(map));rn scanf("%d",&n);rn createmap(n);rn int out=bfs();rn if(out==0)printf("you are trapped!");rn else printf("you can escape in %d minutes",out);rn free(head);rn return 0;rnrn做一个迷宫,迷宫自动生成,1为障碍,0为可走的,从左上角走到右下角~~!
myeclipse乱码问题,求大神帮忙看看
![图片说明](https://img-ask.csdn.net/upload/201706/08/1496920415_231586.png)rnrn![图片说明](https://img-ask.csdn.net/upload/201706/08/1496920432_343376.png)rnrn如上,已经修改了workplace,但是乱码,第二是网站成果图。rnrn乱码应该怎么解决??rnrn---------------------------------------------------rn该改的utf-8都改了,但是还是乱码。rnrn![图片说明](https://img-ask.csdn.net/upload/201706/08/1496921797_683165.png)
新手,求大神帮忙看看哪里不对
[code=java]rnpublic class JDBCCopy rn static String[] log = "t_eng_log_tower", rn "t_eng_log_airwire", rn "t_eng_log_bbu", rn "t_eng_log_rru", rn "t_eng_log_port", rn "t_eng_log_btssite", rn "t_eng_log_enodeb", rn "t_eng_log_nodeb", rn "t_eng_log_cell", rn "t_eng_log_utrancell", rn "t_eng_log_ecell", rn "t_eng_log_rack", rn "t_eng_log_shelf", rn "t_eng_log_card", rn "t_eng_log_btstrunk", rn "t_eng_log_distributor";rn static String[] logs = "t_eng_log_tower_bak1018", rn "t_eng_log_airwire_bak1018", rn "t_eng_log_bbu_bak1018", rn "t_eng_log_rru_bak1018", rn "t_eng_log_port_bak1018", rn "t_eng_log_btssite_bak1018", rn "t_eng_log_enodeb_bak1018", rn "t_eng_log_nodeb_bak1018", rn "t_eng_log_cell_bak1018", rn "t_eng_log_ucell_bak1018", rn "t_eng_log_ecell_bak1018", rn "t_eng_log_rack_bak1018", rn "t_eng_log_shelf_bak1018", rn "t_eng_log_card_bak1018", rn "t_eng_log_btstrunk_bak1018", rn "t_eng_log_distributor_bak1018";rn public static void insertLog(String sheetid,String type)rn try rn conn = DBUtil.getConnection();rn conn.setAutoCommit(false);rn Statement st = conn.createStatement();rn //log流程日志表备份rn for(int i = 0;i < log.length;i++)rn System.out.println("insert into "+logs[i]+" (select * from "+log[i]+" where flow_cuid in " +rn "(select cuid from t_eng_relation_sheet where out_sheet_id in ("+sheetid+")))");rn st.executeUpdate("insert into "+logs[i]+" (select * from "+log[i]+" where flow_cuid in " +rn "(select cuid from t_eng_relation_sheet where out_sheet_id in ("+sheetid+")))");rn rn rn //这中间还有其他需要备份的数据表,测试没有问题,rn //主要问题出现在备份完成之后,开始删除时rn rn //第一步删除日志表rn for(int i = 0;i < log.length;i++)rn System.out.println("delete from "+log[i]+" where flow_cuid in " +rn "(select cuid from t_eng_relation_sheet where out_sheet_id in ("+sheetid+"))");rn st.executeUpdate(rn "delete form "+log[i]+" where flow_cuid in " +rn "(select cuid from t_eng_relation_sheet where out_sheet_id in ("+sheetid+"))");rn rn //这后面也有需要删除的其他数据,省略吧rn conn.commit();rn st.close();rn catch (Exception e) rn try rn conn.rollback();rn catch (SQLException e1) rn System.out.println("回滚失败");rn e1.printStackTrace();rn rn e.printStackTrace();rn finallyrn DBUtil.closeConnection();rn rn rnrn[/code]rnrn这个下面是程序运行控制台打印效果rninsert into t_eng_log_tower_bak1018 (select * from t_eng_log_tower where flow_cuid in (select cuid from t_eng_relation_sheet where out_sheet_id in ('HB-160627-8967-00001')))rn内容太多不能发布,这中间输出的我就删除了,全是打印出来的sql语句。。rninsert into t_eng_relation_sheet1018 select * FROM t_eng_relation_sheet where out_sheet_id in ('HB-160627-8967-00001')rndelete from t_eng_log_tower where flow_cuid in (select cuid from t_eng_relation_sheet where out_sheet_id in ('HB-160627-8967-00001'))--这条sql我在数据库里运行时可以删除已经备份过的数据的rnjava.sql.SQLSyntaxErrorException: ORA-00942: 表或视图不存在rn at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)rn at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)rn at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)rn at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)rn at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)rn at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)rn at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)rn at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1000)rn at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)rn at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1814)rn at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1779)rn at oracle.jdbc.driver.OracleStatementWrapper.executeUpdate(OracleStatementWrapper.java:277)rn at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:225)rn at dao.JDBCCopy.insertLog(JDBCCopy.java:166)rn at service.CopyService.copyService(CopyService.java:23)rn at servlet.CopyServlet.service(CopyServlet.java:28)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)rn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760)rn at java.lang.Thread.run(Thread.java:745)
大神帮忙看看,不知错在哪?
结构体中有一个删除节点的函数,但总是删除不了,不知错在哪?rn为了简洁,前面的代码已经省略:rn[code=c]rnvoid main()rnrn struct student *del(struct student *,long); //声明删除节点函数rn struct student *head;rn long del_num;rn printf("input records\n");rn head=creat();rn print(head);rn printf("input a delete number:");rn scanf("%ld",del_num);rn head=del(head,del_num);rn print(head);rnrnstruct student *del(struct student *head,long num) //建立一个删除节点函数rnrn struct student *p1,*p2;rn if(head==NULL)rn rn printf("nlist null!\n");rn return head;rn rn p1=head;rn while(num!=p1->num&&p1->next!=NULL) //p1-next!=NULL是用来控制循环次数rn rn p2=p1; rn p1=p1->next; //p1再指向新的节点rn rn if(num==p1->num) rn if(p1==head)rn head=p1->next;rn elsern rn p2->next=p1->next; //当p1->next==NULL时,p2->next接到NULL rn printf("delete:%ld",num);rn n--;rn rn elsern printf("%ld has not been found!\n",num);rn return head;rn[/code]rn运行时,我要删除的那个数总是输出:has not been found也就是找不到。。。rn程序语法没问题,就是不知道错在哪?
大神帮忙看看修改修改
做个导出功能rn当点击导出rn1.在服务器端创建个文件.exclern2,.将数据库出来的数据集 rn3.客户端 将此文件下载 并删除服务器端的文件rn以下是创建文件rnimport java.io.BufferedReader;rnimport java.io.File;rnimport java.io.IOException;rnrnpublic class CreatFile rn rn public static BufferedReader bufread;rn rn //指定文件<em>路径</em>和名称rn private static String path = "G:\\ls\\" + 2+ ".xls";rn private static File filename = new File(path);rn private static String readStr ="";rnrnrn /** *//**rn * 创建文本文件.rn * @throws IOException rn * rn */rn public static void creatTxtFile() throws IOExceptionrn if (!filename.exists()) rn filename.createNewFile();rn System.err.println(filename + "已创建!");rn rn rnrn
大神帮忙看看【程序问题】出在哪里
#includern#define uchar unsigned charrn#define uint unsigned intrnuint n=23;rnsbit ge=P2^7;rnsbit shi=P2^6;rnrnuchar table[]=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;rnrnvoid delay(uint z)rnrn uint x,y;rn for(x=z;x>0;x--)rn for(y=100;y>0;y--);rnrnrnvoid xianshi(uint m)rnrn ge=0;rn P0=table[m%10];rn delay(5);rn ge=1;rn shi=0;rn P0=table[m/10];rn delay(5);rn shi=1; rnrnvoid init()rnrn TH0=0;rn TL0=0;rn TMOD=0x01;rn EA=1;rn EX0=0;rn EX1=1;rn IT0=1;rn IT1=1;rn TR0=0; rnrnvoid intr0() interrupt 0rnrn EX0=0;rn TR0=0; rnrnvoid intr1() interrupt 1rnrn EX1=0;rn EX0=1;rn TR0=1;rn rnvoid main()rnrn init();rn while(1)rn rn n=(int)((TH0*256+TL0)*1.08507)/1000;rn rn xianshi(n);rn rn
大神帮忙看看 hid键盘
键盘已经枚举成功,但是按一下按键会发送两三次
大神帮忙看看这个问题!!
Fatal error: Call to undefined function get_header() in C:\wamp\www\blog\index.php on line 1
Theme is not mapped 求大神帮忙看看
HTTP Status 500 - Theme is not mapped [from Theme where 1=1 order by SEQNUM asc]; nested rnrnexception is org.hibernate.hql.ast.QuerySyntaxException: Theme is not mapped [from Theme rnrnwhere 1=1 order by SEQNUM asc]rnrntype Exception reportrnrnmessage Theme is not mapped [from Theme where 1=1 order by SEQNUM asc]; nested exception is rnrnorg.hibernate.hql.ast.QuerySyntaxException: Theme is not mapped [from Theme where 1=1 order rnrnby SEQNUM asc]rnrndescription The server encountered an internal error that prevented it from fulfilling this rnrnrequest.rnrnexceptionrnrnorg.<em>spring</em>framework.orm.hibernate3.HibernateQueryException: Theme is not mapped [from Theme rnrnwhere 1=1 order by SEQNUM asc]; nested exception is rnrnorg.hibernate.hql.ast.QuerySyntaxException: Theme is not mapped [from Theme where 1=1 order rnrnby SEQNUM asc]rn rnrnorg.<em>spring</em>framework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessExceptionrnrn(SessionFactoryUtils.java:657)rn rnrnorg.<em>spring</em>framework.orm.hibernate3.HibernateAccessor.convertHibernateAccessExceptionrnrn(HibernateAccessor.java:412)rn org.<em>spring</em>framework.orm.hibernate3.HibernateTemplate.doExecuternrn(HibernateTemplate.java:424)rn org.<em>spring</em>framework.orm.hibernate3.HibernateTemplate.executeFindrnrn(HibernateTemplate.java:343)rn com.cms_fn.dao.vote.impl.VoteImpl.findThemeByPage(VoteImpl.java:61)rn com.cms_fn.action.votes.FindVoteThemeAction.findVoteThemernrn(FindVoteThemeAction.java:66)rn com.cms_fn.action.votes.FindVoteThemeAction$$FastClassByCGLIB$$e3a011a2.invokernrn()rn net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)rn org.<em>spring</em>framework.aop.framework.Cglib2AopProxyrnrn$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)rn org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceedrnrn(ReflectiveMethodInvocation.java:149)rn org.<em>spring</em>framework.transaction.interceptor.TransactionInterceptor.invokernrn(TransactionInterceptor.java:106)rn org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceedrnrn(ReflectiveMethodInvocation.java:171)rn org.<em>spring</em>framework.transaction.interceptor.TransactionInterceptor.invokernrn(TransactionInterceptor.java:106)rn org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceedrnrn(ReflectiveMethodInvocation.java:171)rn org.<em>spring</em>framework.aop.interceptor.ExposeInvocationInterceptor.invokernrn(ExposeInvocationInterceptor.java:89)rn org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceedrnrn(ReflectiveMethodInvocation.java:171)rn org.<em>spring</em>framework.aop.framework.Cglib2AopProxyrnrn$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)rn com.cms_fn.action.votes.FindVoteThemeAction$$EnhancerByCGLIB$rnrn$31db9cce.findVoteTheme()rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn sun.reflect.DelegatingMethodAccessorImpl.invokernrn(DelegatingMethodAccessorImpl.java:43)rn java.lang.reflect.Method.invoke(Method.java:483)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionrnrn(DefaultActionInvocation.java:441)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnlyrnrn(DefaultActionInvocation.java:280)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:243)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doInterceptrnrn(DefaultWorkflowInterceptor.java:165)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptrnrn(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doInterceptrnrn(ValidationInterceptor.java:252)rn rnrnorg.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doInterceptrn(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptrnrn(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.interceptrnrn(ConversionErrorInterceptor.java:122)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doInterceptrnrn(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptrnrn(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doInterceptrnrn(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptrnrn(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.interceptrnrn(StaticParametersInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.MultiselectInterceptor.interceptrnrn(MultiselectInterceptor.java:75)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.CheckboxInterceptor.interceptrnrn(CheckboxInterceptor.java:94)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.FileUploadInterceptor.interceptrnrn(FileUploadInterceptor.java:235)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.interceptrnrn(ModelDrivenInterceptor.java:89)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.interceptrnrn(ScopedModelDrivenInterceptor.java:130)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.interceptrnrn(DebuggingInterceptor.java:267)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.interceptrnrn(ChainingInterceptor.java:126)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doInterceptrnrn(PrepareInterceptor.java:138)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptrnrn(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.interceptrnrn(I18nInterceptor.java:165)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.ServletConfigInterceptor.interceptrnrn(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.interceptrnrn(AliasInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.interceptrnrn(ExceptionMappingInterceptor.java:176)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn com.cms_fn.interceptor.SessionInterceptor.intercept(SessionInterceptor.java:25)rn com.opensymphony.xwork2.DefaultActionInvocation.invokernrn(DefaultActionInvocation.java:237)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeActionrnrn(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilterrnrn(StrutsPrepareAndExecuteFilter.java:91)rn com.cms_fn.filter.Encoded.doFilter(Encoded.java:65)rnroot cause
大神帮忙看看这个问题
cksx,ckxx是float类型 其他所有都是varchar2类型 这个报错怎么解决啊?[img=https://img-bbs.csdn.net/upload/201801/03/1514964747_593605.png][/img]
大神帮忙看看哪里错了
[code=php]rnrnif (!isset($_SESSION["sn"]))rn$_SESSION['sn']=0;rnsetcookie('sn',$sn,time()+1);rnrn if($_POST["submit"])rn if($sn=3)rn [/code]rn[code=javascript]alert("抱歉,您已经点击了3次");rn location.href="zp.php";[/code]rn[code=php]exit();rn rn elseif ($sn=="tull")rn [/code]rn[code=javascript]alert("123");rn location.href="zp.php";[/code]rn[code=php]exit();rn rn $newitem=$_POST["zp_user"];rn $sql="insert into vote (awards,sn,pnone) values (1,'$sn',1)";rn if(mysql_query($sql))rn rn $sn==$_SESSION['sn']+1;rn rnrn if($_POST["submit2"])rn if(empty($_POST['sn']))rn$_SESSION['zp_user']=$_POST['pnone'];rn$sql="insert into zp_user values('".($_POST['sn'])."')";rn if(mysql_query($sql))rn rn rn rn[/code]
VS2010编译错误,求大神帮忙看看什么问题
程序在vc6.0可以正常运行,可是用VS出现如下<em>错误</em>,求<em>大神</em>指点,我还是萌新小白![图片说明](http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/54.gif)![图片说明](http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/54.gif)![图片说明](http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/54.gif)![图片](https://img-ask.csdn.net/upload/201611/28/1480301697_362707.png)
大神帮忙看看ajax登陆无响应
![图片说明](https://img-ask.csdn.net/upload/201412/29/1419866606_75670.png)rn演示视频里,点击登录,会调用alert,弹出一个框:rn![图片说明](https://img-ask.csdn.net/upload/201412/29/1419866648_661594.png)rn但是我的什么也不弹出,并且登录按钮变灰,无法再点击,除非清空输入框。rnif判断能进去,我之前把这段ajax全删了,直接alert(name),能取到name值,说明能进if判断,但也许在执行ajax时出问题。IE的调试工具那里也不现实任何<em>错误</em>。rn不好意思,我注册后没怎么用过,没有东西可悬赏的。。。
页面出错了 求大神帮忙看看
rn
线程不能退出,求大神帮忙看看
BOOL CSignalDlg::Init(const int nSourceID )rnrn UNREFERENCED_PARAMETER(nSourceID); rn m_hExitEvent = ::CreateEvent( NULL, TRUE, FALSE, NULL );rn if( m_hExitEvent == NULL)rn rn //SafeSprintf( lpErrorMsg, nSize, "%s", "CreateEvent 失败!!!" );rn return FALSE;rn rn return TRUE;rn;rnrnvoid CSignalDlg::Exit()rnrn SetEvent(m_hExitEvent);rn WaitForSingleObject(m_hHandle, INFINITE);rn// AfxMessageBox("线程已经退出!");rnrnrnLONG CSignalDlg::DoJob()rnrn while (1)rn rn // 等待退出事件rn if(WaitForSingleObject(m_hExitEvent, 100) == WAIT_OBJECT_0)rn rn AfxMessageBox("线程退出!");rn break;rn rn m_data++;rn CString data;rn data.Format("%d", m_data);rn m_edit.SetWindowText(data);rn rn// AfxMessageBox("线程退出!");rn return 0;rnrnrn//上述代码的意思是我在主线程中发信号给子线程让子线程退出,并且主线程等待着子线程完全退出,rn但是我发现我发了信号后界面就卡着了,跟踪发现子线程并没有退出。求<em>大神</em><em>帮忙</em>解决。rn注:线程函数中调用doJob()rn
oracle语句的问题,求大神帮忙看看
[code=sql]select event_id as eventId, event_name as eventName, event_light_enum_id as eventLightEnumId, curr_light_enum_id as currLightEnumId,rn msg_status as msgStatus, auth_status as authStatus, oversee_status as overseeStatus, problem_class_enum_id as problemClassEnumId,rn parent_class_enum_id as parentClassEnumId, class_enum_id as classEnumId, warning_level_enum_id as warningLevelEnumId, last_section__enum_id as lastSectionEnumId, curr_section__enum_id as currSectionEnumId,rn event_detail as eventDetail, problem_desc as problemDesc, position_des as positionDes, handle_dept_name as handleDeptName, handle_advice as handleAdvice,rn verify_count as verifyCount, verify_result as verifyResult, closed_status_enum_id as closedStatusEnumId, street_code as streetCode,rn community_code as communtiyCode, key_area_id as keyAreaId, (select name from sde.t_kaw_key_area b where key_area_id=b.objectid) as keyAreaName, rn key_area_type_enum_id as keyAreaTypeEnumId, duty_grid_code as dutyGridCode, unit_grid_code as untiGridCode, task_code as taskCode, oversee_name as overseeName, rn oversee_phonenumber as overseePhonenumber, report_time as reportTime, create_time as createTime, handle_time_limit as handleTimeLimit, coordinate_x as coordinateX, rn coordinate_y as coordinateY from t_kaw_event t where 1=1 order by report_time desc[/code]rn这个sql语句说我ORA-00933: SQL 命令未正确结束,难道是我sql语句书写有<em>错误</em>?求<em>大神</em>指点
关于easyui,求大神帮忙看看
easyui中,treegrid的传送方式为默认为get,如何才能以post传送?type无法实现。
刚学jedis 求大神帮忙看看
java.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.<em>spring</em>framework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.<em>spring</em>framework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.NoClassDefFoundError: org/apache/commons/pool2/impl/GenericObjectPoolConfigrn at com.tg.am.action.EsAction.getQueyrKey(EsAction.java:186)rn ... 69 morernCaused by: java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfigrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn ... 70 morernrn上面是报的<em>错误</em> 求<em>大神</em>指导<em>看看</em>rnrn
【求助】 求大神帮忙看看这段代码
关于两个文档相似度比较的 这部分应该是字符串匹配,有些看不懂,求<em>大神</em>讲解rnrnvoid CSolute:: LCSLength(int m,int n, char *x,char *y,int **c)rnrn int i,j;rn for(i=0;im_nStep=0;rn for(i=1;im_nStep=i*100/m;rn pDlg->m_Progress.SetPos(pDlg->m_nStep);rn for(j=1;j=c[1][j-1])rn rn c[1][j]=c[0][j];rn rn elsern rn c[1][j]=c[1][j-1];rn rn rn for(j=1;jm_nStep=0;rn for(i=1;im_nStep=i*100/m;rn pDlg->m_Progress.SetPos(pDlg->m_nStep);rn for(j=1;j=c[i][j-1])rn rn c[i][j]=c[i-1][j];rn rn elsern rn c[i][j]=c[i][j-1];rn rn rn rn
大神帮忙看看 在线跪等
!!!!!怎么解析json数组啊我在界面上alert出来这个数组了就是没法在表格上显示rn[img=https://img-bbs.csdn.net/upload/201411/28/1417169011_110105.png][/img][img=https://img-bbs.csdn.net/upload/201411/28/1417169028_965734.png][/img][img=https://img-bbs.csdn.net/upload/201411/28/1417169042_823435.png][/img]
大神帮忙看看这个代码
题目是:输入一个字符串,内有数字和非数字,如:asndjkas2121dnj12?dej,rn将其中连续的数字作为一个整数,统计共有多少个整数,并输出这些数rnrnrn请大家帮<em>帮忙</em><em>看看</em>这个代码为什么运行起来会出错rn#includernvoid main()rnrn void xuan(char*);rn char str[80];rn gets(str);rn xuan(str);rnrn void xuan(char*p)rn rn int i=0,n,j=0,k=0;rn char a[20][20];rn for(;*p!='\0';p++)rn rn if(*p>='0'&&*p='0'&&*(p-1));rn rn rnrnrnrn
大神帮忙!!看看是什么问题
2016-12-29 9:12:35 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet dispatcherServlet threw exceptionrnorg.hibernate.hql.ast.QuerySyntaxException: product is not mapped [from product where product.user.userid in(select userid from user where user.usernickname='jack')]rn at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:181)rn at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:110)rn at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:93)rn at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:277)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3056)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2945)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:688)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)rn at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)rn at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:251)rn at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:183)rn at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:134)rn at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:101)rn at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:80)rn at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)rn at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)rn at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)rn at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1650)rn at com.flea_market.dao.Backstage_UserImpl_dao.searchPro(Backstage_UserImpl_dao.java:69)rn at com.flea_market.service.Backstage_UserImpl_service.searchPro(Backstage_UserImpl_service.java:54)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.<em>spring</em>framework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)rn at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)rn at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)rn at org.<em>spring</em>framework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)rn at org.<em>spring</em>framework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)rn at org.<em>spring</em>framework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)rn at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)rn at org.<em>spring</em>framework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)rn at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)rn at org.<em>spring</em>framework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)rn at $Proxy15.searchPro(Unknown Source)rn at com.flea_market.controller.Backstagecontroller.pro(Backstagecontroller.java:66)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.<em>spring</em>framework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)rn at org.<em>spring</em>framework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.<em>spring</em>framework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)rn at org.<em>spring</em>framework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749)rn at org.<em>spring</em>framework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689)rn at org.<em>spring</em>framework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)rn at org.<em>spring</em>framework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)rn at org.<em>spring</em>framework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at org.<em>spring</em>framework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.<em>spring</em>framework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.<em>spring</em>framework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rnrn
电脑不能开机了,求大神帮忙看看
[img=https://img-bbs.csdn.net/upload/201405/10/1399735360_299752.jpg][/img]rn我的是戴尔的机子,按电源键开机之后,出现戴尔图标,然后就是一片黑,只有左上方有光标跳动,求<em>大神</em>出主意解决,尽可能多的解决方案,PS,F8不行
在线求大神帮忙看看,共同进步!!!
rn path是传递过来的 QString类型的U盘DEV<em>路径</em>。想调用system(char *)函数mount U盘。rn先把QString类型转换为char *类型。rnrn orderstr= "sudo mount " + path + " /mnt/usb";rn QByteArray ba = orderstr.toLatin1();rn order = ba.data();rn if(dir.exists("/mnt/usb"))rn rn qDebug("/mnt/usb exists");rn //system("sudo mount /dev/sdd1 /mnt/usb");rn system(order);rn rn elsern rn qDebug("/mnt/usb donot exist");rn system("sudo mkdir /mnt/usb");rn //system("sudo mount /dev/sdd1 /mnt/usb");rn system(order);rn rnrn但是程序执行到这儿就会挂掉,如果用注释掉的那部分运行就会成功mount U盘。问题在哪??
调用数据表出错 求大神帮忙看看
//任务类型rn /// rn /// getrn /// rn /// rn /// rn public ActionResult CompassionTypeUpdate()rn rnrn rn return View();rn rnrnrn这是代码那块rn@model IEnumerablern则是我页面调用数据表rnrn不知道具体代码怎么写
大神帮忙看看代码,报错缺少''
[code=java]rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn[/code]
C#+后台SQL,求大神帮忙看看
private void button1_Click(object sender, EventArgs e)rn rn if (this.textBox1.Text.Trim() == "")rn rn MessageBox.Show("请输入用户名", "信息");rn rn if (this.textBox2.Text.Trim() == "")rn rn MessageBox.Show("请输入密码", "信息");rn rn elsern rn string sql = "server=.;uid=sa;pwd=;database=st";rn SqlConnection con = new SqlConnection(sql);rn con.Open();rn string str = "select * from userinfo where userid='" + textBox1.Text.Trim() + "' and passwd='" + textBox2.Text.Trim() + "'";rn SqlCommand cmd = new SqlCommand(str, con);rn SqlDataReader read = cmd.ExecuteReader();rn if (read.Read())rn rn form2 f=new form2();rn f.show();rn rn elsern rn MessageBox.Show("登录失败","信息");rn rnrn rnrnrn我想在SQL里面加入教师、学生、管理员,三个身份验证,就是在登录的时候,多一个身份验证,在C#里面,如果是教师登录、则调用出教师程序框体,学生登录、则调用出学生程序框体。请问<em>大神</em>们怎么修改?
android 开发空指针异常 求大神帮忙看看
如题 求助解决方法。error log 如下:rn09-01 13:18:39.187: E/AndroidRuntime(21433): FATAL EXCEPTION: mainrn09-01 13:18:39.187: E/AndroidRuntime(21433): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.getDrawingRect(android.graphics.Rect)' on a null object referencern09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup$ViewLocationHolder.init(ViewGroup.java:7297)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup$ViewLocationHolder.obtain(ViewGroup.java:7232)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup$ChildListForAccessibility.init(ViewGroup.java:7167)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup$ChildListForAccessibility.obtain(ViewGroup.java:7135)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.dispatchPopulateAccessibilityEventInternal(ViewGroup.java:2729)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.View.dispatchPopulateAccessibilityEvent(View.java:5362)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.dispatchPopulateAccessibilityEventInternal(ViewGroup.java:2735)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.View.dispatchPopulateAccessibilityEvent(View.java:5362)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.dispatchPopulateAccessibilityEventInternal(ViewGroup.java:2735)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.View.dispatchPopulateAccessibilityEvent(View.java:5362)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.widget.RelativeLayout.dispatchPopulateAccessibilityEvent(RelativeLayout.java:1120)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.widget.AdapterView.onRequestSendAccessibilityEvent(AdapterView.java:949)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:740)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:744)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:744)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:744)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:5330)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.View.sendAccessibilityEventUnchecked(View.java:5311)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.run(ViewRootImpl.java:6948)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.runOrPost(ViewRootImpl.java:6974)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewRootImpl.postSendWindowContentChangedCallback(ViewRootImpl.java:6175)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewRootImpl.notifySubtreeAccessibilityStateChanged(ViewRootImpl.java:6288)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:2780)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:2780)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:2780)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:2780)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:2780)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:2780)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:2780)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:2780)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:2780)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.View.notifySubtreeAccessibilityStateChangedIfNeeded(View.java:8020)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.addViewInner(ViewGroup.java:4005)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.addView(ViewGroup.java:3794)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.addView(ViewGroup.java:3735)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at com.app.myfolder.view.ScrollLayout.addView(ScrollLayout.java:213)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.view.ViewGroup.addView(ViewGroup.java:3708)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at com.app.myfolder.view.ScrollLayout.refreView(ScrollLayout.java:226)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at com.app.myfolder.activity.FoldersBoxActivity.initContainer(FoldersBoxActivity.java:675)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at com.app.myfolder.activity.FoldersBoxActivity.access$75(FoldersBoxActivity.java:658)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at com.app.myfolder.activity.FoldersBoxActivity$FolderAsyncTask.onPostExecute(FoldersBoxActivity.java:3110)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at com.app.myfolder.activity.FoldersBoxActivity$FolderAsyncTask.onPostExecute(FoldersBoxActivity.java:1)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.os.AsyncTask.finish(AsyncTask.java:636)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.os.AsyncTask.access$500(AsyncTask.java:177)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.os.Handler.dispatchMessage(Handler.java:102)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.os.Looper.loop(Looper.java:135)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at android.app.ActivityThread.main(ActivityThread.java:5254)rn09-01 13:18:39.187: E/AndroidRuntime(21433): at java.lang.reflect.Method.invokern
C#Winform,新手求大神帮忙看看什么问题
点击运行后,只有一个button控件变黄色,是什么问题呢?rn但是我把addWall方法里的MessageBox.Show(num.ToString())取消注释后,就能实现10个butten变色。rn请问怎么改呀?rn[img=https://img-bbs.csdn.net/upload/201704/08/1491633088_995649.png][/img]rnrn我把addWall方法里的MessageBox.Show(num.ToString())取消注释或者删除后可以实现rn[img=https://img-bbs.csdn.net/upload/201704/08/1491633108_256531.png][/img]rnrn加上或者我删除就不能实现了,只会出现一个button变黄色
大神帮忙看看这是怎么了
using System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Web;rnusing ISS.Project.BusinessRules.MobileManage;rnusing ISS.Project.BusinessRules.jQueryAjaxHelper;rnrnnamespace WebSite.Interfacernrn /// rn /// Handler_HotelNumZJ 的摘要说明rn /// rn public class Handler_HotelNumZJ : IHttpHandlerrn rnrn rn public void HotelNumZJRequest(HttpContext context, string year)rn rn string str = context.Request.QueryString["callback"];rnrn AjaxResultMessage resultMsg = BR_WEB_MOBILE_ImgPage.GetHotelNumZJInfo(year);rnrn if (string.IsNullOrEmpty(str) == false)rn rn resultMsg.Data = str + "(" + resultMsg.Data + ")";rn rn context.Response.Clear();rn context.Response.Write(resultMsg.Data);rn context.Response.End();rn rnrnrn public bool IsReusablern rn getrn rn return false;rn rn rn rnrnrnrnrnrnrnrn<em>错误</em>问题:rnrn<em>错误</em> 2 “WebSite.Handler”不实现接口成员“System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)” D:\VS2010 workspace\HubeiManage\HubeiManage\ISS.Project\WebSite\Interface\Handler.ashx.cs 13 18 WebSitern<em>错误</em> 8 “WebSite.Interface.Handler_HotelNumZJ”不实现接口成员“System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)” D:\VS2010 workspace\HubeiManage\HubeiManage\ISS.Project\WebSite\Interface\Handler_HotelNumZJ.ashx.cs 13 18 WebSiternrnrnrnrnrnrnrnrnrnrnrnrn
在线跪等!!求大神帮忙看看!!!!
想做一个小游戏 大概需求是:有三张图片 点击随便一张返回一个数字与后面生成的随机数比对 如果一样就改变图片...不一样就继续......................................<em>大神</em>们<em>帮忙</em>解决下呗...........................................[img=https://img-bbs.csdn.net/upload/201410/14/1413297138_631991.png][/img][img=https://img-bbs.csdn.net/upload/201410/14/1413297146_592606.png][/img][img=https://img-bbs.csdn.net/upload/201410/14/1413297162_587923.png][/img]
tomcat7.0.55报错,求大神帮忙看看,坐等。。。。。。
以下为报错内容:org.apache.tomcat.util.net.AprEndpoint$Poller runrn严重: Poller failed with error [610,038] : [APR does not understand this error code] rnrn大概10分钟左右报一次。<em>错误</em>在catalina 日记里rnrn没有其他的错了,这个<em>错误</em>时间长了,tomcat就自动退出。
VSA CAD Killer autoCAD专杀工具下载
VSA CAD Killer autoCAD专杀工具 相关下载链接:[url=//download.csdn.net/download/mousiee/3887186?utm_source=bbsseo]//download.csdn.net/download/mousiee/3887186?utm_source=bbsseo[/url]
uCosii成功移植到51源程序下载
uCosii成功移植到51源程序 可直接编译通过! 相关下载链接:[url=//download.csdn.net/download/coolboyish/4549270?utm_source=bbsseo]//download.csdn.net/download/coolboyish/4549270?utm_source=bbsseo[/url]
2013年华科计算机考研上机第二题下载
2013年华科计算机考研上机第二题,c语言描述 相关下载链接:[url=//download.csdn.net/download/dama677409/5240234?utm_source=bbsseo]//download.csdn.net/download/dama677409/5240234?utm_source=bbsseo[/url]
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池
我们是很有底线的