这个插件在启用的过程中产生了 XXXX 个字符的异常输出。如果您遇到了“headers already sent”错误、 [问题点数:100分]

Bbs1
本版专家分:0
Blank
GitHub 绑定GitHub第三方账户获取
结帖率 0%
Cannot modify header information - headers already sent by
[code=PHP]".DB::errorMessage($connection);rn rn rn $username = mysql_real_escape_string($_SERVER['PHP_AUTH_USER']);rn $password = mysql_real_escape_string($_SERVER['PHP_AUTH_USER']);rn $query = "select user_id, username from users where username = '".$username."' and password = MD5('".$password."') limit 1";rn $result = $connection->query($query);rn rn if (!$row = $result->fetchRow(DB_FETCHMODE_ASSOC))rn /*第二个header()*/rn header('WWW-Authenticate: Basic realm = "Member Area"');rn header("HTTP/1.0 401 Unauthorized");rn echo "Your username and password combination was incorrect!";rn exit;rn rn rn $_SESSION['user_id'] = $row['user_id'];rn $_SESSION['username'] = $row['username'];rn rn echo "You have successfully logged in as: ".$_SESSION["username"].".";rn rn?>[/code]rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at C:\xampp\htdocs\db_login.php:7) in C:\xampp\htdocs\user_login_main.php on line 10rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at C:\xampp\htdocs\db_login.php:7) in C:\xampp\htdocs\user_login_main.php on line 11rnYou must enter a username and password combination!rnrn<em>这个</em>一个用户登录验证rn查资料说header()要放在最前面,但是尽管可以吧第一次的header()放在最前面,但是我的第二个header()仍然会报错,求高手求救该怎么改?
Cannot modify header information - headers already sent by ?
Warning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at F:\wwwphp2\systerm\index.php:11) in F:\wwwphp2\systerm\cookiesession.php on line 9rnfailed rnrn我的 index, 使用top,body,bottom 引入的rnrn在body,里include cookiesession.php页面来读cookie值rnrn<em>这个</em>意思是说不能接连引用还是?。。
关于使用 session_start 出现的 headers already sent错误的解释
请看详细的<em>错误</em>程序和<em>输出</em>结果rnrnrnrnrn<em>输出</em>为rntesting ... rnWarning: Cannot send session cookie - <em>headers</em> <em>already</em> <em>sent</em> by (output started at F:php2000 est.php:2) in F:php2000 est.php on line 4rnrnWarning: Cannot send session cache limiter - <em>headers</em> <em>already</em> <em>sent</em> (output started at F:php2000 est.php:2) in F:php2000 est.php on line 4rnrn分析:rn主要原因,php.ini里有关于session 的定义,默认是使用 cookiern[session]rnsession.use_cookies = 1 ; whether to use cookiesrnrn这句表明使用 cookies 存储session 而 cookies的设置必须在正式 htm 之前,也就是只能在 header 里面才行,所以造成<em>这个</em><em>错误</em>的发生rnrn我们修改程序为rnrn同样<em>错误</em>,因为 echo 已经<em>输出</em>了rnrn我们修改程序为rnrn运行正确表明在session_start的前面可以有计算语句,但是不能有<em>输出</em>语句rnrn我尝试过修改rnsession.use_cookies = 0 ; whether to use cookiesrn但是没有成功,希望知道答案的朋友通知我,如何去掉cookie方式的 session rn(转自php2000.com)rn大家有没有好的办法啊。
错误headers already sent by ……,超难办啊
一个用户说rn“论坛上方多了rnWarning: session_start(): Cannot send session cookie - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /usr/local/xpanel/templates/category1/header.php:4) in /home/mmoclan/wuju.mmoclan.com/BBSpub/global.php on line 2rnrnWarning: session_start(): Cannot send session cache limiter - <em>headers</em> <em>already</em> <em>sent</em> (output started at /usr/local/xpanel/templates/category1/header.php:4) in /home/mmoclan/wuju.mmoclan.com/BBSpub/global.php on line 2rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /usr/local/xpanel/templates/category1/header.php:4) in /home/mmoclan/wuju.mmoclan.com/BBSpub/global.php on line 56rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /usr/local/xpanel/templates/category1/header.php:4) in /home/mmoclan/wuju.mmoclan.com/BBSpub/global.php on line 57rn”rn我怀疑他那个/usr/local/xpanel/templates/category1/header.php是免费服务器的那些广告吧。它们是不是自动加载到他所有文件的前面?怎么处理呢?rn我global.php文件的第二行是session_start();函数。我在它前面加上@的话,会不会就可以了?
求助:Cannot modify header information - headers already sent by (output started at
Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started atrnrn其实<em>这个</em>问题本身并不难rnrn是这样的,我做了<em>异常</em>报错的东西,看到数据库里有<em>这个</em>报错,但是通过查看该url的页面,并没有发现<em>错误</em>,而且在我访问<em>这个</em>url的时候也没有再次将<em>这个</em>报错写入数据库。rnrn毫无疑问,是搜索引擎的蜘蛛进去了rnrn报错那行代码:setcookie("cookieip", $ip, time()+28800, "/", 'my.com');rnrn明白是怎么回事了,却没找到解决方案rnrn我想这样,当蜘蛛进来的时候,不使用cookie,但不敢乱动,因为怕蜘蛛更加反感,然后你们懂的……
关于 使用post 方法出现headers already sent问题
最近用了百度语音部署在新浪云上,发现使用post 方法时会出现如下<em>错误</em>,使用get方法可以成功:Warning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /data1/www/htdocs/480/androidmysql/3/tts
Cannot add header information - headers already sent by 什么意思?
地址是<em>这个</em>:rnhttp://www.truelover.net/index3.phprnrn他显示rnWarning: Cannot add header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /z1/truelover/public_html/index3.php:84) in /z1/truelover/public_html/download/fun.php on line 8rnrnWarning: Cannot add header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /z1/truelover/public_html/index3.php:84) in /z1/truelover/public_html/download/fun.php on line 9rn什么意思?好象是我<em>这个</em>页和fun.php冲突?第8、9行什么都没有啊,我看不懂
轻松解决Warning: Cannot modify header information – headers already sent by……
最近换了服务器后,打开某些页面莫名其妙的出现提示Warning: Cannot modify header information – <em>headers</em> <em>already</em> <em>sent</em> by (output started at D:\website\htdocs\w\wp-config.php:1)。在网上搜索<em>到了</em>一些解决方法,比如编辑php.ini文件,把output_buffering = 改为on(修改之后需重启IIS服务),意思是打开无限大的<em>输出</em>缓存,这样做之后确实有效,没出现提示了,但运行一段时间之后发现经常提示内存不足,怀疑与<em>这个</em>设置有关,只好又改回来,重启注视提示的文字,怀疑at后面那个文件即D:\website\htdocs\w\wp-config.php有问题,于是备份了一份,然后打开wp-config.php,另存为,发现原来的编码是utf-8,于是我试着把编码那项选择ANSI,覆盖保存为wp-config.php,突然发现提示没再出现了。
紧急求救:Cannot modify header information - headers already sent by
各位早上好,老兄我遇到一个大难题了,老是报rnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /home/part/part/inc/selectln.php:1) in /home/part/part/inc/selectln.php on line 51rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /home/part/part/inc/selectln.php:1) in /home/part/part/inc/selectln.php on line 57rn这种<em>错误</em>,我在网上查了rn把php.ini中output_buffering = off改为output_buffering = on改了还是不行,各位能帮我分析下程序的问题所在吗?在服务器中要如何设置,程序在局域网中没有问题,放到外网就出这种问题了,各位帮帮我,我头都大了,唉,代码如下rn 0)rn rn $tail = stristr ($strtem,"."); //保存.html 这样的扩展名rn $strtem = substr($strtem,0,$pos1);rn rn $pos1 = stripos($strtem,"_") ; //去掉 _en, _hk 这样的尾缀rn if ($pos1 > 0)rn rn $strtem = substr($strtem,0,$pos1);rn rn return $strtem.$strLn.$tail;rnrn$SourceUrl = getenv("HTTP_REFERER");rn$pos1 = stristr ($SourceUrl,"/");rnwhile ($pos1) rn $pos2 = substr($pos1,1);rn $pos1 = stristr ($pos2,"/");rn rn$ExpireTime = mktime(0,0,0,1,1,2100); //到2100年1月1日失效rnswitch ($_GET['ln'])rn rn case "cn": // rn if ($pos2==""):rn $newUrl = $SourceUrl;rn else:rn $newUrl = substr($SourceUrl,0,strlen($SourceUrl)-strlen($pos2)).GetName($pos2,"_cn");rn endif;rn setcookie("ln","cn",$ExpireTime,"/");//不带失效时间rn break;rn case "hk":rn if ($pos2==""):rn $newUrl = $SourceUrl;rn else:rn $newUrl = substr($SourceUrl,0,strlen($SourceUrl)-strlen($pos2)).GeTName($pos2,"_hk");rn endif;rn setcookie("ln","hk",$ExpireTime,"/");//不带失效时间rn break; rn case "en": rn if ($pos2==""):rn $newUrl = $SourceUrl;rn else:rn $newUrl = substr($SourceUrl,0,strlen($SourceUrl)-strlen($pos2)) .GeTName($pos2,"_en");rn endif;rn setcookie("ln","en",$ExpireTime,"/");rn break;rn default:rn $newUrl = $SourceUrl;rn break;rn rn header("location:".$newUrl); // 返回其调用页面rn ob_end_flush();rn exit();rn?>
wordpress 中 include的问题. headers already sent问题
在开发一个小<em>插件</em>, 遇到一下问题.rnnew-main-var.php //保存一些变量rnnew-main-setting.phprnnew-main-plugin.phprnrn我的原意是这样. rn//new-main-plugin.phprnrn到现在为止一切正常.rnrn但是只要我在new-main-setting.php中添加. 也就是包含new-main-var.php时.rn//new-main-setting.phprnrnrn就会发生The plugin generated 1 characters of unexpected output during activation. If you notice “<em>headers</em> <em>already</em> <em>sent</em>” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.<em>错误</em>.rnrn有没有人熟悉的? 我要怎样写才不会发生<em>错误</em>. 谢谢.
Warning: Cannot modify header information - headers already sent by
各位好,我的程序在局域网中没有问题,放到外网后出现那下的问题,找了一天了,都没有解决,这上面的方法我都用过了http://joesen.f2blog.com/read-372.html,请各各位指教,<em>错误</em>如下:rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /home/part/part/search/buy_d.php:1) in /home/part/part/inc/dbclass.php on line 168rnrnfunction LastUrl($cookValue)rn rn echo $cookValue." ";rn $ExpireTime = mktime(0,0,0,1,1,2100); //到2100年1月1日失效rn setcookie("LastUrlu",$cookValue,$ExpireTime,"/");//不带失效时间,168行rnrn
出现了:Cannot send session cache limiter - headers already sent 问题?
我用的是php+MySQL做了一个网站rn当调试网站的的时候网站的功能是正常的,可是在首页出现了<em>这个</em>问题rnsession_start() [function.session-start]: Cannot send session cache limiter - <em>headers</em> <em>already</em> <em>sent</em> (output started at F:\phpdocs\bbs\index.php:79) in F:\phpdocs\bbs\menu.php on line 4rn 基中源程序为rn if (!isset($_SESSION)) //第3行rn session_start(); //第4行rn //第5行rnrnrn还有另一个问题就是,当注册的会员注销后,能达到注销的效果,但是注销后跳转出来的页面显示出这样的结果:rnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at F:\phpdocs\bbs\login.php:96) in F:\phpdocs\bbs\menu.php on line 24rnrnrn源代码为:rn if ($logoutGoTo) //23行rn header("Location: $logoutGoTo"); //24行rn exit; //25行,rn rnrn请问如何修改,谢谢!
到了这个问题
IMP-00017: 由于 ORACLE <em>错误</em> 922, 以下语句失败:rn "CREATE TABLE "CADASTRAL_QSJZX" ("OBJECTID" NUMBER(*,0) NOT NULL ENABLE, "ID"rn "" NUMBER(*,0), "MPLENGTH" NUMBER(38, 8), "标识码" NUMBER(*,0), "要素代码" N"rn "VARCHAR2(10), "界址线长度" NUMBER(38, 8), "界址线类别" NVARCHAR2(2), "界址线"rn "性质" NVARCHAR2(6), "界址线位置" NVARCHAR2(1), "权属界线协" NVARCHAR2(30), "rn ""权属争议原" NVARCHAR2(30), "变更记录号" NVARCHAR2(100), "邻宗左宗地" NVARC"rn "HAR2(19), "邻宗右宗地" NVARCHAR2(19), "界址线描述" NVARCHAR2(255), "项目号""rn " NVARCHAR2(20), "FROM_STATE" NUMBER(*,0), "TO_STATEID" NUMBER(*,0), "SHAPE""rn " "SDE"."ST_GEOMETRY") PCTFREE 0 PCTUSED 40 INITRANS 4 MAXTRANS 255 STORAGE"rn "(INITIAL 28311552 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLES"rn "PACE "YQDJSDEBZ" LOGGING NOCOMPRESS LOB ("SHAPE"."POINTS") STORE AS (TABLE"rn "SPACE "YQDJSDEBZ" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10 CACHE STO"rn "RAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT))"rn "INSERT INTO "CADASTRAL_QSJZX" ("OBJECTID", "ID", "MPLENGTH", "标识码", "要素"rn "代码", "界址线长度", "界址线类别", "界址线性质", "界址线位置", "权属界线协""rn ", "权属争议原", "变更记录号", "邻宗左宗地", "邻宗右宗地", "界址线描述", "项"rn "目号", "FROM_STATE", "TO_STATEID", "SHAPE") VALUES (:1, :2, :3, :4, :5, :6,"rn " :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17, :18, :19)
练习Block的时候遇到了这个错误
Block不能定义在方法外面吗?
到了完全看不懂的异常
一月前我用MFC对话框划拉了一个对话框,上面放个编辑框 用来为任意函数采集输入,放个静态文本用来提示,用CString型成员变量m_Callee区分调用方rnBOOL CDlgInput::OnInitDialog()rnrn if(m_Callee=="BtnRecord")rn SetDlgItemText(IDC_STATIC1,"请填入 0:保存 1:取消");rn else if(m_Callee=="BtnCalc")rn SetDlgItemText(IDC_STATIC1,"请填入初始数目");rn return TRUE; // return TRUE unless you set the focus to a controlrnrnrn用了一个多月都好好的.结果今天把"请填入初始数目"改为"请填入初始索引",重新编译,这次DoModal时就<em>异常</em>了,停在winocc内CWnd::AttachControlSite()后,而且编译器在我的OnInitDialog最后加了注释// <em>异常</em>: OCX 属性页应返回 FALSErnrn字面意思好像是控件属性页是手动指定焦点故应返回0? 可是我一个多月来没有碰界面啊
输出0000--9999,遇到了问题
using System;rnusing System.Collections.Generic;rnusing System.Text;rnrnnamespace TestCrnrn class Programrn rn static void Main(string[] args)rn rn int i;rn int j;rn int m;rn int n;rn for (i = 0; i < 9;i++ )rn rn for (j = 0; j < 9; j++)rn rn for (m = 0; m < 9; m++)rn rn for (n = 0; n < 9; n++)rn rn Console.Write(i + j +m + n + " ");rn rn rn rn rn rn rnrnrn以上是我自己写的程序,怎么老是到32就截至了呢?(只要能正确<em>输出</em>0000--9999之间所有的数)rn我认为题目也不难,怎么就运行不到俺心里呢?rn请高手指点!谢谢
关于使用 session_start 出现的 headers already sent错误(请求高手帮助)
在PHPE中,http://www.phpe.net/faq/56.shtml,不知道有没有解决的??rnrn我也遇<em>到了</em>这样的问题,是不是与PHP的版本或PHP.ini的设置有关?rnrnrn用的万网的虚拟主机升级后就出现了这样的问题。news.php中用了header();rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /home/uk5508845/htdocs/inc/function.inc.php:398) in /home/uk5508845/htdocs/news.php on line 200rnrn在用之前并没有代码<em>输出</em>!高手不吝赐教!
高手请进,大量给分:关于使用 session_start 出现的 headers already sent错误的解释
请看详细的<em>错误</em>程序和<em>输出</em>结果 rn rn rn rnrn<em>输出</em>为 rntesting ... rnWarning: Cannot send session cookie - <em>headers</em> <em>already</em> <em>sent</em> by (output started at F:php2000 est.php:2) in F:php2000 est.php on line 4 rnrnWarning: Cannot send session cache limiter - <em>headers</em> <em>already</em> <em>sent</em> (output started at F:php2000 est.php:2) in F:php2000 est.php on line 4 rnrn分析: rn主要原因,php.ini里有关于session 的定义,默认是使用 cookie rn[session] rnsession.use_cookies = 1 ; whether to use cookies rnrn这句表明使用 cookies 存储session 而 cookies的设置必须在正式 htm 之前,也就是只能在 header 里面才行,所以造成<em>这个</em><em>错误</em>的发生 rnrn我们修改程序为 rn rn同样<em>错误</em>,因为 echo 已经<em>输出</em>了 rnrn我们修改程序为 rn rn运行正确表明在session_start的前面可以有计算语句,但是不能有<em>输出</em>语句 rnrn我尝试过修改 rnsession.use_cookies = 0 ; whether to use cookies rn但是没有成功,希望知道答案的朋友通知我,如何去掉cookie方式的 session
Cannot modify header information - headers already sent 错误是什么问题啊?
PHP Warning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /homex/xxx/public_html/go2uk.org/bbs/cache/lang_cache/chs/lang_blog_location.php:1) in Unknown on line 0rnrn请问<em>这个</em>是什么原因导致的呢?应该如何解决?
到了oralce ora-01033错误
数据库登陆不了Oracle0,提示rnoralce ora-01033:oracle initializationg or shutdown in progress rnrnrn按照网上的办法查<em>到了</em>具体原因:rnSQL> alter database open;rnalter database openrn*rnERROR at line 1:rnORA-16038: log 1 sequence# 79 cannot be archivedrnORA-19809: limit exceeded for recovery filesrnORA-00312: online log 1 thread 1: '/opt/oracle/oradata/cn_sh_bp/redo01.log'rnrn下面该怎么办呢?rn
提示 运行库遇到了错误
[align=left]hard_ver = new byte[520];[/align]rn [align=left]ver = new byte[520];rn st=IC45d041.IC45d041.srd_45d041(icdev, j, 0, 520, hard_ver);rn st=IC.IC.hex_asc(hard_ver, ver, hard_ver.Length);rn readalldat = System.Text.Encoding.ASCII.GetString(ver);[/align][align=left][/align]rn运行到st=IC45d041.IC45d041.srd_45d041(icdev, j, 0, 520, hard_ver);这局时 提示:运行库遇<em>到了</em><em>错误</em>。此<em>错误</em>的地址为 0x7a00d227,在线程 0xf14 上。<em>错误</em>代码为 0xc0000005。此<em>错误</em>可能是 CLR 中的 bug,或者是用户代码的不安全部分或不可验证部分中的 bug。此 bug 的常见来源包括用户对 COM-interop 或 PInvoke 的封送处理<em>错误</em>,这些<em>错误</em>可能会损坏堆栈。rn谁能给说下怎么处理。
错误 0x800706c6谁遇到了
<em>错误</em>信息是什么
到了这个奇怪的情况
装好系统后,IE 6打开不了页面的连接,后来搜索,发现原来咱们的DUDU早已给出了办法,在这里感谢他。下面再次转载之,以后就可以解决了win2000中可以这样:   1、在“开始”菜单中打开“运行”窗口,在其中输入“regsvr32 actxprxy.dll”,然后“确定”,接着会出现一个信息对话框“DllRegisterServer in actxprxy.dll succee   de
到了这个异常Communications link failure due to underlying exception:
tomcat运行一段时间就出现<em>这个</em><em>异常</em>Communications link failure due to underlying exception: rn找<em>到了</em>原因是因为:rnMysql服务器默认的“wait_timeout”是8小时,也就是说一个connection空闲超过8个小时,Mysql将自动断开该connection。这就是问题的所在,在C3P0 pools中的connections如果空闲超过8小时,Mysql将其断开,而C3P0并不知道该connection已经失效,如果这时有Client请求connection,C3P0将该失效的Connection提供给Client,将会造成上面的<em>异常</em>。rn我用的是Hibernate连接池,请问我该怎么解决??
C#输出WML遇到了问题
我在page_Load里这样写加载事件:rn string wapContent="";rnResponse.ContentType ="text/vnd.wap.wml";rnResponse.ContentEncoding =System.Text.Encoding .GetEncoding ("GB2312");rnwapContent="";rnwapContent+="";rn wapContent+="";rn wapContent+="";rn wapContent+=" ";rn wapContent+="欢迎";rn wapContent+="";rn wapContent+="";rn wapContent+="";rn Response.Write (wapContent);rn编译没有<em>错误</em>,可是我用M3GATE测就是不行,是不是还要将HTML修改下?rn我是用2003拼的wml。rn报错如下:Expected whitespace.rn意思不明白。rn
二叉树的建立和输出到了问题
[code=c]#includern#includern#includernusing namespace std;rnrntemplaternstruct BinTreeNodern T data;rn BinTreeNode *leftChild,*rightChild;rn BinTreeNode():leftChild(NULL),rightChild(NULL)rn BinTreeNode(T x,BinTreeNode *l=NULL,BinTreeNode *r=NULL):data(x),leftChild(l),rightChild(r)rn;rnrntemplaternclass BinaryTreernpublic:rn BinTreeNode *root;rn T RefValue;rnrn BinaryTree()rn BinaryTree(T value)rn RefValue=value;rn rn ~BinaryTree()rn destroy(root);rn rn rn void CreatBinTree(istream& in,BinTreeNode *& subTree);rn void destroy(BinTreeNode *& subTree);rn void inOrder(BinTreeNode& subTree,ostream& out);//中序遍历rn void visit(BinTreeNode* p)rn cout<>(istream& is,BinaryTree& Tree)rn Tree.CreatBinTree(is,Tree.root);rn return is;rn rn friend ostream& operator <>item;rn if(item!=RefValue)rn subTree =new BinTreeNode(item);rn if(subTree == NULL)rn cerrleftChild);rn destroy(subTree->rightChild);rn delete subTree;rn rnrnrntemplaternvoid BinaryTree::inOrder(ostream& out,BinTreeNode *& subTree)rn if(subTree!=NULL)rn outrightChild,out);rnrn/*templaternfriend istream& operator>>(istream& is,BinaryTree& Tree)rn CreatBinTree(is,Tree.root);rn return is;rnrnrntemplaternfriend ostream& operator<<< tree;rn tree.RefValue='#';rn rn cin>>tree;rn tree.destroy(tree.root);rn cout<
help_在调试中产生了.net frame work compiler错误!!
我是把.net 2003的项目直接通过.net 2005进行升级操作的
发现个奇怪的问题,headers already been sent 在不同服务器的情况
同样是win32平台。rnApache2视若无睹,也就是说在header函数前<em>输出</em>一堆的东东。也不会影响下面的header。rnrn但IIS就很敏感。肯定会抛出<em>headers</em> <em>already</em> been <em>sent</em> ,大家有没有遇到这种情况?或者说跟php配置有没有甚么关系?或者apache的配置?
使用ob_flush提示:E_WARNING: Cannot modify header information - headers already sent
使用ob_flush提示:E_WARNING: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> rn请问如何解决?rnrn代码如下:rnecho $show_msg." ";rnob_flush();rnflush();
编写插件到了问题?急!!!!!
有一个老版本的财务软件,按文档上注明的接口编写DLL<em>插件</em>,但总得不到调用.rn后来发现<em>这个</em>老版本中的接口DLL发<em>生了</em>修改,并且不兼容!!rn请问,我需要安装<em>这个</em>老版本的软件吗?或者可以把老版本软件的接口DLL拷来,编译<em>插件</em>????
今天操作ORACLE的时候遇到了ORA-01115这个错误
[img=https://img-bbs.csdn.net/upload/201808/09/1533785814_180399.png][/img]rn请问该如何解决。
求救关于Warning: Cannot modify header information - headers already sent by (output
Warning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /data/home/bxu2342040194/htdocs/wp-config.php:1) in /data/home/bxu2342040194/htdocs/wp-login.php on line 394rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /data/home/bxu2342040194/htdocs/wp-config.php:1) in /data/home/bxu2342040194/htdocs/wp-login.php on line 407rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /data/home/bxu2342040194/htdocs/wp-config.php:1) in /data/home/bxu2342040194/htdocs/wp-includes/pluggable.php on line 893rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /data/home/bxu2342040194/htdocs/wp-config.php:1) in /data/home/bxu2342040194/htdocs/wp-includes/pluggable.php on line 894rnrnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at /data/home/bxu2342040194/htdocs/wp-config.php:1) in /data/home/bxu2342040194/htdocs/wp-includes/pluggable.php on line 895rnrnrn后台登录wordpress的时候顶上有这几行<em>错误</em>显示。求大神看下这几个php代码是哪里错了。。我用笔记本打开全是没有换行的挤在一堆的代码文字 根本找不到行数。。。球解决途径。。
登陆成功 Warning: Cannot modify header information - headers already sent by (output
登陆成功rnWarning: Cannot modify header information - <em>headers</em> <em>already</em> <em>sent</em> by (output started at D:\52xinju\php\register_login.php:88) in D:\52xinju\php\register_login.php on line 90rnrn换空间后,出现此状况,不自动返回到首页
求助: 添加数据到数据库中产生了 乱码
我在做个留言版,当我添加留言到数据库中的时候,如果你写中文的话,添加到数据库中后就回产生乱码,显示出来都是“??” rnrn比如说,我要发留言 标题是“求助”rn添加到数据库中后,再显示在网页中的时候就是“??”rn但要是标题是 “qiuzhu”rn添加到数据库中后,再显示在网页中的时候还是“qiuzhu”rnrn我应该怎么去设置 请大家帮忙看下rnrn
到了几个错误。。大家帮忙看看
rn第一个rn[code=SQL]select EHAUDITDATE into dtEhauDate --取得审核时间 rn EHID into nEhid from DIP_EXCEL_HEADER rn where OTID=nSourceID rn and HSID=4 rn and Etid=1301 --数据类型为销售(这是个问题点。)rn and EHFREETLDATE=ntemp;[/code]rnrn第二个[code=SQL] insert into DCT_EXCEL_SALES_SCRIPT_MONTH (rn sid,rn sourceid,rn useno,rn filedate,rn salesdate,rn customid,rn customname,rn goodsid,rn goodstype,rn factoryname,rn goodsunit,rn lotno,rn proddate,rn invaliddate,rn goodsqty,rn unitprice,rn total_line,rn databatchid,rn datacount,rn datastate)rn select SEQ_DATA_sales.nextval,rn nSourceID, --数据来源rn szUseNo, --逻辑时间周期号rn dtEhauDate, --审核时间rn case --查询是否有<em>异常</em>的销售日期,如果有用3000-1-1日标记rn when salesdate is null then --空值为<em>异常</em>rn TO_date('3000-01-01 00:00:00',rn 'YYYY-MM-DD HH24:MI:SS')rn when salesdate < dtStartDate then --销售日期早于任务起始日期为<em>异常</em>rn TO_date('3000-01-01 00:00:00',rn 'YYYY-MM-DD HH24:MI:SS')rn when salesdate >dtEndDate then --销售日期晚于任务结束日期为<em>异常</em>rn TO_date('3000-01-01 00:00:00',rn 'YYYY-MM-DD HH24:MI:SS')rn else salesdate --如果在起始日期,截止日期之内的为正常数据,正常采集rn end rn customid, --客户IDrn customname, --客户姓名rn goodsid, --货品IDrn goodsname, --货品名称rn goodstype, --规格rn factoryname, --生产厂家rn goodsunit, --计量单位rn lotno, -- 批号rn proddate, --生产日期rn invaliddate, --有效期至rn goodsqty, --数量rn unitprice, --单价rn total_line, --金额rn nDataBatchID, --数据批次IDrn count(1) into nCountTemp , --数据行数rn 0 --数据抽取状态,默认为0rn fromrn DIP_DATA_SALESrn wherern EHID=nEhid;rn [/code]rnrnrn这2个SQL都有错。。rnrn第2个SQL的问题是我想SELECT的数据 一口气导入到目标表, 并且记录SELECT的次数
VS2008代码生成期间遇到了错误
[img=http://p.kaixin001.com/privacy/photo/97/26/4074176_53972640.jpg][/img]rnrn 谁知道<em>这个</em>是为什么啊,我修改个控件名称就出现<em>这个</em><em>错误</em>,rnrn现在<em>这个</em>项目一打开只要修改某个控件的名称就出现<em>这个</em><em>错误</em>,rn帮帮我啊
我遇到了一个非常奇怪的错误
[code=c]rnrn#include rn#include rn#include rnusing namespace std;rnrnvoid getItem(listLa,list::size_type i, int n)rnrn list::size_type k = i+1;rn list::iterator it = La.begin();rn for (int j = 0;j La,listLb,listLc)rnrn cout<<<*it;rn rn rn rn return 0;rnrn[/code]rnrn为谁么我那句hello world<em>输出</em>了,MergeList里面那句就没<em>输出</em>呢?
在java调用matlab时候遇到了错误
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to find the library mclmcrrt7_14.dll, required by MATLAB Builder JA, on java.library.path.rn This library is typically installed along with MATLAB or the MCR, its absence may indicate an issue with that installation or the current path configuration.rnThe MCR version that this component is trying to use is: 7.14.rn rn at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.get(MCRConfiguration.java:167)rn at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.(MCRConfiguration.java:173)rn at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getProxyLibraryDir(MCRConfiguration.java:178)rn at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.get(MCRConfiguration.java:77)rn at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.(MCRConfiguration.java:87)rn at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getMCRRoot(MCRConfiguration.java:92)rn at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ModuleDir.(MCRConfiguration.java:66)rn at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getModuleDir(MCRConfiguration.java:71)rn at com.mathworks.toolbox.javabuilder.internal.MWMCR.(MWMCR.java:1549)rn at com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:727)rn at com.mathworks.toolbox.javabuilder.MWClassID.(MWClassID.java:41)rn at Matlabtest.main(Matlabtest.java:24)rnmatlab函数文件为:function y = myadd(a, b)rny = a+b;rnendrn代码:import myadd.Myadd;rnimport com.mathworks.toolbox.javabuilder.MWArray;rnimport com.mathworks.toolbox.javabuilder.MWClassID;rnimport com.mathworks.toolbox.javabuilder.MWNumericArray;rnpublic class Matlabtest rnpublic static void main(String[] arg) throws Exception rnMWNumericArray a = null; /* Stores input values a */rnMWNumericArray b = null; /* Stores input values b */rnObject[] result = null; /* Stores the result */rnMyadd myAdd = null; /* Stores myadd class instance */rnString[] args = "1","2";rntry rn/* 检测输入变量 */rnif (args.length != 2) rnSystem.out.println("Error: must input 2 numbers!");rnreturn;rnrn/* 接收输入变量 */rna = new MWNumericArray(Double.valueOf(args[0]), MWClassID.DOUBLE);rnb = new MWNumericArray(Double.valueOf(args[1]), MWClassID.DOUBLE);rn/* 创建myadd对象 */rnmyAdd = new Myadd();rn/* 计算并<em>输出</em>结果 */rnresult = myAdd.myadd(1, a, b);rnSystem.out.print("\nThe sum of " + a.toString() + " and "rn+ b.toString() + " is: ");rnSystem.out.println(result[0]);rn catch (Exception e) rnSystem.out.println("Exception: " + e.toString());rn finally rn/* Free native resources */rnMWArray.disposeArray(a);rnMWArray.disposeArray(b);rnMWArray.disposeArray(result);rnif (myAdd != null)rnmyAdd.dispose();rnrnrnrn按照文档中的提示MCRInstaller.exe安装了,环境变量也配置了,但是就是不行,不知是否有人遇到这样的问题,求助!谢谢啦!
开发时遇到了addview错误
在`setAdapter()`命令报错: "addview is not supported in adapterview"。源码如下:rnrn **FilmAdapter.java** rnrn package com.pabeda.bicaps.adapters;rn import java.util.List;rn import com.pabeda.bicaps.R;rn import com.pabeda.bicaps.classes.Film;rn rn import android.app.Activity;rn import android.content.Context;rn import android.view.LayoutInflater;rn import android.view.View;rn import android.view.ViewGroup;rn import android.widget.ArrayAdapter;rn import android.widget.BaseAdapter;rn import android.widget.TextView;rn public class FilmAdapter extends ArrayAdapter rn Context context;rn int layoutResourceId;rn Film data[]=null; rn public FilmAdapter(Context context, int resource,Film[] objects) rn super(context, resource, objects);rn // TODO Auto-generated constructor stubrn rn this.layoutResourceId=layoutResourceId;rn this.context=context;rn this.data=objects; rn rn @Overridern public View getView(int position, View convertView, ViewGroup parent) rn View row=convertView; rn if (row==null) rn LayoutInflater inflater=((Activity)context).getLayoutInflater();rn inflater.inflate(R.layout.film_list,null);rn rn ((TextView)row.findViewById(R.id.film_name)).setText(data[position].filmName);rn ((TextView)row.findViewById(R.id.imdb_rating)).setText(data[position].imdbRating);rn return row; rn rn rnrn设置adapter如下:rnrn FilmAdapter filmadapter=new FilmAdapter(this, R.layout.film_list, film);rn GridView gw=(GridView) findViewById(R.id.gridView1);rn gw.setAdapter(filmadapter);rnrnres > Layout > film_list.xml文件:rnrn rn rn rn rn rn rnrn
到了一个难题,百思不得其解 ORA-01453错误
ORA-01453: SET TRANSACTION 必须是事务处理的第一个语句rnrn系统架构:rn使用了.net remoting技术,客户端向服务器发送数据,服务器将数据保存到ora中,但是如果用户量大的时候,就会出现<em>这个</em><em>错误</em>。rnrn下面是事务处理方法:rnrn public bool Transaction( string[] inSQL, string inConnString )rn rn if ( inSQL.Length < 1 )rn return true;rnrn bool rtn = false;rnrn OracleConnection conn = new OracleConnection( inConnString ); rn rn tryrn rn conn.Open(); rn rn OracleTransaction trans = conn.BeginTransaction(IsolationLevel.ReadCommitted); rnrn tryrn rn for( int i = 0; i < inSQL.Length; i++ )rn rn SQLRowIndex = i;rn DBErrorSQL = inSQL[i];rn if ( inSQL[ i ].CompareTo( "" ) > 0 )rn rn OracleCommand OracleCommand = new OracleCommand();rn OracleCommand.Connection = conn;rn OracleCommand.Transaction = trans; rnrn OracleCommand.CommandText = inSQL[i]; rn OracleCommand.ExecuteNonQuery();rn rn rn trans.Commit();rn rtn = true;rn rn catch( Exception e )rn rn tryrn rn trans.Rollback(); rn rn catch(Exception errr)rn rn SaveErrorToLog( "事务回滚<em>错误</em> " + errr.Message, DBErrorSQL );rn rn SaveErrorToLog( "事务处理<em>错误</em> " + e.Message, DBErrorSQL ); rn rtn = false;rn rn finallyrn rn conn.Close();rn rn rn rn catch(Exception er)rn rn SaveErrorToLog( er.Message, "事务处理<em>错误</em>" );rn rtn = false;rn rn finallyrn rn conn.Dispose();rn rn return rtn;rn rn
最近遇到了http 400错误
最近遇<em>到了</em>http的400<em>错误</em>, 查了一下, 都说是bad request,  那肯定就是客户端的问题吗?        经对比排查, 发现是http请求中的origin所致, 如果把origin中的https改为http, 就OK,  否则就是必现400        于是, 我怀疑可能是跨域头的支持问题, 查了一下, 果然: 当前web server的配置中, 只支持http跨域头, 不支
广告无孔不入了。这个你遇到了没有?
在鼠标点到IE地址栏时,就会跳出提示信息,什么“找MP3歌曲吗”、“想买房吗”等等。很烦人,有谁知道怎么把它去掉?
exp导出时遇到了ORA-01455的错误
今天需要搭一个CRM的测试环境,导出正式库的时候,报错 ORA-01455 如下: .正在导出触发器 .EXP-00056: 遇到 ORACLE <em>错误</em> 1455 .ORA-01455: 转换列溢出整数数据类型 .EXP-00000: 导出终止失败 翻了下资料,说是由于物化视图编译不通过引起的,检查后发现均为普通视图,此类被排除. 继续查到,有人说10g客户端导出11g数据时有遇
codeblocks下安装openCV3.3遇到了错误求救
看的<em>这个</em>http://blog.csdn.net/wx7788250/article/details/54970903弄的,rn<em>到了</em>mingw32-make的时候出错了rn[img=https://img-bbs.csdn.net/upload/201709/18/1505720387_921601.png][/img]rn试过去掉ENABLE_PRECOMPILED_HEADERS还是不行
到了问题JAVA错误,帮忙看看!
java.lang.UnsatisfiedLinkError: C:\Program Files\Common Files\Apple\Mobile Device Support\iTunesMobileDevice.dll: 找不到指定的程序。rn at java.lang.ClassLoader$NativeLibrary.load(Native Method)rn at java.lang.ClassLoader.loadLibrary1(Unknown Source)rn at java.lang.ClassLoader.loadLibrary0(Unknown Source)rn at java.lang.ClassLoader.loadLibrary(Unknown Source)rn at java.lang.Runtime.load0(Unknown Source)rn at java.lang.System.load(Unknown Source)rn at com.semaphore.jna.LibraryFinder.findMobileLibrary(LibraryFinder.java:147)rn at com.semaphore.jna.LibraryFinder.foundMobileLibrary(LibraryFinder.java:127)rn at com.semaphore.jna.LibraryFinder.getMDLibrary(LibraryFinder.java:85)rn at com.semaphore.jna.LibraryFinder.(LibraryFinder.java:46)rn at com.semaphore.TinyUmbrella.main(TinyUmbrella.java:134)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)rn at com.exe4j.runtime.WinLauncher.main(Unknown Source)rnrnrn今天弄了一个上午,要运行个刷机软件,总是提示下面的,网上找了说是没装JAVA和JRE,我都装了,还是不行。只能来这里发帖问了
这个陌生的城市遇到了
其实我想说很久了,我们要不要现在就在一起?      2017 / 11/ 01  星期三 <   BGM | 方雅贤 - 遇到 > “  现实一般不按套路出牌 情话都是我抄的 想说给你听是真的  ”      ◐
我也遇到了这个问题。
insert into table values('' );rn里的字符串中如果有 ‘ '‘ 就出问题,如: values('I'm sorry')rn这可叫我如何是好??
运行eclipse时遇到了这个问题
13:58:29.025 [localhost-startStop-1] WARN  com.alibaba.druid.pool.vendor.MySqlValidConnectionChecker - Cannot resolve com.mysq.jdbc.Connection.ping method.  Will use 'SELECT 1' instead.java.lang.NullP...
到了ognl.MethodFailedException这个问题怎么破
[code=java][/code]<em>错误</em>是这样的rn23:36:07,204 WARN OgnlValueStack:57 - Error setting expression 'kid' with value '[Ljava.lang.String;@18da687'rnognl.MethodFailedException: Method "setKid" failed for object com.XK.action.CourseSelectAction@1d97cc2 [java.lang.NoSuchMethodException: com.XK.action.CourseSelectAction.setKid([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:224)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329)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:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:744)rnCaused by: java.lang.NoSuchMethodException: com.XK.action.CourseSelectAction.setKid([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1246)rn ... 68 morern/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: com.XK.action.CourseSelectAction.setKid([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1246)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:78)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)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:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:744)rn\--------------------------------------/rn23:36:07,229 ERROR ParametersInterceptor:33 - Developer Notification (set struts.devMode to false to disable this message):rnUnexpected Exception caught setting 'kid' on 'class com.XK.action.CourseSelectAction: Error setting expression 'kid' with value '[Ljava.lang.String;@18da687'rnCheckcourse-------------0rn遇<em>到了</em><em>这个</em>问题怎么破这只是其中的一部分rn
萌新遇到了这个问题,请问?
def is_leap_year(year):rn if year % 4 == 0 and year % 100 !=0 or year % 400 == 0:rn return Truern else:rn return Falsernrndef get_num_of_days_in_month(year,month):rn if month in (1,3,5,7,8,10,12):rn return 31rn elif month in (4,6,9,11):rn return 30rn elif is_leap_year(year):rn return 29rn else:rn return 28rn rndef get_total_num_of_day(year,month):rn days = 0rn for y in range(1800,year):rn if is_leap_year(y):rn days += 366rn else:rn days += 365rnrn for m in range(1,month):rn days += get_num_of_days_in_month(year,m)rnrn return daysrn rnrndef get_start_day(year,month):rn return (3 + get_total_num_of_days(year,month)) % 7rnrnprint get_start_day(2033,12)rnrnrnrn<em>这个</em>运出来怎么是这样,如图[img=https://img-bbs.csdn.net/upload/201804/16/1523850184_622076.png][/img]rn
调用.dll遇到了这个问题
我的C#程序中要用到两个.dll动态链接库(我们使用了两个外部设备,这两个.dll都是设备厂家附带的)。但在调用时会报错,比如,在调用中使用这条语句:rnopenresult = StaticClassReaderB.AutoOpenComPort(ref port, ref fComAdr, fBaud, ref frmcomportindex);rnrn结果在编译程序时就会报错:rnrn<em>错误</em> 15 类型“ReaderB.StaticClassReaderB”同时存在于“e:\vs2010项目\开发项目(单向)版\Weighing\bin\Debug\YXU9809CSharp.dll”和“e:\vs2010项目\开发项目(单向)版\Weighing\bin\Debug\YXU1861CSharp.dll”中rnrn遇到此种情况应该如何处理呢?谢谢指教!
eclipse中产生的错误
tomcat5Server[Remote Java Application]rnThread [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (Running)rnThread [http-8080-Processor1] (Running)rnThread [http-8080-Processor2] (Running)rnThread [http-8080-Processor4] (Running)rnorg.apache.catalina.startup.Bootstrap at localhost:1097rn Thread [main] (Running)rn Thread [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (Running)rn Thread [http-8080-Processor1] (Running)rn Thread [http-8080-Processor2] (Running)rn Thread [http-8080-Processor4] (Running)rn Thread [http-8080-Processor3] (Running)rn Thread [http-8080-Processor6] (Running)rn Thread [http-8080-Processor5] (Running)rn Thread [http-8080-Processor7] (Running)rn Thread [http-8080-Processor8] (Running)rn Thread [http-8080-Processor10] (Running)rn Thread [http-8080-Processor9] (Running)rn Thread [http-8080-Processor11] (Running)rn Thread [http-8080-Processor12] (Running)rn Thread [http-8080-Processor13] (Running)rn Thread [http-8080-Processor14] (Running)rn Thread [http-8080-Processor16] (Running)rn Thread [http-8080-Processor15] (Running)rn Thread [http-8080-Processor18] (Running)rn Thread [http-8080-Processor20] (Running)rn Thread [http-8080-Processor17] (Running)rn Thread [http-8080-Processor22] (toRunning)rn Thread [http-8080-Processor19] (Running)rn Thread [http-8080-Processor21] (Running)rn Thread [http-8080-Processor23] (Running)rn Thread [http-8080-Processor24] (Suspended (breakpoint at line 6 in jsp))rn index.jsp line: 6rn index_jsp(HttpJspBase).service(HttpServletRequest, HttpServletResponse) line: 97rn index_jsp(HttpServlet).service(ServletRequest, ServletResponse) line: 802rn JspServletWrapper.service(HttpServletRequest, HttpServletResponse, boolean) line: 332rn JspServlet.serviceJspFile(HttpServletRequest, HttpServletResponse, String, Throwable, boolean) line: 314rn JspServlet.service(HttpServletRequest, HttpServletResponse) line: 264rn JspServlet(HttpServlet).service(ServletRequest, ServletResponse) line: 802rn ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 252rn ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 173rn StandardWrapperValve.invoke(Request, Response) line: 213rn StandardContextValve.invoke(Request, Response) line: 178rn StandardHostValve.invoke(Request, Response) line: 126rn ErrorReportValve.invoke(Request, Response) line: 105rn StandardEngineValve.invoke(Request, Response) line: 107rn CoyoteAdapter.service(Request, Response) line: 148rn Http11Processor.process(InputStream, OutputStream) line: 869rn Http11Protocol$JmxHttp11ConnectionHandler(Http11BaseProtocol$Http11ConnectionHandler).processConnection(TcpConnection, Object[]) line: 664rn PoolTcpEndpoint.processSocket(Socket, TcpConnection, Object[]) line: 527rn LeaderFollowerWorkerThread.runIt(Object[]) line: 80rn ThreadPool$ControlRunnable.run() line: 684rn ThreadWithAttributes(Thread).run() line: 595rn Thread [http-8080-Processor25] (Running)rn Thread [http-8080-Monitor] (Running)rn Thread [TP-Processor2] (Running)rn Thread [TP-Processor4] (Running)rn Thread [TP-Processor3] (Running)rn Thread [TP-Processor1] (Running)rn Thread [TP-Monitor] (Running)rn Thread [DataDirect Connect Finalizer-Thread] (Running)rn Thread [DataDirect Connect Finalizer-Thread] (Running)rn在下刚用eclipse 不知<em>错误</em>原因,org.apache.catalina.startup.Bootstrap at localhost:1097又是什么意思?rn望指点!!!rnrnrn
ClassWizard中产生的错误!!!
一个基于对话框的程序,编译没有问题,但打开ClassWizard并选种对话框类的时候出现如下提示:rn A duplicate insert block exists for class "CMSCommDlg" in the source files (G:\shujiatest\MSComm\MSCommDlg.h,G:\shujiatest\MSCommDlg.cpp). rn 其中CMSCommDlg就是对话框类。
产生随机卡号,。一个输出参数,输出随机卡号,输出格式为’xxxx xxxx xxxx xxxx
带sql.存储<em>过程</em>
函数调用过程中产生的栈帧
在c语言中编译的程序占用的内存分为一下几个部分:  1、栈区(stack)2、堆区(heap)3、全局区(静态区)(static)4、字符常量区 5、代码区(code)如图所示:   这篇博客主要描述其中的栈区。在函数的调用<em>过程</em>中,要为函数开辟空间,用于本次函数的调用中临时变量保存、现场保护。这块栈空间我们称之为函数的栈帧。先要了解 几个寄存器  :  ESP  栈顶寄存器      EBP栈底寄...
在对一个类移植封装成DLL的过程中产生了如下错误,请指点,谢谢。
d:\dll_bole\inputprojectparameterdlg.h(21) : error C2065: 'IDD_InputProjectParameter' : undeclared identifier
参数传递过程中产生的问题?
在.aspx文件中有如下一段JAVASCRIPT脚本:rnfunction tree_oncheck(tree)rnrn var node=tree.getTreeNode(tree.clickedNodeIndex);rn var Pchecked=tree.getTreeNode(tree.clickedNodeIndex).getAttribute("checked");rn setcheck(node,Pchecked);rn setParent(node,Pchecked);//如果是选择那么选择其父接点.rn document.all.checkedNodes.value="";rn document.all.unchecked.value="";rn FindCheckedFromNode(TreeView1);rnrn请问在.aspx.cs文件中如何调用?"tree"<em>这个</em>参数想传递一个treeview控件,请问直接写 "tree_oncheck("treeview1")"吗?
这个异常是什么错误
---------- run ejb ----------rnrnjavax.naming.NameNotFoundException: Unable to resolve 'HelloHome' Resolved: '' Unresolved:'HelloHome' ; remaining name 'HelloHome'rn at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)rn at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)rn at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)rn at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)rn at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:338)rn at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:333)rn at javax.naming.InitialContext.lookup(InitialContext.java:347)rn at HelloClient.lookupHome(HelloClient.java:61)rn at HelloClient.(HelloClient.java:16)rn at HelloClient.main(HelloClient.java:42)rnrn程序代码部分rnrn//ÕâÊÇEJBµÄ¿Í»§¶Ë²âÊÔ³ÌÐòrnimport java.rmi.RemoteException;rnimport java.util.Properties;rnimport javax.ejb.*;rnimport javax.naming.*;rnimport javax.rmi.PortableRemoteObject;rnrnpublic class HelloClientrn private static final String JNDI_NAME = "HelloHome";rnrn private String url;rn private HelloHome home;rnrn public HelloClient(String url) throws NamingExceptionrn this.url = url;rn home = lookupHome();rn rnrn void test() throws RemoteException,CreateExceptionrn Hello hello = (Hello)PortableRemoteObject.narrow(home.create(),Hello.class);rn System.out.println("I am in client. " + hello.sayHello());rn rnrn /**rn * ÔËÐÐÕâ¸öʵÀýrn * java HelloClient t3://localhost:7001rn */rn public static void main(String[] args) throws Exceptionrn System.out.println("\n¿Í»§¶Ë³ÌÐò²âÊÔ¿ªÊ¼...\n");rn String url = "t3://localhost:7001";rnrn //½âÎöÃüÁîÐÐrn if (args.length != 1)rn System.out.println("Ó÷¨:java HelloClient t3://hostname:port");rn return;rn elsern url = args[0];rn rn HelloClient client = null;rnrn tryrn client = new HelloClient(url);rn catch(NamingException ne)rn ne.printStackTrace();rn System.exit(1);rn rn tryrn client.test();rn catch(Exception e)rn e.printStackTrace();rn System.exit(1);rn rn System.out.println("\n¿Í»§¶Ë³ÌÐò²âÊÔ½áÊø...\n");rn rnrn /**rn * ²éÕÒEJBµÄÖ÷½Ó¿Úrn */rn private HelloHome lookupHome() throws NamingExceptionrn Context ctx = getInitialContext();rn Object home = ctx.lookup(JNDI_NAME);rn return (HelloHome)PortableRemoteObject.narrow(home,HelloHome.class);rn rnrn /**rn * ʹÓÃÊôÐÔ¶ÔÏó»ñÈ¡ÉÏÏÂÎÄrn */rn private Context getInitialContext() throws NamingExceptionrn Properties h = new Properties();rn h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");rn h.put(Context.PROVIDER_URL,url);rn return new InitialContext(h);rn rn
C# HTTP headers 错误
现在提示出现 Server cannot append header after HTTP <em>headers</em> have been <em>sent</em> <em>错误</em>rn部分代码如下,请教问题出现在哪,谢谢!rnpublic static bool ResponseUrl(string strUrl, HttpResponse _Response)rntryrn rn HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(strUrl);rnrn HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();rnrn Stream receiveStream = myHttpWebResponse.GetResponseStream();rnrn MemoryStream stmMemory = new MemoryStream();rnrn byte[] buffer = new byte[64 * 1024];rnrn int i;rnrn while ((i = receiveStream.Read(buffer, 0, buffer.Length)) > 0)rn rn stmMemory.Write(buffer, 0, i);rn rn byte[] arraryByte = stmMemory.ToArray();rnrn stmMemory.Close();rnrn receiveStream.Close();rnrn _Response.ContentType = "image/JPEG";rnrn _Response.AddHeader("content-disposition", "attachment; filename=" + HttpUtility.UrlEncode(DateTime.Now.ToString("yyyyMMddHHmmss") + ".jpg", System.Text.Encoding.UTF8));rnrn _Response.BinaryWrite(arraryByte);rnrn _Response.Flush();rnrn rn catchrn rn return false;rn rn finallyrn rn _Response.Close();rn rn return true;
到了ndk的bug?
在AS中写C代码,计算大数运算,原来好好的,突然不行了!只能一行一行打印log,苦逼了差不多一周……后来在某循环中添加打印后突然正常了!去掉打印又不行了!而且打印别的不行,只能打印<em>这个</em>变量才正常!但是加上打印后循环变得奇慢无比。苦思冥想后,觉得是不是ndk自作聪明优化过度了?于是加上-O0强制不优化,果然好使!……uck!...
到了一点小麻烦~~~
我做了一个文字编辑器,但现在的问题是只能在命令提示符cmd下启动<em>这个</em>程序,可书上说如果我的操作系统是Windows,只要安装完JRE之后,会将.jar默认由javaw程序开启,所以可以直接使用鼠标左键按两下来开启程序执行。可我按两下,程序却执行不了,而是一个解压缩包,这是怎么回事?请大侠指教!!
j2se1.4+j2me1.0.4遇到了乱码问题
好像j2se1.4一直没有解决在swing界面上的乱码问题,现在一用ms windows look and feel的就出毛病,rnj2me的wireless toolkit页时,按钮、菜单上的中文字符全部变成了小方块。rn不知道是我没有配只好还是怎样?
我遇到了难题
我在帮别人建立数据库的时候,总是没办法开头,不知道该从哪里下手,总是刚写了点东西,又觉得不对头了,然后又这样反复的写,然后又重复,帮帮忙,给点思路!!rn谢谢!!
C++primer遇到了问题
C++primer 第六章 6.14 使用预处理器进行调试rn这里有点不明白是什么意思,里面有一段程序时这样的 习题6.25rn#include rn#include rnrnusing namespace std;rnrnint main()rnrn cout << "Enter some strings:" << endl;rn string prestr,currenstr;rn while( cin >> currenstr)rn rn #ifndef NDEBUGrn cout << currenstr << " ";rn #endifrn if(currenstr == prestr && isupper( currenstr[0] ) )rn break;rn elsern prestr = currenstr;rn rn //<em>输出</em>结果rn if( currenstr == prestr && ! currenstr.empty() )rn cout << "\nThe repeated string: " << currenstr << endl;rn elsern cout << "There is no repeated string! " << endl;rnrn return 0;rnrn其中说到分别在打开和关闭调试器的情况下编译和运行该程序rn这里的打开和关闭调试器是什么意思呢?是怎样打开和关闭?我使用的是Visual Studio 2010rn我先是“启动调试 按F5”,然后用另一种方式“开始执行(不调试) 按Ctrl+F5”,这样的两种方式是不是就是所谓的打开和关闭调试器编译运行程序?可是这两种方式得到的结果是一样的,这是为什么?请各位给点指导吧!
出现这个错误!Address already in used!JVM_Bind
我写了一个监听socket,监听我本机上的80端口,每次一建立SeverSocket的时候就是Address <em>already</em> in used! JVM_Bind的<em>错误</em>,换了几个其他的端口是可以的,我用防火墙看到我的80端口是被Internet设置监听了,可是我关掉了它,它还是自动的有起来了!rn请教:rn1,我是不是不能监听80端口!????rn2,如果可以,我该怎么设置,如果代码来做设置的工作,该怎么做!?
CUDA遇到了错误
gdb调试是在cudaMalloc的时候发生的,部分代码如下,程序运行到红色部分出现段<em>错误</em>,rnsize = 1048756rnrn请教高手如何解决?谢谢!rnrnrnvoid calculate_distance(float * selected_distance, int * selected_indice) rn float * training_data_d;rn float * test_data_d;rn float * selected_distance_d;rn int * selected_indice_d;rn unsigned int size;rnrn size = N * SCALE * sizeof(float);rnrn [color=#FF0000]CUT_SAFE_CALL(cudaMalloc((void **)&training_data_d, size));[/color]rn CUT_SAFE_CALL(cudaMalloc((void **)&test_data_d, SCALE * sizeof(float)));rn CUT_SAFE_CALL(cudaMalloc((void **)&selected_distance_d, GRID_DIM * GRID_DIM * K * sizeof(float)));rn CUT_SAFE_CALL(cudaMalloc((void **)&selected_indice_d, GRID_DIM * GRID_DIM * K * sizeof(int)));rn
到了 sun.io.MalformedInputException
用java 读txt文档的时候,碰<em>到了</em>这样的<em>错误</em>,在网上找了找,大都说用以下方法解决:rnrnrn1.打开管理控制台,找到并选择运行<em>这个</em>JSP的应用服务器 rnrn2.依次选择进程定义,java虚拟机,一般JVM自变量 rnrn3.添加-Dibm.stream.nio=true rnrn4.确定,保存 rnrn5.重新启动该服务器 格式乱了,再来一次 rnrnrnrn我想问的就是,rnrn1:上面的方法,具体怎么操作啊(大家表笑啊,我确实没明白,我用的tomcat)rnrnrn2:我读txt的代码是在java的类里写的,而非在jsp上rn
小菜遇到了问题
要学ASP.NET 这些是书上的列子 可按它的步骤弄好后 第一页还能登陆 可就不跳转了直接出现下面这些 我看不懂 请帮我看下 谢谢rn我的连接是http://localhost/MisAsset/Default.aspxrnrn“/MisAsset”应用程序中的服务器<em>错误</em>。rn--------------------------------------------------------------------------------rnrnExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。rn说明: 执行当前 Web 请求期间,出现未处理的<em>异常</em>。请检查堆栈跟踪信息,以了解有关该<em>错误</em>以及代码中导致<em>错误</em>的出处的详细信息。rnrn<em>异常</em>详细信息: System.InvalidOperationException: ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。rnrn源<em>错误</em>:rnrn执行当前 Web 请求期间生成了未处理的<em>异常</em>。可以使用下面的<em>异常</em>堆栈跟踪信息确定有关<em>异常</em>原因和发生位置的信息。rnrn堆栈跟踪:rnrnrn[InvalidOperationException: ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。]rnSystem.Data.SqlClient.SqlConnection.GetOpenConnection(String method) +856980rnSystem.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +9rnSystem.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +56rnSystem.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +73rnSystem.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32rnSystem.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122rnSystem.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +62rnSQLHelper.SQLHelper.RunProc(String procName, SqlParameter[] prams, SqlDataReader& dataReader) +63rnMisAsset.Components.User.GetUserLogin(String sUserName, String sPassword) in D:\ASP.NETMIS\MisAsset\Components\User.cs:36rnrn[Exception: ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。]rnMisAsset.Components.User.GetUserLogin(String sUserName, String sPassword) in D:\ASP.NETMIS\MisAsset\Components\User.cs:42rnMisAsset.Default.LoginBtn_Click(Object sender, EventArgs e) in D:\ASP.NETMIS\MisAsset\Default.aspx.cs:72rnSystem.Web.UI.WebControls.Button.OnClick(EventArgs e) +105rnSystem.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107rnSystem.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7rnSystem.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11rnSystem.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33rnSystem.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102rnrnrnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.210
到了怪事情!!
我在SQLSERVER中定义了一个char的类型数据字段名为“name”,使用ASP查询语句后将结果保存到rs数据集类型中,发现了怪事情。rn使用name=rs("name")返回数据(假设数据是dafeifei),进行验证的时候始终都不能成功,最后发现rn这时的 name 的值是 dafeifei + "一个空格符"rn 而不是 dafeifeirn我明明在SQL生成表的时候确定输入了,<em>这个</em>值应该是dafeifei,查询后多出一个空格真让我很难办,当然可以用 trim()去掉,但每次引用时都去掉,是不是太麻烦了。rnrn而且还有一点,当name<em>这个</em>字段是主键的时候,不会多出来一个空格,这到底是什么问题啊,是我数据类型选得不好,还是本身SQL的BUG?rn我使用的是SQLSERVER标准版。IIS5。0rnrn请大虾指点
到了大麻烦!!!
我所在的机子是一个小型的局域网,星型结构,8台电脑连一台路由器。最近发现我们中大多数机子都被路由的IP地址或者是我们其中的任意一台的IP PING,而且有时候还受<em>到了</em>局域网外的机子的访问(但是被防火墙挡住了),这些现象每隔一段时间就发生一次,有什么方法可以解决啊!!rn谢谢~~
到了一个难题
namespace exp_1Brnrn class Programrn rnrn [color=#FF0000] public int search_bin(int key,int high)[/color]rn rn rn int[] arry = new int[10]; rn int low = 0, mid; high = 10;rn rn while (low arry[mid]) [/color]rn rn low = mid + 1; rn Console.WriteLine("the number is bigger"); rn rn else rn rn high = mid - 1; rn Console.WriteLine("the number is smaller"); rn rn rn return 0;rn rn public static void Main(string[] args)rn rn Program obj_1 = new Program();rn int find_num; string accept_num; int length = 10;rn args = new string[20];rn Console.WriteLine("请输入十个按小到大排列的整数");rn for (int i = 0; i < 10; i++)rn rn args[i] = Console.ReadLine();rn Console.WriteLine(args[i]); rn // = Int32.Parse(accept_num);rn rn Console.WriteLine("please input the number you want to find");rn accept_num = Console.ReadLine();rn find_num = Int32.Parse(accept_num);rn Console.WriteLine("the return_value is :");rn obj_1.search_bin(find_num, length);rn Console.WriteLine("return_value");rn rn rnrn在searchb_bin 方法中 为什么 mid 的值总是10呢!从而引起数组越界的问题!!rnrn
急。遇到了难题
遇<em>到了</em>难题:如何设置MODEM的参数(用AT命令),使来电话时,MODErnM能自动接通(摘机),当对方挂机时,MODEM能自动挂机。rnrnrn
到了grub难题
我的系统装了linux和windowsrn结果我把linux分区删除了,合并分区后重新装了windows,然后启动系统windowsrn出现grub>提示符rn我在dos用fdisk /mbr 却不好用rn我的机器是个笔记本,挺老的。在笔记本上用fdisk /mbr是不是不好用啊rn
在学时遇到了问题
我是struts的初学者,在学时遇<em>到了</em>问题,rn我做了个index.jsp页,在页中用了一下代码rnrnrnrn<em>输出</em>来是乱码,那位高手给帮忙解决,多谢rn另外我的页中有和
又遇到了数据库问题
登陆界面,从数据库里面查询然后与TextBox的值进行比较,如果正确就是登陆成功了,可是却出现了<em>异常</em>。如下:rn if (TextBox1.Text == "" || TextBox2.Text == "")rn rn Response.Write(" ");rn rn elsern rn string connectstring = @"server=(local)\SQLEXPRESS;database=website;integrated security=true;";rn SqlConnection thisconnection = new SqlConnection(connectstring);rn string sql = "select UserName,UserId from dbo.User where UserName='" + TextBox1.Text + "' or UserId='" + TextBox2.Text + "'";rn SqlCommand cmd = new SqlCommand(sql, thisconnection);rn thisconnection.Open();rn [color=#FF0000]SqlDataReader reader = cmd.ExecuteReader();[/color]rn if(reader.Read())rn rn if (reader.GetValue(0).ToString() ==TextBox1.Text)rn rn if (reader.GetValue(1).ToString() == TextBox2.Text)rn rn Session["UserName"] = TextBox1.Text;rn Response.Redirect("Index.aspx");rn rn elsern rn Response.Redirect("Error.aspx");rn rn rn elsern rn Response.Redirect("Error.aspx");rn rn rn elsern rn Response.Redirect("Error.aspx");rn rn rn执行到红色这行出现<em>异常</em>,捕捉<em>异常</em>之后说是“[color=#FF0000]关键字User附近有语法<em>错误</em>[/color]”,到底什么原因啊?
到了http 400
用fiddler可以发送http请求, 然后发送了一下, 出现400        很显然, 这是一个bad request,  仔细检查了一下发送的信息, 果然有误, 如: GEET /XXX HTTP/1.1 Host: taoge.wx.com        <em>错误</em>很明显, 不多说。
NoSuchMethodError 遇到了怎么办
主要是调用的jar包的问题 第一种 调用了两个jar包,有同样的类,冲突 用cirt+shift+t 查看有那几个类 去掉冲突的即可 第二种 <em>这个</em>类里没有<em>这个</em>方法 主要是由于jar包的升级,降级,将方法取消了,找到对应版本的jar包塞进去即可...
到了难题
遇<em>到了</em>难题:如何设置MODEM的参数(用AT命令),使来电话时,MODErnM能自动接通(摘机),当对方挂机时,MODEM能自动挂机。rnrnrn
怀疑遇到了黑客!!!
有一个页面里的TEXTBOX,程序里没有给他赋任何的值,但<em>这个</em>TEXTBOX里偏偏显示了数值。找不到原因
抓取网页遇到了问题!
刚开始用WebClient将指定网页下载下来,在本机运行正常,上传到服务器后正常运行了一段时间,但是后来在去访问的时候就怎么也运行不成功了返回<em>错误</em>:The operation has timed out ;为什么总是超时呢怎么处理呢?为什么前面运行是正常的呢,接着我又用HttpWebRequest想达到相同的目的但是怎么也抓取不完那个网页,只能取得一部分,这又应该如何解决呢?rn下面是用HttpWebRequest的方法:rn HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create("http://www.caotingna.com/item/webclient__229080.aspx");rnrn HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();rn Stream st = myHttpWebResponse.GetResponseStream();rnrn byte[] buf = new byte[myHttpWebResponse.ContentLength];rn int count = st.Read(buf, 0, buf.Length);rn Console.WriteLine(Encoding.UTF8.GetString(buf, 0, count));
到了一个难题!
rn public event MessageReceivedEventHandler MessageReceivedrn rn addrn rn [color=#FF0000] receiver.MessageReceived += value;[/color]rn rn removern rn receiver.MessageReceived -= value;rn rn rnrn请问<em>这个</em>该如何理解!rn本人很难理解<em>这个</em>事件访问器!希望高手们指教!
模拟按键遇到了问题。
我用delphi已成功向WinKawaks游戏模拟器发送模拟按键,但遇到这样一个问题:比如当按住了键盘A键时,这时我发送一个连招的模拟按键,但模拟器会一直响应我按住的A键,导致我的连招没效果,但当没有操作键盘的时候,这里发送模拟按键能100%成功。我也试过先模拟发送A键的抬起,但是抬起后还是继续响应按住的A键。请问有什么方法可以实现先交出键盘的控制权,等我的模拟按键结束后再响应回实际的键盘按键?最好可以给出代码哈,本人较菜。
声卡遇到了怪事
原本电脑上面有块集成real ac 97声卡,不知道为什么放声音的时候就是快,变调,后将他bi掉,安装了一块创新128的声卡,第一天还可以用,第二天开机时,发现只要一放声音,电脑就像死机一样,于是重新安装了一下系统,声卡可以放mp3类似的音乐文件,但是一放到视频文件,播放器就死掉了,很怪,不知道问题出在哪里了,板子是新买的815ept牌子杂牌,价格260
DM9161遇到了大问题。。。
我做一块用DM9161做PHY的板子,做出来以后读DM9161状态始终无法接通,其他状态正常,但是插上网线后PC已经连接了,排除网络变压器问题。第一次做网络芯片,原理图没敢改是抄开发板的,程序在开发板上也已经调试完成了,现在在怀疑是不是布线的时候DGND和AGND的隔离问题,大侠们,我这到底是错在哪里了啊??
装机过程中易遇的10大常规性错误
不少消费者在装机时往往存在某些概念性<em>错误</em>,这会直接导致投资浪费,或者出现安全隐患。对于初次涉足装机的读者而言,了解一下常见的概念性<em>错误</em>将大有裨益,或许你 心中的不少心结也将被解开。
SQL发生了异常
SqlDumpExceptionHandler: 进程 57 发<em>生了</em>严重的<em>异常</em> c0000005rn> EXCEPTION_ACCESS_VIOLATION。SQL Server 将终止该进程。rn> 连接中断rn
生了异常“Microsoft.VisualStudio.Debugger.Runtime.CrossThreadMessagingException”?
如题,并不会进入到catch,但是没有更新UI,不知道什么原因。rn我的代码如下:rnprivate void btnIPCrawl_Click(object sender, EventArgs e)rn rn //隔段时间自动调用程序rn System.Threading.Timer threadTimer = new System.Threading.Timer(new System.Threading.TimerCallback(InvokeIPCrawl), null, 0, 14400000);rn while (true)rn rn Thread.Sleep(14400000);rn rn rnrn //分别调用抓取IP方法rn private void InvokeIPCrawl(Object state)rn rn SaveIPToDB(proxy360, "span");rn rnrn /// rn /// 将网络抓取的IP地址保存的数据库rn /// rn /// URL地址rn /// 标签名称(不可为空)rn protected void SaveIPToDB(string url, string tagname)rn rn tryrn rn string html = CUtils.GetHtmlSource(url);rnrn Regex reg = CUtils.GetRegexIP(tagname);rn if (reg != null)rn rn CDatabase db = new CDatabase("phone");rn tryrn rn MatchCollection mc = reg.Matches(html);rn foreach (Match m in mc)rn rn //抓取字符串中IP地址rn MatchCollection submc = Regex.Matches(m.Groups[0].ToString(), @"\d1,3.\d1,3.\d1,3.\d1,3");rn foreach (Match item in submc)rn rn if (CUtils.isIP(item.Groups[0].ToString()))rn rn //插入数据库操作rn string remark = "自动抓取的代理IP@" + url;rn CDatabaseDAL.p_badagentip_insert(item.Groups[0].ToString(), remark, db);rn count++;rn this.BeginInvoke(new System.Threading.ThreadStart(delegate()rn rn lblCount.Text = count.ToString();rn ));rn rn rn rn rn catch (Exception ex)rn rn finallyrn rn db.close();rn rn rn rn catch (Exception ex)rn rn
Server cannot modify cookies after HTTP headers have been sent
mvc 在ActionResult 加载时候回去读取客户端cookie,如果不存在在添加个cookiern但是却出现:Server cannot modify cookies after HTTP <em>headers</em> have been <em>sent</em>.rn[code=csharp]rn System.Web.HttpCookie cookie = new System.Web.HttpCookie(cookieName);rn cookie.Value = s;rn cookie.Expires = DateTime.Now.AddHours(24 * 365);rn cookie.Domain = ".xx.com";rn cookie.Path = "/";rn contorler.Response.Cookies.Add(cookie);rn[/code]rn
C++ xxxx 重定义 错误
虽然 我搜索了半天也没找到第二处定义XXXX的地方 但是 我注释掉那唯一定义XXXX的代码后 ,编译通过
您能分析下面读取文件过程中产生的错误吗?
char *init(char *fn)rnrn int fd;rn long i=0;rn char *p=NULL;rnrn if((fd=open(fn,O_TEXT))==-1)rn en=0;rn elsern rn fl=filelength(fd);rn if((p=(char *)malloc(fl))==NULL)rn en=1;rn elsern rn for(i=0;!eof(fd);i++)rn read(fd,p+i,1);rn close(fd);rn rn rnreturn p;rnrnrnrn关键是这一句:for(i=0;!eof(fd);i++)rn read(fd,p+i,1);rn很严重的拖慢速度,有什么更好的方法吗?rnrn如果该成这样read(fd,p,fl);(fl为fd所指文件的长度,是通过fl=filelength(fd);得到的,fl一般为几百K至1M多),就总出现<em>错误</em>:就是读到文件结束时,会从文件结尾向前反推一段距离,再读取到文件结束,读取的结果就是比原文件多出一段结尾。rnrn如果换成下面这样:rnt=fl/1024;rnfor(i=0;i<=t;i++)rnread(fd,p+i*1024,1024);rnread(fd,p+i*1024,fl-(i-1)*1024);rn还是出现上面所说的<em>错误</em>。rnrn各位高手,有何解决办法呢?rnrnrn
_DllMain@12 already defined 错误
_DllMain@12 <em>already</em> defined <em>错误</em>rn我知道MFC DLL已封装好了DLLMain,rnrnCXXXApp::InitInstance()相当于DLLMain里的case DLL_PROCESS_ATTACH:rnCXXXApp::ExitInstance()相当于DLLMain里的case DLL_PROCESS_DETACH:rnrn不用再加DLLMain。rnrn可以在BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)rn里这些参数(如hInstance)我要在InitInstance调用怎么得到呢?rn谢谢!
关于ksoap2 中产生的错误
今天在用android ksoap2调用webservice时,碰到一个问题,突然无法完成调用了,报的<em>错误</em>是 "Code: soap:Sender, Reason: 没有有效的操作参数,无法处理请求。请提供有效的 SOAP 操作。"rn<em>这个</em>操作百度了半天都没看解决方法,有大神能解决么,分送上。rnrn注:下午还能调用,在服务器添加了方法后,就不能调用了[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/63.gif][/img]
Java 异常到了一个问题 ,,谢谢大家帮我
import java.util.*;rnpublic class StackTraceTestrnrn public static int factorial(int n)rn rn System.out.println ("factorial("+ n +"):");rn Throwable t=new Throwable();rn StackTraceElement[] frames=t.getStackTrace();rn for(StackTraceElement f:frames)rn System.out.println (f);rn int r;rn if(n);rn int n=in.nextInt();rn factorial(n);rn rn rnrnrn谁能告诉我<em>这个</em>代码是什么 意思 最好每行加上注释上我理解。 真的不懂。。。rn谢谢大家 或者加我的QQ48187537
Visual Studio 2010遇到了异常,大神支招解围
Visual Studio 遇<em>到了</em><em>异常</em>。这可能是由于某个扩展导致的。rn您可以在命令行上使用/log参数运行应用程序,然后检查文件"I:\Users\LS\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml"以获取详细信息。rnrn在CPP文件中写入C++的代码,语法、格式等无任何<em>错误</em>的情况下,VS2010弹出一个对话框提示<em>错误</em>,上面那段话就是框中的内容rn代码完全可以通过编译rn原以为是VS出了问题,重装一遍后仍然是老样子rnrn原来从没遇到过这种情况,最近才开始的rn安装文件没问题,是从微软的页面下载的
stm32 pwm输出异常及解决过程
pwm<em>输出</em>和捕获输入配置中的易错点,以及出现类似积分波形的<em>异常</em>波形的情况的解决<em>过程</em>
遇到时发生异常!!
javax.servlet.ServletException: org/apache/xpath/VariableStackrn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)rn org.apache.jsp.out_jsp._jspService(out_jsp.java:74)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrn
shortcut的学习笔记下载
shortcut实例,刚实例是从其他网站上down下来的,以供大家共同学习成长, 相关下载链接:[url=//download.csdn.net/download/lifeijiyuan126/3383921?utm_source=bbsseo]//download.csdn.net/download/lifeijiyuan126/3383921?utm_source=bbsseo[/url]
DAS NAS SAN raid下载
DAS NAS SAN raid 技术细节综述 相关下载链接:[url=//download.csdn.net/download/zhaoqiang0314/3583223?utm_source=bbsseo]//download.csdn.net/download/zhaoqiang0314/3583223?utm_source=bbsseo[/url]
D3D程序源代码下载
可以让你在D3D之路上有所收获的源代码,采用C++和D3D设计,有单调编程,提升为图形输出。 相关下载链接:[url=//download.csdn.net/download/baiduwenkuba/3759103?utm_source=bbsseo]//download.csdn.net/download/baiduwenkuba/3759103?utm_source=bbsseo[/url]
相关热词 c# gdi 占用内存 c#中遍历字典 c#控制台模拟dos c# 斜率 最小二乘法 c#进程延迟 c# mysql完整项目 c# grid 总行数 c# web浏览器插件 c# xml 生成xsd c# 操作sql视图
我们是很有底线的