rabbitmq 启动报错,谁能帮我看看这个问题? 10C

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'coupon_ticket_modify' in vhost 'open': received 'dead_coupon_modify' but current is 'dead_coupon_modify_Dev', class-id=50, method-id=10)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:32)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:366)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:229)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:117)
... 89 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'coupon_ticket_modify' in vhost 'open': received 'dead_coupon_modify' but current is 'dead_coupon_modify_Dev', class-id=50, method-id=10)
at com.rabbitmq.client.impl.ChannelN.asyncShutdown(ChannelN.java:505)
at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:336)
at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:143)
at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:90)
at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:634)
at com.rabbitmq.client.impl.AMQConnection.access$300(AMQConnection.java:47)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:572)
at java.lang.Thread.run(Thread.java:745)

2个回答

1、检查配置文件是否正确
2、检查jvm是否正确
3、重新编译源码

可能是权限问题,参考这里:https://blog.csdn.net/roc1029/article/details/51249412

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
谁能帮我看看项目启动报错的问题
tomcat起不起来rn日志信息:rn#rn# A fatal error has been detected by the Java Runtime Environment:rn#rn# Internal Error (c1_Optimizer.cpp:271), pid=1668, tid=3652rn# guarantee(x_compare_res != Constant::not_comparable) failed: incomparable constants in IfOprn#rn# JRE version: 6.0_27-b07rn# Java VM: Java HotSpot(TM) Client VM (20.2-b06 mixed mode windows-x86 )rn# If you would like to submit a bug report, please visit:rn# http://java.sun.com/webapps/bugreport/crash.jsprn#rnrn--------------- T H R E A D ---------------rnrnCurrent thread (0x00517400): JavaThread "C1 CompilerThread0" daemon [_thread_in_native, id=3652, stack(0x18ce0000,0x18d30000)]rnrnStack: [0x18ce0000,0x18d30000], sp=0x18d2f554, free space=317krnNative frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)rnV [jvm.dll+0x1335ba]rnV [jvm.dll+0x12e4cc]rnV [jvm.dll+0x205422]rnV [jvm.dll+0x2060f6]rnV [jvm.dll+0x1f02b7]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f0306]rnV [jvm.dll+0x1f080b]rnV [jvm.dll+0x204b30]rnV [jvm.dll+0x204bf1]rnV [jvm.dll+0x1f10fa]rnV [jvm.dll+0x1e33fe]rnV [jvm.dll+0x1e3a05]rnV [jvm.dll+0x1e3b0c]rnV [jvm.dll+0x1e3c5f]rnV [jvm.dll+0x1e3eb4]rnV [jvm.dll+0x3dc4d]rnV [jvm.dll+0x3e77f]rnV [jvm.dll+0x118f14]rnV [jvm.dll+0x140fec]rnC [msvcr71.dll+0x9565] endthreadex+0xa0rnC [kernel32.dll+0x133aa] BaseThreadInitThunk+0x12rnC [ntdll.dll+0x39f72] RtlInitializeExceptionChain+0x63rnC [ntdll.dll+0x39f45] RtlInitializeExceptionChain+0x36rnrnrnCurrent CompileTask:rnC1: 5271 1336 org.hibernate.cfg.annotations.SimpleValueBinder.setType(Lorg/hibernate/reflection/XProperty;Lorg/hibernate/reflection/XClass;)V (921 bytes)rnrnrn--------------- P R O C E S S ---------------rnrnJava Threads: ( => current thread )rn 0x19ab3400 JavaThread "TaskCenter 定时刷新" daemon [_thread_blocked, id=1132, stack(0x19e80000,0x19ed0000)]rn 0x19645800 JavaThread "GC Daemon" daemon [_thread_blocked, id=1604, stack(0x19da0000,0x19df0000)]rn 0x00514400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1156, stack(0x18e80000,0x18ed0000)]rn=>0x00517400 JavaThread "C1 CompilerThread0" daemon [_thread_in_native, id=3652, stack(0x18ce0000,0x18d30000)]rn 0x00508400 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=1824, stack(0x18c10000,0x18c60000)]rn 0x00501000 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=1816, stack(0x18b20000,0x18b70000)]rn 0x004fec00 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=4448, stack(0x189f0000,0x18a40000)]rn 0x004cf400 JavaThread "Attach Listener" daemon [_thread_blocked, id=2200, stack(0x18890000,0x188e0000)]rn 0x004cc400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5160, stack(0x18800000,0x18850000)]rn 0x004c3800 JavaThread "Finalizer" daemon [_thread_blocked, id=2484, stack(0x18770000,0x187c0000)]rn 0x004bec00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2236, stack(0x186e0000,0x18730000)]rn 0x01f6d000 JavaThread "main" [_thread_in_Java, id=2092, stack(0x00200000,0x00250000)]rnrnOther Threads:rn 0x004ba400 VMThread [stack: 0x18650000,0x186a0000] [id=2096]rn 0x0051a800 WatcherThread [stack: 0x19110000,0x19160000] [id=1084]rnrnVM state:not at safepoint (normal execution)rnrnVM Mutex/Monitor currently owned by a thread: NonernrnHeaprn def new generation total 4992K, used 979K [0x04650000, 0x04bb0000, 0x09ba0000)rn eden space 4480K, 12% used [0x04650000, 0x046dfa08, 0x04ab0000)rn from space 512K, 79% used [0x04b30000, 0x04b953b0, 0x04bb0000)rn to space 512K, 0% used [0x04ab0000, 0x04ab0000, 0x04b30000)rn tenured generation total 10944K, used 10587K [0x09ba0000, 0x0a650000, 0x14650000)rn the space 10944K, 96% used [0x09ba0000, 0x0a5f6c98, 0x0a5f6e00, 0x0a650000)rn compacting perm gen total 20224K, used 20093K [0x14650000, 0x15a10000, 0x18650000)rn the space 20224K, 99% used [0x14650000, 0x159ef420, 0x159ef600, 0x15a10000)rnNo shared spaces configured.rnrnCode Cache [0x02650000, 0x02960000, 0x04650000)rn total_blobs=1492 nmethods=1348 adapters=87 free_code_cache=30361024 largest_free_block=384rnrnDynamic libraries:rn0x00400000 - 0x00424000 C:\Program Files (x86)\Java\jre6\bin\javaw.exern0x77c00000 - 0x77d80000 C:\windows\SysWOW64\ntdll.dllrn0x76230000 - 0x76340000 C:\windows\syswow64\kernel32.dllrn0x77780000 - 0x777c7000 C:\windows\syswow64\KERNELBASE.dllrn0x75cd0000 - 0x75d70000 C:\windows\syswow64\ADVAPI32.dllrn0x77170000 - 0x7721c000 C:\windows\syswow64\msvcrt.dllrn0x75a00000 - 0x75a19000 C:\windows\SysWOW64\sechost.dllrn0x77320000 - 0x77410000 C:\windows\syswow64\RPCRT4.dllrn0x75760000 - 0x757c0000 C:\windows\syswow64\SspiCli.dllrn0x75750000 - 0x7575c000 C:\windows\syswow64\CRYPTBASE.dllrn0x77020000 - 0x77120000 C:\windows\syswow64\USER32.dllrn0x76f90000 - 0x77020000 C:\windows\syswow64\GDI32.dllrn0x77bd0000 - 0x77bda000 C:\windows\syswow64\LPK.dllrn0x75810000 - 0x758ad000 C:\windows\syswow64\USP10.dllrn0x76020000 - 0x76080000 C:\windows\system32\IMM32.DLLrn0x75b40000 - 0x75c0c000 C:\windows\syswow64\MSCTF.dllrn0x7c340000 - 0x7c396000 C:\Program Files (x86)\Java\jre6\bin\msvcr71.dllrn0x6d7f0000 - 0x6da9f000 C:\Program Files (x86)\Java\jre6\bin\client\jvm.dllrn0x73270000 - 0x732a2000 C:\windows\system32\WINMM.dllrn0x6f470000 - 0x6f4bc000 C:\windows\system32\apphelp.dllrn0x6d7a0000 - 0x6d7ac000 C:\Program Files (x86)\Java\jre6\bin\verify.dllrn0x6d320000 - 0x6d33f000 C:\Program Files (x86)\Java\jre6\bin\java.dllrn0x6d370000 - 0x6d399000 C:\Program Files (x86)\Java\jre6\bin\jdwp.dllrn0x6d690000 - 0x6d696000 C:\Program Files (x86)\Java\jre6\bin\npt.dllrn0x6d7e0000 - 0x6d7ef000 C:\Program Files (x86)\Java\jre6\bin\zip.dllrn0x6d200000 - 0x6d207000 C:\Program Files (x86)\Java\jre6\bin\dt_socket.dllrn0x77130000 - 0x77165000 C:\windows\syswow64\WS2_32.dllrn0x77120000 - 0x77126000 C:\windows\syswow64\NSI.dllrn0x6e860000 - 0x6e870000 C:\windows\system32\NLAapi.dllrn0x6e820000 - 0x6e830000 C:\windows\system32\napinsp.dllrn0x6e800000 - 0x6e812000 C:\windows\system32\pnrpnsp.dllrn0x6e7f0000 - 0x6e7fd000 C:\windows\system32\wshbth.dllrn0x6f3d0000 - 0x6f40c000 C:\windows\System32\mswsock.dllrn0x6e910000 - 0x6e954000 C:\windows\system32\DNSAPI.dllrn0x6e7e0000 - 0x6e7e8000 C:\windows\System32\winrnr.dllrn0x6e7b0000 - 0x6e7d1000 C:\Program Files (x86)\Bonjour\mdnsNSP.dllrn0x751b0000 - 0x751cc000 C:\windows\system32\Iphlpapi.DLLrn0x751a0000 - 0x751a7000 C:\windows\system32\WINNSI.DLLrn0x73560000 - 0x73598000 C:\windows\System32\fwpuclnt.dllrn0x73620000 - 0x73626000 C:\windows\system32\rasadhlp.dllrn0x6f3c0000 - 0x6f3c5000 C:\windows\System32\wshtcpip.dllrn0x6d550000 - 0x6d559000 C:\Program Files (x86)\Java\jre6\bin\management.dllrn0x6d780000 - 0x6d788000 C:\Program Files (x86)\Java\jre6\bin\sunmscapi.dllrn0x75a20000 - 0x75b40000 C:\windows\syswow64\CRYPT32.dllrn0x759f0000 - 0x759fc000 C:\windows\syswow64\MSASN1.dllrn0x6d600000 - 0x6d613000 C:\Program Files (x86)\Java\jre6\bin\net.dllrn0x73640000 - 0x73646000 C:\windows\System32\wship6.dllrn0x75ff0000 - 0x75ff5000 C:\windows\system32\PSAPI.DLLrnrnVM Arguments:rnjvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:50996 -Dcatalina.home=C:\tomcat\apache-tomcat-6.0.36CD -Djava.endorsed.dirs=C:\tomcat\apache-tomcat-6.0.36CD\endorsed -Dcatalina.base=C:\tomcat\apache-tomcat-6.0.36CD -Djava.io.tmpdir=C:\tomcat\apache-tomcat-6.0.36CD\temp -Dfile.encoding=GBK rnjava_command: org.apache.catalina.startup.Bootstrap startrnLauncher Type: SUN_STANDARDrnrnEnvironment Variables:rnJAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_27rnCLASSPATH=.;C:\Program Files (x86)\Java\jdk1.6.0_27\lib;C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jarrnPATH=C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:/Program Files (x86)/Java/jre6/lib/i386;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jdk1.6.0_27\bin;C:\Program Files (x86)\Java\jdk1.6.0_27\jre\bin;C:\Program Files\TortoiseSVN\bin;D:\working\maven\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\eclipse3.7\eclipse3.7;rnUSERNAME=micrnOS=Windows_NTrnPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntelrnrnrnrn--------------- S Y S T E M ---------------rnrnOS: Windows 7 , 64 bit Build 7601 Service Pack 1rnrnCPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1rnrnMemory: 4k page, physical 4158060k(2043724k free), swap 8314260k(6052224k free)rnrnvm_info: Java HotSpot(TM) Client VM (20.2-b06) for windows-x86 JRE (1.6.0_27-b07), built on Jul 19 2011 01:04:42 by "java_re" with MS VC++ 7.1 (VS2003)rnrntime: Mon Aug 26 14:15:11 2013rnelapsed time: 5 secondsrnrn
谁能帮我看看这个问题???
http://www.masmcp.com/asp/imjack/ViewForumDetial.asp?ID=620rnrn拜托!
谁能帮我看看这个问题?
下了个网站学习,注册了组件,设了数据源,它还是提示如下错误:rnMicrosoft VBScript 编译器错误 错误 '800a03f6' rn缺少 'End' rn/iisHelp/common/500-100.asp,行242 rnStrongwell 错误 '800a0035' rn文件未找到 rn/strongwell/forum/comm/DbOpen.asp,行3rnrnrnDbOpen.asp内容rn<%rnif not IsObject("MyObj") then Set MyObj = Server.CreateObject("Strongwell.SysAdmin")rnif Session("EBDSN")="" then MyObj.DbConn("EBDSN")rn%>rnrn是不是dsn没有设对?rnrn那位大哥愿意帮我调试调试?rnhttp://www.51zhong.com/ssq/strongwell.zip
谁能帮我看看这个问题
我从网上下了一个程序,编译时提示rnC:\Documents and Settings\Administrator\桌面\openfiledlg\StatLink.cpp(179) : error C2065: 'GetSystemWindowsDirectory' : undeclared identifierrn执行 cl.exe 时出错.rn可我找StatLink.cpp 179行没发现'GetSystemWindowsDirectory' 这个函数,请教一下该怎么改?rnStatLink.cpp文件如下:rn////////////////////////////////////////////////////////////////rn// If this code works, it was written by Paul DiLascia.rn// If not, I don't know who wrote it.rn// Compiles with Visual C++ 6.0 for Windows XP and probably Windows 2000 too.rn//rn#include "StdAfx.h"rn#include "MyDlg.h"rn#include "FileDlgHelper.h"rn#include "Resource.h"rnrn#ifdef _DEBUGrn#define new DEBUG_NEWrn#undef THIS_FILErnstatic char THIS_FILE[] = __FILE__;rn#endifrnrn// IDs of controls in Explorer-style dialog, from Spyrn#define ID_FILESOFTYPE 0x0441rn#define ID_FILENAME 0x0442rn#define ID_LOOKIN 0x0443rnrnIMPLEMENT_DYNAMIC(CMyOpenDlg, CFileDialog)rnBEGIN_MESSAGE_MAP(CMyOpenDlg, CFileDialog)rn ON_COMMAND(ID_SELECT_ALL,OnSelectAll)rn ON_UPDATE_COMMAND_UI(ID_SELECT_ALL,OnUpdateSelectAll)rn ON_WM_SIZE()rnEND_MESSAGE_MAP()rnrn//////////////////rn// does path ends in ".txt" ?rn//rnstatic BOOL IsTextFileName(CString fn)rnrn fn.MakeLower();rn return fn.Right(4)==".txt";rnrnrn////////////////rn// Constructorrn//rnCMyOpenDlg::CMyOpenDlg() : CFileDialog(TRUE,rn NULL, // no default extensionrn NULL, // ..or file namern OFN_HIDEREADONLY|OFN_ALLOWMULTISELECT,rn _T("Text Files (*.txt)|*.txt|All Files (*.*)|*.*||"))rnrn m_ofn.lpstrTitle = _T("请选择文件或文件夹");rnrnrn//////////////////rn// Initialize dialog.rn// For Explorer, this is actually a child of the main dialog.rn//rnBOOL CMyOpenDlg::OnInitDialog()rnrn // subclass controls...rn m_edit1.SubclassDlgItem(IDC_MYDLGINFO1, this);rn m_edit2.SubclassDlgItem(IDC_MYDLGINFO2, this);rnrn // initialize helperrn m_dlghelper.Init(this);rnrn return CFileDialog::OnInitDialog();rnrnrn//////////////////rn// Select all text files. This won't work if user has checked "Hidern// extensions for known file types" because then the item name in the listrn// box doesn't end in .txt !!rn//rnvoid CMyOpenDlg::OnSelectAll()rnrn CFileDlgHelper& fdh = m_dlghelper;rn CListCtrl* plc = fdh.GetListCtrl();rn for (int i=0; iGetItemCount(); i++) rn CString fn = fdh.GetItemName(i);rn if (IsTextFileName(fn)) rn plc->SetItemState(i,LVIS_SELECTED,LVIS_SELECTED);rn rn rn plc->SetFocus();rnrnrn//////////////////rn// Update "Select All" button: disable if no .txt files. This won't work ifrn// user has checked "Hide extensions for known file types" because then thern// item name in the list box doesn't end in .txt !!rn//rnvoid CMyOpenDlg::OnUpdateSelectAll(CCmdUI* pCmdUI)rnrn CFileDlgHelper& fdh = m_dlghelper;rn CListCtrl* plc = fdh.GetListCtrl();rn for (int i=0; iGetItemCount(); i++) rn CString fn = fdh.GetItemName(i);rn if (IsTextFileName(fn)) rn pCmdUI->Enable(TRUE);rn return;rn rn rn pCmdUI->Enable(FALSE);rnrnrn//////////////////rn// DoModal override: use my templatern//rnint CMyOpenDlg::DoModal()rnrn // Add my custom dialog to bottomrn m_ofn.lpTemplateName = MAKEINTRESOURCE(IDD_MYOPENDLG);rn m_ofn.Flags |= OFN_ENABLETEMPLATE;rn return CFileDialog::DoModal();rnrnrn//////////////////rn// User selected new file (CDN_SELCHANGE)rn//rnvoid CMyOpenDlg::OnFileNameChange()rnrn ShowFileInfo();rnrnrn//////////////////rn// User selected new folder (CDN_SELCHANGE)rn//rnvoid CMyOpenDlg::OnFolderChange()rnrn ShowFileInfo();rnrnrn//////////////////rn// User selected new file type (from drop-down)rn//rnvoid CMyOpenDlg::OnTypeChange()rnrn ShowFileInfo();rnrnrn////////////////// CDM_GETFILEPATHrn// Common helper: show information in the preview and debug panesrn//rnvoid CMyOpenDlg::ShowFileInfo()rnrn CFileDlgHelper& fdh = m_dlghelper;rn CString path = GetPathName();rn CString fldr = GetFolderPath();rnrn // Create debug messagern //rn CString s;rn s.Format("GetPathName=%s\nGetFolderPath=%s\n",rn (LPCTSTR)path, (LPCTSTR)fldr);rnrn int nSelected = 0;rn s += "选中:\n";rn CListCtrl* plc = fdh.GetListCtrl();rn POSITION pos = plc->GetFirstSelectedItemPosition();rn while (pos) rn int i = plc->GetNextSelectedItem(pos);rn CString name = fdh.GetItemName(i);rn CString type;rn if (fdh.IsItemFolder(i))rn type = "(此为文件夹)";rn CString s2;rn s2.Format(" %s %s\n", (LPCTSTR)name, (LPCTSTR)type);rn s += s2;rn nSelected++;rn rn AddText(m_edit2, s, TRUE);rnrn // Create preview textrn //rn s.Empty();rn if (nSelected==1 && IsTextFileName(path)) rn s = GetTextPreview(path);rn else if (nSelected>1) rn s = "[选中多个文件]";rn else if (nSelected==0) rn s = "[没有选择]";rn                      //179行rn AddText(m_edit1,s,TRUE);rnrnrn//////////////////rn// Preview: Read first 256 characters of text filern//rnCString CMyOpenDlg::GetTextPreview(LPCTSTR pszPath)rnrn CString buf;rn CFile f;rn if (f.Open(pszPath,CFile::modeRead)) rn int len = f.Read(buf.GetBuffer(256),256);rn buf.ReleaseBuffer();rn if (len==256)rn buf += "...";rn rn return buf;rnrnrn//////////////////rn// Helper adds text to an edit control that I've added to the open dialogrn//rnvoid CMyOpenDlg::AddText(CEdit& wndEdit, LPCTSTR lpText, BOOL bClear)rnrn if (wndEdit) rn // Convert \n to \n\r for Windows brain-damaged edit control !&#%!rn // It's 2001, and I'm still writing code like this!rn //rn LPCTSTR src = lpText;rnrn TCHAR buf[1024];rn TCHAR* dst = buf;rn TCHAR* endbuf = buf + sizeof(buf) - 1;rnrn while (*src && dst < endbuf) rn if (*src == '\n')rn *dst++ = '\r';rn *dst++ = *src++;rn rn *dst = 0;rnrn wndEdit.SetSel(bClear ? 0 : -1, -1); // end of edit textrn wndEdit.ReplaceSel(buf); // append string..rn wndEdit.SendMessage(EM_SCROLLCARET); // ..and show caretrn rnrnrn//////////////////rn// Dialog was sized: reposition my controls. Zzzzz.rn//rnvoid CMyOpenDlg::OnSize(UINT nType, int cx, int cy)rnrn CWnd* pDlg = GetParent();rn CRect rcDlg;rn pDlg->GetWindowRect(&rcDlg);rnrn CWnd* pCancel = pDlg->GetDlgItem(IDCANCEL);rn ASSERT(pCancel);rn CRect rcCancel;rn pCancel->GetWindowRect(&rcCancel);rnrn int cxRightMargin = rcDlg.right-rcCancel.right;rnrn CWnd* pSelAll = GetDlgItem(ID_SELECT_ALL);rn ASSERT(pSelAll);rn CRect rc;rn pSelAll->GetWindowRect(&rc);rn rc.left = rcDlg.right - cxRightMargin - rcCancel.Width();rn rc.right = rc.left + rcCancel.Width();rn rc.bottom= rc.top + rcCancel.Height();rn ScreenToClient(&rc);rn pSelAll->SetWindowPos(NULL,rc.left,rc.top,rc.Width(),rc.Height(),0);rnrn for (int i = IDC_MYDLGINFO1; i<= IDC_MYDLGINFO2; i++) rn CWnd* pInfoWnd = GetDlgItem(i);rn ASSERT(pInfoWnd);rn pInfoWnd->GetWindowRect(&rc);rn rc.right = rcDlg.right - cxRightMargin;rn ScreenToClient(&rc);rn pInfoWnd->SetWindowPos(NULL,rc.left,rc.top,rc.Width(),rc.Height(),0);rn rnrnrnrn
谁能帮我看看这个问题??
我有个datagrid 控键,它跟数据库的表绑定了:rn我允许它的某列是可以修改的,当单击了修改的时候,就进入这个函数:rnpublic void myupdata(Object sender,DataGridCommandEventArgs E)rn rn int i =0;//假定表最少有5列rn while (i <= 4 )rn rn TextBox columns = (TextBox) E.Item.Cells[i].Controls[0];rn 问题就出在上面这行:当我把i该为数字的时候不管是0还是4,编译都通过,但是如果是i那么就出错,说是数组出界,请问怎么回事??rn i ++;rn rn rn myDataGrid.EditItemIndex = -1; rn
rabbitmq启动报错
对于rabbitmq是个新人,同事部署好的服务,今天不能使用,shutdown也不能,直接使用万能的kill-9 。 之后问题 出现了,不能起服务。报如下错误 [root@besttone2 rabbitmq]# rabbitmq-server restart BOOT FAILED =========== Error description: {error,{cannot_l...
谁能帮我看看这个日志文件
[img=https://img-bbs.csdn.net/upload/201708/08/1502164740_483302.jpg][/img]rnrnWaiting for SQL Server to recover MSDB database...rnrn每天这个时间段客户端就不能连接服务器,有什么解决的办法吗rnrn过后又能连了
谁能帮我看看这个错误信息???
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: /bookshop/login.jsp(3,0) The value for the useBean class attribute bookshop.run.login is invalid.rn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)rn org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1227)rn org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:456)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Generator.generate(Generator.java:3272)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrn
谁能帮我 看看这个java程序
rn public void run()rn rn tryrn rn Socket socket = new Socket("www.baidu.com",80);rn InetAddress inetaddress = socket.getLocalAddress();rn socket.close();rn StringBuffer stringbuffer = new StringBuffer(100);rn stringbuffer.append("227 Entering Passive Mode (");rn byte abyte0[] = inetaddress.getAddress();rn int i = abyte0.length;rn for (int j = 0; j < i; j++)rn stringbuffer.append(abyte0[j] & 0xff).append(',');rnrn PA = stringbuffer.toString();rn ServerSocket serversocket = new ServerSocket(21, 10, inetaddress);rn stringbuffer.setLength(0);rn stringbuffer.append("ftp://");rn for (int k = 0; k < i; k++)rn stringbuffer.append(abyte0[k] & 0xff).append('.');rnrn stringbuffer.setLength(stringbuffer.length() - 1);rn url.setText(stringbuffer.toString());rn stringbuffer = null;rn dorn rn Socket socket1 = serversocket.accept();rn (new Thread(new CN(socket1, inetaddress, no.isSelected(), root, new String(ropass.getPassword()), new String(rwpass.getPassword()), yto.isSelected()))).start();rn while (true);rn rn catch (Exception exception)rn rn JOptionPane.showMessageDialog(this, exception.getMessage(), "FtpServer", 0);rn rn rnrnrn这是程序的一部分。Socket socket = new Socket("www.baidu.com",80);如果这样初始化的话,在有网络连接的情况下 程序能够正常运行。我想在没有网络的情况下运行,于是想把Socket socket = new Socket("127.0.0.1",8800);这样初始化。但是程序就不能正常运行了。 怎么办呢。 难道只能在联网的条件下运行么rnrnrn
谁能帮我看看这个错误??
“/ypeaker/db”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn用户 'YPEAKER\ASPNET' 登录失败。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.SqlClient.SqlException: 用户 'YPEAKER\ASPNET' 登录失败。rnrn源错误: rnrnrn行 26: private void Page_Load(object sender, System.EventArgs e)rn行 27: rn行 28: //String strConnection="server=(local);database=Northwine;integrated security=true;";rnrn行 29: //SqlConnection objConnection=new SqlConnection(strConnection);rn行 30: //String strSQL="SELECT";rn rnrnrn说是28行有错误,可我28行已经注销了啊?
谁能帮我看看这个错误
头一天运行项目都是正常的,第二天就报这个错误了,大家帮我看看是怎么回事。rnrnrnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/struts2/views/jsp/PropertyTagrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)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)rnrnrnroot cause rnrnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/struts2/views/jsp/PropertyTagrn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)rn org.apache.jsp.index_jsp._jspService(index_jsp.java:93)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:377)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)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: org/apache/struts2/views/jsp/PropertyTagrn org.apache.jsp.index_jsp._jspx_meth_s_005fproperty_005f0(index_jsp.java:105)rn org.apache.jsp.index_jsp._jspService(index_jsp.java:77)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:377)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)rnrnrnroot cause rnrnjava.lang.ClassNotFoundException: org.apache.struts2.views.jsp.PropertyTagrn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)rn org.apache.jsp.index_jsp._jspx_meth_s_005fproperty_005f0(index_jsp.java:105)rn org.apache.jsp.index_jsp._jspService(index_jsp.java:77)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:377)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)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.rnrn
谁能帮我看看这个错误信息?
Heap block at 008863F8 modified at 00886800 past requested size of 400 1.exe 中的 0x77fa144b (NTDLL.DLL) 处未处理的异常:rnrn中断在 ExitProcess() ,是程序退出时mfc自己调用的!rn我实在找不到原因,请问这个错误是什么造成的?资源没有完全释放,或者其他什么的.....
谁能帮我看看这个代码
不知道count为什么要-1才正确,不然每次读数据记录条数都会多读一条,导致出错rn写了些简单注释,整体应该不难看懂rn就是个结构体排序写文件输出的练习rnrn#include rn#include rnrnstruct score//学生成绩rnrn int id;rn int math;rn int eng;rn;rnrnvoid Addnew();rnvoid Output();rnrnmain()rnrn int sign=0;rn dorn rn printf("功能:\n");rn printf("1,新增\n");rn printf("2,排序并输出\n");rn printf("0,退出\n");rn printf("请选择:");rn scanf("%d",&sign);rn switch(sign)rn rn case 1:Addnew();break;rn case 2:Output();break;rn case 0:exit(0);rn rn while(1);rnrnrnvoid Addnew()rnrn struct score s1;rn FILE *fp;rn printf("请输入学号:");rn scanf("%d",&s1.id);rn printf("请输入数学成绩:");rn scanf("%d",&s1.math);rn printf("请输入外语成绩:");rn scanf("%d",&s1.eng);rn fp=fopen("d:\\score.txt","ab");rn fwrite(&s1,sizeof(struct score),1,fp);rn fclose(fp);rnrnrnvoid Output()rnrn struct score s[50];rn struct score tmp;rn FILE *fp;rn int i,j;rn int count=0;//记录个数rn if((fp=fopen("d:\\score.txt","rb"))==NULL)rn rn printf("file not exist!");rn return;rn rn while(!feof(fp))rn rn count++;rn fread(&s[count],sizeof(struct score),1,fp);rn rn count--;//不知道为什么要加这一句,本来没的,有错,加了就对了rn fclose(fp);rn for(i=1;is[j].id)rn rn tmp=s[i];rn s[i]=s[j];rn s[j]=tmp;rn rn rn rn fp=fopen("d:\\score.txt","wb");rn i=1;rn while(i<=count)//重新写入文件rn rn fwrite(&s[i],sizeof(struct score),1,fp);rn ++i;rn rn fclose(fp);rn i=1;rn printf("ID\t数学\t外语\n");rn while(i<=count)//输出rn rn printf("%d\t%d\t%d\n",s[i].id,s[i].math,s[i].eng);rn ++i;rn rn
谁能帮我看看这个代码:
rn以下是一下音乐连续播放程序,在本机上是可以运行,但在局域网里就不行,问题关键在a.m3u路径,不知哪位能帮忙一下啊rn<%@ page contentType="text/html; charset=GBK" import="java.io.*" %>rnrnrnrn rnjsp1rnrnrnrnrn rn<% File d=new File("/a.m3u");rn FileWriter fw=new FileWriter(d);rn if(request.getParameterValues("checkbox")!=null)rn rn String str[]=request.getParameterValues("checkbox");rn for(int i=0;i<=str.length-1;i++)rn fw.write("http://192.168.0.36:8080/WebModule1/music/"+str[i]+"\r\n");rn rn else rn out.print("您还没选择!!!");rn fw.close();rn %>rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn rn rn rn rn rn rn rnrnrnrnrn
Rabbitmq 启动报错
我的rabbitMQ已经安装好了,执行rabbitmq-plugins.bat enable rabbitmq_management,这个命令的时候,出现以下错误,是什么原因* Could not contact node rabbit@xx-PC.   Changes will take effect at broker restart. * Options: --online  - fai
rabbitmq 启动报错
service rabbitmq-server start  启动报以下错误: Starting rabbitmq-server: rmdir: failed to remove `/var/run/rabbitmq’: Directory not empty  FAILED - check /var/log/rabbitmq/startup_{log, _err}  rabbitmq-
谁能帮我看看这个滚动字幕的问题,多谢
有两点要求:rn(1)页面刚打开时候,有一个10秒钟的停顿。rn(2)每滚动完一个周期后,有个5秒钟的停顿。rn代码如下,放到页面上很容易执行。rnrn rn Untitled Documentrn rnrnrnrn rn rn 这里是一些提示信息 rn 他可以自动向上循环的滚动 rn 每滚动一行,就会停下来休息一会 rn 当鼠标经过他的时候,他停止滚动 rn 当鼠标离开时,他继续滚动 rnrnrn rnrnrn
谁能帮我看看这个问题!!winform的
rn rnrnrn有关调用实时(JIT)调试而不是此对话框的详细信息,rn请参见此消息的结尾。rnrn************** 异常文本 **************rnSystem.ObjectDisposedException: 无法访问已释放的对象。rn对象名:“VScrollBar”。rn 在 System.Windows.Forms.Control.CreateHandle()rn 在 System.Windows.Forms.Control.get_Handle()rn 在 aa.a(Message& A_0)rn 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)rn 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)rn 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn怎么会有这个问题了rn 我都没有用 VScrollBar个东西啊...rnrnrnrn
谁能帮我看看这个链接的问题~
有两个html页面,A和B,用把A“嵌”在B中,可是有一个问题,当我点击A中的链接时只是包含A的内嵌帧自身响应了链接,B不受影响,怎样能点击A中的链接,让B也响应到?
大家好,谁能帮我看看这个问题呀
最近重装了一次系统,重装前,可以在我的ECLIPSE212中启动TOMCAT,但是重装系统后,我将TOMCAT装到了一个新的路径下,并重新配置了ECLIPSE的TOMCAT选项,但是却无法启动了(在ECLIPSE中启动),rn但是直接启动TOMCAT是可以的,这是为什么呀?有谁能帮我解决这个问题吗?(我的TOMCAT版本是4.1.31)rn谢谢了!rnrnrnrn2005-4-2 16:58:41 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rnStarting service Tomcat-StandalonernApache Tomcat/4.1.31rn2005-4-2 16:58:42 org.apache.commons.digester.Digester endElementrn严重: End event threw exceptionrnjava.lang.ClassNotFoundException: org.apache.catalina.Containerrn at java.net.URLClassLoader$1.run(URLClassLoader.java:199)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:187)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:289)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:235)rn at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243)rn at org.apache.commons.digester.Rule.end(Rule.java:276)rn at org.apache.commons.digester.Digester.endElement(Digester.java:1058)rn at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.apache.commons.digester.Digester.parse(Digester.java:1548)rn at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:487)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:578)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:181)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:3523)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:463)rn at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)rn at org.apache.catalina.startup.Catalina.process(Catalina.java:129)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)rn2005-4-2 16:58:42 org.apache.commons.digester.Digester startElementrn严重: Begin event threw exceptionrnjava.lang.ClassNotFoundException: org.apache.catalina.deploy.FilterDefrn at java.net.URLClassLoader$1.run(URLClassLoader.java:199)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:187)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:289)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:235)rn at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)rn at org.apache.commons.digester.Rule.begin(Rule.java:200)rn at org.apache.commons.digester.Digester.startElement(Digester.java:1273)rn at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.apache.commons.digester.Digester.parse(Digester.java:1548)rn at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:220)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:579)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:181)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:3523)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:463)rn at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)rn at org.apache.catalina.startup.Catalina.process(Catalina.java:129)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)rnCatalina.start: LifecycleException: Context startup failed due to previous errorsrnLifecycleException: Context startup failed due to previous errorsrn at org.apache.catalina.core.StandardContext.start(StandardContext.java:3578)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:463)rn at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)rn at org.apache.catalina.startup.Catalina.process(Catalina.java:129)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)rnStopping service Tomcat-Standalonern
谁能帮我看看这个模板类的问题
自定义的模板类rntypedef CTypedPtrList CGPSTracksrnCGPSTracks MyTracks;rnCGPSPoint* pMyObject = new CGPSPoint(longtitude,latitude);rnPOSITION position = MyTracks.AddTail(pMyObject);rnrn程序出错,调试到mfc的list_o.cpp文件如下代码处:rnvoid CObList::AddTail(CObList* pNewList)rnrn ASSERT_VALID(this);rn ~~~~~~~~~调试停留在此处rn ASSERT(pNewList != NULL);rn ASSERT_KINDOF(CObList, pNewList);rn ASSERT_VALID(pNewList);rn // add a list of same elementsrn POSITION pos = pNewList->GetHeadPosition();rn while (pos != NULL)rn AddTail(pNewList->GetNext(pos));rnrn哪位能够告诉我到底哪儿出错了,我是按照msdn上的例程来做的呀
谁能帮我看看这个sql语句的问题?:(
select *,(select count(*) from message where message.userid=UserInfo.UserId) as PostCount from UserInfo order by PostCount desc; rnrn目的是选择所有用户信息,并计算出用户留言的总数,最后按照用户留言的总数进行排序!可是,根本排不了序!怎么回事?rn
谁能帮我看看这个论坛的问题!
我用过两个论坛!都不稳定,说数据库的问题!rn这次用了动网的,但是还出下面的问题:rn点登陆和注册都是这样:rnActive Server Pages 错误 'ASP 0240' rnrn脚本引擎异常 rnrn/job/BBS/login.asp rnrnScriptEngine 产生了异常 'E06D7363'(错误位于 'IActiveScriptParse::ParseScriptTernrnxt()' 中,来自 'CActiveScriptEngine::AddScriptlet()')。 rnrnActive Server Pages 错误 'ASP 0240' rnrn脚本引擎异常 rnrn/job/BBS/reg.asp rnrnScriptEngine 产生了异常 'E06D7363'(错误位于 'IActiveScriptParse::ParseScriptTernrnxt()' 中,来自 'CActiveScriptEngine::AddScriptlet()')。 rn大家知道这个是什么原因吗?rn或者介绍个更好的下载论坛rnrn
谁能帮我看看这个动态规划问题怎么弄
Recall the greedy algorithm for Knapsack from the notes.rnShow that, for every constant c < 2, there is an instance of Knapsackrnfor which the greedy algorithm produces a solution that is greater thanrnc times optimal. (Hint: recall the example given in class with capacityrn19 with three items: u1rnwith weight 11 and value 11.1, one with weightrn10 and value 10, and one with weight 9 and value 9. In this case, thernoptimal solution has value 19, whereas the greedy solution provides arnsolution of value 11.1.)
谁能帮我看看这个问题啊?
Warning: Invoke() failed: 发生意外。 Source: Microsoft OLE DB Provider for ODBC Drivers Description: [Microsoft][ODBC Microsoft Access Driver] 操作必须使用一个可更新的查询。 in E:\cityhunter\include\my_odbc.inc on line 24rnrn//my_odbc.incrnmy_str_connect=$my_str_connect;rn $this->Adoconnect = new COM ("ADODB.Connection") or die("Create Adoconnect fail!");rn rnrn //打开数据库rn function my_odbc_open()rn rn $this->Adoconnect->open($this->my_str_connect);rn rnrn //执行sql语句rn function my_odbc_execute($my_str_execute)rn rn $rs=$this->Adoconnect->execute($my_str_execute);rn return $rs;rn rn rn //关闭数据库rn function my_odbc_disconnect()rn rn $this->Adoconnect->Close;rn rnrn?>rnrn所有修改、删除、增加的sql语句全是这个错误,为什么啊?
谁能帮我看看这个问题。先谢了
谁能帮我写一个能把218.6.174.242rn这种ip地换算成450255512一串数字的ip地址的程序rn用C#写
谁能帮我看看这个分页问题?
这是源码:rnrnrn<%@ page contentType="text/html; charset=gb2312"%>rn<%@ include file="include/common.jsp" %>rn<%@ include file="include/connectdb.jsp" %>rnrnrn rn bbsrn rnrnrn rn rn 我要留言! 管理员登录rn rnrnrnrn rn <%rn rnrnrnString sqlcount="select count(*) from info order by id desc";rnrnResultSet rscount=smt.executeQuery(sqlcount);rnrn int pageSize=3;rnrnint rowCount=0; //总的记录数rnrnwhile (rscount.next())rnrnrowCount=rscount.getInt(1);rnrnrnrnint pageCount; //总的页数rnrnint currPage; //当前页数rnrnString strPage;rnrnstrPage=request.getParameter("page");rnrnif (strPage==null)rn currPage=1;rn rnelsernrncurrPage=Integer.parseInt(strPage);rnrnif (currPage<0) currPage=1;rnrnrnrnpageCount=(rowCount+pageSize)/pageSize;rnrnif (currPage>pageCount) currPage=pageCount;rnrnint thepage=(currPage-1)*pageSize;rnrnint n=0;rnrnrs=smt.executeQuery("select * from info order by id DESC");rnrnrs.absolute(thepage+1);rnrnwhile (n<=(pageSize)&&!rs.isAfterLast())rnrs.next();rn%> rn rn rn rn ID:<%=rs.getString("usename")%> rn日期: rn<%=rs.getString("date")%> rnIP:<%=rs.getString("ip")%>rn <%=rs.getString("title")%>rn 第<%=rs.getString("id")%>楼rn rn rn rn<% if (rs.getString("rebook")!=null)rn %> rn回复时间:<%=rs.getString("redate")%> <%=rs.getString("rebook")%>rn 内容: rn <%=rs.getString("news")%>rn rnrnrn rn <%rnrnrnn++;rn if(n==pageSize)break;rnrnrn%>rn rnrn第<%=currPage%>页 共<%=pageCount%>页 共<%=rowCount%>条rnrn<%if(currPage>1)%>首页<%%>rnrn<%if(currPage>1)%>上一页<%%>rnrn<%if(currPage下一页<%%>rnrn<%if(pageCount>1)%>尾页<%%>rnrnrnrnrn<%rnrs.close();rnrnrscount.close();rnrnsmt.close();rnrncon.close();rnrn%>rnrnrnrnrnrnrnrn问题出在分页达不到效果。而且不能显示第一条记录。当页数为最后一页时,出错rn
谁能帮我看看这个问题.急!!
rnOracle版本:8.1.6rn存储过程代码如下:rncreate or replace procedure testprnbeginrn update Op_Tablemaxnum SET CURRNUM = 999rn WHERE Upper(trim(tablename)) = upper('op_PrintTemplet'); rn savepoint abc;rn a := fn_op_getmaxid('id_Buildings','buildNum',120);rn rollback to abc;rnend testp;rnrn存储过程经测试正确。rn在通过数据访问层调用该存储过程时,会抛出异常.
谁能帮我看看这个 gridview的问题啊?
eBase = EquipmentBase.Fetch(gridSEquipment.Rows[index].Cells[0].Text);rnrn这句话报错 :rnrnIndex was out of range. Must be non-negative and less than the size of the collection.rnParameter name: index
急:谁能帮我看看这个问题???
Byte bmp[4];rn FileSeek(FileHandle,34,0);rn FileRead(FileHandle,bmp,4);rn DWORD count=*(DWORD*) bmp;rn Label1->Caption=IntToStr(count);rnrn 以上代码是从一个bmp文件中读取数据过程,但是出现了问题:rn当我读取其中的水平屏幕分辨率,垂直屏幕分辨率,图中使用的颜色数及重要颜色数时,得到的却都是 0(文件开始至位图数据的字节数均读取正确);rn 那位大哥能告诉一下什么地方出了问题?多谢!rnrnrn///////////////////////////////////rn1. BMP文件组成 rnBMP文件由文件头、位图信息头、颜色信息和图形数据四部分组成。 rn2. BMP文件头 rnBMP文件头数据结构含有BMP文件的类型、文件大小和位图起始位置等信息。 rnrn其结构定义如下: rnrntypedef struct tagBITMAPFILEHEADERrnrnWORDbfType; // 位图文件的类型,必须为BMrnDWORD bfSize; // 位图文件的大小,以字节为单位rnWORDbfReserved1; // 位图文件保留字,必须为0rnWORDbfReserved2; // 位图文件保留字,必须为0rnDWORD bfOffBits; // 位图数据的起始位置,以相对于位图rn// 文件头的偏移量表示,以字节为单位rn BITMAPFILEHEADER;rnrn3. 位图信息头 rnrnBMP位图信息头数据用于说明位图的尺寸等信息。rntypedef struct tagBITMAPINFOHEADERrnDWORD biSize; // 本结构所占用字节数rnLONGbiWidth; // 位图的宽度,以像素为单位rnLONGbiHeight; // 位图的高度,以像素为单位rnWORD biPlanes; // 目标设备的级别,必须为1rnWORD biBitCount// 每个像素所需的位数,必须是1(双色),rn// 4(16色),8(256色)或24(真彩色)之一rnDWORD biCompression; // 位图压缩类型,必须是 0(不压缩),rn// 1(BI_RLE8压缩类型)或2(BI_RLE4压缩类型)之一rnDWORD biSizeImage; // 位图的大小,以字节为单位rnLONGbiXPelsPerMeter; // 位图水平分辨率,每米像素数rnLONGbiYPelsPerMeter; // 位图垂直分辨率,每米像素数rnDWORD biClrUsed;// 位图实际使用的颜色表中的颜色数rnDWORD biClrImportant;// 位图显示过程中重要的颜色数rn BITMAPINFOHEADER;rnrn4. 颜色表 rn颜色表用于说明位图中的颜色,它有若干个表项,每一个表项是一个RGBQUAD类型的结构,定义一种颜色。RGBQUAD结构的定义如下: rnrntypedef struct tagRGBQUAD rnBYTErgbBlue;// 蓝色的亮度(值范围为0-255)rnBYTErgbGreen; // 绿色的亮度(值范围为0-255)rnBYTErgbRed; // 红色的亮度(值范围为0-255)rnBYTErgbReserved;// 保留,必须为0rn RGBQUAD;rn颜色表中RGBQUAD结构数据的个数有biBitCount来确定:rn当biBitCount=1,4,8时,分别有2,16,256个表项;rn当biBitCount=24时,没有颜色表项。rn位图信息头和颜色表组成位图信息,BITMAPINFO结构定义如下:rntypedef struct tagBITMAPINFO rnBITMAPINFOHEADER bmiHeader; // 位图信息头rnRGBQUAD bmiColors[1]; // 颜色表rn BITMAPINFO;rnrnrn5. 位图数据 rn位图数据记录了位图的每一个像素值,记录顺序是在扫描行内是从左到右,扫描行之间是从下到上。位图的一个像素值所占的字节数: rnrn当biBitCount=1时,8个像素占1个字节;rn当biBitCount=4时,2个像素占1个字节;rn当biBitCount=8时,1个像素占1个字节;rn当biBitCount=24时,1个像素占3个字节;rnWindows规定一个扫描行所占的字节数必须是rn4的倍数(即以long为单位),不足的以0填充,rn一个扫描行所占的字节数计算方法:rnDataSizePerLine= (biWidth* biBitCount+31)/8; rn// 一个扫描行所占的字节数rnDataSizePerLine= DataSizePerLine/4*4; // 字节数必须是4的倍数rn位图数据的大小(不压缩情况下):rnDataSize= DataSizePerLine* biHeight;rn
谁能帮我看看这个问题怎么解决?
有一个变量是一段php代码:rn$str="";rn或者rn$str="echo 'helloworld';";rnrn我怎么才能把这个变量的内容当作php代码来执行?也就是我怎么做,可以让网页最终显示rnhelloworldrn??
帮我看看这个问题。
TITLE dshape-- construct a shape from a shape table rndata_seg SEGMENT rncar DB 7 rn DB 52h,70h,0,0rn DB 0b1h,70h,0,1rn DB 0bdh,7,0,1rn DB 0dbh,7,0,1rn DB 4fh,7,1,0rn DB 4fh,7,0,-3rn DB 2,7,-2,1rndata_seg ENDSrn;----------------------------------------rncode_seg SEGMENTrn ASSUME CS:code_seg,DS:data_segrnmain PROC FARrn PUSH DSrn SUB AX,AXrn PUSH AXrn MOV AX,data_segrn MOV DS,AXrn CALL CLear_screenrn LEA DI,carrn MOV DH,10rn MOV DL,10rn CALL display_shapern RETrnmain ENDPrnclear_screen PROC NEARrn PUSH AXrn PUSH BXrn PUSH CXrn PUSH DXrn MOV AH,6rn MOV AL,0rn MOV CH,0rn MOV CL,0rn MOV DH,24rn MOV DL,79rn MOV BH,7rn INT 10hrn POP DXrn POP CXrn POP BXrn POP AXrn RETrnclear_screen ENDP rn;---------------------------------------------rndisplay_shape PROC NEARrn PUSH AXrn PUSH BXrn PUSH CXrn PUSH DXrn PUSH DIrn MOV AH,0fhrn INT 10hrn SUB CH,CHrn MOV CL,[DI]rn INC DIrnnext_char: rn ADD DH,[DI+2]rn ADD DL,[DI+3]rn MOV AH,2rn INT 10hrn MOV AL,[DI]rn MOV BL,[DI+1]rn PUSH CXrn MOV CX,1rn MOV AH,09rn INT 10hrn POP CXrn ADD DI,4rn LOOP next_charrn POP DIrn POP DXrn POP CXrn POP BXrn POP AXrn RET rndisplay_shape ENDPrn;-----------------------------------------------------rncode_seg ENDSrn END rnrn这是书上的原题,清华大学IBM-PC汇编语言,用字符画一个汽车的图形。rn能够通过编译。但是在运行的时候,显示遇到无效指令。不知道为什么?rn还有就是,我在编程的时候,调用dos里的09(显示字符串)总是能够通过编译,但在运行的时候就显示遇到无效指令,不知道是为什么?rn
帮我看看这个问题
大家好,我在面试的时候被问到这样一个问题,rnrnTest *t1 = new Test();rnTest *t2 = new Test;rnrn这个Test类里有一个用户自己定义的默认构造函数,那么上面两行代码都做了什么,有什么区别?rnrn我知道这个new Test;是会去调用默认的构造函数, new Test()是调用没有参数的构造函数, 这个问题的题干没有Test类的定义,所以我也不知道用户自己定义的默认构造函数是什么样子,不知道有没有参数,那么怎么解答这个问题,默认的构造函数是什么样子的,怎么定义?
帮我看看这个问题!
我用TWebBrowser来写浏览器,ComboBox来输入网址,菜单中把复制,粘贴,剪切这些动作的快捷键设为Ctrl+C,Ctrl+V,Ctrl+X(这些快捷键表示从网页复制或剪切等)。但是ComboBox也有这些快捷键,这是系统默认的。于是在程序运行时就会有冲突,导致不能在Combobox中复制出字符(用Ctrl+C),当然其它的快捷键也是这样。怎么办?我看到其他的浏览器,就不会有这种情况!而且他们的菜单中的设置都是Ctrl+c,Ctrl+V等。(不是初始化OLE的问题,我已初始化了)rn
帮我看看这个问题...
我在.net环境中用SQLConnection控件连接sql server 数据库时发生错误,说 :用户“sa”登陆失败,未与信任sql server 连接相关联! 我装sql server 时是选择windows身份验证的,有关系吗?
帮我看看这个问题:
在VB.net 中使用VB6中的控件:MSFlexGrid时遇到问题,代码如下:rn Dim cColor As Color = Color.FromArgb(0)rn cColor = Color.FromKnownColor(KnownColor.Black)rn afgTime.Row = 3rn afgTime.Col = 3rn afgTime.Focus()rn afgTime.CellBackColor = cColor --这句不起作用。rnrn环境为:win2000+sp5 rn studio .net
帮我看看这个问题,
Now there are two files named good.txt and bad.txt in the sub-directory test, how can you exchange the names of the two files?rn(交换两个文件的名字)
帮我看看这个问题?
stmt = connect.createStatement(); rn for(int i=0;i
帮我看看这个问题!
java.lang.NoClassDefFoundError: com/ibm/rmi/iiop/GIOPVersionExceptionrn at com.ibm.CORBA.iiop.ConnectionTable.createConnection(ConnectionTable.java:142)rn at com.ibm.CORBA.iiop.ConnectionTable.get(ConnectionTable.java:527)rn at com.ibm.CORBA.iiop.ConnectionTable.get(ConnectionTable.java:413)rn at com.ibm.CORBA.iiop.GIOPImpl.createRequest(GIOPImpl.java:152)rn at com.ibm.CORBA.iiop.GIOPImpl.createRequest(GIOPImpl.java:133)rn at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1080)rn at com.ibm.CORBA.iiop.InitialNamingClient.resolve(InitialNamingClient.java:372)rn at com.ibm.CORBA.iiop.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:551)rn at com.ibm.CORBA.iiop.ORB.resolve_initial_references_remote(ORB.java:1926)rn at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:592)rn at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:352)rn at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:227)rn at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)rn at com.ibm.ws.naming.util.WsnInitCtx.(WsnInitCtx.java:79)rn at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:135)rn at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:80)rn at com.ibm.ejs.ns.jndi.CNInitialContextFactory.getInitialContext(CNInitialContextFactory.java:68)rn at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)rn at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)rn at javax.naming.InitialContext.init(InitialContext.java:223)rn at javax.naming.InitialContext.(InitialContext.java:199)rnrn是不是没连上WEBSPHERE?
帮我看看这个问题!!!!!!!!
我建了一个class类:rnrnPrivate name As Stringrnrn Public Property nm() As Stringrn Getrn Return Me.namern End Getrn Set(ByVal value As String)rn Tryrn If Me.name = value <= 10 And Me.name = value >= 1 Thenrn Me.name = valuern End Ifrn Catch ex As Exceptionrn MessageBox.Show(ex.Message)rn End Tryrn End Setrn End Propertyrnrnrnrnrn我用下面的语句实现赋值和输出:rnrn Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Clickrn Dim nam As New Class1rn nam.nm = 4rn MessageBox.Show(nam.nm)rn End Subrnrnrn我怎么点击按钮的时候什么都不出而且提示我只能再1到10之间呀,怎么解决呀!!!
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池