linux下的bison报错,求高手指教!急 [问题点数:80分,结帖人superbinbin1]

Bbs1
本版专家分:0
结帖率 91.67%
Bbs1
本版专家分:0
Bbs12
本版专家分:380873
Blank
状元 2017年 总版技术专家分年内排行榜第一
Blank
榜眼 2014年 总版技术专家分年内排行榜第二
Blank
探花 2013年 总版技术专家分年内排行榜第三
Blank
进士 2018年总版新获得的技术专家分排名前十
2012年 总版技术专家分年内排行榜第七
Bbs2
本版专家分:309
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
高手指教.急.......
设有n个人围坐一圈并按顺时针方向从1到n编号, 从第s个人开始进行1到m的报数, 报数到第m个人, 此人出圈, 再从他的下一个人重新开始1到m的报数, 如此进行下去直到所有的人都出圈为止。rn现要求按出圈次序, 每10人一组, 给出这n个人的顺序表
高手指教【急】
[code=C#]rn protected void Button1_Click(object sender, EventArgs e)rn rn loading();rn ManualResetEvent[] mre = new ManualResetEvent[5];rn int Photocount = 0;rn tryrn rn SqlConnection sqlconn = new SqlConnection(ConfigurationManager.AppSettings[connectdate.getconnect()]);rn sqlconn.Open();rnrn beginTime = this.TextBox1.Text;rn endTime = this.TextBox2.Text;rn photokind = this.DropDownList1.SelectedValue;rn if (beginTime == "" || endTime == "")rn rn ClientScript.RegisterStartupScript(this.GetType(), "a", "alert('请先选择时间段,系统将根据时间段进行自动识别。');", true);rn rn elsern rn string sqls = "";rn if (photokind == "0")rn rn sqls = "select count(*) as totals from photoxxx where climeTime between '" + beginTime + "' and '" + endTime + "'";rn rn elsern rn sqls = "select count(*) as totals from photoxxx where climeTime between '" + beginTime + "' and '" + endTime + "' and photokind='" + photokind + "'";rn rnrn SqlDataAdapter myApters = new SqlDataAdapter(sqls, sqlconn);rn DataSet myDSs = new DataSet();rn myApters.Fill(myDSs);rn DataRowView rowViews = myDSs.Tables[0].DefaultView[0];rn Photocount = Convert.ToInt32(rowViews["totals"]);//34rn comNum = Convert.ToInt32(Math.Ceiling(Photocount*1.0 / 5));// 9rn //ThreadPool.SetMaxThreads(10,4);rn rn for (int i = 0; i < 5; i++)rn rn //Thread t = new Thread(new ParameterizedThreadStart(checkPhotos));rn //t.Start(i);rn rn WaitCallback waitcallback = new WaitCallback(checkPhotos);rn sumcount++;rn ThreadPool.QueueUserWorkItem(waitcallback, i);rn Thread.Sleep(1000);rn mre[i] = new ManualResetEvent(false);rn rnrn rn rnrn rn rn catch (Exception ex)rn rn throw ex;rn rn finallyrn rn while (!(sumnum >= Photocount))rn rn rn if(showWin(sumnum, Photocount))rn rn ClientScript.RegisterStartupScript(this.GetType(), "a", "remove_loading();", true);rn waitSucc = WaitHandle.WaitAll(mre, 1000, true); rn break;rn rn rn rn rn[/code]rnrn为什么感觉只走了一个线程啊? 我用两千条数据测试,只修改掉400条,3000条只修改600条。完全是五分之一的数据量。rn为什么咧?
高手指教,急
java awt 怎样给textAreat添加背景图片
急求,,,,高手指教???
我要求搜出数据库当前一个小时内的数据,怎么做??rnrn字段为TIME.格式是"2006-01-25 23:12:56"rnrn要求条件是: 当前时间减去一小时
bison的安装程序
Yacc是<em>linux下</em>的工具,使用的编译工具是cygwin(cygwin在windows下模拟一个linux环境)下的<em>bison</em>.
bison for linux
<em>bison</em> for linux,安装ucarp时要用到。
源码编译glusterfs需要的依赖包
在源码编译glusterfs的时候需要很多的依赖包,这里根据编译中遇到的整理了一部分,可能不全面 1.安装<em>bison</em>  [root@localhost ks]# yum -y install <em>bison</em> 安装包: <em>bison</em>-2.4.1-5.el6.x86_64.rpm 2.安装libxml  [root@localhost ks]# yum install libxml* ...
Bison的使用
一、Bison对输入的匹配  <em>bison</em>是基于你所给定的语法来生成一个可以识别这个语法中有效“语句”的语法分析器。例如下面的这个例子: statement:NAME ‘=’ expression expression:NUMBER ‘+’ NUMBER | NUMBER ‘?’ NUMBER ; 其中statement是递归的开始语句,N
我在运行bison的第一个实例程序(计算后缀表达式时),永远都是报syntax error?
-
linux下bison的deb包
<em>linux下</em><em>linux下</em><em>bison</em>的deb包,自己尝试在ubuntu12.04安装成功
急求高手指教,tomcat启动不起来,报错
信息: Starting service Catalinarn2012-1-6 15:31:53 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/5.5.27rn2012-1-6 15:31:53 org.apache.catalina.core.StandardHost startrn信息: XML validation disabledrn2012-01-06 15:31:57:057 [Digester] ERROR Begin event threw exceptionrnjava.lang.reflect.InvocationTargetExceptionrn 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:585)rn at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1781)rn at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1767)rn at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1656)rn at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1685)rn at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)rn at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)rn at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)rn at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:259)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.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)rn at org.apache.xerces.impl.XMLNSDocumentScannerImpl.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.XML11Configuration.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.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)rn at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:482)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)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:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rnCaused by: java.lang.UnsupportedClassVersionError: Bad version number in .class filern at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:620)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1876)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:889)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1353)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)rn at org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.java:320)rn at org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:191)rn ... 46 morern2012-01-06 15:31:57:057 [ActionServlet] ERROR Parsing error processing resource path rnjava.lang.reflect.InvocationTargetExceptionrn at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)rn at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)rn at org.apache.commons.digester.Digester.startElement(Digester.java:1276)rn at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)rn at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)rn at org.apache.xerces.impl.XMLNSDocumentScannerImpl.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.XML11Configuration.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.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)rn at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:482)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)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:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn2012-01-06 15:31:57:057 [[/whetc-monitor]] ERROR Servlet /whetc-monitor threw load() exceptionrnjavax.servlet.UnavailableException: Parsing error processing resource path rn at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)rn at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)rn at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:482)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)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:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn
急!!急!!求各位高手指教
如何用C#实现对图片的放大,缩小,平移功能??rn请各位<em>高手</em><em>指教</em>,谢谢大哥大姐们!!
程序报错,请高手指教(急!!)
各位<em>高手</em>大家好,我是搞ASP.NET的,我在本地开发了一个程序,在本机运行是正常的rn但是我今天部署到服务器上运行之后就<em>报错</em>了!rnrn错误如下:[code=HTML]rnrn rn A generic error occurred in GDI+.rn rn rnrn rnrn Server Error in '/' Application. rnrn A generic error occurred in GDI+. rnrn rnrn Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.rnrn rnrn Exception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. rnrn Source Error: rnrn rn rn rn rnrnAn unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.rnrn rn rn rnrn rnrn Stack Trace: rnrn rn rn rn rnrn[ExternalException (0x80004005): A generic error occurred in GDI+.]rn System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +378938rn System.Drawing.Image.Save(String filename, ImageFormat format) +69rn FanG.Chartlet.SaveChart(String path, Bitmap chart) +186rn FanG.Chartlet.DrawBarsChart() +5386rn FanG.Chartlet.Render(HtmlTextWriter writer) +77rn System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25rn System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121rn System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22rn System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130rn System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24rn System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59rn System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68rn System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25rn System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121rn System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37rn System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130rn System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24rn System.Web.UI.Page.Render(HtmlTextWriter writer) +26rn System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25rn System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121rn System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896rnrnrn rn rn rnrn rnrn rnrn Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42rnrn rnrn rnrnrn[/code]rnrnrnrn不知道怎么解决,请<em>高手</em><em>指教</em>
linux2.6.35 i2c驱动报错高手指教
最近在学习i2c驱动,我用的内核是2.6.35 飞思卡尔的平台,但是看了好多资料上的驱动在我的linux内核下都无法编译过去rn 出现这个错误,我要编的是at2408的驱动,在网上找的对应于2.6.32的驱动,不知道是不是版本问题,新手求指点rn drivers/char/at2408.c: In function 'at24c08_read':rndrivers/char/at2408.c:25: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_resultrndrivers/char/at2408.c:39: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_resultrndrivers/char/at2408.c: In function 'at24c08_write':rndrivers/char/at2408.c:51: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_resultrndrivers/char/at2408.c: At top level:rndrivers/char/at2408.c:109: error: variable 'addr_data' has initializer but incomplete typerndrivers/char/at2408.c:110: error: unknown field 'normal_i2c' specified in initializerrndrivers/char/at2408.c:110: warning: excess elements in struct initializerrndrivers/char/at2408.c:110: warning: (near initialization for 'addr_data')rndrivers/char/at2408.c:111: error: unknown field 'probe' specified in initializerrndrivers/char/at2408.c:111: warning: excess elements in struct initializerrndrivers/char/at2408.c:111: warning: (near initialization for 'addr_data')rndrivers/char/at2408.c:112: error: unknown field 'ignore' specified in initializerrndrivers/char/at2408.c:112: warning: excess elements in struct initializerrndrivers/char/at2408.c:112: warning: (near initialization for 'addr_data')rndrivers/char/at2408.c:121: warning: initialization from incompatible pointer typerndrivers/char/at2408.c:122: error: unknown field 'address_data' specified in initializerrndrivers/char/at2408.c:122: warning: initialization from incompatible pointer typernrn最主要的似乎是这个地址结构体的error: variable 'addr_data' has initializer but incomplete type出现错误rnrnrnrn
由于换行引起的bison程序报错ERROR: syntax error解决方法
最近在写flex &amp; <em>bison</em>程序,但是<em>bison</em>总是解析不正确,第一次运行yyparse()是正确的,但enter后再输入,总会<em>报错</em>ERROR: syntax error。改写yyerror函数为 yyerror(char *s) { extern int yylineno; // defined and maintained in lex extern char *yytext;...
Linux工具大全_bison
参考资料 GNU <em>bison</em>_维基百科http://zh.wikipedia.org/wiki/GNU_<em>bison</em> Bison - GNU parser generatorhttp://www.gnu.org/software/<em>bison</em>/
android源码编译报错:prebuilts/misc/linux-x86/bison/bison: 没有这个文件或目录
Android源码编译问题: /bin/bash: prebuilts/misc/linux-x86/<em>bison</em>/<em>bison</em>: 没有那个文件或目录No such file or directory build/core/binary.mk:609: recipe for target 'out/host/linux-x86/obj/EXECUTABLES/aidl_intermedia
/bin/bash: bison: command not found
/bin/bash: <em>bison</em>: command not found
/bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory
Android源码编译问题:1、/bin/bash: prebuilts/misc/linux-x86/<em>bison</em>/<em>bison</em>: No such file or directory 当出现该问题时,通过阅读,并不是没有<em>bison</em>这个运行库,而是没有找到该库; 执行下面命令即可。 sudo apt-get install g++-multilib gcc-multilib lib32ncurse
高手指教这个报错是怎么回事?
2011-4-7 0:36:23 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_16\bin;D:\apache-tomcat-6.0.16\binrn2011-4-7 0:36:23 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2011-4-7 0:36:23 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 586 msrn2011-4-7 0:36:23 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-4-7 0:36:23 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.16rn2011-4-7 0:36:24 org.apache.catalina.core.StandardContext addApplicationListenerrn信息: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored.rn2011-4-7 0:36:24 org.apache.catalina.core.StandardContext addApplicationListenerrn信息: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored.rn2011-4-7 0:36:24 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2011-4-7 0:36:24 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rnservlet3 init()rnservlet2 init()rn2011-4-7 0:36:25 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2011-4-7 0:36:25 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-4-7 0:36:25 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/47 config=nullrn2011-4-7 0:36:25 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1739 msrn2011-4-7 0:36:57 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet Servlet10 threw exceptionrnjava.lang.NullPointerExceptionrn at java.util.Properties$LineReader.readLine(Properties.java:418)rn at java.util.Properties.load0(Properties.java:337)rn at java.util.Properties.load(Properties.java:325)rn at cn.itcast.servlet.Servlet10.doGet(Servlet10.java:30)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rn2011-4-7 0:38:35 org.apache.catalina.startup.HostConfig checkResourcesrn信息: Reloading context [/day05]rnservlet3 init()rnservlet2 init()
VS2010 启动就报错,求高手指教!!!!!!!!!!
VS2010 开始是闪退,我卸载重装后,现在启动就<em>报错</em>,不知道什么原因?rn[img=https://img-bbs.csdn.net/upload/201403/14/1394776584_702581.jpg][/img]
maven 使用报错,求高手指教一二
plugin execution not covered by lifecyle configuration:org.apache.manven.pluginrnrn在工程里的maven配置文件中,每个pom.xml都有上面的错误,以前没有用过maven,请问这是什么原因?
Eclipse奇怪报错高手指教
我在ECLIPSE中集成EXPRESSOrn原来是可以的 但不知道怎么搞了一下 就不行了rn<em>报错</em>rn1。TOMCAT 不能运行rn2。ANT 的时候rnException occurred during launchrnReason:rnCounld not run the external toolrn"The variable named 'workspace_loc' for the file location does not exist"rn怎么有个变量不见了 ???rn3.DEBUG的时候rnException occurred during launchrnReason :rnCannot ;ocate JRE defintion:"jdk1.4".launch abortedrn
prebuilts/misc/linux-x86/bison/bison: 没有那个文件或目录
编译Android-5.1.1时出现<em>bison</em>找不到,但ls可以看的到。解决办法: ubuntu 64位系统运行32位程序的问题,需要安装运行32位程序的兼容库 sudo apt-get install lib32ncurses5 sudo apt-get install lib32stdc++6
Android 编译环境配置搭建(Ubuntu 12.04)及环境导致编译错误QA
配置android在Linux下的编译环境  安装编译所需的软件包:  $ sudo apt-get install git-core gnupg flex <em>bison</em> gperf build-essential zip curl libc6-dev libncurses5-dev x11proto-core-dev libx11-dev libreadline6-dev libgl1-mesa-glx libgl1-mesa-dev g++-multilib mingw32 tofrodos
Lex Yacc (一) 入门
github 项目地址 草木瓜 准备工作 文法分析用Flex(Lex):将数据分隔成一个个的标记token (标示符identifiers,关键字keywords,数字numbers, 中括号brackets, 大括号braces, 等等etc.) 语法分析用Bison(Yacc): 在分析标记的时候生成抽象语法树. Bison 将会做掉几乎所有的这些工作, 我们定义好我们的
Yacc介绍与使用
概念 •什么是YACC? yacc(Yet Another Compiler Compiler),是Unix/Linux上一个用来生成编译器的编译器(编译器代码生成器). 使用巴克斯范式(BNF)定义语法,能处理上下文无关文法(context-free)。出现在每个产生式左边(left-hand side:lhs)的符号是非终端符号,出现在产生式右边(right-hand side:
Lex Yacc (二) 语法树
语法树的应用 草木瓜 (四) 源码见百度云盘 详细讲解:草木鱼(四) input input i=0; while(i<=10){ print(i); i=i+1; } print(i+i);node.h node.h /* 定义树结点的权举类型 */ typedef enum { TYPE_CONTENT, TYPE_INDEX, TYPE_OP }
extjs报错,求指教
[code=Java]rnrnrn rn 数据列表rn
MySQL报错,求指教
create table e_employee(rneid int(8) auto_increment primary key,rnename varchar(128) not null,rneage int(6),rneno int(16) not null,rnteleno int(128) not null,rndesc varchar(128),rnsalary double(64,3) not null,rndepartno int(8),rnforeign key(departno) references d_department(dID)rn);rnrn以上是我的建表语句,<em>报错</em>信息如下:rnYou have an error in you SQL syntax;check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc varchar(128),salary double(64,3) not null, departno int(8),foreign key(de' at line 7
php 报错指教
<em>报错</em>内容:rnrnNotice: Undefined index: value in D:\WWW\adduser.php on line 3rnrnNotice: Trying to get property of non-object in D:\WWW\adduser.php on line 7rnrnNotice: Trying to get property of non-object in D:\WWW\adduser.php on line 9rnnornrnrnrnrnphp代码:rnid;rn $inputfile = $obj->img;rn $outputfile = "./qiubai/Userimg/".$obj->imgname . ".png";rn $file = fopen( $outputfile, "w" ); rn $fwflag = fwrite( $file, base64_decode( $inputfile ) ); rn fclose($file); rn if ($fwflag > 0) rn //把这条数据添加到图片数据库中去rn $link = mysql_connect('localhost','root','root');rn mysql_select_db('aaa',$link);rn mysql_query('set names utf8');rn $sql="UPDATE `quser` SET `UHEAD`= `".$obj->imgname."` WHERE `quser`.`userid`=".$id;rn $res = mysql_query($sql);rn printf("ok");rn elsern printf("no");rn rnrnrn请问怎么解决??
急!急!急!高手指教
我想用VC写一个图形处理程序,取输入文字的空心边框,请问有什么好的建议吗?有哪位有TTF的相关资料,高分相送!
求VC++高手指教 在线急等
请问这样实现通过一个BUTTON打开指定文件并显示该文件的指定字段rn求代码!!!!rn谢谢 rn
Flex:解决 error: conflicting types for ‘yylval’
gcc error: conflicting types for ‘yylval’  extern YYSTYPE yylval 其中YYSTYPE在<em>bison</em> 中定义为union类型 //syntax.y ... %} %union{ int type_int; float type_float; double type_double; } ... %
编译原理-用Bison构造语法分析程序-小小计算器
问题描述: 编译原理实验要求构造语法分析程序,实现一个简单计算器的功能 实现功能: 1,基本运算 a) 加、减、乘、除 b) 乘方、开方 c) 位运算:与、或、非 d) 阶乘运算 e) 三角函数运算 f) 可自定义变量并参与运算 2,输出对应于输入的后缀表达式(输入的是中缀表达式) 3,打印语法分析器构造的语法树 代码: 1,myCal.h 一个简单
自己实现一个SQL解析引擎
SQL的解析引擎包括查询编译与查询优化和查询的运行,主要包括3个步骤: 查询分析: 制定逻辑查询计划(优化相关) 制定物理查询计划(优化相关) 查询分析: 将SQL语句表示成某种有用的语法树. 制定逻辑查询计划: 把语法树转换成一个关系代数表达式或者类似的结构,这个结构通常称作逻辑计划。 制定物理查询计划:把逻辑计划转换成物理查询计划,要求指定操作执行的顺序,每一步使用的算法,操作之间的传递方式等。
Ubuntu12.04(32bit)下安装bison和flex
Ubuntu下安装<em>bison</em>sudo apt-get install <em>bison</em>sudo dpkg -i lib<em>bison</em>-dev_2.5.dfsg-2.1_i386.debsudo dpkg -i <em>bison</em>_2.5.dfsg-2.1_i386.deb 今天安装<em>bison</em>,随手记一下,Ubuntu环境: kd@ubuntu:/home/samba$ cat /proc/version Linu...
解决办法:Could not find bison
https://www.gnu.org/software/<em>bison</em>/
急求解决方法!!!请高手指教!
Dim con As New OleDbConnectionrn con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\db1.mdb"rn con.Open()rn Dim com As OleDbCommand = New OleDbCommandrn com.CommandText = "SELECT Sum(金额) FROM a WHERE 日期 Between DateAdd("m",-10,getdate()) and getdate()"rn TextBox1.Text = com.ExecuteScalar().ToString()rn com.Dispose()rn con.Close()rn一开始会出现提示错误com.CommandText = "SELECT Sum(金额) FROM a WHERE 日期 Between DateAdd(""m"",-10,getdate()) and getdate()" 没有结束语句rn我把这句改成com.CommandText = "SELECT Sum(金额) FROM a WHERE 日期 Between DateAdd(""m"",-10,getdate()) and getdate()" rn可以运行但是点击计算按钮就会出现异常:ExecuteScalar: Connection 属性尚未初始化。rnrn请<em>高手</em><em>指教</em>~~rn
高手指教CICS_ExternalCall的问题,急急急!
程序部分代码如下rnmemcpy(_eci_parms.eci_transid, TransID, 4);rnmemcpy(_eci_parms.eci_program_name, ProgramName,7);rnmemcpy(_eci_parms.eci_userid, UserID, 7);rnmemcpy(_eci_parms.eci_password, PassWord, 8);rnmemcpy(_eci_parms.eci_system_name, SystemName, 6);rn rnrnmemcpy(tmp,pSendBuf,6) ;rntmp[6]=0;rnrntmplen=atoi(tmp);rntmplen+=6;rnmemcpy( buf8583, pSendBuf,tmplen);rnrn_eci_parms.eci_commarea = buf8583;rn_eci_parms.eci_commarea_length = 8000; rn_eci_parms.eci_version = ECI_VERSION_1A;rn_eci_parms.eci_call_type = ECI_SYNC;rn_eci_parms.eci_extend_mode = ECI_NO_EXTEND;rn_eci_parms.eci_luw_token = ECI_LUW_NEW;rn_eci_parms.eci_timeout = timeout; rnrnsRespCode = CICS_ExternalCall(&_eci_parms);rn为什么调用CICS_ExternalCall时,总是突然正常,突然又出错,出错是超时,接收不到数据,请教这是什么原因 谢谢
高手指教???急急急 --在线等待
我现在遇到这样的一个问题 数据库中有这样一张表,有课程号,课程名,学分3个字段,其中课程号是唯一的,但是不同的课程号可以有相同的课程名,相同的学分,比如 rn10021 社会学 3 和rn10022 社会学 1.5 这2条记录只是学分不同而已,或者rn10023 社会学()师范 3 和rn10023 社会学(非师范) 3 这2条记录只是课程名不一样,我用rnSELECT COUNT(*) AS Expr1rnFROM (SELECT DISTINCT 课程号rn FROM 教学计划表) DERIVEDTBL得知一共有3075门课程,现在想得到这样一张表,有3075条记录,也就是所有不同课程的课程名,学分统计表也包含这3个字段.望<em>高手</em><em>指教</em>rn说白了就是rnselect 课程号,课程名,学分 from 表名 只是要对课程号这单独一列加一个distinct 请个为<em>高手</em>帮忙 小第谢谢了
急~~~~~~~~求每行求和??????高手快点指教!!!!!!!!!!!!!!!!!!
A B C D Ern1 姓名 邓论 体育 大学英语 成绩rn2 张山 78 78 88rn3 刘七 74 75 73rnrn我要在成绩下求:如:张山 78*01+78*0.2 +88*0.15 的值,依此类推???????????rn刚用excel 不会,~~~~~~~~~~~~~~~~~~~~~
高手指教 ,急求答案 java--web开发的
我有一个bean 属性为id,name,password,money,datern rn>rn rnrn name >rn password input type=text name=password value=>rn money input type=text name=name value=>rn datern%>rnrnrnrn///////////////////////////////rn我的问题是 我的这些数据是循环出来的 我要想通过一个表单把改动的数据发送到另一个页面里应该如何来实现呢 请有经验的<em>高手</em><em>指教</em> ! 谢谢啦
Ubuntu Gstreamer 1.1.3 编译
参考 《gstreamer编译安装》 一 编译gstreamer 1 生成编译配置 cd  gstreamer sudo ./autogen.sh checking for <em>bison</em>... no configure: error: Could not find <em>bison</em> 依赖<em>bison</em> 但是没有安装<em>bison</em>。 解决办法: A 下载自己编译(下载了,但是我没有
交叉编译gstreamer for arm
1.下载glib,libxml2,gstreamer到目录/home/mars/Downloads/ 2.mkdir /home/mars/arm-linux/usr 3.解压缩glib:tar zxvf glib-2.22.0.tar.gz 4.cd glib-2.22.0 5.输入: CC=arm-linux-gcc ./configure --build=i686-linux --host=arm-linux --prefix=/usr glib_cv_stack_grows=no gl
Ubuntu子系统安装node过程中出现./configure: 4: exec: python: not found问题
-
gmp4.3.2 安装时 ./configure报错: error: could not find a working compiler
今天在虚拟机上想安装gcc4.9.3 但貌似有三个依赖,那就顺序装吧。 装到gmp的时候。怎么都configure不过去,各种查各种不行,但是我之前在别的机器装成功过。 刚开始一直以为是某个编译程序没有装,后来仔细对比了通过的和不通过的。发现问题所在了。 如下: 这个是错误的: checking build system type... pentiumm-unknown-linux
configure: error: no suitable bison found. Please install the 'bison' package.
今天想在linux上装DW8(批量给htm文本替换代码(多行))于是装了wine 但是期间遇到好多问题 刚开始提示flex版本不够新 装了新版本后到了运行./configure的时候又提示没<em>bison</em>
急求高手指教数值溢出问题!!!!!!!!
代码如下:rn#include rnint main()rnrn using namespace std;rn unsigned long max = (unsigned long) (-1);rn cout<
在线急求高手指教VC++问题
我的程序编译连接通过,程序运行的时候也可以,但是一旦关闭窗口,就会出错。是不是m_recordset没有删除,导致内存外泄?还是其他什么语法问题?球<em>高手</em><em>指教</em>啊………………rn代码如下:rn// UserDlg.cpp : implementation filern//rnrn#include "stdafx.h"rn#include "mystudentsys.h"rn#include "UserDlg.h"rn#include rnrn#ifdef _DEBUGrn#define new DEBUG_NEWrn#undef THIS_FILErnstatic char THIS_FILE[] = __FILE__;rn#endifrnrn/////////////////////////////////////////////////////////////////////////////rn// CUserDlg dialogrnrnrnCUserDlg::CUserDlg(CWnd* pParent /*=NULL*/)rn : CDialog(CUserDlg::IDD, pParent)rnrn //AFX_DATA_INIT(CUserDlg)rn m_bIsAdmin = FALSE;rn m_strPass = _T("");rn m_strRePass = _T("");rn m_strUser = _T("");rn //AFX_DATA_INITrnrnrnrnvoid CUserDlg::DoDataExchange(CDataExchange* pDX)rnrn CDialog::DoDataExchange(pDX);rn //AFX_DATA_MAP(CUserDlg)rn DDX_Control(pDX, IDOK, m_btnOk);rn DDX_Control(pDX, IDC_LIST_USER, m_ctrList);rn DDX_Control(pDX, IDC_EDIT_USER, m_ctrUser);rn DDX_Control(pDX, IDC_EDIT_PASS, m_ctrPass);rn DDX_Control(pDX, IDC_BUTTON_DELETE, m_btnDelete);rn DDX_Control(pDX, IDC_BUTTON_CANCEL, m_btnCancel);rn DDX_Control(pDX, IDC_BUTTON_add, m_btnAdd);rn DDX_Check(pDX, IDC_CHECK1, m_bIsAdmin);rn DDX_Text(pDX, IDC_EDIT_PASS, m_strPass);rn DDX_Text(pDX, IDC_EDIT_REPASS, m_strRePass);rn DDX_Text(pDX, IDC_EDIT_USER, m_strUser);rn //AFX_DATA_MAPrnrnrnrnBEGIN_MESSAGE_MAP(CUserDlg, CDialog)rn //AFX_MSG_MAP(CUserDlg)rn ON_BN_CLICKED(IDC_BUTTON_add, OnBUTTONadd)rn ON_BN_CLICKED(IDC_BUTTON_CANCEL, OnButtonCancel)rn ON_BN_CLICKED(IDC_BUTTON_DELETE, OnButtonDelete)rn ON_NOTIFY(NM_CLICK, IDC_LIST_USER, OnClickListUser)rn //AFX_MSG_MAPrnEND_MESSAGE_MAP()rnrn/////////////////////////////////////////////////////////////////////////////rn// CUserDlg message handlersrnrnBOOL CUserDlg::OnInitDialog() rnrn CDialog::OnInitDialog();rn rn // TODO: Add extra initialization herern m_ctrList.InsertColumn(0, "用户名");rn m_ctrList.SetExtendedStyle(LVS_EX_FULLROWSELECT);rn m_ctrList.SetColumnWidth(0, 120);rn //m_ctrList.SetRedraw(); rn rn RefreshData();rn return TRUE; // return TRUE unless you set the focus to a controlrn // EXCEPTION: OCX Property Pages should return FALSErnrnrnrnrnvoid CUserDlg::RefreshData()rnrn m_ctrList.SetFocus();rn m_ctrList.DeleteAllItems();rn m_ctrList.SetRedraw(FALSE);rn rn rn CString strSQL;rn UpdateData(TRUE);rn rn strSQL = "select * from tb_user";rn if(!m_recordset.Open(AFX_DB_USE_DEFAULT_TYPE,strSQL))rn rn MessageBox("打开数据库失败!","数据库错误",MB_OK);rn return ;rn rn rn int i = 0;rn while(!m_recordset.IsEOF())rn rn m_ctrList.InsertItem(i++, m_recordset.m_username);rn m_recordset.MoveNext();rn rn m_recordset.Close();rn m_ctrList.SetRedraw(TRUE);rnrnrnvoid CUserDlg::OnBUTTONadd() rnrn // TODO: Add your control notification handler code herern //清空用户资料rn m_strUser = "";rn m_strPass = "";rn m_strRePass = "";rn m_bIsAdmin = FALSE; rn //设置用户名编辑框为可用rn m_ctrUser.EnableWindow(TRUE);rn m_ctrUser.SetFocus();rn //更新数据到界面rn UpdateData(FALSE); rnrnrnvoid CUserDlg::OnButtonCancel() rnrn // TODO: Add your control notification handler code herern m_strUser = "";rn m_strPass = "";rn m_strRePass = "";rn m_bIsAdmin = FALSE;rn m_ctrUser.EnableWindow(FALSE);rn UpdateData(FALSE);rnrnrnvoid CUserDlg::OnButtonDelete() rnrn // TODO: Add your control notification handler code herern UpdateData(TRUE);rn if(m_strUser=="")rn rn MessageBox("请选择一个用户!");rn return;rn rn rn rn CString strSQL;rn strSQL.Format("select * from tb_user where username='%s'", m_strUser);rn if(!m_recordset.Open(AFX_DB_USE_DEFAULT_TYPE,strSQL))rn rn MessageBox("打开数据库失败!","数据库错误",MB_OK);rn return ;rn rn //删除该用户rn m_recordset.Delete();rn m_recordset.Close();rn rn //刷新用户列表rn RefreshData();rn rn m_strUser = "";rn m_strPass = "";rn m_strRePass = "";rn m_bIsAdmin = FALSE;rn UpdateData(FALSE);rnrnrnvoid CUserDlg::OnClickListUser(NMHDR* pNMHDR, LRESULT* pResult) rnrn // TODO: Add your control notification handler code herern CString strSQL;rn UpdateData(TRUE);rn int i = m_ctrList.GetSelectionMark();rn m_strUser = m_ctrList.GetItemText(i,0);rn strSQL.Format("select * from tb_user where username='%s'",m_strUser);rn if(!m_recordset.Open(AFX_DB_USE_DEFAULT_TYPE,strSQL))rn rn MessageBox("打开数据库失败!","数据库错误",MB_OK);rn return ;rn rn m_strPass = m_recordset.m_pwd;rn m_strRePass = m_strPass;rn m_bIsAdmin = m_recordset.m_isAdmin;rn rn m_recordset.Close(); rn UpdateData(FALSE);rnrn *pResult = 0;rnrnrnvoid CUserDlg::OnOK() rnrn // TODO: Add extra validation herern UpdateData();rn if(m_ctrUser.IsWindowEnabled())rn //增加新用户rn if(m_strUser == "")rn rn MessageBox("请填写用户名!");rn m_ctrUser.SetFocus();rn return;rn rn rn elsern //修改用户信息rn if(m_strUser == "")rn rn MessageBox("请选择一个用户!");rn return;rn rn rn rn if(m_strPass == "")rn rn MessageBox("密码不能为空,请输入密码!");rn m_ctrPass.SetFocus();rn return;rn rn if(m_strPass != m_strRePass)rn rn MessageBox("两次输入的密码不一致,请重新输入密码!");rn m_ctrPass.SetFocus();rn m_strPass = "";rn m_strRePass = "";rn UpdateData(FALSE);rn return;rn rn rn rn CString strSQL;rn strSQL.Format("select * from tb_user where username = '"+m_strUser+"' ");rn if(!m_recordset.Open(AFX_DB_USE_DEFAULT_TYPE,strSQL))rn rn MessageBox("打开数据库失败!","数据库错误",MB_OK);rn return ;rn rn if(m_ctrUser.IsWindowEnabled())rn //增加新用户rn //判断用户是否已经存在rn if(m_recordset.GetRecordCount() != 0)rn rn m_recordset.Close();rn MessageBox("该用户已经存在!");rn return;rn rn m_recordset.AddNew();rn m_recordset.m_username = m_strUser;rn m_recordset.m_pwd = m_strPass;rn m_recordset.m_isAdmin = m_bIsAdmin;rn m_recordset.Update();rn MessageBox("用户添加成功!请记住用户名和密码!");rn m_recordset.Close();rn rn rn elsern //修改用户信息rn rn if(m_recordset.GetRecordCount() == 0)rn //判断用户是否不存在rn m_recordset.Close();rn MessageBox("该用户不存在!请更新数据库");rn return;rn rn rn m_recordset.Edit();rn m_recordset.m_username = m_strUser;rn m_recordset.m_pwd = m_strPass;rn m_recordset.m_isAdmin = m_bIsAdmin;rn m_recordset.Update();rn MessageBox("用户修改成功!请记住用户名和密码!");rn m_recordset.Close();rn rn rn rn m_ctrUser.EnableWindow(FALSE);rnrn RefreshData();rnrn //CDialog::OnOK();rnrnrnrn
急。。。求各种高手,各种指教!!
别人的一套V B程序,我运行时报实时错误404 对象'show'的方法‘frmOaMain’失败,然后在‘frmOaMain’的日志文件中报的错误信息是“不能加载控件 tinyMap; 许可证未找到。”请各位<em>高手</em>指点迷津,小弟不胜感激!!!!
急求!DataView问题,请高手指教
DataRow[] arrRows = dtChild.Select("MOD_CHILD_ID='" + sdel + "'");rn arrRows[0]["flag"] = "delete"; //1.rn //选择一行。 标记位。rnrn DataView dv=dtChild.DefaultView; //2.rnrn dv.RowFilter = "flag in ('New','flag','Updata')";rnrn gvModify.DataSource = dv; //绑定到gvModify上面rn gvModify.DataBind();rnrn 当第二次执行时,dtchild变了,但dv还是第一次的结果,没有变化。 但最后的显示结果是正确的。对这个dv没有随 着dtchild而变的过程很费解。
触摸屏抖动问题,求高手指教,,急!!
我用的real6410开发板,现在换外接屏7英寸屏,在校准屏幕后,按下屏幕任一一点不放,光标图标抖动很厉害,怎么样解决这个问题请<em>高手</em>们赐教。谢谢!
linux bison 手册
20050620 GNU Bison 中文手册翻译完成 GNU Bison实际上是使用最广泛的Yacc-like分析器生成器,使用它可以生成解释器,编译器,协议实现等多种程序. 它不但与Yacc兼容还具有许多Yacc不具备的特性. 这个手册编写十分完整,带你领略Bison在使用中的各个细节(注:并不是实现细节). 如果发现错误,语句不通顺,意思不明,确请立即发邮件把您的建议或者您认为正确的翻
编译原理_计算器_flex、bison实现_(从零开始)
@[toc](编译原理_计算器_flex、<em>bison</em>实现_(从零开始)) **目标**:参考范例程序, 用 Flex 和 Bison 实现一个功能更为强大的计算器,包含以下运算: a) 加、减、乘、除运算 b) 乘方、开方运算 c) 位运算 – 与 &amp; 、或 |、非 ~... d) 阶乘运算 ! e)sin cos tan
YACC(BISON)使用指南
YACC(BISON)使用指南
语法分析——Bison介绍以及Flex、Bison联合编译
语法分析使用Bison,在前面的博文中提到一些如何在Windows下安装Bison,但是从语法分析开始,我还是在Linux下写实验的,安装了ubuntu,因此需要在Linux下安装Bison,这个安装是比较简单的,只需要在命令行中敲入如下命令:sudo apt-get install <em>bison</em>,同样,安装Flax:sudo apt-get install flex         如,写好
bison 基于linux
<em>bison</em> 基于linux,介绍<em>bison</em> 的资料不多,但对于动态或静态库还是会用到<em>bison</em>
高分急求SQL,请高手指教.
SELECT SUM(OM_KOSAK_HNTRK_MEISAI.O_SYUTOK_GAK) AS SUM_SYUTOK_GAKrn FROM OM_KOSAK_HNTRK_DC,rn OM_KOSAK_HNTRK_MEISAI,rn(SELECT O_KAISOU_KBN FROM OZ_SZK ,OM_KOSAK_HNTRK_DCrn WHERE OZ_SZK.O_KAIKEI_NENDO=OM_KOSAK_HNTRK_DC.O_KAMOKU_NENDO rn AND OM_KOSAK_HNTRK_DC.O_SZK_COD=OZ_SZK.O_SHOZOKU_COD rn ORDER BY OZ_SZK.O_KOSHIN_DATETIME DESCrn fetch first 1 ROWS only ) as tblrn WHERE OM_KOSAK_HNTRK_DC.O_HOKOKU_KIJYUNBI>='20030401' rn AND OM_KOSAK_HNTRK_DC.O_HOKOKU_KIJYUNBI='20030401' rn AND OM_KOSAK_HNTRK_DC.O_HOKOKU_KIJYUNBI<>'03'rn 这个SQL 一加上 fetch first 1 ROWS only 就出错,不加就正确.怎么办.OZ_SZK表有三个主键,所以不加rn可能有多条数据.
tomcat6.0报错,急求高手解答
tomcat6.0<em>报错</em>,急求<em>高手</em>解答,详细见下:rnrnrnrn信息: Setting cluster mcast soTimeout to 500rn2010-11-12 23:20:52 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembersrn信息: Sleeping for 1000 milliseconds to establish cluster membership, start level:4rn2010-11-12 23:20:53 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembersrn信息: Done sleeping, membership established, start level:4rn2010-11-12 23:20:53 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembersrn信息: Sleeping for 1000 milliseconds to establish cluster membership, start level:8rn2010-11-12 23:20:53 org.apache.catalina.tribes.membership.McastServiceImpl$ReceiverThread runrn警告: Error receiving mcast package. Sleeping 500msrnjava.lang.IllegalArgumentException: Invalid package, should start with:84, 82, 73, 66, 69, 83, 45, 66rn at org.apache.catalina.tribes.membership.MemberImpl.getMember(MemberImpl.java:322)rn at org.apache.catalina.tribes.membership.MemberImpl.getMember(MemberImpl.java:298)rn at org.apache.catalina.tribes.membership.MemberImpl.getMember(MemberImpl.java:403)rn at org.apache.catalina.tribes.membership.McastServiceImpl.receive(McastServiceImpl.java:319)rn at org.apache.catalina.tribes.membership.McastServiceImpl$ReceiverThread.run(McastServiceImpl.java:413)rn2010-11-12 23:20:54 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembersrn信息: Done sleeping, membership established, start level:8rn2010-11-12 23:20:55 org.apache.catalina.core.StandardContext addApplicationListenerrn信息: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored.rn2010-11-12 23:20:55 org.apache.catalina.core.StandardContext addApplicationListenerrn信息: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored.rn2010-11-12 23:20:55 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2010-11-12 23:20:55 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2010-11-12 23:20:55 org.apache.catalina.ha.session.JvmRouteBinderValve startrn信息: JvmRouteBinderValve startedrn2010-11-12 23:20:55 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2010-11-12 23:20:55 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2010-11-12 23:20:55 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/35 config=nullrn2010-11-12 23:20:55 org.apache.catalina.startup.Catalina startrn信息: Server startup in 3127 msrn
急求高手解决,句柄报错
首先有一个控制类CPCI8622_SampleData,这个类是连接AD板卡的rn//赋初值rnCPCI8622_SampleData::CPCI8622_SampleData()rnrn..... rnm_hDevice = NULL;rn.........rnrn//获取句柄rnbool CPCI8622_SampleData::OpenCard()rnrn........ rnm_hDevice = PCI8622_CreateDevice(0); rn.........rnreturn true;rnrn//采集AD信号rnbool CPCI8622_SampleData::ReadData()rnrn if(!PCI8622_ReadDeviceProAD_Npt(m_hDevice, gl_ADBuffer[gl_nReadIndex],iReadSizeWords, &gl_ReadSizeWords))rn rn AfxMessageBox("Read Data Error.....");rn return false;rn rn .....rn return true;rnrnrn//主类CWMeasureApp打开板卡rnBOOL CWMeasureApp::InitInstance()rnrn...............rn //在头文件中定义了一个对象 CPCI8622_SampleData m_pPCI8622rn if(!m_pPCI8622.OpenCard())rn rn AfxMessageBox("AD采集卡PCI8622打开失败,请关闭计算机检查采集卡");rn return FALSE;rn rn //通过监控获取的句柄为m_hDevice = 0x000005drn..........rnreturn true;rnrnrnrn又有一个类CDlgInOutSignal要调用AD板卡的采集函数,好实时显示采集电压值rnrnvoid CDlgInOutSignal::OnTimer(UINT nIDEvent) rnrn..............rn//我的方法是重新建一个对象 rnCPCI8622_SampleData m_PCI8622rnm_PCI8622.ReadData();rnrn...................rnrnrnrn问题出现了,系统<em>报错</em>"Read Data Error....." 经过监控 主类调用打开板卡函数后返回的句柄m_hDevice = 0x000005d是正确的,可是监控过程中发现当类CDlgInOutSignal建一个对象时 CPCI8622_SampleData类又一次运行CPCI8622_SampleData::CPCI8622_SampleData() 将句柄初始化所以调用,再调用PCI8622_ReadDeviceProAD_Npt(m_hDevice, gl_ADBuffer[gl_nReadIndex],iReadSizeWords, &gl_ReadSizeWords))时句柄错误,请问<em>高手</em>们这个问题如何解决?rn
急求spring高手。启动时报错
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenernorg.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/classes/applicationContext.xml]; nested exception is java.net.UnknownHostException: springnCaused by: java.net.UnknownHostException: springn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)n at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)n at java.net.Socket.connect(Socket.java:529)n at java.net.Socket.connect(Socket.java:478)n at sun.net.NetworkClient.doConnect(NetworkClient.java:163)n at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)n at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)n at sun.net.www.http.HttpClient.(HttpClient.java:233)n at sun.net.www.http.HttpClient.New(HttpClient.java:306)n at sun.net.www.http.HttpClient.New(HttpClient.java:323)n at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)n at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)n at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)n at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)n at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677)n at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1315)n at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1282)n at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283)n at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1194)n at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1090)n at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1003)n at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)n at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)n at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)n at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)n at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)n at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)n at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)n at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)n at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)n at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)n at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)n at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)n at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)n at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)n at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)n at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)n at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:292)n at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)n at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)n at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)n at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)n at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)n at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)n at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)n at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)n at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)n at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)n at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)n at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)n at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)n at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)n at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)n at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)n at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)n at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)n at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)n at org.apache.catalina.core.StandardService.start(StandardService.java:516)n at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)n at org.apache.catalina.startup.Catalina.start(Catalina.java:566)n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)n at java.lang.reflect.Method.invoke(Method.java:597)n at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)n at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)n2015-5-12 15:39:02 org.apache.catalina.core.StandardContext startn严重: Error listenerStart
delete的一个报错高手指教
class Brnrnpublic:rn B(int i = 0) : nVal(i)rn void diplaySel(B* pB)rn rn coutsetVal(2);rn (pB + 2)->setVal(3);rn pB->diplaySel(++pB);//1rn delete []pB;rnrn当把1处注释掉或改为pB->diplaySel(pB)均不会<em>报错</em>,请大侠解释一下!rn
Linux下常见的编译错误及解决方法
1、/bin/bash: <em>bison</em>: command not foundmake: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Error 127解决方法:sudo apt-get install <em>bison</em>2、make: *** [out/host/linux-x86/obj/E...
jmail 报错!!高手指教一下!
分析器错误信息: 找到的名为“jmail”的程序集清单定义与程序集引用不匹配。 rn
exlist.setCommandListener(this); 报错 (请高手指教)
java.lang.Error: Unresolved compilation problem: rn The method setCommandListener(CommandListener) in the type Displayable is not applicable for the arguments (heloow)rnrn at heloow.(+9)rn at java.lang.Class.runCustomCode(+0)rn at com.sun.midp.midlet.MIDletState.createMIDlet(+19)rn at com.sun.midp.midlet.Scheduler.schedule(+52)rn at com.sun.midp.main.Main.runLocalClass(+28)rn at com.sun.midp.main.Main.main(+116)rnExecution completed.rn700767 bytecodes executedrn6 thread switchesrn740 classes in the system (including system classes)rn3630 dynamic objects allocated (99144 bytes)rn2 garbage collections (85424 bytes collected)
引用报错-请高手指教
我下载的vb.net例子,打开后发现在资源管理器的引用里system.windows.winformsrn前有一个“!”,应该是找不到,无法运行,请问是为什么??rn ------------------ 拜谢
c++报错,求指教。感谢!
#include rn#include rnusing namespace std;rnrn//定义最有二叉树节点类型rntemplaternclass hufnodernrn public:rn T wei; //权值rn int prt; //指向父节点的指针域rn int left; //左孩子rn int right; //右孩子rn;rnrntemplaternclass hufmanrnrn private:rn int nn; //叶子节点数rn hufnode *BT; //最优二叉树顺序存储空间首地址rn public:rn hufman() BT=NULL, return; //最优二叉树初始化 rn void creatHufman(int, T[]); //生成最优二叉树rn void printHufman(); //输出最优二叉树存储空间rn;rnrntemplaternvoid hufman::creatHufman(int n, T w[])rnrn hufnode *p;rn int k,i,j,m;rn nn = n; //叶子节点数rn m = 2*n-1; //总节点数rn BT = new hufnode[m];rn p = BT;rn for (k=0; kprt = -1; //-1代表指针指向空rn (p+k)->left = -1;rn (p+k)->right = -1;rn rnrn for (k=0; kwei = w[k];rnrn for (k=n; kprt = k; //合并构造新的二叉树rn (p+j)->prt = k;rn (o+k)->left = i;rn (p+k)->right = j;rn (p+k)->wei = (p+i)->wei + (p+j)->wei;rn rn return;rnrnrn//在前k-1个节点中选择权值最小的两个根节点i与jrntemplate rnstatic select(hufnode *p, int k, int *i, int *j)rnrn T w;rn int n;rn n=0;rn while ( (nprt != -1) ) //寻找指向父节点指针为空的起始节点rn n++; rn w = (p+n)->wei;rn *i = n;rn while (nweo < wei) && ((p+n)->prt =-1))rn *i = n; w = (p+n)->wei; rn n++;rn rn n = 0;rn while ((nprt != -1) && (n != (*i))rn n++; //寻找指向父节点指针为空且权值不是最小的起始节点rn w = (p+n)->wei;rn *j = n;rn while (nwei < w) && (n != (*i)) && ((p+n)->prt = -1) )rn[size=12px][color=#993300] → rn *j = n; rn w = (p+n)->wei; rn [/color] [/size] n++;rn rn if ((*i) > (*j)) //对两个节点按序号排序rn //使i(较小)为左孩子rn n = (*i);rn *i = (*j);rn *j = n;rn rn return 0;rnrnrn//输出最优二叉树存储空间状态rntemplaternvoid hufman::printHufman()rnrn hufnode *p;rn int k;rn p = BT;rn cout << "k" << setw(7) << "WEI" << setw(7)<< "PRT"rn << setw(7) << "LEFT" << setw(7) << " RIGHT" << endl;rn for (k=0; k < 2*nn-1; k++)rn cout << k << setw(7) << (p+k)->wei << setw(7) << (p+k)->prtrn << setw(7) << (p+k)->left << setw(7) << (p+k)-right << endl;rn return;rnrnrn rnrnerror C2958: the left parenthesis '(' found at 'f:\c++实验\最优二叉树\hufman.h(77)' was not matched correctlyrn执行 cl.exe 时出错.rnrn错误指在红色字体处rnrn
VECTOR头文件报错,求指教
我加rn#includern加了,编译<em>报错</em>rn不加,啥事儿没有rn百度了半天也没法rnrn【就是一个完整的工程,只加了#include在某个.h中,没有别的任何操作】rn【我没有使用任何跟容器有关的东西】rn<em>报错</em>如下rn[img=https://img-bbs.csdn.net/upload/201711/02/1509618668_500525.jpg][/img]
jsp报错,求指教
2012-5-16 16:05:09 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet jsp threw exceptionrnorg.apache.jasper.JasperException: Unable to compile class for JSP: rnrnAn error occurred at line: 6 in the generated java filernOnly a type can be imported. cn.edu.dlnu.bean.UserBean resolves to a packagernrnStacktrace:rn at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)rn at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)rn at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)rn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)rn at java.lang.Thread.run(Thread.java:619)rn2012-5-16 16:05:09 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet action threw exceptionrnorg.apache.jasper.JasperException: Unable to compile class for JSP: rnrnAn error occurred at line: 6 in the generated java filernOnly a type can be imported. cn.edu.dlnu.bean.UserBean resolves to a packagernrnStacktrace:rn at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)rn at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)rn at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)rn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)rn at java.lang.Thread.run(Thread.java:619)rn2012-5-16 16:06:16 org.apache.catalina.startup.HostConfig checkResourcesrn
程序报错,求大神指教
adodataset1.Fiter:='Number'+''''+edit1.Text+'''';n为什么<em>报错</em>说nunable to invoke code completion due to errors in source coden求大神解析一下为什么T_T
高手指教!!急!急!
怎样用ASP读取客户端网卡的序列号!!rn请详细说明并能附原文件最好
登录页面一直报错,求指教
using System;rnusing System.Data;rnusing System.Data.SqlClient;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnrnpublic partial class Login : System.Web.UI.Pagernrn protected void Page_Load(object sender, EventArgs e)rn rnrn rn protected void btnLogin_Click(object sender, EventArgs e)rn rn SqlConnection cn = Com.GetConnection();rn SqlCommand cmd = new SqlCommand("select password,salt,role from Login where loginID=@loginID", cn);rn SqlParameter id = new SqlParameter("@loginID",SqlDbType.VarChar);rn id.Value= tbUserID.Text;rn cmd.Parameters.Add(id);rn SqlDataReader dr = null;rnrn tryrn rn cn.Open();rn dr = cmd.ExecuteReader();rn if (dr.Read()) // 返回有记录,即存在该用户IDrn rn string pwd = tbPassword.Text + dr["salt"].ToString();rn pwd = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(pwd, "SHA1");rn if (pwd == dr["password"].ToString()) // 认证成功rn rn Session["LoginID"] = tbUserID.Text;rn string role = dr["role"].ToString();rn Session["LoginRole"] = role;rn Response.Redirect("Default.aspx");rn return;rn rn else // 密码不正确rn rn Com.MessageBox("密码不正确,请回到登录界面重新登录!", "登录验证", "../Login.aspx");rn return;rn rn rn else // 不存在该用户ID的记录rn rn Com.MessageBox("不存在该用户,请回到登录界面重新登录!", "登录验证", "../Login.aspx");rn return;rn rn rn catch (SqlException ex)rn rn Com.MessageBox("数据库操作出错!出错信息为:\n" + ex.Message + "请回到登录界面重新登录!", "登录验证", "../Login.aspx");rn rn finallyrn rn dr.Close();rn cn.Close();rn rn rnrn
图片缩放函数报错,求指教
网页显示function imageUpdateSize这一行有错,但我实在不知道错在哪里,求大牛<em>指教</em>。代码如下:rn/**rn *等比缩放函数(以保存的方式实现)rn *@param string $picname 被缩放的处理图片源rn *@param int $maxx 缩放后图片的最大宽度rn *@param int $maxy 缩放后图片的最大高度rn *@param string $pre 缩放后图片名的前缀名rn *@return string 返回后的图片名称(带路径),如a.jpg=>s_a.jpgrn */ rnfunction imageUpdateSize($picname,$maxx=100,$maxy=100,$pre="s_")rn $info = getimageSize($picname);//获取图片的基本信息rn rn $w = $info[0];//获取宽度rn $h = $info[1];//获取高度rn rn //获取图片的类型并为此创建对应图片资源rn switch($info[2])rn case 1://gifrn $im = imagecreatefromgif($picname);rn break;rn case 2://jpgrn $im = imagecreatefromjpeg($picname);rn break;rn case 3://pngrn $im = imagecreatefrompng($picname);rn default:rn die("图片类型错误!");rn rn //计算缩放比例rn if(($maxx/$w)>($maxy/$h))rn $b = $maxy/$h;rn elsern $b = $maxx/$w;rn rn //计算出缩放后的尺寸rn $nw = floor($w*$b);rn $nh = floor($h*$b);rn rn //创建一个新的图像源(目标图像)rn $nim = imagecreatetruecolor($nw,$nh);rn rn //执行等比缩放rn imagecopyresampled($nim,$sim,0,0,0,0,$nw,$nh,$w,$h);rn rn //输出图像(根据源图像的类型,输出为对应的类型)rn $picinfo = pathinfo($picname);//解析源图像的名字和路径信息rn $newpicname = $picinfo["dirname"]."/".$pre.$picinfo["basename"];rn switch($info[2])rn case 1:rn imagegif($nim,$newpicname);rn break;rn case 2:rn imagejpeg($nim,$newpicname);rn break;rn case 3:rn imagepng($nim,$newpicname);rn break;rn rn //释放图片资源rn imagedestroy($im);rn imagedestroy($nim);rn //返回结果rn return $newpicname;rnrn
addstring()函数报错。求指教
在调用CComboBox的addstring()函数的时候,编译没有问题。执行时发生错误。rn_AFXWIN_INLINE int CComboBox::AddString(LPCTSTR lpszString)rn ASSERT(::IsWindow(m_hWnd)); return (int)::SendMessage(m_hWnd, CB_ADDSTRING, 0, (LPARAM)lpszString); rn知道是因为mhwnd的值为NULL。似乎是没有初始化ccmobox对象。rn我的部分代码如下:rn[code=C/C++]rnBOOL CClientDlg::OnInitDialog()rnrn CDialog::OnInitDialog();rn //vs自动添加的代码rn dlg.m_editCtrl.Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER, CRect(10, 10, 100, 100), &dlg, 1);rn dlg.m_comboxCtrl.Create( WS_CHILD|WS_VISIBLE|WS_VSCROLL|CBS_DROPDOWNLIST,CRect(10,10,200,100), &dlg, 1);rn dlg.m_comboxCtrl.AddString( _T("test"));rn dlg.m_editCtrl.SetWindowTextW( _T("test"));rn[/code]rn注:rndlg是一个点击按钮就弹出的静态对话框。已经在主对话框中定义了。m_comboxCtrl和m_editCtrl是在dlg中的变量。对应两个控件。rn按钮的代码如下:rndlg.DoModal();
高手指教!急阿
我想把一个.DLL文件包含到我的projectrn该怎么办,请<em>指教</em>,谢谢
急请高手指教
用TWordApplication *x打开了一a.doc的文件。 rn怎么把x和TWordDocument *y,连接接起来。 rn并且把打开的a.doc里的“www"替换成“mmmm"。 rn最好给一些代码,谢谢
高手指教。(急!)
现在有两个表A和表B,A表中的字段:A.id和A.name.(A.id为主键)B表中的字段B.id和B.level,假设A表中的数据为:id=1 name="aa"rn id=2 name="bb"rn B表中的数据为:id=1 level=1rn id=1 level=2rn id=1 level=3rn id=2 level=1rn id=2 level=2rn我要把B表中的id=1 且level值为最大的记录取出来,即:id=1 name=aa level=3rn id=2 name=bb level=2rn请问怎么取?谢谢大家!rn
急!!恳请高手指教
服务器装的是SQLSERVER7,现在出现以下两个问题:rn 问题1、在查询器中执行从一个表向另一个表中插入数据的命令时,出现如下提示:rn Server: Msg 1105, Level 17, State 2, Line 1rn Could not allocate space for object 'cb_detail_olddata' in database 'cb' because the 'PRIMARY' filegroup is full.rnrn问题2:在企业管理器中执行统计记录数的命令时出现如下提示(该表中的记录数已达到14000000条以上):rnrn [Microsoft][ODBC SQL Server Driver]超时已过期rnrn请问<em>高手</em>大侠以上问题如何处理?rn 万分感谢!!rn
高手指教!急~~
如何使用VB4的16位版本建立一个OLE Automation服务器,然后在VB6中调用这个OLE Automation服务器。
高手指教!!!急!!
请问JFrame 怎样把最大化、最小化按纽隐藏,只留下关闭按纽??
急请高手指教!!!
我现在要做一个三层的树,但是只能够实现两层,奇怪啊rn
高手指教!急!
我是以三成结构作为数据上传的!我在客户端用dcomconnection和clientdataset连接服务器端的数据库!rn我的程序:rnwith dm.CDS_CW_01 dorn beginrn append;rn FieldByName(’cwdh’).AsString:=edit1.Text;rn FieldByName(’rq’).AsVariant:=strtodate(edit2.text);rn FieldByName(’jxcdh’).AsString:=edit3.text;rn FieldByName(’gh’).AsString:=edit4.text;rn FieldByName(’sh’).AsString:=edit5.text;rn Post;rn ApplyUpdates(0);rn showmessage(’已保存!’);rn end;rn为什么我的数据上传不了呢?谢谢<em>指教</em>!
高手指教,急
我想点击下载一个GIF或JPG格式的文件。怎么弄。。rn 就是说。如果一个连接是连接的图片的。我想点击这个连接就下载这个图片。rn 在油箱里有这个功能。看来很简单。但我不知道怎么弄。rn
急寻高手指教!!!!!!
本人对java还不是很熟悉!自己有个任务,就是在做jsp时,需要将数据库中的一个表中的数据导入到Excel中,我不知道怎么去实现,还请<em>高手</em>指点一下,或者有相近的源代码供参考一下!!rn本人不胜感激!!
高手指教。。。。急
在北京,哪个公司在指纹识别方面的技术、产品在同行中比较好,而且公司信誉也比较可靠啊??前辈们请<em>指教</em>一二啊。。。。。
急!请高手指教!!!
请给出输入x 的值(x ≥ 2),计算大于x的2的最小幂如何写,谢谢(给出算法思想也行)
急,请高手指教!!
一根交叉网线,用测线仪只能通1,2,3,6线,且不能与服务器联上。
急!请高手指教!!
我写的一个应用rnjsp页面没有错误,服务器也不提示有什么错误,但是在访问这个页面时,居然跳过这个页面不显示,直接进入业务逻辑处理。请问是怎么啦?
数据库高手指教,急!
在网络公司开了个空间,近期他们服务器升了一次级,导致.net网站都打不开,从本地企业管理器上注册连接也连接不上数据库。后来被告知数据库中没有任何表存在了。通过相关服务器或SQL SERVER日志可以看到什么原因导致数据库中表丢失的,谢谢!
急,请高手指教!!!!!!
ADODB.Stream 错误 '800a0bbc' 文件写入失败 (目录权限已设置为完全控制)如何解决!rn拜托了。
高手指教:急!!!!!
rn<>0 thenrn response.Cookies("logok")="yes"rn response.Cookies("username")=usernamern response.cookies("userpwd")=userpwdrn response.cookies("power")=powerrn response.redirect "adminindex.asp"rn else if instr(power,"O")<>0 thenrn response.Cookies("logok")="yes"rn response.Cookies("username")=usernamern response.cookies("userpwd")=userpwdrn response.cookies("power")=powerrn response.redirect "operatorindex.asp" rn end ifrn end ifrn rn %>rnrn此程序有什么问题啊,老是不能进入 adminindex.asp 和 operatorindex.asp界面啊,我用IIS调试的怎么不能看到错误的信息?是不是数据库连接有错呢,该怎么改?谢谢各位!rn
高手指教。急!!!!!!
我是个急性子女孩,现在外面出差,有急事要用到公司PC上的文件,rn可这个文件上的东西不能透给别人知道rn请问我是否有办法在北京进入深圳的PC呢rn谢谢了.100分相送!
系统克隆工具ghost11.img下载
U盘启动的必备工具 dos+ghost11 文件封装成了img文件 可以通过grub、syslinux 引导。 相关下载链接:[url=//download.csdn.net/download/mylop/2933115?utm_source=bbsseo]//download.csdn.net/download/mylop/2933115?utm_source=bbsseo[/url]
java中多态的使用实例下载
主要java中接口,继承以及抽象等基础内容的实例,实初学者能刚好的理会多态的具体含义 相关下载链接:[url=//download.csdn.net/download/yhhyl2114/3192907?utm_source=bbsseo]//download.csdn.net/download/yhhyl2114/3192907?utm_source=bbsseo[/url]
GMSK调制器的FPGA实现下载
按时打算的撒旦大事发生过热而我国会不会给发的那个 相关下载链接:[url=//download.csdn.net/download/chier_yuchen/3232921?utm_source=bbsseo]//download.csdn.net/download/chier_yuchen/3232921?utm_source=bbsseo[/url]
相关热词 c#串口测试应用程序 c# 匹配 正则表达式 c#防止窗体重绘 c#读写txt文件 c#挖地雷源代码 c#弹框选项 c# 移除 队列 c# 密码写入配置文件 c# 获取可用内存大小 c# 嵌入excel编辑
我们是很有底线的