MAVEN Error: java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter
来源:互联网 发布:最好的教学软件 编辑:程序博客网 时间:2024/05/11 12:37
MyEclipse2015+Maven3出现错误:
T E S T S
-------------------------------------------------------
Running DataDictTest
org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:108)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:133)
at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:322)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:485)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:133)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:286)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
at com.bjpowernode.drp.HibernateUtils.<clinit>(HibernateUtils.java:17)
at DataDictTest.testSave1(DataDictTest.java:21)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
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.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:95)
at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:121)
at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:98)
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.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:105)
... 38 more
Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter
at org.hibernate.bytecode.javassist.BytecodeProviderImpl.getProxyFactoryFactory(BytecodeProviderImpl.java:49)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactoryInternal(PojoEntityTuplizer.java:205)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:167)
at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:77)
... 43 more
Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 48 more
解决方案:
在pom.xml文件中加入配置:
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.1</version>
</dependency>
- MAVEN Error: java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter
- java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter
- java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter
- java异常 java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter
- Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter
- java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter
- 【报错】ClassNotFoundException: javassist.util.proxy.MethodFilter
- Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter
- NoClassDefFoundError: javassist/util/proxy/MethodFilter
- NoClassDefFoundError: javassist/util/proxy/MethodFilter
- NoClassDefFoundError: javassist/util/proxy/MethodFilter
- java.lang.ClassCastException: $$_javassist_2 cannot be cast to javassist.util.proxy.Proxy
- 整合SSH java.lang.ClassCastException: xxx_$$_javassist_0 cannot be cast to javassist.util.proxy.Proxy
- Java.lang.ClassCastException: $$_javassist_2 cannot be cast to javassist.util.proxy.Proxy
- 整合SSH java.lang.ClassCastException: xxx_$$_javassist_0 cannot be cast to javassist.util.proxy.Proxy
- java.lang.ClassCastException: XXXX$$_javassist_1 cannot be cast to javassist.util.proxy.Prox
- Caused by java.lang.ClassNotFoundException javassist.ClassPool
- Caused by: java.lang.ClassNotFoundException: javassist.ClassPool
- ARM编译中Code, RO-data,RW-data,ZI-data
- 安卓作业
- 程序员必须知道的10大基础实用算法及其讲解(2)
- leetcode_Longest Common Prefix
- public,protect,private访问权限
- MAVEN Error: java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter
- android将项目打包成jar包使用
- svn提交出错提示:svn locked; try performing 'cleanup'的解决方法
- 安卓环境搭建
- C#泛型编程
- Hotruby研究
- 导入myeclipse中的工程到eclipse中有几种方式?
- 流媒体协议介绍(rtp/rtcp/rtsp/rtmp/mms/hls)
- ios即时通讯客户端开发之-mac上搭建openfire服务器