com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes

Atlassian JIRA | Stefan Hett | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I tried to upgrade the Code Macro plugin from 2.1.4 to 2.2.4 on our Confluence 5.4.4 instance but that failed in the UPM (no error output in the front end). Retried after upgrading Confluence to 5.5.7 but it still fails. Following is the log output: {preformat} 2016-03-26 01:06:56,151 ERROR [localhost-startStop-1] [atlassian.plugin.loaders.ScanningPluginLoader] deployPluginFromUnit Unable to deploy plugin 'com.atlassian.confluence.ext.newcode-macro-plugin' from 'Unit: C:\Program Files\Atlassian\Confluence\Home\plugins-cache\1458946862000plugin.7751525215183161508.newcode-macro-plugin-2.2.4.jar (1458946862000)'. 2016-03-26 01:06:56,151 ERROR [localhost-startStop-1] [atlassian.plugin.loaders.ScanningPluginLoader] deployPluginFromUnit Because of the following exception: com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:62) at com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer.transform(DefaultPluginTransformer.java:146) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.createOsgiPluginJar(OsgiPluginFactory.java:301) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:224) at com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:155) at com.atlassian.plugin.loaders.ScanningPluginLoader.loadAllPlugins(ScanningPluginLoader.java:89) at com.atlassian.plugin.loaders.ForwardingPluginLoader.loadAllPlugins(ForwardingPluginLoader.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy12.loadAllPlugins(Unknown Source) at com.atlassian.plugin.loaders.PermissionCheckingPluginLoader.loadAllPlugins(PermissionCheckingPluginLoader.java:24) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:250) at com.atlassian.confluence.plugin.ConfluencePluginManager.init(ConfluencePluginManager.java:123) at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:54) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Error parsing class file at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:66) at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.findUsedHostComponents(HostComponentSpringStage.java:194) at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:58) ... 30 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 18 at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:448) at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:369) at aQute.lib.osgi.Clazz.parseClassFileWithCollector(Clazz.java:359) at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:38) ... 32 more {preformat} Code macro Plugin 2.1.4 works fine with Confluence 5.4.4 as well as 5.5.7 here.

    Atlassian JIRA | 1 year ago | Stefan Hett
    com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes
  2. 0

    I tried to upgrade the Code Macro plugin from 2.1.4 to 2.2.4 on our Confluence 5.4.4 instance but that failed in the UPM (no error output in the front end). Retried after upgrading Confluence to 5.5.7 but it still fails. Following is the log output: {preformat} 2016-03-26 01:06:56,151 ERROR [localhost-startStop-1] [atlassian.plugin.loaders.ScanningPluginLoader] deployPluginFromUnit Unable to deploy plugin 'com.atlassian.confluence.ext.newcode-macro-plugin' from 'Unit: C:\Program Files\Atlassian\Confluence\Home\plugins-cache\1458946862000plugin.7751525215183161508.newcode-macro-plugin-2.2.4.jar (1458946862000)'. 2016-03-26 01:06:56,151 ERROR [localhost-startStop-1] [atlassian.plugin.loaders.ScanningPluginLoader] deployPluginFromUnit Because of the following exception: com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:62) at com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer.transform(DefaultPluginTransformer.java:146) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.createOsgiPluginJar(OsgiPluginFactory.java:301) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:224) at com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:155) at com.atlassian.plugin.loaders.ScanningPluginLoader.loadAllPlugins(ScanningPluginLoader.java:89) at com.atlassian.plugin.loaders.ForwardingPluginLoader.loadAllPlugins(ForwardingPluginLoader.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy12.loadAllPlugins(Unknown Source) at com.atlassian.plugin.loaders.PermissionCheckingPluginLoader.loadAllPlugins(PermissionCheckingPluginLoader.java:24) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:250) at com.atlassian.confluence.plugin.ConfluencePluginManager.init(ConfluencePluginManager.java:123) at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:54) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Error parsing class file at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:66) at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.findUsedHostComponents(HostComponentSpringStage.java:194) at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:58) ... 30 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 18 at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:448) at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:369) at aQute.lib.osgi.Clazz.parseClassFileWithCollector(Clazz.java:359) at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:38) ... 32 more {preformat} Code macro Plugin 2.1.4 works fine with Confluence 5.4.4 as well as 5.5.7 here.

    Atlassian JIRA | 1 year ago | Stefan Hett
    com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes
  3. 0

    VGO server crashing

    GitHub | 2 years ago | dweer
    java.lang.ArrayIndexOutOfBoundsException: 0 at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_ 150819_a(SourceFile:34) at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_ 76672_e(SourceFile:121) at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_7582 3_a(AnvilChunkLoader.java:441) at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedRe adChunkFromNBT__Async(AnvilChunkLoader.java:154) at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk __Async(AnvilChunkLoader.java:124) at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage1 (ChunkIOProvider.java:20) at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage1 (ChunkIOProvider.java:12) at net.minecraftforge.common.util.AsynchronousExecutor$Task.ini t(AsynchronousExecutor.java:151) at net.minecraftforge.common.util.AsynchronousExecutor$Task.ini tAsync(AsynchronousExecutor.java:96) at net.minecraftforge.common.util.AsynchronousExecutor$Task.run (AsynchronousExecutor.java:86) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool Executor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:615)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Confirming message received from Ardulink's sendCustomMessage() through serial.read()

    Stack Overflow | 2 years ago
    java.lang.ArrayIndexOutOfBoundsException: 1024 at org.zu.ardulink.connection.serial.AbstractSerialConnection$SerialReader.run(AbstractSerialConnection.java:190)
  6. 0

    H2 database is corrupt suddenly after a huge number of records is inserted

    Google Groups | 2 years ago | Sourav Mandal
    java.lang.ArrayIndexOutOfBoundsException: 793" [50000-174] at org.h2.message.DbException.getJdbcSQLException(DbException.java:332 <http://h2database.com/html/source.html?file=org/h2/message/DbException.java&line=332&build=174>) at org.h2.message.DbException.get(DbException.java:161 at org.h2.message.DbException.convert(DbException.java:284 <http://h2database.com/html/source.html?file=org/h2/message/DbException.java&line=284&build=174>) at org.h2.table.RegularTable.removeRow(RegularTable.java:394 at org.h2.store.PageStore.redo(PageStore.java:1537 <http://h2database.com/html/source.html?file=org/h2/store/PageStore.java&line=1537&build=174>) at org.h2.store.PageStore.redoDelete(PageStore.java:1511 at org.h2.store.PageLog.recover(PageLog.java:334 <http://h2database.com/html/source.html?file=org/h2/store/PageLog.java&line=334&build=174>) at org.h2.store.PageStore.recover(PageStore.java:1371 at org.h2.store.PageStore.openExisting(PageStore.java:361 <http://h2database.com/html/source.html?file=org/h2/store/PageStore.java&line=361&build=174>) at org.h2.store.PageStore.open(PageStore.java:285 at org.h2.engine.Database.getPageStore(Database.java:2277 <http://h2database.com/html/source.html?file=org/h2/engine/Database.java&line=2277&build=174>) at org.h2.engine.Database.open(Database.java:610 at org.h2.engine.Database.openDatabase(Database.java:236 <http://h2database.com/html/source.html?file=org/h2/engine/Database.java&line=236&build=174>) at org.h2.engine.Database.<init>(Database.java:231 at org.h2.engine.Engine.openSession(Engine.java:56 <http://h2database.com/html/source.html?file=org/h2/engine/Engine.java&line=56&build=174>) at org.h2.engine.Engine.openSession(Engine.java:160 at org.h2.engine.Engine.createSessionAndValidate(Engine.java:139 <http://h2database.com/html/source.html?file=org/h2/engine/Engine.java&line=139&build=174>) at org.h2.engine.Engine.createSession(Engine.java:122 at org.h2.engine.Engine.createSession(Engine.java:28 <http://h2database.com/html/source.html?file=org/h2/engine/Engine.java&line=28&build=174>) at <http://h2database.com/html/source.html?file=org/h2/engine/SessionRemote.java&line=323&build=174>) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:105 <http://h2database.com/html/source.html?file=org/h2/jdbc/JdbcConnection.java&line=105&build=174>) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:90 at org.h2.Driver.connect(Driver.java:73 <http://h2database.com/html/source.html?file=org/h2/Driver.java&line=73&build=174>) at org.h2.server.web.WebServer.getConnection(WebServer.java:656 at org.h2.server.web.WebApp.login(WebApp.java:904 <http://h2database.com/html/source.html?file=org/h2/server/web/WebApp.java&line=904&build=174>) at org.h2.server.web.WebApp.process(WebApp.java:209 at org.h2.server.web.WebApp.processRequest(WebApp.java:168 <http://h2database.com/html/source.html?file=org/h2/server/web/WebApp.java&line=168&build=174>) at org.h2.server.web.WebThread.process(WebThread.java:138 at org.h2.server.web.WebThread.run(WebThread.java:94 <http://h2database.com/html/source.html?file=org/h2/server/web/WebThread.java&line=94&build=174>)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      18

      at aQute.lib.osgi.Clazz.parseClassFile()
    2. aQute
      Clazz.parseClassFileWithCollector
      1. aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:448)
      2. aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:369)
      3. aQute.lib.osgi.Clazz.parseClassFileWithCollector(Clazz.java:359)
      3 frames
    3. com.atlassian.plugin
      ForwardingPluginLoader.loadAllPlugins
      1. com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:38)
      2. com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.findUsedHostComponents(HostComponentSpringStage.java:194)
      3. com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:58)
      4. com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer.transform(DefaultPluginTransformer.java:146)
      5. com.atlassian.plugin.osgi.factory.OsgiPluginFactory.createOsgiPluginJar(OsgiPluginFactory.java:301)
      6. com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:224)
      7. com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:155)
      8. com.atlassian.plugin.loaders.ScanningPluginLoader.loadAllPlugins(ScanningPluginLoader.java:89)
      9. com.atlassian.plugin.loaders.ForwardingPluginLoader.loadAllPlugins(ForwardingPluginLoader.java:36)
      9 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    7. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    8. com.sun.proxy
      $Proxy12.loadAllPlugins
      1. com.sun.proxy.$Proxy12.loadAllPlugins(Unknown Source)
      1 frame
    9. com.atlassian.plugin
      DefaultPluginManager.init
      1. com.atlassian.plugin.loaders.PermissionCheckingPluginLoader.loadAllPlugins(PermissionCheckingPluginLoader.java:24)
      2. com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:250)
      2 frames
    10. com.atlassian.confluence
      PluginFrameworkContextListener.contextInitialized
      1. com.atlassian.confluence.plugin.ConfluencePluginManager.init(ConfluencePluginManager.java:123)
      2. com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:54)
      2 frames
    11. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      5 frames
    12. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      4. java.lang.Thread.run(Unknown Source)
      4 frames