Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 226420

Summary: Installation errors with TPTP
Product: [Eclipse Project] Equinox Reporter: Joel Cayne <jcayne>
Component: p2Assignee: Tim Mok <timothym>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: dj.houghton, eclipse, john.arthorne, pascal, tjwatson
Version: 3.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
error message none

Description Joel Cayne CLA 2008-04-10 00:14:41 EDT
Download Eclipse SDK 3.4 M6 and install TPTP M6 dependencies (EMF, XSD, GEF, DTP, WTP, and BIRT) or Download the JEE EPP nightly build.

Add an update site in software updates that points to http://download.eclipse.org/tptp/updates/ganymede/site.xml
Select TPTP Reporting with BIRT
The errors listed below are reported, when I selected the four projects (TPTP Platform Project, TPTP Monitoring Tools Project, TPTP Testing Tools Project, and TPTP Tracing and Profiling Project and then installed TPTP Log and Trace Anaylzer or TPTP Project Examples an error of "ava.lang.IllegalStateException: BundleContext is no longer valid" is encountered.

Install download errors are reported:
java.lang.SecurityException: A file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\signatureFile42480.jar" has been removed from the jar: org/eclipse/tptp/monitoring/report/birt/ui/internal/ReportHTMLLgWizardSelectionPage$2.class
	at org.eclipse.osgi.internal.signedcontent.SignedBundleFile.getEntry(SignedBundleFile.java:110)
	at org.eclipse.osgi.internal.signedcontent.SignedContentImpl$SignedContentEntryImpl.verify(SignedContentImpl.java:158)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verifyContent(SignatureVerifier.java:81)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verify(SignatureVerifier.java:55)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.close(SignatureVerifier.java:93)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.reportStatus(SimpleArtifactRepository.java:744)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:439)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:119)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:427)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:64)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.core.jobs 4 2 2008-04-09 21:02:53.546
!MESSAGE An internal error occurred during: "Install download 0".
!STACK 0
java.lang.SecurityException: A file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\signatureFile42527.jar" has been removed from the jar: css/ng400.gif
	at org.eclipse.osgi.internal.signedcontent.SignedBundleFile.getEntry(SignedBundleFile.java:110)
	at org.eclipse.osgi.internal.signedcontent.SignedContentImpl$SignedContentEntryImpl.verify(SignedContentImpl.java:158)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verifyContent(SignatureVerifier.java:81)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verify(SignatureVerifier.java:55)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.close(SignatureVerifier.java:93)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.reportStatus(SimpleArtifactRepository.java:744)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:439)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:119)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:427)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:64)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.core.jobs 4 2 2008-04-09 21:03:20.921
!MESSAGE An internal error occurred during: "Install download 3".
!STACK 0
java.lang.SecurityException: A file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\signatureFile42555.jar" has been removed from the jar: css/ng400.gif
	at org.eclipse.osgi.internal.signedcontent.SignedBundleFile.getEntry(SignedBundleFile.java:110)
	at org.eclipse.osgi.internal.signedcontent.SignedContentImpl$SignedContentEntryImpl.verify(SignedContentImpl.java:158)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verifyContent(SignatureVerifier.java:81)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verify(SignatureVerifier.java:55)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.close(SignatureVerifier.java:93)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.reportStatus(SimpleArtifactRepository.java:744)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:439)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:119)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:427)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:64)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.core.jobs 4 2 2008-04-09 21:03:58.906
!MESSAGE An internal error occurred during: "Install download 1".
!STACK 0
java.lang.SecurityException: A file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\signatureFile42605.jar" has been removed from the jar: templates/StatReport.rptdesign
	at org.eclipse.osgi.internal.signedcontent.SignedBundleFile.getEntry(SignedBundleFile.java:110)
	at org.eclipse.osgi.internal.signedcontent.SignedContentImpl$SignedContentEntryImpl.verify(SignedContentImpl.java:158)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verifyContent(SignatureVerifier.java:81)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verify(SignatureVerifier.java:55)
	at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.close(SignatureVerifier.java:93)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.reportStatus(SimpleArtifactRepository.java:744)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:439)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:119)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:427)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:64)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.equinox.p2.engine 4 8 2008-04-09 21:03:59.187
!MESSAGE An error occurred while collecting items to be installed
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.187
!MESSAGE No repository found containing: org.eclipse.tptp.monitoring.report.birt/osgi.bundle/4.3.0.v200802290100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.203
!MESSAGE No repository found containing: org.eclipse.tptp.monitoring.report.birt.doc.user/osgi.bundle/4.5.0.v200802291616
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.203
!MESSAGE No repository found containing: org.eclipse.tptp.test.report.birt.doc.user/osgi.bundle/4.5.0.v200803120938
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.218
!MESSAGE No repository found containing: org.eclipse.tptp.platform.statistical.report.birt/osgi.bundle/4.5.0.v200803232151
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.218
!MESSAGE No repository found containing: org.eclipse.tptp.monitoring.doc.user/org.eclipse.update.feature/4.4.0.v200802291616-41Ag7w311914241211
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.218
!MESSAGE No repository found containing: org.eclipse.tptp.monitoring.instrumentation.ui/osgi.bundle/4.4.100.v200803120938
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.234
!MESSAGE No repository found containing: org.eclipse.hyades.test.doc.user/osgi.bundle/4.3.100.v200803242001
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.265
!MESSAGE No repository found containing: org.eclipse.tptp.platform.instrumentation.ui/osgi.bundle/4.3.100.v200803232151
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.265
!MESSAGE No repository found containing: org.eclipse.tptp.platform.agentcontroller/osgi.bundle/4.2.200.v200804030100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.265
!MESSAGE No repository found containing: org.eclipse.tptp.trace.report.birt.ui/osgi.bundle/4.5.0.v200802280100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.265
!MESSAGE No repository found containing: org.apache.batik.xml/osgi.bundle/1.6.0.v200803061811
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.265
!MESSAGE No repository found containing: org.eclipse.tptp.monitoring.report.birt/org.eclipse.update.feature/4.5.0.v200802291616-7B7B-9oA55S5AAU6C6A
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.265
!MESSAGE No repository found containing: org.apache.batik.svggen/osgi.bundle/1.6.0.v200803061811
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.281
!MESSAGE No repository found containing: org.eclipse.tptp.platform.analysis/osgi.bundle/4.1.300.v200801190400
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.281
!MESSAGE No repository found containing: org.eclipse.tptp.test.report.birt/osgi.bundle/4.5.0.v200803150100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.281
!MESSAGE No repository found containing: org.eclipse.tptp.platform.report.birt/org.eclipse.update.feature/4.3.200.v200802291616-7877_78s733I375J3833
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.281
!MESSAGE No repository found containing: org.eclipse.tptp.platform.iac.administrator/osgi.bundle/4.4.100.v200804011409
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.281
!MESSAGE No repository found containing: org.w3c.css.sac/osgi.bundle/1.3.0.v200803081811
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.281
!MESSAGE No repository found containing: org.eclipse.tptp.trace.runtime/org.eclipse.update.feature/4.3.100.v200802291616-7F78CE7VXNA6M-BKOmZSZfWXaM4
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.296
!MESSAGE No repository found containing: org.eclipse.tptp.test.tools/org.eclipse.update.feature/4.3.200.v200803120938-7J7J_7_5cMYfOH0fJhoXRMTNUNO
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.296
!MESSAGE No repository found containing: org.eclipse.tptp.trace.arm/org.eclipse.update.feature/4.2.100.v200802291616-782_78s733I377K3533
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.312
!MESSAGE No repository found containing: org.eclipse.tptp.test.tools/osgi.bundle/4.2.100.v200801190400
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.312
!MESSAGE No repository found containing: org.opengroup.arm/osgi.bundle/4.0.100.v200802290100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.312
!MESSAGE No repository found containing: org.eclipse.hyades.test.tools.core/osgi.bundle/4.4.100.v200804011409
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.312
!MESSAGE No repository found containing: org.eclipse.tptp.test.recorders.url.doc.user/osgi.bundle/4.5.0.v200803120938
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.312
!MESSAGE No repository found containing: org.eclipse.tptp.trace.jvmti/org.eclipse.update.feature/4.2.100.v200802291616-438Y7w311914382468
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.312
!MESSAGE No repository found containing: org.eclipse.tptp.monitoring.managedagent.doc.user/osgi.bundle/4.3.200.v200803270100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.312
!MESSAGE No repository found containing: org.eclipse.hyades.trace.sample/osgi.bundle/4.1.301.v200802290100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.328
!MESSAGE No repository found containing: org.eclipse.hyades.test.ui.extensions/osgi.bundle/4.4.0.v200801220400
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.328
!MESSAGE No repository found containing: org.eclipse.tptp.platform.jakarta.log4j/org.eclipse.update.feature/4.4.0.v200802291616-117B7w311914172922
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.328
!MESSAGE No repository found containing: org.apache.batik.pdf/osgi.bundle/1.6.0.v200803061811
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.328
!MESSAGE No repository found containing: org.eclipse.tptp.platform.batik.pdf/org.eclipse.update.feature/4.4.0.v200802291616-15-7w311914172922
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.328
!MESSAGE No repository found containing: org.eclipse.tptp.platform.collection.framework/osgi.bundle/4.2.200.v200802290100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.328
!MESSAGE No repository found containing: org.eclipse.tptp.platform.statistical.report.birt.doc.user/osgi.bundle/4.5.0.v200802291616
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.328
!MESSAGE No repository found containing: org.eclipse.tptp.platform.probekit/osgi.bundle/4.1.300.v200801190400
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.343
!MESSAGE No repository found containing: org.eclipse.tptp.monitoring.instrumentation.doc.user/osgi.bundle/4.3.100.v200803232151
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.343
!MESSAGE No repository found containing: org.eclipse.tptp.platform.report/org.eclipse.update.feature/4.2.200.v200802291616-7B5Dq9oA55S5_6N5G55
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.343
!MESSAGE No repository found containing: org.eclipse.tptp.platform.analysis.codereview.java.rules/osgi.bundle/4.4.100.v200802290100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.343
!MESSAGE No repository found containing: org.eclipse.hyades.test.tools.ui/osgi.bundle/4.5.0.v200803150100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.343
!MESSAGE No repository found containing: org.eclipse.hyades.probekit.doc.user/osgi.bundle/4.2.200.v200802290100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.343
!MESSAGE No repository found containing: org.eclipse.tptp.platform.jvmti/org.eclipse.update.feature/4.3.100.v200802291616-7877_78s733I3_585434
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.343
!MESSAGE No repository found containing: org.eclipse.tptp.monitoring.report.birt.ui/osgi.bundle/4.5.0.v200802280100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.359
!MESSAGE No repository found containing: org.eclipse.tptp.test.tools.junit.plugin.doc.user/osgi.bundle/4.5.0.v200803120938
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.359
!MESSAGE No repository found containing: org.eclipse.tptp.platform.report/osgi.bundle/4.1.300.v200801190400
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.359
!MESSAGE No repository found containing: org.eclipse.tptp.platform.instrumentation.annotation/osgi.bundle/4.5.0.v200803201201
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.359
!MESSAGE No repository found containing: org.apache.batik.util.gui/osgi.bundle/1.6.0.v200803061811
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.359
!MESSAGE No repository found containing: org.eclipse.tptp.monitoring.managedagent.jmx/osgi.bundle/4.4.1.v200802290100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.375
!MESSAGE No repository found containing: org.eclipse.tptp.trace.report.birt/osgi.bundle/4.5.0.v200802290100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.375
!MESSAGE No repository found containing: org.eclipse.tptp.test.report.birt.ui/osgi.bundle/4.5.0.v200802280100
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.375
!MESSAGE No repository found containing: org.w3c.dom.svg/osgi.bundle/1.1.0.v200803081811
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.375
!MESSAGE No repository found containing: org.eclipse.tptp.test.runtime/org.eclipse.update.feature/4.3.200.v200802291616-7F7_EAU7SnbjlBGPQ2r2KiW3y2Am
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.375
!MESSAGE No repository found containing: org.eclipse.tptp.test/osgi.bundle/4.2.100.v200801190400
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.375
!MESSAGE No repository found containing: org.eclipse.tptp.platform.statistical.ui/org.eclipse.update.feature/4.1.400.v200802291616-783Ag8s733I377E3533
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.390
!MESSAGE No repository found containing: org.eclipse.tptp.trace.arm.doc.user/osgi.bundle/4.3.1.v200803232151
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-04-09 21:03:59.390
!MESSAGE No repository found containing: org.eclipse.tptp.platform.runtime/org.eclipse.update.feature/4.5.0.v200803191201-887xEUp9BOMz0xrMnpDS0Nyw9CBU
Comment 1 DJ Houghton CLA 2008-04-10 11:30:41 EDT
I tried this scenerio with N20080408-2000 + the reconciler change for bug 224244 + the fix for the NPE when opening the UI and I was able to install everything.

I got a few timeouts when trying to install the original 4 features but they eventually installed ok. Then I installed the TPTP Project Examples feature and restarted my Eclipse. On restart I saw the following error in my log and I got the problems described by bug 226543 but according to the Software Updates dialog, all 5 features were installed ok.


osgi> !SESSION 2008-04-10 10:54:22.341
-----------------------------------------------
eclipse.buildId=N20080408-2000
java.version=1.5.0_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86 -console -consoleLog

!ENTRY org.eclipse.equinox.p2.director 2 0 2008-04-10 10:54:33.637
!MESSAGE Problems resolving provisioning plan.
!SUBENTRY 1 org.eclipse.equinox.p2.director 2 0 2008-04-10 10:54:33.647
!MESSAGE No IU found to satisfy dependency from
org.eclipse.hyades.resources.database 4.2.201.v200803140100 to
requiredCapability: osgi.bundle/org.ecl
ipse.tptp.platform.models.lta/[4.5.0,5.0.0).
Comment 2 DJ Houghton CLA 2008-04-10 13:27:18 EDT
Tom, have you seen these type of signature verification errors before?
Comment 3 Thomas Watson CLA 2008-04-10 14:42:39 EDT
That message does not make sense.  The parameters are reversed in the error message.  The error message should be

A file "templates/StatReport.rptdesign" has been removed
from the jar: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\signatureFile42605.jar

I opened bug 226576 to address the incorrect message and the throwing of SecurityException instead of InvalidContentException.

This error message should occur if there was a file in the jar when it was signed but it somehow got removed after it was signed.  This would indicate a tempering of the jar.  Unfortunately we do not know what jar it thinks is corrupted because p2 uses temporary files to store the bits being downloaded so it is difficult to know what jar is corrupt.  The it does not help that the verify() method threw an unexpected SecurityException which is a runtime exception that got propagated up the stack.  With the fix to bug 226576 we should get a better understanding of what went wrong and what jar is corrupted.
Comment 4 Michael Scharf CLA 2008-04-12 09:17:24 EDT
I doppped a few former extension locations into the drop-in directory and I get this error (using SDK 3.4 M6a):

java.lang.IllegalStateException: BundleContext is no longer valid
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.checkValid(BundleContextImpl.java:1337)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getDataFile(BundleContextImpl.java:965)
at org.eclipse.equinox.internal.p2.extensionlocation.ExtensionLocationMetadataRepository.<init>(ExtensionLocationMetadataRepository.java:37)
at org.eclipse.equinox.internal.p2.extensionlocation.ExtensionLocationMetadataRepositoryFactory.load(ExtensionLocationMetadataRepositoryFactory.java:16)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:382)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:358)
at org.eclipse.equinox.internal.provisional.p2.ui.query.QueryableMetadataRepositoryManager.query(QueryableMetadataRepositoryManager.java:89)
at org.eclipse.equinox.internal.p2.ui.model.RemoteQueriedElement.fetchChildren(RemoteQueriedElement.java:56)
at org.eclipse.equinox.internal.p2.ui.model.RemoteQueriedElement.fetchDeferredChildren(RemoteQueriedElement.java:35)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


p2 does not install any of the drop ins. There is no further hint on what is going on.
Comment 5 Pascal Rapicault CLA 2008-04-12 15:00:35 EDT
Michael, would it be possible that some these extensions locations contain former versions of the p2 plug-ins? 
Also I'm not sure how this relates to the initial bug and it may be good to open a new bug.
Comment 6 Pascal Rapicault CLA 2008-04-14 22:30:24 EDT
Tim, have you already seen this problem?
Comment 7 Tim Mok CLA 2008-04-16 11:49:33 EDT
(In reply to comment #6)
> Tim, have you already seen this problem?
> 

I debugged through it and found out what's happening. The content seems to be downloaded correctly (same files when comparing files download with FireFox and ProvAdminUI, compared with a diff utility). The OSGi signed content checker (SignedContentEntry#verify()) says the content is not good because of missing entries, which is true after inspecting the files. However, I tried out the Java jarsigner and it says the content is verified.

These are coming from feature jars so I'm not sure how feature jars are supposed to be set up. The feature jars don't have the correct signing information or maybe OSGi is being very strict with the verification.
Comment 8 Thomas Watson CLA 2008-04-16 12:02:59 EDT
Tim, do you know what jar is flagged as corrupted?  It concerns me that we have files that existed in a jar at signing time but then the file got removed somewhere along the way to the update site.  To me that is a real corruption.
Comment 9 Tim Mok CLA 2008-04-16 13:00:14 EDT
org.eclipse.tptp.monitoring.report.birt.doc.user_4.5.0.v200802291616.jar
org.eclipse.tptp.monitoring.report.birt_4.3.0.v200802290100.jar

Those are two of the files that were found to be corrupted during my testing. I don't have a full list, though.
Comment 10 Thomas Watson CLA 2008-04-17 09:01:47 EDT
Can anyone find out why these two jars got files removed from them?  The fix in  bug 226576 should make the error message more meaningful.  Aside from that I don't see how this is a p2 bug unless p2 somehow removed the files to corrupt the jar (unlikely IMO).
Comment 11 Tim Mok CLA 2008-05-02 11:39:22 EDT
Created attachment 98453 [details]
error message

I've attached the error message I get with the I20080502-0100 build. This is a bit of a better error message that lists the artifacts that didn't pass signature verification. These are all from installing TPTP Reporting with BIRT. The other features installed without a problem.

Oddly, I did manage to install TPTP Reporting with BIRT after a second attempt.
Comment 12 Joel Cayne CLA 2008-05-02 11:44:35 EDT
Which version of TPTP are you using? I have made a change to the order of our packaging which will be in the M7 Ganymede site and that may fix the error. Your explanation of the error has been useful in making that change.
Comment 13 Tim Mok CLA 2008-05-02 11:51:31 EDT
(In reply to comment #12)
> Which version of TPTP are you using? I have made a change to the order of our
> packaging which will be in the M7 Ganymede site and that may fix the error.
> Your explanation of the error has been useful in making that change.
> 

I added these two sites to p2:
http://download.eclipse.org/tptp/updates/ganymede/site.xml
http://download.eclipse.org/releases/ganymede/

I checked off TPTP Reporting with BIRT from the TPTP update site and let p2 resolve any dependencies.
Comment 14 Joel Cayne CLA 2008-05-08 16:28:32 EDT
I have updated the Ganymede update site to use the M7 driver which I think may have this problem fixed (http://download.eclipse.org/releases/ganymede/staging/) as I didn't see any errors when using p2 and selecting all TPTP options.
Comment 15 John Arthorne CLA 2008-06-27 17:03:35 EDT
Closing due to comment #14 suggesting this is no longer an issue.