新手求帮忙!!!!大神们帮忙看下这是什么错误,非常感谢

十月 31, 2018 10:46:47 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ssh-2' did not find a matching property.
十月 31, 2018 10:46:47 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.7.0_71\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/jdk1.7.0_71/bin/../jre/bin/client;D:/jdk1.7.0_71/bin/../jre/bin;D:/jdk1.7.0_71/bin/../jre/lib/i386;F:\apache-tomcat-6.0.16\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;D:\jdk1.7.0_71\bin;C:\Program Files\Intel\iCLS Client\;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;.;;D:\eclipse\eclipse;;.;;.;;.;;.
十月 31, 2018 10:46:47 下午 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8989
十月 31, 2018 10:46:47 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1320 ms
十月 31, 2018 10:46:47 下午 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
十月 31, 2018 10:46:47 下午 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.16
十月 31, 2018 10:46:48 下午 org.apache.catalina.core.StandardContext addApplicationListener
信息: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.
十月 31, 2018 10:46:48 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
十月 31, 2018 10:46:48 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization started
十月 31, 2018 10:46:48 下午 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
信息: Refreshing Root WebApplicationContext: startup date [Wed Oct 31 22:46:48 CST 2018]; root of context hierarchy
十月 31, 2018 10:46:48 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext.xml]
十月 31, 2018 10:46:49 下午 org.springframework.context.support.PropertySourcesPlaceholderConfigurer loadProperties
信息: Loading properties file from class path resource [db.properties]
十月 31, 2018 10:46:49 下午 com.mchange.v2.log.MLog
信息: MLog clients using java 1.4+ standard logging.
十月 31, 2018 10:46:49 下午 com.mchange.v2.c3p0.C3P0Registry banner
信息: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
十月 31, 2018 10:46:49 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.core.io.Resource[]' for property 'mappingLocations'; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [calsspath:com/atguigu/ssh/entities/*.hbm.xml]: ServletContext resource [/calsspath:com/atguigu/ssh/entities/] cannot be resolved to URL because it does not exist
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:681)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.core.io.Resource[]' for property 'mappingLocations'; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [calsspath:com/atguigu/ssh/entities/*.hbm.xml]: ServletContext resource [/calsspath:com/atguigu/ssh/entities/] cannot be resolved to URL because it does not exist
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:478)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:509)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1502)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1461)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
... 26 more
Caused by: java.lang.IllegalArgumentException: Could not resolve resource location pattern [calsspath:com/atguigu/ssh/entities/*.hbm.xml]: ServletContext resource [/calsspath:com/atguigu/ssh/entities/] cannot be resolved to URL because it does not exist
at org.springframework.core.io.support.ResourceArrayPropertyEditor.setAsText(ResourceArrayPropertyEditor.java:140)
at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:430)
at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:403)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:181)
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:458)
... 32 more

十月 31, 2018 10:46:49 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.core.io.Resource[]' for property 'mappingLocations'; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [calsspath:com/atguigu/ssh/entities/*.hbm.xml]: ServletContext resource [/calsspath:com/atguigu/ssh/entities/] cannot be resolved to URL because it does not exist
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:681)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.core.io.Resource[]' for property 'mappingLocations'; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [calsspath:com/atguigu/ssh/entities/*.hbm.xml]: ServletContext resource [/calsspath:com/atguigu/ssh/entities/] cannot be resolved to URL because it does not exist
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:478)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:509)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1502)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1461)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
... 26 more
Caused by: java.lang.IllegalArgumentException: Could not resolve resource location pattern [calsspath:com/atguigu/ssh/entities/*.hbm.xml]: ServletContext resource [/calsspath:com/atguigu/ssh/entities/] cannot be resolved to URL because it does not exist
at org.springframework.core.io.support.ResourceArrayPropertyEditor.setAsText(ResourceArrayPropertyEditor.java:140)
at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:430)
at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:403)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:181)
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:458)
... 32 more

十月 31, 2018 10:46:49 下午 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
十月 31, 2018 10:46:49 下午 org.apache.catalina.core.StandardContext start
严重: Context [/ssh-2] startup failed due to previous errors
十月 31, 2018 10:46:49 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
十月 31, 2018 10:46:50 下午 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8989
十月 31, 2018 10:46:50 下午 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
十月 31, 2018 10:46:50 下午 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/47 config=null
十月 31, 2018 10:46:50 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 2862 ms

6个回答

jdk环境变量是配置好的

[calsspath:com/atguigu/ssh/entities/*.hbm.xml] classpath写错了吧

Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.core.io.Resource[]' for property 'mappingLocations'; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [calsspath:com/atguigu/ssh/entities/*.hbm.xml]: ServletContext resource [/calsspath:com/atguigu/ssh/entities/] cannot be resolved to URL because it does not exist
找Caused by关键字

检查下配置hibernate映射文件是不是

 <property name="mappingLocations"> 
    <value>classpath:com/atguigu/ssh/entities/*.hbm.xml</value> 
</property> 

注意这边 mappingLocations 不要写成mappingResources , classpath 也不要拼错!

你直接放代码啊=.=

qq_40946921
Italink 没设置JDK的环境变量吗?
11 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
帮忙看下这是什么错误?
类型“CheckBox”的控件“ctl00_ContentPlaceHolder1_list1_0”必须放在具有 runat=server 的窗体标记内。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Web.HttpException: 类型“CheckBox”的控件“ctl00_ContentPlaceHolder1_list1_0”必须放在具有 runat=server 的窗体标记内。rnrn源错误: rnrn执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 rn
帮忙看下这是什么错误
tip类rnpublic class Tip rn private String title="我是新手,请大家指教";rn private String content="我刚开始学java,请大家指教";rn private String publishTime="2007-1-1 10:30:16";rn private int uid=1;rn rn public void getInfo()rn System.out.println("---帖子信息---");rn System.out.println("帖子标题:"+title);rn System.out.println("帖子内容:"+content);rn System.out.println("发表时间:"+publishTime);rn rnrnrn测试类rnpublic class Test rn /**rn * @param argsrn */rn public static void main(String[] args) rn // TODO Auto-generated method stubrn Tip tip=new Tip();rn tip.getInfo(); //错误行 rn rnrnrn错误提示:rnException in thread "main" java.lang.Error: Unresolved compilation problem: rn The method getInfo() is undefined for the type Tiprnrn at Test.main(Test.java:9)rnrn顺便说下这是我新装的myeclipse,不能用象"syso+alt/"这样的快捷键了,只能用快捷键打出单个单词,如pub+alt/得到public...rn跟这有关吗?rnrn
帮忙看下,这是什么错误???
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)rn[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
求帮忙看下这是什么错误
2017-07-24 09:41:14,034 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failedrn org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'districtBiz' defined in file [C:\Program Files\Java\apache-tomcat-7.0.78\webapps\Country\WEB-INF\classes\biz\impl\DistrictBizImpl.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txAdvice': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: @OneToOne or @ManyToOne on entity.Dmp.districtid references an unknown entity: java.lang.Integerrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txAdvice': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: @OneToOne or @ManyToOne on entity.Dmp.districtid references an unknown entity: java.lang.Integerrn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.getAdvice(AbstractBeanFactoryPointcutAdvisor.java:85)rn at org.springframework.aop.aspectj.AspectJProxyUtils.isAspectJAdvice(AspectJProxyUtils.java:67)rn at org.springframework.aop.aspectj.AspectJProxyUtils.makeAdvisorChainAspectJCapableIfNecessary(AspectJProxyUtils.java:49)rn at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.extendAdvisors(AspectJAwareAdvisorAutoProxyCreator.java:101)rn at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:88)rn at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn ... 24 morernCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: @OneToOne or @ManyToOne on entity.Dmp.districtid references an unknown entity: java.lang.Integerrn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)rn ... 44 morernCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: @OneToOne or @ManyToOne on entity.Dmp.districtid references an unknown entity: java.lang.Integerrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn
新手学习JSP 大神们帮忙看下!
我整理好了一个 操作数据库的类 代码如下, 单独测试数据库连接没有任何问题,但是把类引入到JSP页面后 执行会报 连接不上数据 rnrnimport java.sql.*;rnrnpublic class OperateOracle rn // orcl为oracle数据库中的数据库名,localhost表示连接本机的oracle数据库rn // 1521为连接的端口号rn private static String url = "jdbc:oracle:thin:@10.135.108.104:1521:ora11gp";rn // system为登陆oracle数据库的用户名rn private static String user = "ll";rn // manager为用户名system的密码rn private static String password = "512228";rn public static Connection conn; //创建用于连接数据库的Connection对象 rn public static PreparedStatement ps;rn public static ResultSet rs;rn public static Statement st;rn rn public static void main(String[] args) rn // TODO Auto-generated method stubrn getConnection();rn if(conn==null)rn System.out.print("NO");rn else rn System.out.print("yes");rn rnrn rn /* 获取数据库连接的函数*/ rn public static Connection getConnection() rn rn try rn Class.forName("oracle.jdbc.driver.OracleDriver");// 加载oracle数据驱动 rn rn conn = DriverManager.getConnection(url, user, password);// 创建数据连接 rn rn catch (Exception e) rn e.printStackTrace();rn //System.out.println("数据库连接失败" + e.getMessage()); rn rn return conn; //返回所建立的数据库连接 rn rnrn /* 插入数据记录,并输出插入的数据记录数*/ rn public static void insert(String sql) rn rn conn = getConnection(); // 首先要获取连接,即连接到数据库 rn rn try rn st = (Statement)conn.createStatement(); // 创建用于执行静态sql语句的Statement对象 rn rn int count = st.executeUpdate(sql); // 执行插入操作的sql语句,并返回插入数据的个数 rn rn System.out.println("向t1表中插入 " + count + " 条数据!!"); //输出插入操作的处理结果 rn rn conn.close(); //关闭数据库连接 rn rn catch (SQLException e) rn System.out.println("插入数据失败" + e.getMessage()); rn rn rn rnrn单独测试数据库连接没有任何问题,但是把类引入到JSP页面后 执行会报 连接不上数据 JSP 代码如下:rnrn<%@ page language="java" contentType="text/html; charset=UTF-8"rn pageEncoding="UTF-8"%>rn<%@page import="dao.OperateOracle"%>rnrnrnrn rn 提交处理rnrnrn<%rnString name = request.getParameter("xm");rnString age = request.getParameter("nl");rnString dianhua = request.getParameter("dh");rn//System.out.print(name);rn//System.out.print(age);rn//System.out.print(dianhua);rnrnrnString sq = "insert into t3(name,age,dianhua) values('"+name+"',"+age+",'"+dianhua+"');";rnOperateOracle.insert(sq);rn%>rnrnrn
这是什么错误?请你帮忙指出,非常感谢!
我不知道这段代码有什么错误,请你帮忙看看,一运行就有错误,代码如下:rnrn<%@ Page Language="VB" %>rnrn rnrnrn rnrnrn错误提示如下:rnrn 出现了运行时间错误。rn 是否要进行调试?rnrn 行:3rn 错误:缺少‘:’rnrn这是哪里出错了?我怎么也看不出来,请你帮忙看看好吗?rn rn
求大神们帮忙看下哪里问题。
use school_MSrngorncreate procedure Proclnsertrn(@hao varchar(20),@ke varchar(20),@tai varchar(20))rnasrnbeginrnselect sname,score,cnamernfrom course b join student c join student_course arnon b.cno=a.tcidrnon a.sno=c.snornbeginrnif @hao='B0451101'and @ke=30020108rnupdate student_coursernset @tai=-101rnwhere @hao='B0451101' and @ke=30020108rnprint '该学生已经在该门课程的成绩已经存在';rnelse  rn update student_coursernset @tai=10rnprint '该条记录可以添加'rnendrnendrngo
大神们帮忙看下啊!!!
我写了一段代码,循环等待接受用户输入,并根据输入的年月输出当月的月历,且按键盘的左右键时可以显示前一月后一月的月历。我对这个键盘控制真的不清楚啊,,请大神点拨下啊。rnrnrnrnrn#include rn#includern#includern#includernrn/*定义常量*/rnrn/*左移键*/rnrn#define LEFT 0x4b00rnrn/*右移键*/rnrn#define RIGHT 0x4d00rnrnrnrnint JgYr(int yr) rn rnif (yr%4==0&&yr%100!=0&&yr%100==0&&yr%400==0) rnreturn 1; rnelse rnreturn 0; rn rnrnint CalWkd(int yr,int mth) rn rnint ds=0,i,rst,wkd; rnint mthd[13]=0,31,28,31,30,31,30,31,31,30,31,30,31; rnif (JgYr(yr)) rnmthd[2]=29; rnfor (i=1;i12) rnreturn 0; rnif (JgYr(yr)) rnmthd[2]=29; rnmtd=mthd[mth]; rnwkd=CalWkd(yr,mth); rnshowcld(wkd,mtd); rnprintf("\n");rnreturn 0; rn rnrnrnrn rn
帮忙看下这是什么错误,谢谢~~~~~
org.apache.jasper.JasperException: /huang/graph.jsp(1,1) Unterminated <%@ page tagrn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:134)rn org.apache.jasper.compiler.Parser.parseDirective(Parser.java:511)rn org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)rn org.apache.jasper.compiler.Parser.parse(Parser.java:126)rn org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)rn org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrn
帮忙看下这是什么错误啊
ProviderIncompatibleExceptionrn提供程序未返回 ProviderManifestToken 字符串。rnrn [code=C#] public ActionResult Index()rn rn var Mov= from m in db.Movrn m.ReleaseDate> new DateTime(1984, 6, 1)rn select m;rn return View(movies.ToList());rn [/code]rn百度搜了下没看到这错误是啥rn能人看下是啥原因,谢了个栽的
大家帮忙看下这是什么错误!
[img=http://b30.photo.store.qq.com/http_imgload.cgi?/rurl4_b=f4dca6eddf3dff2197d9637e0757fba0bb40c772f216df4e4341d36e6188c22a4b049375da5138aef200487d3a615df36b1dc57c18baf6ee36595ff046d32e9a655a118dcf69a98b45f59835b2b377fa67bd7d6e&a=30&b=30][/img]rnC#写的程序 运行出来报错,请问这是什么问题?
请大家帮忙看下这是什么错误!
Server Error in '/' Application.rn--------------------------------------------------------------------------------rnrnTimeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. 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: System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.rnrnSource Error: 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. rnrnStack Trace: rnrnrn[InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.]rn System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +4863722rn System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117rn System.Data.SqlClient.SqlConnection.Open() +122rn SqlHelper.PrepareCommand(SqlCommand cmd, SqlConnection conn, SqlTransaction trans, CommandType cmdType, String cmdText, SqlParameter[] cmdParms) +38rn SqlHelper.ExecuteReader(String connectionString, CommandType cmdType, String cmdText, SqlParameter[] commandParameters) +141rn _Default.IBtn_Login_Click(Object sender, ImageClickEventArgs e) +237rn System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108rn System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118rn System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10rn System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13rn System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565rnrn rnrnrn--------------------------------------------------------------------------------rnVersion Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614
求助~帮忙看下这是MYSQL的什么错误?
Sphider installation script.rnrnError: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(14), elapsed float(2), results int, key query_key(query))' at line 3rnCreating tables failed. Consult the above error messages.rnrnrn我找了下。是不是这个SQL文件的问题?rnApache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.16rn[code=sql]rncreate table query_log (rn query varchar(255),rn time timestamp(14),rn elapsed float(2),rn results int);rnrnalter table links add column size float(2) after indexdate;rn[/code]
大家帮忙看下。这是什么错误啊。
错误类型:rnMicrosoft VBScript 运行时错误 (0x800A0030)rn加载 DLL 时出错: 'RegExp'rnrn这个代码出错。还是系统出错呢。rnrn代码我找不出问题啊
帮忙看下吧,这是什么错误
create procedure bulk_deno1(rni_deptno in numberrn)rnisrncursor emp_cur(icur_deptno number)rn isrn select empno,ename from emp where deptno=icur_deptno;rntype t_empno is table of emp.empno%type index by binary_integer;rntype t_ename is table of emp.ename%type index by binary_integer;rnempno_col t_empno;rnename_col t_ename;rnbeginrn open emp_cur(i_deptno);rn fetch emp_cur bulk rn into empno_col,ename_col;rn dbms_output.put_line('编号'||'名字 ');rn close emp_cur;rn for I in 1 ... empno_col.count looprn dbms_output.put_line(empno_col(i) ||' '||ename_col(i));rn end;rnend;rn/rn
帮忙看下这是什么错误,谢谢
org.apache.jasper.JasperException: Unable to compile class for JSPrnrnAn error occurred at line: 15 in the jsp file: /huang/graph.jsprnGenerated servlet error:rn/usr/local/tomcat/work/Catalina/localhost/_/org/apache/jsp/huang/graph_jsp.java:131: cannot find symbolrnsymbol : variable chartrnlocation: class org.apache.jsp.huang.graph_jsprnString filename = ServletUtilities.saveChartAsJPEG(chart, 500, 300, null, session);rn ^rnrnrnAn error occurred at line: 15 in the jsp file: /huang/graph.jsprnGenerated servlet error:rn/usr/local/tomcat/work/Catalina/localhost/_/org/apache/jsp/huang/graph_jsp.java:131: cannot find symbolrnsymbol : variable ServletUtilitiesrnlocation: class org.apache.jsp.huang.graph_jsprnString filename = ServletUtilities.saveChartAsJPEG(chart, 500, 300, null, session);rn ^rnNote: /usr/local/tomcat/work/Catalina/localhost/_/org/apache/jsp/huang/graph_jsp.java uses or overrides a deprecated API.rnrnrnAn error occurred at line: 15 in the jsp file: /huang/graph.jsprnGenerated servlet error:rnNote: Recompile with -Xlint:deprecation for details.rn2 errorsrnrnrnrn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)rn org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn在其它代码上都没有错,在里却错误
请帮忙看下这是什么错误?
在使用JAVABEAN时老是遇见这样的抱错,麻烦高手指点一下rnorg.apache.jasper.JasperException: Text.TextBeanrn org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:122)rn org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1051)rn org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:1079)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2236)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:485)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)rn org.apache.jasper.compiler.Generator.generate(Generator.java:3253)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:277)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rnrnrnroot cause rnrnjava.lang.ClassNotFoundException: Text.TextBeanrn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1212)rn org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:120)rn org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1051)rn org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:1079)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2236)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:485)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)rn org.apache.jasper.compiler.Generator.generate(Generator.java:3253)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:277)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rnrnrnnote The full stack trace of the root cause is available in the Tomcat logs.rn
帮忙看下,什么错误
rnorg.apache.jasper.JasperException: /PBMS/orderinfo/orderAdd.jsp(6,1) File "/PBMS/orderinfo/../xrnuanxiang.jsp" not foundrn at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)rn at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)rn at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)rn at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:297)rn at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:330)rn at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:438)rn at org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1745)rn at org.apache.jasper.compiler.Parser.parse(Parser.java:127)rn at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)rn at org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120)rn at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:180)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)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:589)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.javrna: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:43rn6)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:1062)rn at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)rn at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)rn at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.jarnva:318)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.javrna:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.ruining.common.util.PageFilter.doFilter(PageFilter.java:114)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.javrna:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.ruining.common.util.PopedomFilter.doFilter(PopedomFilter.java:80)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.javrna:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.ruining.common.util.EncodeFilter.doFilter(EncodeFilter.java:46)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.javrna:235)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.Http11Processor.process(Http11Processor.java:852)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.javarn:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Unknown Source)
帮忙看下什么错误
/*单链表的各种操作*/rn#includern#include rnrn#define null 0rnrntypedef char ElemType; /* 字符型数据*/rnrntypedef struct LNodernrn ElemType data;rn struct LNode *next;rnLnode;rn rnvoid setnull(struct LNode **p);rnint length (struct LNode **p);rnElemType get(struct LNode **p,int i);rnvoid insert(struct LNode **p,ElemType x,int i);rnint locate(struct LNode **p,ElemType x);rnint Delete(struct LNode **p,int i);rnvoid display(struct LNode **p);rnrnvoid main()rnrn struct LNode *head; /*定义静态变量*/rn int select,x1,x2,x3,x4;rn int i,n; rn int m,g;rn char e,y; rn rn setnull(&head); /*建议链表并设置为空表*/rn printf("请输入数据长度: ");rn scanf("%d",&n);rn for(i=1;inext;rn rn return(n);rnrnrnElemType get(struct LNode **p,int i)rnrn int j=1;rn struct LNode *q=*p;rn while (jnext;rn j++;rn rn if(q!=null)rn return(q->data);rn elsern printf("位置参数不正确!\n");rnrnrnint locate(struct LNode **p,ElemType x)rnrn int n=0;rn struct LNode *q=*p;rn while (q!=null&&q->data!=x)rn rn q=q->next;rn n++;rn rn if(q==null)rn return(-1);rn elsern return(n+1);rnrnrnvoid insert(struct LNode **p,ElemType x,int i)rnrn int j=1;rn struct LNode *s,*q;rn s=(struct LNode *)malloc(sizeof(struct LNode));rn s->data=x;rn q=*p;rn if(i==1)rn rn s->next=q;rn *p=s;rn rn elsern rn while(jnext!=null)rn rn q=q->next;rn j++;rn rn if(j==i-1)rn rn s->next=q->next;rn q->next=s;rn rn else rn printf("位置参数不正确!\n");rn rnrnrnint Delete(struct LNode **p,int i)rnrn int j=1;rn struct LNode *q=*p,*t;rn if(i==1)rn rn t=q;rn *p=q->next;rn rn elsern rn while(jnext!=null)rn rn q=q->next;rn j++;rn rn if(q->next!=null&&j==i-1)rn rn t=q->next;rn q->next=t->next;rn rn else rn printf("位置参数不正确!\n");rn rn if(t=null) rn free(t);rnrnrnvoid display(struct LNode **p)rn rn struct LNode *q;rn q=*p;rn printf("单链表显示: ");rn if(q==null)rn printf("链表为空!");rn else if (q->next==null)rn printf("%c\n",q->data);rn elsern rn while(q->next!=null)rn rn printf("%c->",q->data);rn q=q->next;rn rn printf("%c",q->data);rn rn printf("\n");rnrnrnrn错误是monovular.cpprnD:\数据结构\monovular.cpp(84) : error C2143: syntax error : missing ';' before ''rnD:\数据结构\monovular.cpp(84) : error C2143: syntax error : missing ';' before ''rnD:\数据结构\monovular.cpp(84) : error C2143: syntax error : missing ';' before ''rnD:\数据结构\monovular.cpp(88) : error C2143: syntax error : missing ';' before ''rnD:\数据结构\monovular.cpp(88) : error C2447: missing function header (old-style formal list?)rn
求大神们帮忙看看这是怎么了
using System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Web;rnusing ISS.Project.BusinessRules.MobileManage;rnusing ISS.Project.BusinessRules.jQueryAjaxHelper;rnrnnamespace WebSite.Interfacernrn /// rn /// Handler_HotelNumZJ 的摘要说明rn /// rn public class Handler_HotelNumZJ : IHttpHandlerrn rnrn rn public void HotelNumZJRequest(HttpContext context, string year)rn rn string str = context.Request.QueryString["callback"];rnrn AjaxResultMessage resultMsg = BR_WEB_MOBILE_ImgPage.GetHotelNumZJInfo(year);rnrn if (string.IsNullOrEmpty(str) == false)rn rn resultMsg.Data = str + "(" + resultMsg.Data + ")";rn rn context.Response.Clear();rn context.Response.Write(resultMsg.Data);rn context.Response.End();rn rnrnrn public bool IsReusablern rn getrn rn return false;rn rn rn rnrnrnrnrnrnrnrn错误问题:rnrn错误 2 “WebSite.Handler”不实现接口成员“System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)” D:\VS2010 workspace\HubeiManage\HubeiManage\ISS.Project\WebSite\Interface\Handler.ashx.cs 13 18 WebSitern错误 8 “WebSite.Interface.Handler_HotelNumZJ”不实现接口成员“System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)” D:\VS2010 workspace\HubeiManage\HubeiManage\ISS.Project\WebSite\Interface\Handler_HotelNumZJ.ashx.cs 13 18 WebSiternrnrnrnrnrnrnrnrnrnrnrnrn
大神们求帮忙???
根据查询条件查询,并将查询结果在DBGridEh中显示,当显示结果为空时,DBGridEh不可操作,否则DBGridEh可操作,当显示结果不为空时,Excel表按钮可操作
求大神们帮忙
有个控件注册不上,在网上查找了很多办法,也没有成功,希望有大神帮忙解决这个问题。[img=https://img-bbs.csdn.net/upload/201401/19/1390097598_331882.png][/img]
logcat打印的错误信息。。新手看不懂 求大神们帮忙看下
09-23 20:23:56.067: E/Process(6643): android_os_Process_getProcessNameByPid pid is 6643rn09-23 20:23:56.067: E/Process(6643): android_os_Process_getProcessNameByPid value is wheelProfile.lmrn09-23 20:23:56.140: E/CheckPermission(6643): _bluetooth code = 1 rn09-23 20:24:22.774: E/MediaPlayer(6643): Should have subtitle controller already setrn09-23 20:24:34.749: E/AndroidRuntime(6643): FATAL EXCEPTION: mainrn09-23 20:24:34.749: E/AndroidRuntime(6643): java.lang.NegativeArraySizeException: -1rn09-23 20:24:34.749: E/AndroidRuntime(6643): at com.Activity.compute(ME_Activity.java:360)rn09-23 20:24:34.749: E/AndroidRuntime(6643): at com.Activity$1.handleMessage(ME_Activity.java:314)rn09-23 20:24:34.749: E/AndroidRuntime(6643): at android.os.Handler.dispatchMessage(Handler.java:111)rn09-23 20:24:34.749: E/AndroidRuntime(6643): at android.os.Looper.loop(Looper.java:210)rn09-23 20:24:34.749: E/AndroidRuntime(6643): at android.app.ActivityThread.main(ActivityThread.java:5809)rn09-23 20:24:34.749: E/AndroidRuntime(6643): at java.lang.reflect.Method.invoke(Native Method)rn09-23 20:24:34.749: E/AndroidRuntime(6643): at java.lang.reflect.Method.invoke(Method.java:372)rn09-23 20:24:34.749: E/AndroidRuntime(6643): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)rn09-23 20:24:34.749: E/AndroidRuntime(6643): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879)rn09-23 20:24:35.133: E/Process(6813): android_os_Process_getProcessNameByPid pid is 6813rn09-23 20:24:35.133: E/Process(6813): android_os_Process_getProcessNameByPid value is wheelProfile.lmrn
新手贴!一个小错误求大神们帮忙看下!跪谢
不浪费大神时间,小弟先简单说下问题.rn 一个学校的小项目练手的ssh框架.问题出在页面报500空指针错误,原因在24行也就是如下所示!rn这是我的Action类,业务类中的增删改查方法我测试过都没问题rnpackage com.Action;rnimport java.util.List;rnimport com.opensymphony.xwork2.ActionSupport;rnimport com.pojo.Animal;rnimport com.service.AnimalService;rnrnpublic class AnimalAction extends ActionSupport rn private AnimalService animalService;rn private List list;rnrn public List getList() rn return list;rn rn public void setList(List list) rn this.list = list;rn rn public void setAnimalService(AnimalService animalService) rn this.animalService = animalService;rn rn public String home()rn list=animalService.findall();//报空指针的地方rn if(list==null)rn return ERROR;rn rn return "home";rn rnrnrn这是我的struts.xmlrnrn rn /home.jsprn /error.jsprn rnrnrn这是我的jsp页面rn rn rn rn rn 编号rn 姓名rn 品种rn 年龄rn 操作rn rn rn rn rn rn rn rn 删除rn 修改rn rn rn rn rn 删除rn rn
求帮忙 大神们
学生党 有校友录成果 但是是SqlServer2000数据库的 但是要MySQL数据库的 苦逼我不会改 有大神帮忙改改么?很急 求帮忙 对于你们大神应该很简单才对 大神们帮帮忙
这是什么控件啊,求帮忙看下
[img='/home/local/2012-08-23-161020_287x93_scrot.png'][/img]
求大神帮忙看下这个错误是什么
[code=text]八月 07, 2013 9:50:29 上午 org.apache.catalina.loader.WebappClassLoader loadClassrnINFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.mina.core.session.SessionState. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.rnjava.lang.IllegalStateExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:194)rn at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:44)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSessions(AbstractPollingIoProcessor.java:554)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$800(AbstractPollingIoProcessor.java:67)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1132)rn at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrnException in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/apache/mina/core/session/SessionStatern at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:194)rn at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:44)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSessions(AbstractPollingIoProcessor.java:554)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$800(AbstractPollingIoProcessor.java:67)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1132)rn at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ClassNotFoundException: org.apache.mina.core.session.SessionStatern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn ... 9 morern[/code]rn
求大神帮忙看下算法的错误
#include "stdio.h"rn#include "malloc.h"rnint maxzu(int x,int y);rntypedef struct nodern int a;rn struct node *next;rnlinknode,*link;rnlink Creatlist()rnrn int num;rn link H,r,p;rn H=(link)malloc(sizeof(linknode));rn r=H;rn printf("please put the num:");rn scanf("%d",&num);rn while (num!=35)rn rn p=(link)malloc(sizeof(linknode));rn p->a =num;r->next=p;r=p;rn printf("please put num:");rn scanf("%d",&num);rn rn r->next=NULL;rn return H;rnrnlink Adjmax(link H,int k)rnrn link p1,p2,p3;rn p1=H;rn int i=1,max[100],maxfinal,nodefinal;rn int cachevalue[100];rn cachevalue[0]=0;rn max[0]=1;rn for(int j=0;max[j]!=NULL;j++)rn rn p1=p1->next;rn p2=p1; rn for(i;i<=k;i++)rn rn p3=p2;rn cachevalue[0]+=p3->a;rn p2=p3->next;rn rn max[j]=cachevalue[0];rn rn int m;rn for(int f=1,m=max[0],n=0;f<10;f++)rn rn if (maxzu(m,max[f])>m)rn rn m=maxzu(m,max[f]);rn n=f;rn rn rn printf("序号/n值/n",n+1,m);rnrnint maxzu(int x,int y)rnrn return(x>y? x:y);rnrnrnvoid main()rnrn link L;rn L=Creatlist();rn int k;rn printf("please put the k");rn scanf("%d",k);rn Adjmax(H,k);rn
大神帮忙看看这是什么错误?
07-24 10:22:16.461: E/AndroidRuntime(8394): FATAL EXCEPTION: mainrn07-24 10:22:16.461: E/AndroidRuntime(8394): Process: com.example.test, PID: 8394rn07-24 10:22:16.461: E/AndroidRuntime(8394): java.lang.RuntimeException: Unable to start activity ComponentInfocom.example.test/com.android.activity.FristActivity: android.content.res.Resources$NotFoundException: Resource ID #0x0rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2464)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2526)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread.access$800(ActivityThread.java:169)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.os.Handler.dispatchMessage(Handler.java:111)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.os.Looper.loop(Looper.java:194)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread.main(ActivityThread.java:5549)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at java.lang.reflect.Method.invoke(Native Method)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at java.lang.reflect.Method.invoke(Method.java:372)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)rn07-24 10:22:16.461: E/AndroidRuntime(8394): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.content.res.Resources.getValue(Resources.java:1442)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.content.res.MiuiResources.getValue(MiuiResources.java:145)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.content.res.Resources.loadXmlResourceParser(Resources.java:2903)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.content.res.Resources.getLayout(Resources.java:1222)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.view.LayoutInflater.inflate(LayoutInflater.java:416)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.view.LayoutInflater.inflate(LayoutInflater.java:365)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:400)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.Activity.setContentView(Activity.java:2168)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at com.android.activity.FristActivity.onCreate(FristActivity.java:20)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.Activity.performCreate(Activity.java:5975)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)rn07-24 10:22:16.461: E/AndroidRuntime(8394): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)rn07-24 10:22:16.461: E/AndroidRuntime(8394): ... 10 more
新手,求大神帮忙
需要做一个视频上传,下载功能的网页...但是我看不懂网上那些代码..55555...有没哪位大虾耐心教下我
帮忙看下这是什么编码?
将一个.class文件反编译后,中文处显示的是这么\312\247\260\334\243\254\307\353\326\330\320\302\265\307\302\274\243\241样的东西,请问下,这个是什么编码,怎么转为正常的?
JNI错误大神帮忙看下
错误如下,请各位大侠帮忙指出错误在哪个库,哪行代码解决方案。rnrnrn10-13 20:37:18.047 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: can't call android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo() on instance of android.app.Applicationrn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] in call to CallObjectMethodVrn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] "Thread-153" prio=5 tid=15 Runnablern10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x12f2b0a0 self=0x9d457c00rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | sysTid=9240 nice=0 cgrp=default sched=0/0 handle=0xb4928180rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | state=R schedstat=( 6901334 0 5 ) utm=0 stm=0 core=2 HZ=100rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | stack=0x9acea000-0x9acec000 stackSize=1012KBrn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #00 pc 00004ef0 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #01 pc 000036d5 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #02 pc 002439c9 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&, int, char const*, art::mirror::ArtMethod*)+68)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #03 pc 00227d71 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+144)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #04 pc 000b099b /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #05 pc 000b10e1 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #06 pc 000b1c9b /system/lib/libart.so (art::ScopedCheck::CheckVirtualMethod(_jobject*, _jmethodID*)+250)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #07 pc 000b8a07 /system/lib/libart.so (art::CheckJNI::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+70)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #08 pc 000419ad /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #09 pc 0004b347 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #10 pc 00049b3b /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #11 pc 0001efab /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #12 pc 00023dbf /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #13 pc 00024221 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #14 pc 00020803 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #15 pc 00020fb1 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #16 pc 00021623 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #17 pc 00052d01 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #18 pc 00052c1d /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #19 pc 00053cdf /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #20 pc 000451ff /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #21 pc 00016eaf /system/lib/libc.so (__pthread_start(void*)+30)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #22 pc 00014deb /system/lib/libc.so (__start_thread+6)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] (no managed stack frames)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] rnrn
这是个什么错?求大神帮忙!!!
org.hibernate.exception.SQLGrammarException: could not initialize a collection: [com.article.model.UserInfo.articlecontent#admin]rnrn下面是两个实体类rnimport java.util.HashSet;rnimport java.util.Set;rnimport javax.persistence.CascadeType;rnimport javax.persistence.Entity;rnimport javax.persistence.FetchType;rnimport javax.persistence.GeneratedValue;rnimport javax.persistence.Id;rnimport javax.persistence.OneToMany;rnimport javax.persistence.Table;rnrn@Entityrn@Table(name = "UserInfo", schema = "scott")rnpublic class UserInfo rn private String username;// varchar2(50) primary key, --用户名称rn private String pasword;// varchar2(50) , --密码rn private String email;// varchar2(50) not null,--电子邮箱rn private String telepone;// varchar2(12),--电话rn private int logintimes;// default(0),--登录次数rn private String articIDs;// varchar2(1000)--文章编号rn private Set articlecontent = new HashSet();rnrn @Idrn @GeneratedValuern public String getUsername() rn return username;rn rnrn public void setUsername(String username) rn this.username = username;rn rnrn public String getPasword() rn return pasword;rn rnrn public void setPasword(String pasword) rn this.pasword = pasword;rn rnrn public String getEmail() rn return email;rn rnrn public void setEmail(String email) rn this.email = email;rn rnrn public String getTelepone() rn return telepone;rn rnrn public void setTelepone(String telepone) rn this.telepone = telepone;rn rnrn public int getLogintimes() rn return logintimes;rn rnrn public void setLogintimes(int logintimes) rn this.logintimes = logintimes;rn rnrn public String getArticIDs() rn return articIDs;rn rnrn public void setArticIDs(String articIDs) rn this.articIDs = articIDs;rn rnrn @OneToMany(mappedBy = "userinfo", cascade = CascadeType.ALL, fetch = FetchType.LAZY)rn public Set getArticlecontent() rn return articlecontent;rn rnrn public void setArticlecontent(Set articlecontent) rn this.articlecontent = articlecontent;rn rnrnrnrnrnrnrnrnpackage com.article.model;rnrnimport java.util.HashSet;rnimport java.util.Set;rnimport javax.persistence.CascadeType;rnimport javax.persistence.Entity;rnimport javax.persistence.FetchType;rnimport javax.persistence.GeneratedValue;rnimport javax.persistence.Id;rnimport javax.persistence.OneToMany;rnimport javax.persistence.Table;rnrn@Entityrn@Table(name = "UserInfo", schema = "scott")rnpublic class UserInfo rn private String username;// varchar2(50) primary key, --用户名称rn private String pasword;// varchar2(50) , --密码rn private String email;// varchar2(50) not null,--电子邮箱rn private String telepone;// varchar2(12),--电话rn private int logintimes;// default(0),--登录次数rn private String articIDs;// varchar2(1000)--文章编号rn private Set articlecontent = new HashSet();rnrn @Idrn @GeneratedValuern public String getUsername() rn return username;rn rnrn public void setUsername(String username) rn this.username = username;rn rnrn public String getPasword() rn return pasword;rn rnrn public void setPasword(String pasword) rn this.pasword = pasword;rn rnrn public String getEmail() rn return email;rn rnrn public void setEmail(String email) rn this.email = email;rn rnrn public String getTelepone() rn return telepone;rn rnrn public void setTelepone(String telepone) rn this.telepone = telepone;rn rnrn public int getLogintimes() rn return logintimes;rn rnrn public void setLogintimes(int logintimes) rn this.logintimes = logintimes;rn rnrn public String getArticIDs() rn return articIDs;rn rnrn public void setArticIDs(String articIDs) rn this.articIDs = articIDs;rn rnrn @OneToMany(mappedBy = "userinfo", cascade = CascadeType.ALL, fetch = FetchType.LAZY)rn public Set getArticlecontent() rn return articlecontent;rn rnrn public void setArticlecontent(Set articlecontent) rn this.articlecontent = articlecontent;rn rnrnrnrn这是actionrnrnrnrnimport java.util.Iterator;rnimport java.util.Set;rnimport com.article.model.ArticleContent;rnimport com.article.model.UserInfo;rnimport com.article.service.ArticleSer;rnimport com.opensymphony.xwork2.ActionSupport;rnrnpublic class ArticleQueryAction extends ActionSupport rnrn /**rn *rn */rn private static final long serialVersionUID = 1L;rn private ArticleSer as = new ArticleSer();rn private String username;rn private String password;rnrn public String getUsername() rn return username;rn rnrn public void setUsername(String username) rn this.username = username;rn rnrn public String getPassword() rn return password;rn rnrn public void setPassword(String password) rn this.password = password;rn rnrn public String Query_Login() rnrn UserInfo ui = as.Search_Login(username, password);rn if (ui == null) rn System.out.println("失败!");rn return "fail";rn else rn rn System.out.println("成功!");rn Set articlecontent= ui.getArticlecontent();rn Iterator article=articlecontent.iterator();rn while(article.hasNext())rn ArticleContent ac=article.next();rn System.out.println(ac.getMaincontent());rn rn rn as.Update_LoginTimes(ui);rn return SUCCESS;rn rn rnrnrn运行到rnIterator article=articlecontent.iterator();rn这里就报错了rn当我把one to many 的fetch改为eager也会报同样的错误!rnorg.hibernate.exception.SQLGrammarException: could not initialize a collection: [com.article.model.UserInfo.articlecontent#admin]rnrn求大神帮忙!!!小弟感激不敬!!
求大神们帮忙看看错误在哪
use warnings;use strict;open(INFILE, &quot;/Users/lizeshuo/Desktop/test2.txt&quot;) ||   die &quot;Cannot open the newfile: $!\n&quot;;open(OUTFILE, &quot;&amp;gt;test3.txt&quot;) ||   die &quot;Cannot open the newfile: $!\n&quot;;my @a;while (...
新手.帮忙看下那里错误?
原代码如下:rn#include rn#include rnLRESULT CALLBACK WinsunProc(rn HWND hwnd, // handle to windowrn UINT uMsg, // message identifierrn WPARAM wParam, // first message parameterrn LPARAM lParam // second message parameterrn);rnint WINAPI WinMain(rn HINSTANCE hInstance, // handle to current instancern HINSTANCE hPrevInstance, // handle to previous instancern LPSTR lpCmdLine, // command linern int nCmdShow // show statern)rnrn WNDCLASS sysclass;rn sysclass.cbClsExtra=0;rn sysclass.cbWndExtra=0;rn sysclass.hbrBackground=(HBRUSH)GetStockObject(BLACK_BRUSH);rn sysclass.hCursor=LoadCursor(NULL,IDC_ARROW);rn sysclass.hIcon=NULL;rn sysclass.hInstance=hInstance;rn sysclass.lpfnWndProc=WinsunProc;rn sysclass.lpszClassName="weixin2003";rn sysclass.lpszMenuName=NULL;rn sysclass.style=CS_HREDRAW | CS_VREDRAW;rn RegisterClass(&sysclass);rn HWND hnd;rn hnd=CreateWindow("weixin2003","vs600",WS_BORDER,0,0,600,600,NULL,NULL,hInstance,NULL);rn ShowWindow(hnd,SW_SHOWNORMAL);rn UpdateWindow(hnd);rn MSG msg;rn while(GetMessage(&msg,NULL,0,0))rn rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn return 0;rnrnLRESULT CALLBACK WinsunProc(rn HWND hwnd, // handle to windowrn UINT uMsg, // message identifierrn WPARAM wParam, // first message parameterrn LPARAM lParam // second message parameterrn )rnrn switch(uMsg)rn rn case WM_CLOSE:rn if(IDYES==MessageBox(hwnd,"是否真的退出!","退出?",MB_OKCANCEL))rn rn DestroyWindow(hwnd);rn rn break;rn case WM_DESTROY:rn PostQuitMessage(0);rn break;rn default:rn return DefWindowProc(hwnd,uMsg,wParam,lParam);rn rn return 0;rnrn错误信息如下:rn--------------------Configuration: app - Win32 Debug--------------------rnCompiling...rnapp.cpprnLinking...rnLIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _mainrnDebug/app.exe : fatal error LNK1120: 1 unresolved externalsrn执行 link.exe 时出错.rnrnapp.exe - 1 error(s), 0 warning(s)rn初学MFC望帮下忙!
求大神帮忙看下存储过程
[code=sql]CREATE PROCEDURE [dbo].[G1_GetRecruitListByAllItems]rn -- Add the parameters for the stored procedure herern (rn@Dept varchar(50),rn@Statues int,rn@StartTime datetime,rn@EndTime datetimern)rn rnASrnBEGINrn rn SET NOCOUNT ON;rn declare @sql varchar(1000)rn set @sql = 'rn SELECT re.Id,rn de.DepartmentName,rn re.CreateTime,rn us.UserName,rn re.Satern FROM rn G1_Recruit as re JOIN G1_Department as de ON re.DeptId=de.DepartmentIdrn LEFT JOIN G1_User as us ON re.CreateUserId=us.UserId where 1=1 rnrn 'rn rn if(@Dept !='==请选择==')rn BEGINrn --print '到达Dept判断 'rn SET @sql = @sql + ' and de.DepartmentName = ''' + @Dept + ''''rn ENDrnrn if(@Statues !=4)rn BEGINrn --print '到达Statues判断'rn SET @sql = @sql + ' and re.Sate =' + cast(@Statues as varchar(2))rn --print '状态判断完成'rn ENDrn rn if(@StartTime!=null)rn BEGINrn --print '到达时间判断'rn SET @sql = @sql + ' and re.CreateTime >= ''' +@StartTime+''''rn --print '时间判断完成'rn ENDrnrn if(@EndTime!=null)rn BEGINrn --print '到达时间判断'rn SET @sql = @sql +' and re.CreateTime <='''+@EndTime +''''rn --print '时间判断完成'rn ENDrnrn SET @sql = @sql + ' ORDER By re.CreateTime DESC'rnrn PRINT @sqlrn EXEC (@sql)rn rnEND[/code]rn[img=https://img-bbs.csdn.net/upload/201611/29/1480410563_632951.png][/img]rn为什么输了时间还是没进行比较
新手!!一个错误请各位帮忙看下!!非常感谢
error:"cart.war": No deploy service or JSP/Servlet service available for cart Web module.rn 这句话事什么意思?? 求解决方案!!
求帮忙,这是什么错误啊??
求帮忙,这是什么错误啊??rnrnException in thread "main" org.springframework.aop.AopInvocationException: AOP configuration seems to be invalid: tried calling method [public abstract void com.server.T.hi()] on target [[com.server.C1@5d21b6e7]]; nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring classrn at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn at com.sun.proxy.$Proxy0.hi(Unknown Source)rn at com.test.test.main(test.java:34)rnCaused by: java.lang.IllegalArgumentException: object is not an instance of declaring classrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)rn ... 7 morern
PYQT,求大神们帮忙
请问如何在PyQt界面中显示文本文件txt内容nself.textbrowser.setPlainText("a.txt")n这样不可以么?n求帮求帮n另外,combox想要选择一项就能在textbrowser里显示一个文本文件,该怎么操作呢,万分感谢。
求各位大神们帮忙
this.EnterType.DataSource = new TblEnter_BaseBLL().GetHqlTblEnter_BaseList(" select tbl.EnterType from TblEnter_Base tbl where tbl.tblEnter_BaseID= '"+this.tblEnter_BaseID1.Text.ToString()+"'");rn this.EnterType.DataTextField="招标单位";rn this.EnterType.DataValueField = "1";rn this.EnterType.DataTextField = "投标单位";rn this.EnterType.DataValueField = "2";rn this.EnterType.DataBind();
相关热词 c#部署端口监听项目、 c#接口中的属性使用方法 c# 昨天 c#func链接匿名方法 c#怎么创建文件夹 c#从键盘接收空格 c#da/ad c#部门请假管理系统 c#服务器socket c# 默认的访问修饰符