It's all about the answers!

Ask a question

Baffling OSGI framework error - org.osgi.framework.BundleException


Andy Jewell (24225068) | asked Dec 30 '14, 7:53 p.m.
 HI. . . I'm not sure where the problem is with this but it's darn near impossible to diagnose because it only happens in a couple of jobs.  We have one Jenkins server which run one set of scripts (each build job uses a separate workspace from the same stream holding the build scripts).  The problem doesn't happen locally.  The only hint I've received about this error is that the client caller could have a static initialization block which is somehow blowing up and then blows up again when trying to load a BundleException.  I suspect that where that is happening is in TeamPlatform.  Here is my stacktrace:

15:46:58.653 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
15:46:58.653 [ERROR] [org.gradle.BuildExceptionReporter] 
15:46:58.653 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
15:46:58.654 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':createwi'.
15:46:58.654 [ERROR] [org.gradle.BuildExceptionReporter] > org/osgi/framework/BundleException
15:46:58.655 [ERROR] [org.gradle.BuildExceptionReporter] 
15:46:58.655 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
15:46:58.660 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':createwi'.
15:46:58.661 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
15:46:58.661 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
15:46:58.661 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
15:46:58.662 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
15:46:58.662 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
15:46:58.662 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
15:46:58.662 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
15:46:58.663 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
15:46:58.663 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
15:46:58.663 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)
15:46:58.664 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
15:46:58.664 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
15:46:58.664 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
15:46:58.665 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
15:46:58.665 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
15:46:58.665 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
15:46:58.665 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
15:46:58.666 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
15:46:58.666 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)
15:46:58.666 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
15:46:58.667 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
15:46:58.667 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)
15:46:58.671 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
15:46:58.671 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
15:46:58.671 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
15:46:58.672 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
15:46:58.672 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
15:46:58.672 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
15:46:58.673 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
15:46:58.673 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
15:46:58.673 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
15:46:58.673 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
15:46:58.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
15:46:58.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
15:46:58.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
15:46:58.675 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
15:46:58.681 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
15:46:58.681 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
15:46:58.682 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
15:46:58.682 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
15:46:58.682 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33)
15:46:58.683 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
15:46:58.683 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
15:46:58.683 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
15:46:58.684 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
15:46:58.684 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NoClassDefFoundError: org/osgi/framework/BundleException
15:46:58.684 [ERROR] [org.gradle.BuildExceptionReporter] at com.ibm.team.repository.common.internal.util.StandaloneExtensionRegistry$1.translate(StandaloneExtensionRegistry.java:87)
15:46:58.684 [ERROR] [org.gradle.BuildExceptionReporter] at org.eclipse.core.internal.registry.ExtensionRegistry.translate(ExtensionRegistry.java:862)
15:46:58.685 [ERROR] [org.gradle.BuildExceptionReporter] at org.eclipse.core.internal.registry.ExtensionsParser.translate(ExtensionsParser.java:673)
15:46:58.685 [ERROR] [org.gradle.BuildExceptionReporter] at org.eclipse.core.internal.registry.ExtensionsParser.parseExtensionPointAttributes(ExtensionsParser.java:539)
15:46:58.685 [ERROR] [org.gradle.BuildExceptionReporter] at org.eclipse.core.internal.registry.ExtensionsParser.handleBundleState(ExtensionsParser.java:349)
15:46:58.686 [ERROR] [org.gradle.BuildExceptionReporter] at org.eclipse.core.internal.registry.ExtensionsParser.startElement(ExtensionsParser.java:606)
15:46:58.686 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
15:46:58.686 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
15:46:58.687 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:355)
15:46:58.687 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2778)
15:46:58.687 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
15:46:58.688 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
15:46:58.688 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
15:46:58.688 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
15:46:58.688 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
15:46:58.689 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
15:46:58.695 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
15:46:58.695 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
15:46:58.695 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333)
15:46:58.696 [ERROR] [org.gradle.BuildExceptionReporter] at org.eclipse.core.internal.registry.ExtensionsParser.parseManifest(ExtensionsParser.java:405)
15:46:58.696 [ERROR] [org.gradle.BuildExceptionReporter] at org.eclipse.core.internal.registry.ExtensionRegistry.addContribution(ExtensionRegistry.java:1061)
15:46:58.696 [ERROR] [org.gradle.BuildExceptionReporter] at com.ibm.team.repository.common.internal.util.StandaloneExtensionRegistry.processPlugin(StandaloneExtensionRegistry.java:139)
15:46:58.697 [ERROR] [org.gradle.BuildExceptionReporter] at com.ibm.team.repository.common.internal.util.StandaloneExtensionRegistry.<init>(StandaloneExtensionRegistry.java:106)
15:46:58.697 [ERROR] [org.gradle.BuildExceptionReporter] at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.initializeRegistry(InternalTeamPlatform.java:248)
15:46:58.697 [ERROR] [org.gradle.BuildExceptionReporter] at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.start(InternalTeamPlatform.java:106)
15:46:58.698 [ERROR] [org.gradle.BuildExceptionReporter] at com.ibm.team.repository.client.TeamPlatform.startup(TeamPlatform.java:50)
15:46:58.698 [ERROR] [org.gradle.BuildExceptionReporter] at com.ibm.team.repository.client.TeamPlatform$startup.call(Unknown Source)
15:46:58.698 [ERROR] [org.gradle.BuildExceptionReporter] at DeplItemPusher.pushDeployItems(DeplItemPusher.groovy:44)
15:46:58.698 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
15:46:58.699 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)
15:46:58.699 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
15:46:58.699 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
15:46:58.700 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579)
15:46:58.700 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562)
15:46:58.700 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
15:46:58.701 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
15:46:58.701 [ERROR] [org.gradle.BuildExceptionReporter] ... 44 more
15:46:58.701 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.ClassNotFoundException: org.osgi.framework.BundleException

Please note - I'm 90% sure this isn't a classpath issue both for the reason I've noted above (many build processes using the same configuration and same scripts with no similar failures) and for the fact that I think the real failure here is a NoClassDefFoundError and not the java.lang.ClassNotFoundException.

I know it's not much to go on, but I'm hoping somebody else has stumbled across this OSGI error.  Incidentally, the point of failure (DeplItemPusher.groovy:44) is simply the platform startup:

TeamPlatform.startup()

Any ideas??

Be the first one to answer this question!


Register or to post your answer.