启redis服务时报错,帮忙看下 5C

[root@redhat ~]# service redis start
Starting redis (via systemctl): Job for redis.service failed because the control process exited with error code. See "systemctl status redis.service" and "journalctl -xe" for details.
[FAILED]
[root@redhat ~]#
[root@redhat ~]#
[root@redhat ~]# service redis status
鈼[0m redis.service - SYSV: Redis is an open source, advanced key-value store.
Loaded: loaded (/etc/rc.d/init.d/redis)
Active: failed (Result: exit-code) since Wed 2019-04-03 14:25:04 CST; 3min 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 4374 ExecStart=/etc/rc.d/init.d/redis start (code=exited, status=255)
CGroup: /system.slice/redis.service
鈹斺攢3305 /usr/local/redis/bin/redis-server *:6379

Apr 03 14:25:04 redhat systemd[1]: Starting SYSV: Redis is an open source, advanced key-value store....
Apr 03 14:25:04 redhat redis[4374]: Starting Redis Server: [ OK ]
Apr 03 14:25:04 redhat redis[4374]: /etc/rc.d/init.d/redis: line 29: [: $: integer expression expected
Apr 03 14:25:04 redhat redis[4374]: /etc/rc.d/init.d/redis: line 30: return: $: numeric argument required
Apr 03 14:25:04 redhat redis[4374]: /etc/rc.d/init.d/redis: line 66: exit: $: numeric argument required
Apr 03 14:25:04 redhat systemd[1]: redis.service: control process exited, code=exited status=255
Apr 03 14:25:04 redhat systemd[1]: Failed to start SYSV: Redis is an open source, advanced key-value store..
Apr 03 14:25:04 redhat systemd[1]: Unit redis.service entered failed state.
Apr 03 14:25:04 redhat systemd[1]: redis.service failed.
/etc/init.d/redis: line 66: exit: $: numeric argument required

3个回答

直接上解决方案,辛苦一番,望给分
https://baijiahao.baidu.com/s?id=1552330515936646&wfr=spider&for=pc

目测是启动脚本有问题,你检查下报错的行数

你要打开启动脚本看下,看报错像是少参数,有的脚本要传参数的。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
报错 高手帮忙看下
什么问题导致这个错误rnrnSource not found for MysqlIO.checkErrorPacket(int) line: 2975rnrnrn
报错 帮忙看下
org.apache.jasper.JasperExceptionrn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn org.apache.struts.taglib.TagUtils.pageURL(TagUtils.java:1070)rn org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:449)rn org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:311)rn org.apache.struts.taglib.bean.IncludeTag.doStartTag(IncludeTag.java:189)rn org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:91)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrn
tomcat部署报错?!帮忙看下。
[code=Java]2011-4-1 11:26:29 org.apache.catalina.startup.HostConfig checkResourcesrn信息: Reloading context [/jquery]rn2011-4-1 11:26:29 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: The web application [/jquery] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2011-4-1 11:26:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: The web application [/jquery] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.rn2011-4-1 11:26:29 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: The web application [/jquery] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@21043b]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@19cbd8d]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.rn2011-4-1 11:26:29 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: The web application [/jquery] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@21043b]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@160b154]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.rn2011-4-1 11:26:29 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: The web application [/jquery] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@21043b]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@11a2c8f]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.rn2011-4-1 11:26:30 org.apache.catalina.loader.WebappClassLoader validateJarFilern信息: validateJarFile(E:\apache-tomcat-6.0.32\webapps\jquery\WEB-INF\lib\javaee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classrn2011-4-1 11:26:30 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-default.xml]rn2011-4-1 11:26:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-plugin.xml]rn2011-4-1 11:26:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts.xml][/code]rnrn帮忙看下什么问题?!连接数据库,查询插入,都没有问题,返回页面也没有问题,但是。。。。还是在部署项目的时候出现这么一大堆。。。上网查了下,说是tomcat版本问题,换了6.0一下的还是一样。但是应该不是怎么解决的!!!
Win10安装Redis服务报错
Win10安装Redis服务报错 HandleServiceCommands: system error caught. error code=1073, message = CreateService failed: unknown error 没有启用管理员权限打开cmd HandleServiceCommands: system error
redis服务在Windows环境下的安装和卸载、启停
1)先卸载服务:  redis-server –service-uninstall  2)然后再安装:  redis-server–service-install redis.windows.conf 启停: 启动服务:redis-server –service-start  停止服务:redis-server –service-stop...
9.安装Redis服务+自启(Windows)
多的不谈,现附上Windows版本Redis的下载路径:链接: https://pan.baidu.com/s/1_Vc9KsJC5Jg8wnTqHqlHzA 提取码:3nr9 启动服务redis-server.exe,然后启动redis客户端redis.cli.exe 127.0.0.1:6379> set name 'ay' OK 127.0.0.1:6379> get...
struts 路径报错 帮忙看下
HTTP Status 400 - Invalid path /oa/gwgl/fwgl/expFile was requestedrnrnjs代码rndocument.gwcxForm.action = "expFile.do?method=expDataToFile";rnrnxml配置rnrn rnrnrn这样配有什么问题吗
帮忙看下这个报错什么意思
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperExceptionrn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)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:810)rn commsoft.framework.filters.SetCharacterEncodingFilter.doFilter(DashoA10*..)rn org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)rnrnrnroot cause rnrnjava.lang.NegativeArraySizeExceptionrn commsoft.workcommon.sys.upload.SmartUpload.upload(DashoA10*..)rn org.apache.jsp.sys.lob.uploadfile_005fok_jsp._jspService(uploadfile_005fok_jsp.java:65)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:810)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)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:810)rn commsoft.framework.filters.SetCharacterEncodingFilter.doFilter(DashoA10*..)rn org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrn
帮忙看下语句还是报错
declare @m_t varchar(50) rndeclare @m_t1 varchar(50) rnset @m_t='book'rnset @m_t1='张三'rnupdate tj set 总金额=(select sum(价格) from '+@m_t+' where 价格>=50 and rn账号 in (select 编号 from buy_book where name='''+@m_t1+''')rnrn执行报错rn服务器: 消息 170,级别 15,状态 1,行 5rn第 5 行: '+@m_t+' 附近有语法错误。rn
HQL报错帮忙看下,感激不尽
org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: saleRepBkrBkr near line 1, column 172 [select saleRepBkrBkr from com.sj.bayer.bcm2.model.SaleRepBkrBkr as saleRepBkrBkr where 1=1 and saleRepBkrBkr.status=1 and saleRepBkrBkr.regional.regionalCode ='BYRG001' saleRepBkrBkr.dates between to_date('2009-10-13','yyyy-mm-dd') and to_date('2009-10-13','yyyy-mm-dd') ) order by saleRepBkrBkr.id desc]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected token: saleRepBkrBkr near line 1, column 172 [select saleRepBkrBkr from com.sj.bayer.bcm2.model.SaleRepBkrBkr as saleRepBkrBkr where 1=1 and saleRepBkrBkr.status=1 and saleRepBkrBkr.regional.regionalCode ='BYRG001' saleRepBkrBkr.dates between to_date('2009-10-13','yyyy-mm-dd') and to_date('2009-10-13','yyyy-mm-dd') ) order by saleRepBkrBkr.id desc]rnCaused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: saleRepBkrBkr near line 1, column 172 [select saleRepBkrBkr from com.sj.bayer.bcm2.model.SaleRepBkrBkr as saleRepBkrBkr where 1=1 and saleRepBkrBkr.status=1 and saleRepBkrBkr.regional.regionalCode ='BYRG001' saleRepBkrBkr.dates between to_date('2009-10-13','yyyy-mm-dd') and to_date('2009-10-13','yyyy-mm-dd') ) order by saleRepBkrBkr.id desc]rn
各位帮忙看下分页报错!!!!!
试图除以零。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.DivideByZeroException: 试图除以零。rnrn源错误: rnrnrn行 46: rn行 47: //求总页数rn行 48: if (this.Sum % this.PageSize == 0)rn行 49: rn行 50: pagesum = this.Sum / this.PageSize;rn rnrnrn大家现在有的分页组件是什么??
搜索报错,大家帮忙看下
Server Error in '/' Application.rn--------------------------------------------------------------------------------rnrnSystem.Web.Services.Protocols.SoapException: Server was unable to process request. ---> DAOException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not respondinrnrnrnDescription: 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. rnrnException Details: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> DAOException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.rnrndeclare @AllCount int rndeclare @pageCount int rndeclare @indextable table(id int identity(1,1),nid int) rndeclare @tmptable table(id int identity(1,1),nid int) rndeclare @PageLowerBound int rndeclare @PageUpperBound int rndeclare @Actual intrninsert into @indextable(nid) select id from view_UsersBuessiness where status <>99 rnselect @AllCount= count(id) from @indextable c rnrnset @pageCount=(@AllCount+5-1)/5 rnrnset @PageLowerBound=(1-1)*5 rnset @PageUpperBound=@PageLowerBound+5 rnset rowcount @PageUpperBound --确定返回的数量 rnselect @Actual=count(nid) from @indextable t where t.id<=@PageUpperbound and T.id>@PageLowerBound rnselect us.*, (select modelFileName from model where id=us.modelid) as ModelFileName,rn@Actual as Actual,@PageCount as PageCount, @AllCount as rnDataCountrnfrom view_UsersBuessiness us ,@indextable t rnwhere us.status <>99 and us.id=t.nid and t.id<=@PageUpperbound and T.id>@PageLowerBoundrn at App_Code.BusinessObj.UsersSelPageIndexBO.BusinessActionRtnDS(IDataObj dataObj)rn at Service.UsersSelPageIndex(UsersDO Users)rn --- End of inner exception stack trace ---rnrnSource Error: rnrnrnLine 15774: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UsersSelPageIndex", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]rnLine 15775: public System.Data.DataSet UsersSelPageIndex(UsersDO Users) rnLine 15776: object[] results = this.Invoke("UsersSelPageIndex", new object[] rnLine 15777: Users);rnLine 15778: return ((System.Data.DataSet)(results[0]));rn rn 在我本地是没错误的,传到服务器上了有时搜索报这个错
网站报错大家帮忙看下
Server Error in '/' Application.rn--------------------------------------------------------------------------------rnrnrn Connection unexpectedly terminated. rnDescription: 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. rnrnException Details: MySql.Data.MySqlClient.MySqlException: Connection unexpectedly terminated.rnrnSource Error: rnrnrnrnrnAn 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.rnrnrnStack Trace: rnrnrnrnrnrn[MySqlException (0x80004005): Connection unexpectedly terminated.]rn System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +1779474rn System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +826rn AreaObject.obj_stat.GetMbrGrpAll() in D:\Company\增值业务\主站相关\V4版本\ClubManage\AreaObject\obj_stat.cs:153rn Report_area_mbr.BindGrp() +96rn Report_area_mbr.Page_Load(Object sender, EventArgs e) +235rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34rn System.Web.UI.Control.OnLoad(EventArgs e) +99rn System.Web.UI.Control.LoadRecursive() +47rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061rn rn
Redis服务
Redis是一个高性能的kv对缓存和内存数据库(存的不像mysql那样的表) 一、安装redis 1、源码安装(2和3一致,以主机3为例) [root@server3 redis]# tar zxf redis-4.0.1.tar.gz [root@server3 redis]# cd redis-4.0.1 [root@server3 redis-4.0.1]# yum instal...
强制转换时出错,帮忙看下
[code=C#] this.seconds = Convert.ToInt32(Convert.ToDouble(this.txtHour.Text )) * 3600 + Convert.ToInt32(Convert.ToDouble(txtMiniute.Text)) * 60;[/code]
Struts2配置文时报错 郁闷了 帮忙看下
Struts2.xml文件 从struts2.zip解压缩的 案例报中粘贴过来 ,可以报错 rnrnThe errors below were detected when validating the file "struts2-core-2.0.14.jar" via the file "struts.xml". In most cases these errors can be detected by validating "struts2-core-2.0.14.jar" directly. However it is possible that errors will only occur when struts2-core-2.0.14.jar is validated in the context of struts.xml.rnrnrn不知道如何下手了, 怎么把这个jar包都搞出来了,请各位帮忙看看。
%%%%%%用hibernate部署时报错,大家帮忙看下
异常如下:rnorg.hibernate.HibernateException: Could not find datasourcern at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)rn at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)rn at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)rn at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:366)rn at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)rn at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1859)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1152)rn at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)rn at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)rn at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)rn at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:227)rn at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:537)rn at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)rn at com.sample.SimpleProcessTest.testSimpleProcess(SimpleProcessTest.java:27)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 junit.framework.TestCase.runTest(TestCase.java:154)rn at junit.framework.TestCase.runBare(TestCase.java:127)rn at junit.framework.TestResult$1.protect(TestResult.java:106)rn at junit.framework.TestResult.runProtected(TestResult.java:124)rn at junit.framework.TestResult.run(TestResult.java:109)rn at junit.framework.TestCase.run(TestCase.java:118)rn at junit.framework.TestSuite.runTest(TestSuite.java:208)rn at junit.framework.TestSuite.run(TestSuite.java:203)rn at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:457)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:670)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)rnCaused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initialrn at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)rn at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)rn at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)rn at javax.naming.InitialContext.lookup(InitialContext.java:351)rn at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)rn ... 31 morern最后问下,怎么给分,我有分吗?
大神帮忙看下,linux安装nginx,make时报错
cc1: warnings being treated as errorsrnsrc/core/nginx.c: 在函数‘ngx_show_version_info’中:rnsrc/core/nginx.c:421: 错误:将一个指针转换为大小不同的整数rnsrc/core/nginx.c:421: 错误:将一个整数转换为大小不同的指针rnmake[1]: *** [objs/src/core/nginx.o] 错误 1rnmake[1]: Leaving directory `/root/sgMeetings/softsource/nginx-1.10.2'rnmake: *** [build] 错误 2rnrnrn./configure命令:rn./configure --prefix=/usr/local/nginx --add-module=../nginx_mod_h264_streaming-2.2.7 --add-module=../nginx-rtmp-module-master --with-http_flv_module --with-http_mp4_module --with-http_stub_status_module --with-http_ssl_module --with-pcre=/root/sgMeetings/softsource/pcre-8.39 --with-zlib=../zlib-1.2.8 --with-debugrnrnrn
更新数据时报错,请大家帮忙看下,谢谢
在pl sql中,执行 select * from 表名 for update 语句对该表数据进行更新时,报错ora-01732。rn我用下面语句对当前用户进行锁表的查询,结果是没有表被锁。rnselectrnb.SID,rnb.SERIAL#,rnb.USERNAME,rnb.MACHINE,rnc.object_namernfrom v$lock a, v$session b , dba_objects crnwhere a.SID = b.SIDrnand a.ID1 = c.object_idrnand b.USERNAME = 'JSUSER'rn但是为什么该表的数据无法更新而报上述错误呢,求助,谢谢
做BBS时 连接数据库老是报错 大侠请进 帮忙看下
我用的是SQL2000个人版的 安装时是是WINDOWS身份验证rn下午调试一会可以连接SQL一会不可以连接,老是报错:rn protected void Open() //保护方法,打开连接rn rn if (conn.State.ToString() == "Closed")rn conn.Open();rn rn conn.Open(); //在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)rn前几个程序没这个情况的rnweb.configer里的连接代码:rn rn rn rnrnrn有什么解决的办法吗》
tomcat6.0 自动启报错
环境是jdk1.6的rnrn tomcat第一次起动 能正常起动,rn 当修改了 tomcat里的网站文件, tomcat自动重启,然后就报错, 网站的环境 struts2 +spring + hibernate rn 修改的时候 只把代码里的空行给删除了一下rnrn 请各位帮忙解决下rnrn下面是错误信息rnrn信息: Reloading this Context has startedrn2009-11-5 17:44:42 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.util.ClassUtils).rnlog4j:WARN Please initialize the log4j system properly.rn2009-11-5 17:44:45 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn2009-11-5 17:44:51 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)rn at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3099)rn at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:404)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: Caught exception while loading file struts-default.xml - [unknown location]rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:894)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:144)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:164)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 16 morernCaused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfigurationrn at org.apache.xerces.parsers.DOMParser.(Unknown Source)rn at org.apache.xerces.parsers.DOMParser.(Unknown Source)rn at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)rn at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)rn at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument(SAX2DOM.java:326)rn at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.(SAX2DOM.java:85)rn at com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187)rn at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)rn at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:137)rn at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)rn at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:190)rn at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:181)rn at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:167)rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:107)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:885)rn ... 20 morern2009-11-5 17:44:51 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2009-11-5 17:44:51 org.apache.catalina.core.StandardContext startrn严重: Context [/shop] startup failed due to previous errorsrnrnrn
大家帮忙看看下面的代码。报错
USE [JobOnLineDB]rnGOrnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnCREATE TABLE [dbo].[JobCategory](rn[CategoryID] [int] IDENTITY(1,1) NOT NULL,rn[CategoryTxt] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,rn[CategoryMode] [int] NULL CONSTRAINT [DF_JobCategory_CategoryMode] DEFAULT((0)),rn[ParentID][int] NULL,rnCONSTRAINT [PK_JobCategory_1] PRIMARY KEY CLUSTEREDrn(rn [CategoryID] ASCrn)rnWITH(PAD_INDEX=OFF,IGNORE_DUP_KEY=OFF)ON [PRIMARY]rn)rnGOrnServer: Msg 170, Level 15, State 1, Line 10rnLine 10: Incorrect syntax near '('.rn谢谢。是SQL2000
帮忙看看下面的sql报错
[code=sql]rnupdate happy_users set user_name = concat('kx',user_name) where user_name in rn(SELECT user_namernFROM happy_usersrnWHERE user_namernREGEXP '^([0-9]+)$'rnand rnlength (user_name ) = 11)rn[/code]
json校验格式报错,帮忙看下。
rn "deplist": [rn rn bumen: 95,rn bound_id: "餐饮部",rn pad_sbound: "甜品类",rn pad_tab: 1rn ,rn rn bumen: 96,rn bound_id: "餐饮部",rn pad_sbound: "饮料类",rn pad_tab: 2rn rn ]rnrnrnrn **err info:** rnrnbumen: 95, rn----------------------------------------------^rnExpecting 'STRING', ''rnrn
jboss报错,帮忙看下,谢谢了
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collectionrn at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:711)rn at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:419)rn at org.apache.jsp.platform.QueryCodeInputOverview_jsp._jspx_meth_html_005fform_005f0(QueryCodeInputOverview_jsp.java:126)rn at org.apache.jsp.platform.QueryCodeInputOverviewrn
SOAP发送端报错,高手帮忙看下
Unknown type of body entry: 'class org.dom4j.tree.DefaultElement'rn
大家帮忙看下这个程序怎么会报错?
#includern#includern#includernrnusing namespace std;rnrnint main()rnrn stack strstack;rn string str;rnrn cout<<"input some words"<>str) //error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'class std::basic_string,class std::allocator >' (or there is no acceptable conversionrn rn strstack.push(str);rn rnrn if (strstack.empty()==true)rn cout<<"you have not input any words"<
帮忙看下这个程序怎么会报错?
要求: 客户端输入Rate时,显示服务器端tester.Rate的数据rn结果: ................,....乱码。rn帮忙指导下。rn另,帮忙把程序理下,有点乱。rnrn服务端:rn#include rn#include rn#include rn#include "winsock2.h"rnrn#pragma comment (lib,"ws2_32.lib") rnrnstruct Data rnrn float Activ;rn float Rate;rn;rnstruct Data tester=0.8,0.8;rnrnrnDWORD WINAPI threadpro(LPVOID pParam) rnrn SOCKET hsock=(SOCKET)pParam; rn char buffer[1024];rn char sendBuffer[1024];rn if(hsock!=INVALID_SOCKET) rn cout << "normal" << endl;rn rn while(1)rn rn int num= recv(hsock,buffer,1024,0);rn if(num>=0) rn cout << "Receive dir commander "<< buffer << endl;rnrnrn if(!strcmp(buffer,"Rate"))rn rn memset(sendBuffer,0,1024);rn strcpy(sendBuffer,(char*)&tester.Rate); rn int ires=send(hsock,sendBuffer,sizeof(sendBuffer),0);rn cout << "The Rate result" << sendBuffer << endl;rn cout < iMaxConnect)rn int ires=send(m_Server[iConnect],WarnBuf,sizeof(WarnBuf),0);rn elsern rn HANDLE m_Handle;rn DWORD nThreadId = 0;rn m_Handle = (HANDLE)::CreateThread(NULL,0,threadpro,(LPVOID)m_Server[--iConnect],0,&nThreadId );rn rn rn rn WSACleanup();rnrnrn客户端;rn#include rn#include rn#include "winsock2.h" rn#include rn#pragma comment (lib,"ws2_32.lib") rnrnvoid main()rnrn rn WSADATA wsd; rn WSAStartup(MAKEWORD(2,2),&wsd);rn SOCKET m_SockClient;rn sockaddr_in clientaddr;rnrn clientaddr.sin_family = AF_INET; rn clientaddr.sin_port = htons(4600); rn clientaddr.sin_addr.S_un.S_addr = inet_addr("127.0.0.1");rn m_SockClient = socket ( AF_INET,SOCK_STREAM, 0 );rn int i=connect(m_SockClient,(sockaddr*)&clientaddr,sizeof(clientaddr));rn cout << "connect" << i << endl;rnrn char buffer[1024];rn char inBuf[1024];rn int num;rn num = recv(m_SockClient,buffer,1024,0);//阻塞rn if( num > 0 )rn rn cout << "Receive form server:" << (float)buffer << endl;//欢迎信息rn while(1)rn rn num=0;rn cin >> inBuf;rn if(!strcmp(inBuf,"exit"))rn rn send(m_SockClient,inBuf,sizeof(inBuf),0);rn return;rn rn send(m_SockClient,inBuf,sizeof(inBuf),0);rn num= recv(m_SockClient,buffer,1024,0);rn if(num>=0)rn cout << "Receive form server" << buffer << endl;rn rn rnrn
倒计时报错,希望,可以帮忙看下
public partial class Form1 : Formrn rn private int total;rn private int tenth;rn public Form1()rn rn InitializeComponent();rn rnrn private void button2_Click(object sender, EventArgs e)rn rn if (button2.Text == "暂停")rn rn timer1.Enabled = false;rn button2.Text = "继续";rn rn elsern rn timer1.Enabled = true;rn button2.Text = "暂停";rn rn rnrn private void Form1_Load(object sender, EventArgs e)rn rn label1.Text = "5:00:00";rn button2.Text = "暂停";rn button2.Enabled = false;rn progressBar1.Value = 300;rnrn rnrn private void button3_Click(object sender, EventArgs e)rn rn this.Close();rn rnrn private void button1_Click(object sender, EventArgs e)rn rn total = 300;rn tenth = 9;rn timer1.Enabled = true;rn button2.Enabled = true;rn button2.Text = "暂停";rn rnrn private void timer1_Tick(object sender, EventArgs e)rn int min=total/60;rn int sec = total % 60;rn string str = min.ToString() + sec.ToString() + tenth.ToString();rn label1.Text = str;rn tenth--;rn if (tenth == -1)rn rn tenth = 9;rn total--;rn if (total == -1)rn rn timer1.Enabled = false;rn button2.Enabled = false;rn label1.Text = "时间到";rnrn rn rn elsern rn progressBar1.Value = total;rn rn rn rnrnrnrnrnrn[color=#FF0000]报错为:rn“300”的值对于“Value”无效。“Value”应介于 'minimum' 和 'maximum' 之间。rn参数名: Value[/color]rnrnrn
大神帮忙看下,为什么会报错。
报的空指针异常rn[code=java]package com.wxws.sms;rnrnpublic class VIP rn int id;rn int credits;rn rnrn[/code]rnrnrnrnrnrn[code=java]package com.wxws.sms;rnrnimport java.util.Scanner;rnrnpublic class OprateVip rn VIP[] v = new VIP[10];rn public void addVip()rn Scanner console = new Scanner(System.in);rn rn System.out.print("输入会员编号:");rn for(int i = 0;i
帮忙看下,这个小程序为什么报错
#include rnrntypedef struct LNodernrn int data;rn LNode* next;rnLNode;rnrntypedef structrnrn LNode* head;rn int length;rnLinkList;rnrnBOOL InitList(LinkList* list);rnrnvoid main()rnrn LinkList* L;rn InitList(L);rnrnrnBOOL InitList(LinkList* list)rnrn list = (LinkList*) malloc (sizeof(LinkList));rn list->head->next = NULL;rn list->length = 0;rnrnrn他报如下的错误:rnrn--------------------Configuration: LinkList - Win32 Debug--------------------rnCompiling...rnLinkList.cpprnD:\Microsoft Visual Studio\MyProjects\LinkList\LinkList.cpp(15) : error C2146: syntax error : missing ';' before identifier 'InitList'rnD:\Microsoft Visual Studio\MyProjects\LinkList\LinkList.cpp(15) : error C2501: 'BOOL' : missing storage-class or type specifiersrnD:\Microsoft Visual Studio\MyProjects\LinkList\LinkList.cpp(15) : fatal error C1004: unexpected end of file foundrnError executing cl.exe.rnrnLinkList.exe - 3 error(s), 0 warning(s)
报错:java.sql.SQLException: 关闭的连接,大神帮忙看下
报错信息:rnrn[2014-10-17 13:19:50,655] [TF_OPEN_CEN1_BD1_$_TF_OPEN_INTERFACE_MSG_G_PROCESS] (DefaultTemplateImpl.java:173) ERROR com.ai.openframern.core.exe.tf.template.defaults.DefaultTemplateImpl - ITfTemplateImpl::finishIExecute errorrnjava.sql.SQLException: 关闭的连接rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)rn at oracle.sql.CLOB.getDBAccess(CLOB.java:1196)rn at oracle.sql.CLOB.getCharacterStream(CLOB.java:278)rn at com.asiainfo.zjoss.openframe.bo.BOIOpenInterfaceMsgBean.getOpenInterfaceMsgBean(BOIOpenInterfaceMsgBean.java:347)rn at com.asiainfo.zjoss.openframe.exe.IIOpenMsgExecTfJobImpl$TransfJobImpl._finishExecute(IIOpenMsgExecTfJobImpl.java:52)rn at com.ai.openframe.core.exe.tf.template.defaults.DefaultTemplateImpl$DefaultTransfJobImpl.finishExecute(DefaultTemplateImpl.java:3rn33)rn at com.ai.openframe.core.exe.tf.template.defaults.DefaultTemplateImpl$IITemplateExcutor._finishIExecute(DefaultTemplateImpl.java:16rn8)rn at com.ai.openframe.core.exe.tf.template.defaults.DefaultTemplateImpl._finishExecute(DefaultTemplateImpl.java:46)rn at com.ai.openframe.core.exe.tf.template.defaults.DefaultTemplateImpl.finishExecute(DefaultTemplateImpl.java:60)rn at com.ai.openframe.core.exe.tf.TfWorkframe$IITfScanJobQueue.run(TfWorkframe.java:354)rnrnrnrnrn方法:rnrnrn protected void _finishExecute(ITfScanJobIDefine aIScanJobItemSKEL, java.util.HashMap[] aISrcRecSKEL) throws IOpenException, Exception rn java.util.List aIDataLSKEL = new java.util.ArrayList();rn try rn String prodIns = DataFilter(aISrcRecSKEL);rn java.util.HashMap aMap = new java.util.HashMap();rn String strSql = sql + "("+prodIns.substring(0,prodIns.length()-1)+")";rn BOSfOrderBusiResRelateBean aBeans[] = OpenFactory.getIOpenInterfaceMsgSV().getSfOrderBusiResRelateBeans(strSql, aMap, 999999); rn java.util.HashMap aITaskCSKEL = new java.util.HashMap(); rn //java.util.Map aIDataLSKEL = new java.util.HashMap();rn for (int index = 0;index0)rn// for(IBOIOpenInterfaceMsgValue bean:beans)rn// if(bean.getMsgId()>aMsgBean.getMsgId())rn// aMsgBean.setState(IterfaceMessProcess.I_OPEN_INTERFACE_MSG_STATE_R);rn// aMsgBean.setCompleteDate(TimeUtils.IFuncIExcutor._getISysdate());rn// aIDataLSKEL.add((DataContainer)aMsgBean);rn// break;rn// rn// rn// if(aMsgBean.getState().equals(IterfaceMessProcess.I_OPEN_INTERFACE_MSG_STATE_R)) continue;rn// rn rn long orderId = IIOpenMsgExecTfJobImpl.getProcIns().Process(aISrcRecSKEL[index],aBeans);rn// String ProdTypeId = String.valueOf(aMsgBean.getProductTypeId());rn// //无线固话信控停开机直接置接口表状态为R rn// if(ProdTypeId.equals(ZJRmConst.WIRELESS_TEL))rn// aMsgBean.setOrderId(orderId);rn// aMsgBean.setState(IterfaceMessProcess.I_OPEN_INTERFACE_MSG_STATE_R);rn// aMsgBean.setCompleteDate(TimeUtils.IFuncIExcutor._getISysdate());rn// aIDataLSKEL.add((DataContainer)aMsgBean);rn// elsern aMsgBean.setOrderId(orderId);rn aMsgBean.setState(IterfaceMessProcess.I_OPEN_INTERFACE_MSG_STATE_S);rn aMsgBean.setCompleteDate(TimeUtils.IFuncIExcutor._getISysdate());rn aIDataLSKEL.add((DataContainer)aMsgBean);rn// rn catch(Exception e)rn aMsgBean.setState(IterfaceMessProcess.I_OPEN_INTERFACE_MSG_STATE_F);rn aMsgBean.setCompleteDate(TimeUtils.IFuncIExcutor._getISysdate());rn int end = e.toString().length();rn if(end > 800);end = 800;rn aMsgBean.setErrorMsg(StringUtil.substring(e.toString(), 0, end));rn aIDataLSKEL.add(aMsgBean);rn rn rn OpenFactory.getIOpenItfMsgSV().saveBatch(aIDataLSKEL);rn finallyrn if(aIDataLSKEL != null)aIDataLSKEL.clear();aIDataLSKEL = null;rn rn rn
游标报错 请大家帮忙看下
CREATE OR REPLACE PROCEDURE PROC_INTERFACE ASrnC_COUNT INTEGER;rn--建立游标rnCURSOR CURS_BANKCARD_IU ISrnSELECT *rnFROM TB_INF_BANKCARDrnWHERE C_OPERATETIME > (SELECT TM.C_TIME FROM HR_TIME TM);rnCURSOR CURS_BANKCARD_D ISrnSELECT *rnFROM TB_INF_BANKCARDBAKrnWHERE C_OID NOT IN (SELECT C_OID FROM TB_INF_BANKCARD);rn--4。执行同步rnBEGINrnFOR CUR IN CURS_BANKCARD_IU LOOPrnSELECT COUNT(*)rnINTO C_COUNTrnFROM TB_INF_BANKCARDBAKrnWHERE C_OID = CUR.C_OID;rnIF C_COUNT = 0 THENrn--新增信息rnINSERT INTO TB_INF_BANKCARDBAKrn(C_OID,rnC_EMPOID,rnC_BANKTYPE,rnC_BANKNUM,rnC_REMARK,rnC_OPERATETIME,rnC_STATUS,rnC_OPERATESORT)rnVALUESrn(CUR.C_OID,rnCUR.C_EMPOID,rnCUR.C_BANKTYPE,rnCUR.C_BANKNUM,rnCUR.C_TXT,rnCUR.C_OPERATETIME,rn'1',rn1);rnCOMMIT;rnELSErn--更新信息rnDELETE FROM TB_INF_BANKCARDBAK WHERE C_OID = CUR.C_OID;rnCOMMIT;rnINSERT INTO TB_INF_BANKCARDBAKrn(C_OID,rnC_EMPOID,rnC_BANKTYPE,rnC_BANKNUM,rnC_REMARK,rnC_OPERATETIME,rnC_STATUS,rnC_OPERATESORT)rnVALUESrn(CUR.C_OID,rnCUR.C_EMPOID,rnCUR.C_BANKTYPE,rnCUR.C_BANKNUM,rnCUR.C_TXT,rnCUR.C_OPERATETIME,rn'1',rn2);rnCOMMIT;rnEND IF;rnEND LOOP;rnend;rn--删除rn[color=#FFFF00]begin[/color]rnrnFOR CUR IN CURS_BANKCARD_D LOOPrnUPDATE TB_INF_BANKCARDBAKrnSET C_OPERATESORT = 3, C_STATUS = '0'rnWHERE C_OID = CUR.C_OID;rnCOMMIT;rnEND LOOP;rnend;rnrn--更新HR_TIME表rnUPDATE HR_TIME SET C_TIME = SYSDATE;rnCOMMIT;rn--UPDATE HR_TIME SET C_TIME = TO_DATE('1900-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS')rnrnEND PROC_INTERFACE;rnrnrn在begin那里报错 请大家分析一下 谢谢
关于结构体,帮忙看下为什么会报错.
[code=C/C++]rn#include rnusing namespace std;rn struct arcrnrn int a; //点 rn int b;rn int c; //权rn;rnrn struct vexarcrnrn arc d[N]; rn int vex[N];rn;rnrn int main()rn rn int n=5;rn arc x[n];vexarc y[5];rn return 0;rn rn [/code]rnrnD:\CPP\Cpp4.cpp(20) : error C2057: expected constant expressionrnD:\CPP\Cpp4.cpp(20) : error C2466: cannot allocate an array of constant size 0rnD:\CPP\Cpp4.cpp(20) : error C2133: 'x' : unknown sizernrn如何如何解决呢?
调用webservice报错 ,求帮忙看下
使用的是 jdk1.6.0_31 的版本, 之前还是能调用成功的,后来不知道怎么回事就报错了rnrn代码使用apache cxf自动生成的调用代码。rnrn[code=java]rnException in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/ws/spi/ProviderImplrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:615)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)rn at java.net.URLClassLoader.access$000(URLClassLoader.java:58)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:197)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:295)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn at javax.xml.ws.spi.FactoryFinder.safeLoadClass(FactoryFinder.java:150)rn at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:30)rn at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:90)rn at javax.xml.ws.spi.Provider.provider(Provider.java:83)rn at javax.xml.ws.Service.(Service.java:56)rn at com.szhtp.faq.siebel.webservice.ValidWxUser.(ValidWxUser.java:46)rn at com.szhtp.faq.siebel.webservice.ClientTest.main(ClientTest.java:10)rnCaused by: java.lang.ClassNotFoundException: com.sun.xml.ws.spi.ProviderImplrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn ... 21 morernrnrn[/code]
帮忙看下,为何报错,说没有实例
HtmlForm FrmCompose=new HtmlForm();rn FrmCompose=(HtmlForm)this.Page.FindControl("Compose");rnrn for (int i=0;i
写了一个类,可是总是报错,帮忙看下
conn.phprndbx = @mysql_connect ( $this->host, $this->username, $this->password );rn mysql_query ( "SET NAMES GBK" );rn if (! ($this->dbx)) rn echo (" 链接数据库失败");rn else rn return 1;rn rn rn rn public function query($sql) rn mysql_query ($sql, $this->dbx );rn rn rn public function setConn($_username, $_password, $_host, $_db) rn $this->username = $_username;rn $this->password = $_password;rn $this->host = $_host;rn $this->db = $_db;rn rn rn public static function getConn() rn if (self::$conn == null) rn self::$conn = new Connect ( );rn rn return self::$conn;rn rn rn public function selectDB() rn if (! @mysql_select_db ( $this->db, $this->dbx )) rn echo ("选择数据库失败");rn else rn return 1;rn rn rnrn?>rntest.phprnsetConn ( "root", "", "localhost","bbs");rn$sql="select * from test";rn$conn->query($sql);rn?>rnrnWarning: mysql_query(): supplied argument is not a valid MySQL-Link resource in D:\php\zend6.1\Test\conn.php on line 25
mysql 日志报错,麻烦帮忙看下
1、报错如下:rn mysqld process already exists,间隔一分钟报错一次rn2、mysql服务时正常的rn3、mysql版本是5.1.40rn麻烦帮忙看下
dataset 添加行报错,请帮忙看下
string sql0 = "select * from 产品表 where 1=2"; rnrn SqlConnection conn = new SqlConnection(connString);rn SqlDataAdapter da0 = new SqlDataAdapter(sql0, conn);rn ds0 = new DataSet();rn DataRow initRow = ds0.Tables[0].NewRow(); //在这就报错了,提示无法找到表 0rn initRow["代码"] = "hd120G";rn initRow["产品名称"] = "硬盘";rn ds0.Tables[0].Rows.Add(initRow);rn da0.Fill(ds0);rn dataGridView2.AutoGenerateColumns = false;rn dataGridView2.DataSource = ds0.Tables[0];rnrn代码如上,请帮我看下,谢谢
ssh架构报错,请大家帮忙看下
导入包xwork-2.0.4.jar报rnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rn2011-4-2 14:59:48 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load bean: type:com.opensymphony.xwork2.util.ObjectTypeDeterminer class:com.opensymphony.xwork2.util.GenericsObjectTypeDeterminer - bean - jar:file:/F:/WorkProgram/apache-tomcat-6.0.18/webapps/HelloWorld/WEB-INF/lib/struts2-core-2.0.11.jar!/struts-default.xml:36:148rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:208)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:131)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NoClassDefFoundError: ognl/OgnlExceptionrn at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)rn at java.lang.Class.getDeclaredConstructors(Class.java:1836)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:198)rn ... 33 morernCaused by: java.lang.ClassNotFoundException: ognl.OgnlExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 37 morern2011-4-2 14:59:48 org.apache.catalina.core.StandardContext startrnrn换成了xwork-2.1.2.jar时报的错:rnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rn2011-4-2 15:04:13 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - bean - jar:file:/F:/WorkProgram/apache-tomcat-6.0.18/webapps/HelloWorld/WEB-INF/lib/struts2-core-2.0.11.jar!/struts-default.xml:36:148rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Unable to load bean: type:com.opensymphony.xwork2.util.ObjectTypeDeterminer class:com.opensymphony.xwork2.util.GenericsObjectTypeDeterminer - bean - jar:file:/F:/WorkProgram/apache-tomcat-6.0.18/webapps/HelloWorld/WEB-INF/lib/struts2-core-2.0.11.jar!/struts-default.xml:36:148rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 30 morernCaused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.GenericsObjectTypeDeterminerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:146)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:193)rn ... 33 morernrn大家帮忙看看吧,真的很纠结啊rn
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数