Advertisement
Guest User

Untitled

a guest
Jun 18th, 2014
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.78 KB | None | 0 0
  1. java.lang.IllegalStateException: Failed to load ApplicationContext
  2. at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99)
  3. at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:101)
  4. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
  5. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
  6. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:331)
  7. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:213)
  8. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:290)
  9. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  10. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:292)
  11. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:233)
  12. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:87)
  13. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  14. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  15. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  16. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  17. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  18. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  19. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
  20. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  21. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
  22. at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
  23. at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  24. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
  25. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
  26. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
  27. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
  28. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class com.scrumster.config.PersistenceConfig: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.persistence.EntityManagerFactory com.scrumster.config.PersistenceConfig.entityManagerFactory() throws java.sql.SQLException] threw exception; nested exception is java.lang.RuntimeException: error trying to scan <jar-file>: file:/E:/Files/Source/Workspace-Eclipse2/scrumster/bin/
  29. at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:597)
  30. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094)
  31. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989)
  32. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
  33. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
  34. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
  35. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  36. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
  37. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
  38. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
  39. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
  40. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
  41. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
  42. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
  43. at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100)
  44. at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:250)
  45. at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:64)
  46. at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:91)
  47. ... 25 more
  48. Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.persistence.EntityManagerFactory com.scrumster.config.PersistenceConfig.entityManagerFactory() throws java.sql.SQLException] threw exception; nested exception is java.lang.RuntimeException: error trying to scan <jar-file>: file:/E:/Files/Source/Workspace-Eclipse2/scrumster/bin/
  49. at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:188)
  50. at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:586)
  51. ... 42 more
  52. Caused by: java.lang.RuntimeException: error trying to scan <jar-file>: file:/E:/Files/Source/Workspace-Eclipse2/scrumster/bin/
  53. at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:854)
  54. at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:596)
  55. at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)
  56. at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:287)
  57. at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
  58. at com.scrumster.config.PersistenceConfig.entityManagerFactory(PersistenceConfig.java:43)
  59. at com.scrumster.config.PersistenceConfig$$EnhancerBySpringCGLIB$$16d9d3c4.CGLIB$entityManagerFactory$0(<generated>)
  60. at com.scrumster.config.PersistenceConfig$$EnhancerBySpringCGLIB$$16d9d3c4$$FastClassBySpringCGLIB$$5d5a388b.invoke(<generated>)
  61. at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
  62. at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:312)
  63. at com.scrumster.config.PersistenceConfig$$EnhancerBySpringCGLIB$$16d9d3c4.entityManagerFactory(<generated>)
  64. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  65. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  66. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  67. at java.lang.reflect.Method.invoke(Unknown Source)
  68. at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:166)
  69. ... 43 more
  70. Caused by: java.lang.RuntimeException: Error while reading file:/E:/Files/Source/Workspace-Eclipse2/scrumster/bin/
  71. at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:193)
  72. at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:503)
  73. at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:851)
  74. ... 58 more
  75. Caused by: java.io.IOException: invalid constant type: 18
  76. at javassist.bytecode.ConstPool.readOne(ConstPool.java:1113)
  77. at javassist.bytecode.ConstPool.read(ConstPool.java:1056)
  78. at javassist.bytecode.ConstPool.<init>(ConstPool.java:150)
  79. at javassist.bytecode.ClassFile.read(ClassFile.java:765)
  80. at javassist.bytecode.ClassFile.<init>(ClassFile.java:109)
  81. at org.hibernate.ejb.packaging.AbstractJarVisitor.checkAnnotationMatching(AbstractJarVisitor.java:245)
  82. at org.hibernate.ejb.packaging.AbstractJarVisitor.executeJavaElementFilter(AbstractJarVisitor.java:211)
  83. at org.hibernate.ejb.packaging.AbstractJarVisitor.addElement(AbstractJarVisitor.java:172)
  84. at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:125)
  85. at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:133)
  86. at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:133)
  87. at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:133)
  88. at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:133)
  89. at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:133)
  90. at org.hibernate.ejb.packaging.ExplodedJarVisitor.doProcessElements(ExplodedJarVisitor.java:91)
  91. at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:148)
  92. at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:190)
  93. ... 60 more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement