postgresql突然链接失败 求大神帮忙看看,比较急 20C

报错说明
上一秒还在做这个查询的操作,下一秒报这个错误,查了网上的一些解决方法,发现服务器上面的配置是没有问题的。求大神帮忙看看,比较急

4个回答

出现上述问题时,需修改postgresql.conf和pg_hba.conf文件。

qq_38276972
qq_38276972 同意楼上
大约一年之前 回复
qq_24596675
xuz_Ben 我看了一下,这些全部都是正确的,一出现这个问题的时候我就去看了这些文件。
大约一年之前 回复

需要该postgresql.conf和pg_hba.conf文件 ,把IP加进去。

qq_24596675
xuz_Ben 这联丰文件,我看过了,已经添加进去了,应该不是这个原因导致的,我前一秒都还可以链接,就是突然间报的这个错误
大约一年之前 回复

已解决,由于磁盘过满导致的这个问题

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求大神帮忙 看看!!
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<=k;i++)rn rn sum+=h/2*2;rn h=h/2;rn rn return sum;rn rn rn rnrn public static void main(String[] args)rn rn Scanner scanner=new Scanner(System.in);rn System.out.println("请输入第N次数:");rn int n=scanner.nextInt();rn double y=method(n);rn System.out.println(y);rnrn rn rn rn rn rn rnrn我的方案不行!求大神帮忙!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 <= $totalpage; $i++)rn echo "[".$i."] ";rn rn echo " ";rn 43 $query = "select * from message order by addtime desc limit $begin,$pagesize";rn 44 $result = mysqli_query($link,$query);rn 45 $datanum = mysqli_num_rows($result);rn for( $i = 1; $i <= $datanum; $i++)//$datanum???rn $info = mysqli_fetch_array($result);rn echo " ".$row['author']."rn ".$row['addtime']."rn ".$row['content']."";rn rn mysqli_close($link)rn ?>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);也就是这一行错误,跪求~
求大神帮忙看看!!!
>>> a = [1, 2]rn>>> b = arn>>> print b.append(3)rnNonernrnrnrn我查看了 a 和b的id, 是一样的 rnprint b 也确实显示出 【1, 2】rnrn为什么 调用append()方法打印出来是None。rnrn是赋值只是把值赋值过去,列表的方法不能调用?
急求~~速来大神帮忙看看!
r += '';rnr += '';rnrnrn需要将2个功能合并,当onclick="acceptItem(' + id + ',ITEMS.Invoice);" 成功执行在执行 onclick="invoiceConfirm(' + id + ',ITEMS.Invoice);"rnrn不要2个按钮来实现
求大神帮忙看看,急啊!!!
[img=https://img-bbs.csdn.net/upload/201405/20/1400580312_470063.png][/img][img=https://img-bbs.csdn.net/upload/201405/20/1400580327_906884.png][/img]rn有结果输出,但为什么是错的?(提示,该题为三分加密,明天我需要结果)
急急急!求大神帮忙看看
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driverrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:171)rn at com.dao.ConnectionFactory.getConnection(ConnectionFactory.java:17)rn at com.dao.EquipmentDao.getAllEquipment(EquipmentDao.java:13)rn at Equipment.(Equipment.java:111)rn at Equipment$1.run(Equipment.java:43)rn at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)rn at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)rn at java.awt.EventQueue.access$400(EventQueue.java:81)rn at java.awt.EventQueue$2.run(EventQueue.java:633)rn at java.awt.EventQueue$2.run(EventQueue.java:631)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)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)rnjava.lang.NullPointerExceptionrn at com.dao.EquipmentDao.getAllEquipment(EquipmentDao.java:36)rn at Equipment.(Equipment.java:111)rn at Equipment$1.run(Equipment.java:43)rn at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)rn at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)rn at java.awt.EventQueue.access$400(EventQueue.java:81)rn at java.awt.EventQueue$2.run(EventQueue.java:633)rn at java.awt.EventQueue$2.run(EventQueue.java:631)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)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)rn
求大神帮忙!急!
用C++语言编写程序,判断一个点与三角形的关系,是在三角形内还是在三角形上或是在三角形外。
急!!!!求大神帮忙
生产机上跑的好好地一个项目,突然之不能登录了,检查代码发现是卡在接口那,不执行也不返回,一直卡着,求各位大神帮忙到底是怎么回事! 在线等。。。。。。rnrn以下是代码‘ action 层 rnprivate ChannelAuthorityService channelAuthorityService;rnrn public ChannelAuthorityService getChannelAuthorityService() rn return channelAuthorityService;rn rnrn public void setChannelAuthorityService(rn ChannelAuthorityService channelAuthorityService) rn this.channelAuthorityService = channelAuthorityService;rn rnrn调用的接口:rnList listt = channelAuthorityService.selectChannelAuthority();rnrnrnrn配置文件:rnrnrnrn rn rn rn rn rn rn rn rnrnweb.xml rnrnrn org.springframework.web.context.ContextLoaderListenerrn rnrn rn contextConfigLocationrn /WEB-INF/applicationContext*.xml,classpath*:applicationContext*.xmlrn rnrnrn接口是通过spring工厂管理的 xml注入,lazy-init = falsernrnrnrnrn
急!!求大神帮忙
网页上有两边的广告位 用js实现当页面缩小的时候不出滚动条 只有当页面小于没有广告位的页面时候才出现滚动条 是横着的那种滚动条 怎么实现
急求大神帮忙
大家可以看到在数据库中有这样的数据,rn[img=https://img-bbs.csdn.net/upload/201310/08/1381190529_706125.jpg][/img]rn我想做成想这样的格式rn[img=https://img-bbs.csdn.net/upload/201310/08/1381190543_904606.jpg][/img]rn但是我用了datalist控件,它是在表中一行一行的读,我现在想要五行一读,根据rig number, date 来分组读取数据,请问怎么写
急求!大神帮忙
公司让我开发一个福昕PDF编辑器,我是初学者,该怎么办呀?跪谢大神帮忙!!![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/33.gif][/img]
急!!求大神帮忙!
我想问一下,怎么用android实现颜色填充算法。就是做一个像windows中画板中的颜色填充工具一样的程序。
求大神帮忙,急
[code=sql]rnINSERT INTO dbo.UserGiftJDCardRelarn ( UserGiftID ,rn CardID ,rn IsActive ,rn CreateTime ,rn DetailIDrn )rn SELECT @UserGiftID ,rn ID ,rn 1 ,rn GETDATE() ,rn DetailIDrn FROM #NoGetJDCardrn WHERE DetailID > 0; rn[/code]rn有事务里有这样一段代码,已经判断了 WHERE DetailID > 0,为什么插入的数据,DetailID字段还有为null的呢
急求大神帮忙!!!急!!!
编写一个C++学生成绩管理系统,能完成对10个学生成绩进行处理的相关功能。功能包括输入学生成绩、显示学生成绩、查找某一成绩、输出最高成绩、插入一个成绩、排序、退出程序等。n具体运行界面如下:n1.欢迎及相关功能选择界面n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281711_136954.png)n2.确定功能选择的界面n当输入1时,出现询问是否确定选择此功能。n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281762_185736.png)n当输入N时,出现如下界面,再次输入选择的功能编号。n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281774_845383.png)n如果输入其他功能时,都与输入1类似。当输入Y时,进入相关功能界面n3. 相关功能界面n(1)1输入功能界面n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281792_903665.png)n输入成绩后,如下n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281805_216775.png)n(2)2显示界面n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281818_144999.png)n(3)查找功能n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281839_776330.png)n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281850_670178.png)n第几个成绩参看排序后的位置n(4)最高成绩功能n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281861_701726.png)n(5)插入功能n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281873_542423.png)n插入成功后,选择2显示功能如下:n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281886_38704.png)n(6)排序功能(从高到低排序)n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281897_348801.png)n排序后,输入2显示功能,如下n![图片说明](https://img-ask.csdn.net/upload/201512/28/1451281918_8757.png)
急求大神帮忙!急!!!!!!!!
MouseListener没有响应,不知道为什么,求大神帮帮忙,看哪不对啊[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img]rn[code=java]import java.awt.BorderLayout;rnimport java.awt.event.*;rnimport javax.swing.*;rnrnpublic class MouseTrack implements MouseListenerrn private JFrame myFrame;rn private JTextArea textArea;rn rn public MouseTrack()rn myFrame=new JFrame();rn rn JTextArea textArea=new JTextArea();rn textArea.setEditable(false);rn JScrollPane scroll=new JScrollPane(textArea);rn scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);rn scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);rn rn myFrame.addMouseListener(this);rn rn myFrame.add(scroll,BorderLayout.CENTER);rn rn myFrame.setSize(600,400);rn myFrame.setResizable(false);rn myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn myFrame.setVisible(true);rn rn rn public static void main(String args[])rn MouseTrack frame=new MouseTrack();rn rn rn public void mouseClicked(MouseEvent e) rn System.out.println("***");rn String button;rn if(e.getButton()==e.BUTTON1)rn button="左键";rn rn else if(e.getButton()==e.BUTTON3)rn button="右键";rn rn elsern button="滚轮";rn rn textArea.append("点击了"+button);rn textArea.append("\n点击相对位置:x="+e.getX()+" y="+e.getY());rn textArea.append("点击次数:"+e.getClickCount());rn rn rn public void mousePressed(MouseEvent e)rn public void mouseReleased(MouseEvent e)rn public void mouseEntered(MouseEvent e)rn public void mouseExited(MouseEvent e) ;rnrn[/code]
各位大神帮忙看看,急!
网站有很多栏目,然后首页分很多栏目的模块,每个栏目娶最新的10条数据, 然后通过Repeater根据每个栏目的Id去数据库查询,比如10个栏目要根据10个栏目的id去数据库查10次, 还有一种方式是通过union去连接sql语句一次性查询10个栏目的最新10条数据 然后在通过datatable筛选,请问这两种方式哪种比较好? 或者有没有更好的方式?
求各位大神帮忙看看
用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的一个基本操作,求大神帮忙看看,感激不尽!!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
求各位大神帮忙看看~!
各位大哥好,我现在在一家五星级酒店实习,做系统维护工作。他们那个客房电脑系统是用的网吧的系统,现在就是老是出现卡频,自动死机重启,还有就是自动断网重启 ,我们让做系统的来看了的,他们说要限制那个上传和下载的速度。可是改了之后比以前还不如了,我们纠结了半天,都没有弄明白到底是哪里出问题了,哪位大哥能帮忙解决哈!
求高手,大神帮忙看看.....
我做一个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求各位能给看看是什么情况,谢谢了。rnrnrn
求大神进来帮忙看看
输入gsettings set com.canonical.Unity.launcher launcher-position Bottom 报错 怎么也调整不到下面。输入以上命令就出错
【急求--帮忙看看】
建立学生名次表rankrn 以grade为首地址的10个字的数组中保存了学生的成绩,其中grade+i保存学号为i+1(i是从0到9的自然数)的学生的成绩。要求建立一个10个字的rank数组,并根据grade中的学生成绩将学生的名次填入rank数组中,其中rank+i的内容是学号为i+1学生的名次(提示:一个学生的名次等于成绩高于该学生的人数加1)。rn代码如下:rn[code=SQL];定义数据段,不说了。 rnDATA SEGMENT rnGRADE DW 88,75,95,63,98,78,87,73,90,60 rnRANK DW 10 DUP (?) rnDATA ENDS rn;------------------------------------------------------------------------------ rn;代码段 rnPROGNAM SEGMENT rnASSUME CS:PROGNAM , DS:DATA rnMAIN PROC FAR ;定义函数。 rnSTART: ;程序的入口。 rnMOV AX , DATA rnMOV DS , AX ;初始化数据段的段地址。 rnMOV CX , 10 ;设置循环次数为10 rnMOV BX , 0 ;BX存放当前被处理的数据在数组中的索引值,初始化为0。 rnCYCLE: ;外层循环的起始点。 rnPUSH CX ;保存循环计数(下面的pop CX用来恢复这个计数)。 rnMOV AX , GRADE[BX] ;取出第BX个学生的成绩,放到AX寄存器中(即当前处理的学生的成绩)。 rnMOV DX , 0 ;存放当前处理的学生的名次。初始化为0. rnLEA SI , GRADE ;取数组的起始偏移地址,放到SI寄存器中。 rnMOV CX,10 ;个人认为这里应该加上这一句。原来的应该得不到正确的结果。但是没有试验。下面会用C语言来解释这段代码。 rnNEXT: ;内层循环的起始点。该循环用来找出成绩比AX高的学生人数+1。 rnCMP AX , [SI] ;用AX和DS:[SI]比较, rnJG NOCOUNT ;如果AX大则跳过INC DX rnINC DX ;AX不大于DS:[SI]则DX自增一次。 rnNOCOUNT: rnADD SI , 2 ;使SI加2以指向下一个被计较的对象。 rnLOOP NEXT ;内层循环。CX不为0则跳到NEXT。 rnMOV RANK[BX] , DX ;把DX(此时是第BX个学生的排名)存到RANK数组对应的位置。 rnPOP CX ;恢复外层循环的计数。 rnADD BX , 2 ;BX加2指向下个被处理的学生的成绩。 rnLOOP CYCLE ;外层循环。 rnMOV AX , 4c00h rnINT 21h ;结束程序。 rnMAIN ENDP rnPROGNAM ENDS rnEND START ;定义程序的入口点。[/code]rnrn[color=#FF0000]我现在想在插入rank数组后 显示这个rank数组的内容 rn请问怎么修改上面代码[/color]rnrn谢谢 真的很急
急求,帮忙看看。
在 EXCEL里面,设置个公式,老是出错rnrnt*t*p(1-p)n/n*q*q+t*t*p(1-p)rnrnrnrn我分成四个格子,T P Q N 然后设置这个公式,每个格子填入相应的数字,结果就出来。rn
CreateProcessAsUser问题,创建进程失败,求大神帮忙看看
#pragma comment( linker, "/subsystem:/"windows/" /entry:/"mainCRTStartup/"" )rn#include "stdafx.h"rn#include "Win32Project1.h"rn#include rn#include rn#include rn#include rn#include rn#include rn#pragma comment(lib,"Userenv.lib")rnrn#define MAX_LOADSTRING 100rnrnusing namespace std;rnrnrn// 全局变量: rnHINSTANCE hInst; // 当前实例rnWCHAR szTitle[MAX_LOADSTRING]; // 标题栏文本rnWCHAR szWindowClass[MAX_LOADSTRING]; // 主窗口类名rnrn // 此代码模块中包含的函数的前向声明: rnATOM MyRegisterClass(HINSTANCE hInstance);rnBOOL InitInstance(HINSTANCE, int);rnLRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);rnINT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);rnrnstring GetExePath(void)rnrn char szFilePath[MAX_PATH + 1] = 0 ;rn GetModuleFileNameA(NULL, szFilePath, MAX_PATH);rn (strrchr(szFilePath, '\\'))[0] = 0; // 删除文件名,只获得路径字串 rn string path = szFilePath;rnrn return path;rnrnrnBOOL GetTokenByName(HANDLE &hToken, LPSTR lpName)rnrn if (!lpName)rn return FALSE;rnrn HANDLE hProcessSnap = NULL;rn BOOL bRet = FALSE;rn PROCESSENTRY32 pe32 = 0 ;rnrn hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);rn if (hProcessSnap == INVALID_HANDLE_VALUE)rn return (FALSE);rnrn pe32.dwSize = sizeof(PROCESSENTRY32);rnrn if (Process32First(hProcessSnap, &pe32))rn rn dorn rn if (!strcmp(_strupr(pe32.szExeFile), _strupr(lpName)))rn rn HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION,rn FALSE, pe32.th32ProcessID);rn bRet = OpenProcessToken(hProcess, TOKEN_ALL_ACCESS, &hToken);rn CloseHandle(hProcessSnap);rn return (bRet);rn rn while (Process32Next(hProcessSnap, &pe32));rn bRet = TRUE;rn rn elsern bRet = FALSE;rnrn CloseHandle(hProcessSnap);rn return (bRet);rnrnrnBOOL RunProcess(LPCSTR lpImage, LPSTR lpCommandLine)rnrn if (!lpImage)rn return FALSE;rnrn HANDLE hToken;rn if (!GetTokenByName(hToken, "EXPLORER.EXE"))rn return FALSE;rnrn STARTUPINFO si;rn PROCESS_INFORMATION pi;rnrn ZeroMemory(&si, sizeof(STARTUPINFO));rn si.cb = sizeof(STARTUPINFO);rn si.lpDesktop = TEXT("winsta0\\default");rnrn BOOL bResult = CreateProcessAsUser(hToken, lpImage, lpCommandLine, NULL, NULL,rn FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi);rn CloseHandle(hToken);rn char error[256] = 0 ;rn sprintf(error, "[Start] start process failed:%d", GetLastError());rn if (bResult)rn rn OutputDebugString("CreateProcessAsUser ok!\r\n");rn printf("CreateProcessAsUser ok!\r\n");rn rn elsern rn OutputDebugString("CreateProcessAsUse* **lse!\r\n");rn printf("CreateProcessAsUse* **lse!\r\n");rn rn return bResult;rnrnrnint APIENTRY wWinMain(_In_ HINSTANCE hInstance,rn _In_opt_ HINSTANCE hPrevInstance,rn _In_ LPWSTR lpCmdLine,rn _In_ int nCmdShow)rnrn //system("jre6//bin//java.exe -jar Terminal.jar");rn rn string path = GetExePath();rn string cmd = "cmd.exe";rn //string cmd = path + "//jre6//bin//java.exe -jar "+ path +"//Terminal.jar";rn //string cmd = path + "//work//jre6//bin//TerminalConsole.exe -jar TerminalConsole.jar";rn printf("The current directory is: %s ", path);rn printf("The current directory is: %s ", cmd);rn //MessageBox(NULL, _T(cmd.c_str()), _T(cmd.c_str()), MB_OK);rn //system(cmd.c_str());rn RunProcess(cmd.c_str(),"");rn return 0;rnrnrnrnrn//rn// 函数: MyRegisterClass()rn//rn// 目的: 注册窗口类。rn//rnATOM MyRegisterClass(HINSTANCE hInstance)rnrn WNDCLASSEXW wcex;rnrn wcex.cbSize = sizeof(WNDCLASSEX);rnrn wcex.style = CS_HREDRAW | CS_VREDRAW;rn wcex.lpfnWndProc = WndProc;rn wcex.cbClsExtra = 0;rn wcex.cbWndExtra = 0;rn wcex.hInstance = hInstance;rn wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_WIN32PROJECT1));rn wcex.hCursor = LoadCursor(nullptr, IDC_ARROW);rn wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);rn wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_WIN32PROJECT1);rn wcex.lpszClassName = szWindowClass;rn wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));rnrn return RegisterClassExW(&wcex);rnrnrn//rn// 函数: InitInstance(HINSTANCE, int)rn//rn// 目的: 保存实例句柄并创建主窗口rn//rn// 注释: rn//rn// 在此函数中,我们在全局变量中保存实例句柄并rn// 创建和显示主程序窗口。rn//rnBOOL InitInstance(HINSTANCE hInstance, int nCmdShow)rnrn hInst = hInstance; // 将实例句柄存储在全局变量中rnrn HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,rn CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr);rnrn if (!hWnd)rn rn return FALSE;rn rnrn ShowWindow(hWnd, nCmdShow);rn UpdateWindow(hWnd);rnrn return TRUE;rnrnrn//rn// 函数: WndProc(HWND, UINT, WPARAM, LPARAM)rn//rn// 目的: 处理主窗口的消息。rn//rn// WM_COMMAND - 处理应用程序菜单rn// WM_PAINT - 绘制主窗口rn// WM_DESTROY - 发送退出消息并返回rn//rn//rnLRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)rnrn switch (message)rn rn case WM_COMMAND:rn rn int wmId = LOWORD(wParam);rn // 分析菜单选择: rn switch (wmId)rn rn case IDM_ABOUT:rn DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);rn break;rn case IDM_EXIT:rn DestroyWindow(hWnd);rn break;rn default:rn return DefWindowProc(hWnd, message, wParam, lParam);rn rn rn break;rn case WM_PAINT:rn rn PAINTSTRUCT ps;rn HDC hdc = BeginPaint(hWnd, &ps);rn // TODO: 在此处添加使用 hdc 的任何绘图代码...rn EndPaint(hWnd, &ps);rn rn break;rn case WM_DESTROY:rn PostQuitMessage(0);rn break;rn default:rn return DefWindowProc(hWnd, message, wParam, lParam);rn rn return 0;rnrnrn// “关于”框的消息处理程序。rnINT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)rnrn UNREFERENCED_PARAMETER(lParam);rn switch (message)rn rn case WM_INITDIALOG:rn return (INT_PTR)TRUE;rnrn case WM_COMMAND:rn if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)rn rn EndDialog(hDlg, LOWORD(wParam));rn return (INT_PTR)TRUE;rn rn break;rn rn return (INT_PTR)FALSE;rnrn
java爬虫模拟登陆失败, 求大神帮忙看看
/**rn * 纷简历模拟登陆rn */rn public static void fenResumePost() rn // 创建客户端rn CloseableHttpClient closeableHttpClient = HttpClients.createDefault();rn // 预访问的网址rn String login_src = "http://www.fenjianli.com/login/home.htm"; rn // 创建请求Post实例rn HttpPost httpPost = new HttpPost(login_src);rn // 设置头部信息进行浏览器模拟行为rn httpPost.addHeader("Accept", "application/json, text/javascript, */*; q=0.01");rn httpPost.addHeader("Accept-Encoding", "gzip, deflate");rn httpPost.addHeader("Accept-Language", "zh-CN,zh;q=0.8");rn httpPost.addHeader("Content", "keep-alive");rn// httpPost.addHeader("Content-Length", "55"); // 提示异常: Content-Length header already presentrn httpPost.addHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");rn httpPost.addHeader("Cookie", "td_cookie=544535021; huodong=fenjianli; hdflag=active; td_cookie=544673389; JSESSIONID=D0B07540004A292D094B4B54BEEB139C; Hm_lvt_accc94e05dd4516e89bc93ebd0d3938e=1503648592,1503987387,1503987657,1505373791; Hm_lpvt_accc94e05dd4516e89bc93ebd0d3938e=1505379033; Hm_lvt_b9e62a948ba6b6274cc0fa7e61b1b38b=1503648592,1503987374,1503987657,1505373791; Hm_lpvt_b9e62a948ba6b6274cc0fa7e61b1b38b=1505379033");rn httpPost.addHeader("Host", "www.fenjianli.com");rn httpPost.addHeader("Origin", "http://www.fenjianli.com");rn httpPost.addHeader("Referer", "http://www.fenjianli.com/login/home.htm");rn httpPost.addHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36");rn httpPost.addHeader("X-Requested-With", "XMLHttpRequest");rnrn // 构建参数,即模拟需要输入的参数。通过抓包获得。rn List list = new ArrayList();rn list.add(new BasicNameValuePair("username", "******")); // 用户名rn list.add(new BasicNameValuePair("password", "******")); // 密码rn list.add(new BasicNameValuePair("rememberMe", "1"));rn// list.add(new BasicNameValuePair("Request Method", "POST")); // 设置提交方法rnrn // 向对方服务器发送Post请求rn try rn // 将参数进行封装,提交到服务器端rn httpPost.setEntity(new UrlEncodedFormEntity(list, "UTF8"));rn CloseableHttpResponse httpResponse = closeableHttpClient.execute(httpPost);rnrn // 如果模拟登录成功, 得到服务响应状态码rn if (httpResponse.getStatusLine().getStatusCode() == 200) rn // 打印所有响应头rn Header[] headers = httpResponse.getAllHeaders();rn System.out.println("登陆成功!");rn for (Header header : headers) rn System.out.println(header.getName() + ": " + header.getValue());rn rn else rn System.out.println("elan异常!");rn rn catch (Exception e) rn e.printStackTrace();rn rn
求助!!!Ubuntu安装busybox编译失败,求大神帮忙看看
本人是刚学Linux的一枚小白,编译busybox显示这样的信息,跪求大神帮忙!!![img=https://img-bbs.csdn.net/upload/201802/11/1518322976_745100.png][/img] 谢谢[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/81.gif][/img]
spring mvc demo运行失败,求大神帮忙看看~~~
web.xml:rn[code=text]rnrnrn Spring Web MVC Applicationrn rn rn contextConfigLocationrn /WEB-INF/spring-mvc-dispatcher-servlet.xmlrn rn rn rn spring-mvc-dispatcherrn org.springframework.web.servlet.DispatcherServletrn 1rn rnrn rn spring-mvc-dispatcherrn /data/*rn rnrn rn org.springframework.web.context.ContextLoaderListenerrn rnrn[/code]rnrnrnspring-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]
急!急!急! 求大神帮忙
有个需求。版本号的比较,比方说A版本1.0.0.2 和B版本1.0.0.10 ,希望得到是B版本大于A版本,但是用compareTo比较的结果是A版本大于B版本,求大神,要怎么实现?希望给个代码,实在整不出来
php编程求大神帮忙 急!急!急!
利用函数求十个学生的平均成绩,并求得低于平均成绩的学生个数。[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/54.gif][/img]
求大神帮忙!急!急!急!
启动MyEclipse8.6报错 怎么解决?rnAn internal error has occurred.rncom/genuitec/pulse2/client/common/provisioning/blueprint/ClientBlueprint
急急急 求大神帮忙
我做的是一个猜数字小游戏 但是在输出前五名记录的时候运行是错的 求大神帮我看看啊 很急很急 明天就要交了 小女子感激不尽 [img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/49.gif][/img]rnrn#includern#includern#includern#includern#includern#includern#include rnrnusing namespace std;rnrnrnconst int max=100;rnvoid instruction();rnvoid start();rnvoid playrecord(char *filename);rnvoid CreateFile2(char *filename); rnvoid Topfive(); rnvoid Topfiverefer(char *filename);rnrnrnclass player //定义一个玩家类,记录玩家的排名、姓名以及成绩rn rnpublic:rn char name[20];rn float score;rn int rank;rnrn rn player(char *a=" ",float b=0, int c=0) rn rn strcpy(name,a); rn score=b;rn rank=c;rnrn rn rn void Setname(char *a=" ") rn rn strcpy(name,a); rn rn void Setscore(float b)rn rn score=b;rn rn void Setrank(int c)rn rn rank=c;rn rn rnrnpl[1000];rnrnstatic int x; //定义一个静态的全局变量rnrnrnvoid CreateFile1(char *filename)//新建一个文本文件存放所有猜出单词的玩家记录?rnrn x++;rn ofstream outf(filename,ios::app);rn cout<<"请输入您的姓名以便记录和查询您的成绩成绩: "; rn cin>>pl[x].name;rn outf<pl[i].score)rn rn yy=pl[i];rn pl[i]=pl[j];rn pl[j]=yy;rn rn rn rn rn for(i=0;i>n;rn switch (n)rn rn case 1: instruction();rn break;rn case 2: start();rn break;rn case 3: playrecord("playrecord.txt");rn break;rn case 4: Topfive();rn break;rn case 5: exit(0);rn break;rn rn rnrnrnrnrnrnvoid instruction()rnrn system("cls");rn cout<<"*********************************欢迎您体验本游戏*******************************"<>number;rn rn while(number!=i)rn rn times++;rn if(number>i)rn cout<<"大了!";rn elsern if(number>number;rn rn rn cout<<"(计时结束)"; //计时结束rn te=time(NULL);rnrn times++;rnrnrn cout<<"恭喜您,猜对了!`(*∩_∩*)′"<>c;rn if (c=='y')rn rn rn system("cls");rn goto mark1;rn rn CreateFile1("playrecord.txt");rn cout<<"按任意键返回主目录"<
求大神快点帮忙,急。。。。。
#include rn#include rn#include rnrnusing namespace std;rnrntypedef structrn int key;rn string value; rnDicElement;rnrntypedef structrn int MAXNUM;rn int n;rn DicElement *element;rnSeqDictionary;rntypedef SeqDictionary*PSeqDictionary;rnrnPSeqDictionary createEmptyDictionary_seq(int m ) rn//分配空间rn PSeqDictionary p= (PSeqDictionary)malloc(sizeof(SeqDictionary));rn if (p!=NULL)rn p->element= (DicElement*)malloc(sizeof(DicElement)*m);rn if (p->element)rn p->MAXNUM=m;rn p->n=m;rn return (p);rn rn rn printf("Out of space!!\n"); /* 存储分配失败 */rn return NULL;rnrnrnrnint main()rn int zz;rn ifstream fin("list.txt");//打开文件rn PSeqDictionary stu;rn stu=createEmptyDictionary_seq(80);rnfor(int i=0;i<80;i++)rn fin>>zz; //这里zz只是个酱油而已rn fin>>stu->element[i].key; rn//从这里往下就运行出错显示停止工作了,为什么??????????????????????????????????rn fin>>stu->element[i].value;rn cout<element[i].key<<" "<element[i].value<
求大神帮忙 急急急
[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]我遇到问题 关于文件读写rn附上源文件rn提出问题:我用的是一个结构体向磁盘写入文件,但是读取的时候不是多读一行 就是读不出来。rn#include rn#include rnrnstruct studentrnrn int num;rn char name[20];rn char fale[5];rn char nextschool;rn int water;rn int elct;rnstu[10];rnrnrnrnclass student1rnrnpublic:rn void inputdata();rn void inputtxt();rn rn void readtxt();rn;rnrnvoid student1::inputdata()rnrn //ofstream h;rn //h.open("D:\\student.txt",ios::app);rn for(int i=0;i<2;i++)rn rn cin>>stu[i].num>>stu[i].name>>stu[i].fale>>stu[i].nextschool>>stu[i].elct>>stu[i].water;rn rn rnrn rnrnrnvoid student1::inputtxt()rnrn fstream h;rn h.open("D:\\student.txt",ios::app);rn for(int i=0;i<2;i++)rn rn h<>stu[i++].num>>stu[i++].name>>stu[i++].fale>>stu[i++].nextschool>>stu[i++].elct>>stu[i++].water;rn cout<<"/n";rn cout<
求大神帮忙 谢谢 急!
用VS连接数据库 并且需要验证用户名和密码 还要进行查询数据库的内容。。。。急rnrn 谢谢
求大神帮忙!急急急!!!!
连接服务器上的Oracle数据,BS不能连CS可以连rn一样的代码rn[code=csharp]rnstring oradb = "Data Source=CYWL;User ID=CY_HSP_YF;Password=yfht;";rn OracleConnection conn = new OracleConnection(oradb);rn conn.Open();rn conn.Dispose();rn[/code]rn客户端rnOracle\ora90\network\ADMIN\tnsnames.orarn如下:rnrnCYWL =rn (DESCRIPTION =rn (ADDRESS_LIST =rn (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.9)(PORT = 1521))rn )rn (CONNECT_DATA =rn (SERVER = DEDICATED)rn (SERVICE_NAME = logistics)rn )rn )rn急急急![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]弄了一天了!rnrnrn
链接问题,求大神看看,困扰好几天了 !!
项目在vs2008中正常运行,换了台机子,装的是vs2010,就出现以下错误:rn[code=c]error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base_secure@std@@QBEXXZ),该符号在函数 "public: void __thiscall std::deque >::push_back(struct tagPOINT const &)" (?push_back@?$deque@UtagPOINT@@V?$allocator@UtagPOINT@@@std@@@std@@QAEXABUtagPOINT@@@Z) 中被引用rn1>cximageud.lib(ximadsp.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Container_base_secure::~_Container_base_secure(void)" (__imp_??1_Container_base_secure@std@@QAE@XZ),该符号在函数 "protected: __thiscall std::_Container_base_aux_alloc_empty >::~_Container_base_aux_alloc_empty >(void)" (??1?$_Container_base_aux_alloc_empty@V?$allocator@UtagPOINT@@@std@@@std@@IAE@XZ) 中被引用rn1>cximageud.lib(ximadsp.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Container_base_secure::_Container_base_secure(void)" (__imp_??0_Container_base_secure@std@@QAE@XZ),该符号在函数 "protected: __thiscall std::_Container_base_aux_alloc_empty >::_Container_base_aux_alloc_empty >(class std::allocator)" (??0?$_Container_base_aux_alloc_empty@V?$allocator@UtagPOINT@@@std@@@std@@IAE@V?$allocator@UtagPOINT@@@1@@Z) 中被引用rn1>..\..\Output\Debug\MainLogic.dll : fatal error LNK1120: 3 个无法解析的外部命令[/code]rn求大牛帮忙 看看!
急!,jsp连接SQL Server2008失败,求大神看看
以下是我的代码rn<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>rn<%@ page import="java.sql.*" %>rn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rn%>rnrnrnrn rn rn rn 通过JDBC驱动访问SQLSever 2008rn rn rn rn rn rn rn rnrn rn rn rn rn rn 使用JDBC驱动访问 SQL Server 2008数据库rn rn rn rn 学号rn 姓名rn 性别rn 年龄rn 体重rn rn <%rn Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");rn String url = "jdbc:sqlserver://localhost:1433;databasename=student";rn String user = "sa";rn String password="root";rn Connection conn=DriverManager.getConnection(url,user,password);rn Statement stmt = conn.createStatement();rn String sql = "select * from info";rn ResultSet rs = stmt.executeQuery(sql);rn while(rs.next())rn %>rn rn <%=rs.getString("studentNumber") %>rn <%=rs.getString("studentName") %>rn <%=rs.getString("studentSex") %>rn <%=rs.getString("studentAge") %>rn <%=rs.getString("studentWeight") %>rn rn <%rn rn rs.close();rn stmt.close();rn conn.close();rn %>rn rn rn rn rnrn----------------------------------------------------------------------------rn报错内容:rnHTTP Status 500 -rnrntype Exception reportrnrnmessagernrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexceptionrnrnorg.apache.jasper.JasperException: An exception occurred processing JSP page /accessSQLServer2008.jsp at line 40rnrn37: 浣撻噸rn38: rn39: <%rn40: Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");rn41: String url = "jdbc:sqlserver://localhost:1433;databasename=student";rn42: String user = "sa";rn43: String password="root";rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:519)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:410)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnroot causernrnjavax.servlet.ServletException: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriverrn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)rn org.apache.jsp.accessSQLServer2008_jsp._jspService(accessSQLServer2008_jsp.java:144)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnroot causernrnjava.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriverrn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1493)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)rn java.lang.ClassLoader.loadClassInternal(Unknown Source)rn java.lang.Class.forName0(Native Method)rn java.lang.Class.forName(Unknown Source)rn org.apache.jsp.accessSQLServer2008_jsp._jspService(accessSQLServer2008_jsp.java:98)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.30 logs.rnApache Tomcat/6.0.30
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数