error

前端之家收集整理的这篇文章主要介绍了error前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
1,java.lang.AssertionError:
Unexpected method call checkOverride((method=public void org.directwebremoting.impl.test.SignatureTestsObject.setLotteryResults(java.util.List<java.lang.Integer>),parameter: 0)):
setOverrideProperty(isA(org.directwebremoting.extend.Property),isA(org.directwebremoting.extend.Property)): expected: 1,actual: 0
at org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:29)
at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:45)
at com.sun.proxy.$Proxy9.checkOverride(Unknown Source)
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:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

一个方法没mock出来,至Mock至mock了一个对象,没mock方法.checkOverride()出来

2,java.net.MalformedURLException一直报这个错误 net 中报java.lang.NullPointerException 还以为是JAVA出bug了。。

后面想到是不是。xml文件出错了,结果直接拿了个pom.xml文件区试了下 果断好了啊,如实开始怀疑xml定义问题了:

最终去掉

<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN"
"http://getahead.org/dwr/dwr30.dtd">

发现好了,可是getahead.org/dwr/dwr30.dtd根本访问不了,直接改为本地的

<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN"
"dwr30.dtd">

嚓。。折腾了一下午。。

3,

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line 38 in XML document from class path resource [ApplicationContex.xml] isinvalid; nested exception is org.xml.sax.SAXParseException: Open quote isexpected for attribute "ref" associated with an element type"property".

atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)

atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)

atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)

atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)

<bean id="redisTemplate" class="org.springframework.data.redis.core.RedisTemplate"
p:connection-factory-ref="jedisConnectionFactory" />

<bean id="userDao" class="com.redisswitch.UserDaoImpl">
<property name="redisTemplate" ref=redisTemplate/>---->ref="redisTemplate"
</bean>

java.lang.NoSuchMethodError:org.springframework.core.GenericTypeResolver.resolveTypeArguments(Ljava/lang/Class;Ljava/lang/Class;)[Ljava/lang/Class;

atorg.springframework.core.convert.support.GenericConversionService.getrequiredTypeInfo(GenericConversionService.java:275)

atorg.springframework.core.convert.support.GenericConversionService.addConverter(GenericConversionService.java:93)

atorg.springframework.core.convert.support.DefaultConversionService.addScalarConverters(DefaultConversionService.java:61)

atorg.springframework.core.convert.support.DefaultConversionService.addDefaultConverters(DefaultConversionService.java:53)

atorg.springframework.core.convert.support.DefaultConversionService.<init>(DefaultConversionService.java:42)

atorg.springframework.core.convert.support.ConversionServiceFactory.createDefaultConversionService(ConversionServiceFactory.java:68)

atorg.springframework.data.redis.serializer.GenericToStringSerializer.<init>(GenericToStringSerializer.java:44)

atorg.springframework.data.redis.serializer.GenericToStringSerializer.<init>(GenericToStringSerializer.java:48)

atorg.springframework.data.redis.support.atomic.RedisAtomicLong.<init>(RedisAtomicLong.java:71)

at org.springframework.data.redis.support.atomic.RedisAtomicLong.<init>(RedisAtomicLong.java:54)

原来是maven工程的jar包冲突,mvn parent中jar包是spring3.0.5,当前pom.xml文件中写的是3.1.1.,还有个2.。5.6的一柄删除掉了

svn eclipse Attempted to lock an already-locked dir

解决方案:team-->Refresh/CleanUp


Unsupported major.minor version 51.0解决办法

这个比较被自己坑了,本来java -version 看了下是1.7的jdk,eclipse也配成了1.7还是坑,后面另外一个目录jdk6的目录,JRE指向的是这个6的目录

原文链接:https://www.f2er.com/xml/300515.html

猜你在找的XML相关文章