daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Jun 12th, 2018 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I am trying to build a project with below alfresco repository dependency
  2.  
  3. <dependency>
  4.     <groupId>org.alfresco</groupId>
  5.     <artifactId>alfresco-repository</artifactId>
  6.     <version>5.2.g</version>
  7. </dependency>
  8.  
  9. while running the application I get below exception
  10.  
  11.  
  12. xception in thread "main" java.lang.reflect.InvocationTargetException
  13.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  14.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  15.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  16.     at java.lang.reflect.Method.invoke(Method.java:498)
  17.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
  18.     at java.lang.Thread.run(Thread.java:745)
  19. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'extracter.MP3' defined in class path resource [alfresco/content-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/coremedia/iso/boxes/ContainerBox
  20.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1039)
  21.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:985)
  22.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
  23.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  24.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
  25.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  26.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
  27.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
  28.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)
  29.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:938)
  30.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
  31.     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
  32.     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
  33.     at org.alfresco.util.BaseApplicationContextHelper.getApplicationContext(BaseApplicationContextHelper.java:78)
  34.     at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:53)
  35. Caused by: java.lang.NoClassDefFoundError: com/coremedia/iso/boxes/ContainerBox
  36.     at org.alfresco.repo.content.metadata.TikaAudioMetadataExtracter.<clinit>(TikaAudioMetadataExtracter.java:75)
  37.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  38.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  39.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  40.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  41.     at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
  42.     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
  43.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1032)
  44.     ... 22 more
  45. Caused by: java.lang.ClassNotFoundException: com.coremedia.iso.boxes.ContainerBox
  46.     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  47.     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  48.     at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:178)
  49.     at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:142)
  50.     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  51.     ... 30 more
  52. Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
  53.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:62)
  54.     at java.lang.Thread.run(Thread.java:745)
  55. Caused by: java.lang.reflect.InvocationTargetException
  56.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  57.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  58.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  59.     at java.lang.reflect.Method.invoke(Method.java:498)
  60.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
  61.     ... 1 more
  62. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'extracter.MP3' defined in class path resource [alfresco/content-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/coremedia/iso/boxes/ContainerBox
  63.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1039)
  64.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:985)
  65.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
  66.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  67.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
  68.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  69.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
  70.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
  71.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)
  72.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:938)
  73.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
  74.     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
  75.     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
  76.     at org.alfresco.util.BaseApplicationContextHelper.getApplicationContext(BaseApplicationContextHelper.java:78)
  77.     at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:53)
  78. Caused by: java.lang.NoClassDefFoundError: com/coremedia/iso/boxes/ContainerBox
  79.     at org.alfresco.repo.content.metadata.TikaAudioMetadataExtracter.<clinit>(TikaAudioMetadataExtracter.java:75)
  80.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  81.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  82.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  83.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  84.     at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
  85.     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
  86.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1032)
  87.     ... 22 more
  88.  
  89. I tried to add below dependecy
  90.  
  91. <dependency>
  92.     <groupId>com.googlecode.mp4parser</groupId>
  93.     <artifactId>isoparser</artifactId>
  94.     <version>1.1.21</version>
  95. </dependency>
  96.  
  97.  
  98. but the result was same.. and I checked inside jar there is no class called ContainerBox present inside it
  99.  
  100. Is there any seperate dependency for it ?
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top