org.dspace.xoai.services.api.config.XOAIManagerResolverException: java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement

Sakai JIRA | Ivan Masár | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    The following stacktrace is thrown: 2015-11-11 17:38:31,543 ERROR org.dspace.xoai.app.BasicConfiguration @ Not able to start XOAI normal cache service. org.dspace.xoai.services.api.config.XOAIManagerResolverException: java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement at org.dspace.xoai.services.impl.context.DSpaceXOAIManagerResolver.getManager(DSpaceXOAIManagerResolver.java:32) at org.dspace.xoai.app.BasicConfiguration.xoaiCacheService(BasicConfiguration.java:74) at org.dspace.xoai.app.BasicConfiguration$$EnhancerByCGLIB$$d85d5af1.CGLIB$xoaiCacheService$17(<generated>) at org.dspace.xoai.app.BasicConfiguration$$EnhancerByCGLIB$$d85d5af1$$FastClassByCGLIB$$506fd11e.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:280) at org.dspace.xoai.app.BasicConfiguration$$EnhancerByCGLIB$$d85d5af1.xoaiCacheService(<generated>) 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.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:73) at org.dspace.xoai.app.XOAI.main(XOAI.java:351) 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.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78) Caused by: java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement at com.ctc.wstx.evt.WEvent.asStartElement(WEvent.java:63) at com.lyncode.xoai.dataprovider.xml.read.XmlReader.elementNameIs(XmlReader.java:87) at com.lyncode.xoai.dataprovider.xml.xoaiconfig.parse.ContextConfigurationParser.parse(ContextConfigurationParser.java:34) at com.lyncode.xoai.dataprovider.xml.xoaiconfig.parse.ConfigurationParser.parse(ConfigurationParser.java:34) at com.lyncode.xoai.dataprovider.xml.xoaiconfig.Configuration.readConfiguration(Configuration.java:23) at org.dspace.xoai.services.impl.context.DSpaceXOAIManagerResolver.getManager(DSpaceXOAIManagerResolver.java:30) ... 31 more The problem occurs when in xoai.xml, the Context element doesn't contain a Description element. 1) The XOAIConfiguration.xsd schema wasn't updated to consider Description a required element. 2) The error message could be clearer - at the very least it should indicate that this is a problem on xoai configuration. Ideally it should point out the file and the missing element. https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-oai/src/main/java/org/dspace/xoai/services/impl/context/DSpaceXOAIManagerResolver.java#L32

    Sakai JIRA | 1 year ago | Ivan Masár
    org.dspace.xoai.services.api.config.XOAIManagerResolverException: java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement
  2. 0

    The following stacktrace is thrown: 2015-11-11 17:38:31,543 ERROR org.dspace.xoai.app.BasicConfiguration @ Not able to start XOAI normal cache service. org.dspace.xoai.services.api.config.XOAIManagerResolverException: java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement at org.dspace.xoai.services.impl.context.DSpaceXOAIManagerResolver.getManager(DSpaceXOAIManagerResolver.java:32) at org.dspace.xoai.app.BasicConfiguration.xoaiCacheService(BasicConfiguration.java:74) at org.dspace.xoai.app.BasicConfiguration$$EnhancerByCGLIB$$d85d5af1.CGLIB$xoaiCacheService$17(<generated>) at org.dspace.xoai.app.BasicConfiguration$$EnhancerByCGLIB$$d85d5af1$$FastClassByCGLIB$$506fd11e.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:280) at org.dspace.xoai.app.BasicConfiguration$$EnhancerByCGLIB$$d85d5af1.xoaiCacheService(<generated>) 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.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:73) at org.dspace.xoai.app.XOAI.main(XOAI.java:351) 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.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78) Caused by: java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement at com.ctc.wstx.evt.WEvent.asStartElement(WEvent.java:63) at com.lyncode.xoai.dataprovider.xml.read.XmlReader.elementNameIs(XmlReader.java:87) at com.lyncode.xoai.dataprovider.xml.xoaiconfig.parse.ContextConfigurationParser.parse(ContextConfigurationParser.java:34) at com.lyncode.xoai.dataprovider.xml.xoaiconfig.parse.ConfigurationParser.parse(ConfigurationParser.java:34) at com.lyncode.xoai.dataprovider.xml.xoaiconfig.Configuration.readConfiguration(Configuration.java:23) at org.dspace.xoai.services.impl.context.DSpaceXOAIManagerResolver.getManager(DSpaceXOAIManagerResolver.java:30) ... 31 more The problem occurs when in xoai.xml, the Context element doesn't contain a Description element. 1) The XOAIConfiguration.xsd schema wasn't updated to consider Description a required element. 2) The error message could be clearer - at the very least it should indicate that this is a problem on xoai configuration. Ideally it should point out the file and the missing element. https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-oai/src/main/java/org/dspace/xoai/services/impl/context/DSpaceXOAIManagerResolver.java#L32

    Sakai JIRA | 1 year ago | Ivan Masár
    org.dspace.xoai.services.api.config.XOAIManagerResolverException: java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement
  3. 0

    Here are the steps to reproduce the issue: # Within version 5.3.4 create a empty page with: #* an anchor #* an inline task with the anchor link # Upgrade to Confluence 5.5.2. # The upgrade is complete but all task found after the task with the anchor link will not be migrated and the following message found in the log: {noformat} 2014-06-18 13:55:59,908 ERROR [StorageToAoMigrationUpgradeTask-TaskExtractor-4] [plugins.tasklist.upgradetask.InterruptingUncaughtExceptionHandler] uncaughtException Uncaught exception in thread StorageToAoMigrationUpgradeTask-TaskExtractor-4. Interrupting all threads. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement at com.ctc.wstx.evt.WEvent.asStartElement(WEvent.java:63) at com.atlassian.confluence.plugins.tasklist.transformer.InlineTaskUserExtractor.extractUsersForInlineTask(InlineTaskUserExtractor.java:57) at com.atlassian.confluence.plugins.tasklist.transformer.InlineTaskFinderImpl.parseTask(InlineTaskFinderImpl.java:164) at com.atlassian.confluence.plugins.tasklist.transformer.InlineTaskFinderImpl.findTasks(InlineTaskFinderImpl.java:130) at com.atlassian.confluence.plugins.tasklist.transformer.InlineTaskFinderImpl.extractTasks(InlineTaskFinderImpl.java:87) at com.atlassian.confluence.plugins.tasklist.upgradetask.StorageToAoMigrationTaskExtractor$1.doInTransaction(StorageToAoMigrationTaskExtractor.java:103) at com.atlassian.confluence.plugins.tasklist.upgradetask.StorageToAoMigrationTaskExtractor$1.doInTransaction(StorageToAoMigrationTaskExtractor.java:86) at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25) at com.atlassian.sal.spring.component.SpringHostContextAccessor$1.doInTransaction(SpringHostContextAccessor.java:88) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:82) at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy220.doInTransaction(Unknown Source) at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy220.doInTransaction(Unknown Source) at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:21) at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy2365.execute(Unknown Source) at com.atlassian.confluence.plugins.tasklist.upgradetask.StorageToAoMigrationTaskExtractor.run(StorageToAoMigrationTaskExtractor.java:85) at java.lang.Thread.run(Thread.java:695) 2014-06-18 13:55:59,925 ERROR [Long running task: Importing data] [plugins.tasklist.upgradetask.StorageToAoMigrationUpgradeTask] doUpgrade Inline task migration failed! 2 tasks were migrated. You may try rerunning it or contactAtlassian support if it continues to fail. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore 2014-06-18 13:55:59,929 WARN [StorageToAoMigrationUpgradeTask-TaskInserter-2] [plugins.tasklist.upgradetask.StorageToAoMigrationTaskInserter] run Task inserter was interrupted. Aborting. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore 2014-06-18 13:55:59,930 WARN [StorageToAoMigrationUpgradeTask-TaskInserter-4] [plugins.tasklist.upgradetask.StorageToAoMigrationTaskInserter] run Task inserter was interrupted. Aborting. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore 2014-06-18 13:55:59,931 WARN [StorageToAoMigrationUpgradeTask-TaskInserter-3] [plugins.tasklist.upgradetask.StorageToAoMigrationTaskInserter] run Task inserter was interrupted. Aborting. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore 2014-06-18 13:55:59,935 WARN [StorageToAoMigrationUpgradeTask-TaskInserter-1] [plugins.tasklist.upgradetask.StorageToAoMigrationTaskInserter] run Task inserter was interrupted. Aborting. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore {noformat} If you've encountered this issue, please open a support ticket that we can help you to locate the page to workaround the issue.

    Atlassian JIRA | 3 years ago | Yilin MO [Atlassian]
    java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Here are the steps to reproduce the issue: # Within version 5.3.4 create a empty page with: #* an anchor #* an inline task with the anchor link # Upgrade to Confluence 5.5.2. # The upgrade is complete but all task found after the task with the anchor link will not be migrated and the following message found in the log: {noformat} 2014-06-18 13:55:59,908 ERROR [StorageToAoMigrationUpgradeTask-TaskExtractor-4] [plugins.tasklist.upgradetask.InterruptingUncaughtExceptionHandler] uncaughtException Uncaught exception in thread StorageToAoMigrationUpgradeTask-TaskExtractor-4. Interrupting all threads. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement at com.ctc.wstx.evt.WEvent.asStartElement(WEvent.java:63) at com.atlassian.confluence.plugins.tasklist.transformer.InlineTaskUserExtractor.extractUsersForInlineTask(InlineTaskUserExtractor.java:57) at com.atlassian.confluence.plugins.tasklist.transformer.InlineTaskFinderImpl.parseTask(InlineTaskFinderImpl.java:164) at com.atlassian.confluence.plugins.tasklist.transformer.InlineTaskFinderImpl.findTasks(InlineTaskFinderImpl.java:130) at com.atlassian.confluence.plugins.tasklist.transformer.InlineTaskFinderImpl.extractTasks(InlineTaskFinderImpl.java:87) at com.atlassian.confluence.plugins.tasklist.upgradetask.StorageToAoMigrationTaskExtractor$1.doInTransaction(StorageToAoMigrationTaskExtractor.java:103) at com.atlassian.confluence.plugins.tasklist.upgradetask.StorageToAoMigrationTaskExtractor$1.doInTransaction(StorageToAoMigrationTaskExtractor.java:86) at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25) at com.atlassian.sal.spring.component.SpringHostContextAccessor$1.doInTransaction(SpringHostContextAccessor.java:88) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:82) at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy220.doInTransaction(Unknown Source) at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy220.doInTransaction(Unknown Source) at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:21) at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy2365.execute(Unknown Source) at com.atlassian.confluence.plugins.tasklist.upgradetask.StorageToAoMigrationTaskExtractor.run(StorageToAoMigrationTaskExtractor.java:85) at java.lang.Thread.run(Thread.java:695) 2014-06-18 13:55:59,925 ERROR [Long running task: Importing data] [plugins.tasklist.upgradetask.StorageToAoMigrationUpgradeTask] doUpgrade Inline task migration failed! 2 tasks were migrated. You may try rerunning it or contactAtlassian support if it continues to fail. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore 2014-06-18 13:55:59,929 WARN [StorageToAoMigrationUpgradeTask-TaskInserter-2] [plugins.tasklist.upgradetask.StorageToAoMigrationTaskInserter] run Task inserter was interrupted. Aborting. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore 2014-06-18 13:55:59,930 WARN [StorageToAoMigrationUpgradeTask-TaskInserter-4] [plugins.tasklist.upgradetask.StorageToAoMigrationTaskInserter] run Task inserter was interrupted. Aborting. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore 2014-06-18 13:55:59,931 WARN [StorageToAoMigrationUpgradeTask-TaskInserter-3] [plugins.tasklist.upgradetask.StorageToAoMigrationTaskInserter] run Task inserter was interrupted. Aborting. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore 2014-06-18 13:55:59,935 WARN [StorageToAoMigrationUpgradeTask-TaskInserter-1] [plugins.tasklist.upgradetask.StorageToAoMigrationTaskInserter] run Task inserter was interrupted. Aborting. -- referer: http://mymac:8552/admin/backup.action | url: /admin/restore.action | userName: admin | action: restore {noformat} If you've encountered this issue, please open a support ticket that we can help you to locate the page to workaround the issue.

    Atlassian JIRA | 3 years ago | Yilin Mo [Atlassian]
    java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.ctc.wstx.evt.WEndElement cannot be cast to javax.xml.stream.events.StartElement

      at com.ctc.wstx.evt.WEvent.asStartElement()
    2. Woodstox
      WEvent.asStartElement
      1. com.ctc.wstx.evt.WEvent.asStartElement(WEvent.java:63)
      1 frame
    3. com.lyncode.xoai
      Configuration.readConfiguration
      1. com.lyncode.xoai.dataprovider.xml.read.XmlReader.elementNameIs(XmlReader.java:87)
      2. com.lyncode.xoai.dataprovider.xml.xoaiconfig.parse.ContextConfigurationParser.parse(ContextConfigurationParser.java:34)
      3. com.lyncode.xoai.dataprovider.xml.xoaiconfig.parse.ConfigurationParser.parse(ConfigurationParser.java:34)
      4. com.lyncode.xoai.dataprovider.xml.xoaiconfig.Configuration.readConfiguration(Configuration.java:23)
      4 frames
    4. org.dspace.xoai
      BasicConfiguration$$EnhancerByCGLIB$$d85d5af1$$FastClassByCGLIB$$506fd11e.invoke
      1. org.dspace.xoai.services.impl.context.DSpaceXOAIManagerResolver.getManager(DSpaceXOAIManagerResolver.java:30)
      2. org.dspace.xoai.app.BasicConfiguration.xoaiCacheService(BasicConfiguration.java:74)
      3. org.dspace.xoai.app.BasicConfiguration$$EnhancerByCGLIB$$d85d5af1.CGLIB$xoaiCacheService$17(<generated>)
      4. org.dspace.xoai.app.BasicConfiguration$$EnhancerByCGLIB$$d85d5af1$$FastClassByCGLIB$$506fd11e.invoke(<generated>)
      4 frames
    5. IDEA
      MethodProxy.invokeSuper
      1. net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
      1 frame
    6. Spring Context
      ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
      1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:280)
      1 frame
    7. org.dspace.xoai
      BasicConfiguration$$EnhancerByCGLIB$$d85d5af1.xoaiCacheService
      1. org.dspace.xoai.app.BasicConfiguration$$EnhancerByCGLIB$$d85d5af1.xoaiCacheService(<generated>)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    9. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149)
      2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      11. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
      11 frames
    10. Spring Context
      AnnotationConfigApplicationContext.<init>
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
      3. org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:73)
      3 frames
    11. org.dspace.xoai
      XOAI.main
      1. org.dspace.xoai.app.XOAI.main(XOAI.java:351)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    13. DSpace Kernel :: API and Implementation
      ScriptLauncher.main
      1. org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
      2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
      2 frames