Free Support Forum - aspose.com

Missing content in gridweb jar

We upgraded our com.aspose.cells from 8.6.2 to 18.6. The osgi bundles like the one for “com.aspose.gridweb” is located in a target platform (for local eclipse development), that’s converted into a p2 repository for the maven build. Now the maven build fails with the following error message:

[ERROR] An error occurred while transferring artifact canonical: osgi.bundle,com.aspose.gridweb,18.6.0 from repository file:/C:/knowis/workspaces/bilki-dailyintegration/de.knowis.isf.rep.bl.vorlage.pptx/../isf-tp-p2/eclipse-362:
[ERROR]    Problems downloading artifact: osgi.bundle,com.aspose.gridweb,18.6.0.:
[ERROR]       File has invalid content:C:\Users\fbu\DOCUME~1\MOBAXT~1\slash\tmp\signatureFile674394587296635555.jar:
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.font.zip
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.StyleObject.ConditionStyle.IconImages.zip
[ERROR]          Invalid content:com/aspose/cells/resources/OoxmlTemplate.zip
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.chartstyles.zip
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.Theme1.dat
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.NoImage.png
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.geo_1.ttf
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.PDF_A_DestOutputData.dat
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.Book1.xls
[ERROR]          Invalid content:com/aspose/cells/resources/typefaces.zip
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.Theme2007.dat
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.OleObject.dat
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.PatternMasks.dat
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.AsposeXmlCharType.bin
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.License.BlackList.xml
[ERROR]          Invalid content:com/aspose/cells/resources/Aspose.Cells.wa.bin
[ERROR] Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,com.aspose.gridweb,18.6.0 into the local Maven repository.See log output for details. A file "com/aspose/cells/resources/Aspose.Cells.font.zip" has been removed from the jar: C:\Users\fbu\DOCUME~1\MOBAXT~1\slash\tmp\signatureFile674394587296635555.jar -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,com.aspose.gridweb,18.6.0 into the local Maven repository.See log output for details.
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:122)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,com.aspose.gridweb,18.6.0 into the local Maven repository.See log output for details.
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadArtifact (MirroringArtifactProvider.java:218)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeOneFormatLocallyAvailable (MirroringArtifactProvider.java:203)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeLocallyAvailable (MirroringArtifactProvider.java:174)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.getArtifactFile (MirroringArtifactProvider.java:118)
    at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider.getArtifactFile (CompositeArtifactProvider.java:70)
    at org.eclipse.tycho.p2.target.TargetPlatformBaseImpl.getLocalArtifactFile (TargetPlatformBaseImpl.java:93)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.addUnit (P2ResolverImpl.java:251)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.toResolutionResult (P2ResolverImpl.java:214)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:206)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:113)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.doResolveDependencies (P2DependencyResolver.java:360)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.resolveDependencies (P2DependencyResolver.java:333)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:117)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:77)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:267)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.eclipse.osgi.signedcontent.InvalidContentException: A file "com/aspose/cells/resources/Aspose.Cells.font.zip" has been removed from the jar: C:\Users\fbu\DOCUME~1\MOBAXT~1\slash\tmp\signatureFile674394587296635555.jar
    at org.eclipse.osgi.internal.signedcontent.SignedContentImpl$SignedContentEntryImpl.verify (SignedContentImpl.java:169)
    at org.eclipse.osgi.internal.signedcontent.SignedContentFile.getSignedEntries (SignedContentFile.java:51)
    at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verifyContent (SignatureVerifier.java:89)
    at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verify (SignatureVerifier.java:60)
    at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.close (SignatureVerifier.java:107)
    at org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStep.close (ProcessingStep.java:85)
    at org.eclipse.equinox.internal.p2.artifact.processors.md5.MD5Verifier.close (MD5Verifier.java:83)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.reportStatus (SimpleArtifactRepository.java:1184)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact (SimpleArtifactRepository.java:591)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact (SimpleArtifactRepository.java:724)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromOneMirror (RepositoryArtifactProvider.java:209)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyMirror (RepositoryArtifactProvider.java:192)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.access$1 (RepositoryArtifactProvider.java:187)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider$1.perform (RepositoryArtifactProvider.java:167)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact (SimpleArtifactRepository.java:708)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifacts (SimpleArtifactRepository.java:779)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyChildRepository (RepositoryArtifactProvider.java:179)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyFormatAvailableInRepository (RepositoryArtifactProvider.java:149)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnySource (RepositoryArtifactProvider.java:135)
    at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProviderBaseImpl.getArtifact (CompositeArtifactProviderBaseImpl.java:50)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadCanonicalArtifact (MirroringArtifactProvider.java:236)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadMostSpecificNeededFormatOfArtifact (MirroringArtifactProvider.java:229)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadArtifact (MirroringArtifactProvider.java:214)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeOneFormatLocallyAvailable (MirroringArtifactProvider.java:203)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeLocallyAvailable (MirroringArtifactProvider.java:174)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.getArtifactFile (MirroringArtifactProvider.java:118)
    at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider.getArtifactFile (CompositeArtifactProvider.java:70)
    at org.eclipse.tycho.p2.target.TargetPlatformBaseImpl.getLocalArtifactFile (TargetPlatformBaseImpl.java:93)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.addUnit (P2ResolverImpl.java:251)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.toResolutionResult (P2ResolverImpl.java:214)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:206)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:113)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.doResolveDependencies (P2DependencyResolver.java:360)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.resolveDependencies (P2DependencyResolver.java:333)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:117)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:77)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:267)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.lang.SecurityException: A file "com/aspose/cells/resources/Aspose.Cells.font.zip" has been removed from the jar: C:\Users\fbu\DOCUME~1\MOBAXT~1\slash\tmp\signatureFile674394587296635555.jar
    at org.eclipse.osgi.internal.signedcontent.SignedBundleFile.getEntry (SignedBundleFile.java:72)
    at org.eclipse.osgi.internal.signedcontent.SignedContentImpl$SignedContentEntryImpl.verify (SignedContentImpl.java:164)
    at org.eclipse.osgi.internal.signedcontent.SignedContentFile.getSignedEntries (SignedContentFile.java:51)
    at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verifyContent (SignatureVerifier.java:89)
    at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verify (SignatureVerifier.java:60)
    at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.close (SignatureVerifier.java:107)
    at org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStep.close (ProcessingStep.java:85)
    at org.eclipse.equinox.internal.p2.artifact.processors.md5.MD5Verifier.close (MD5Verifier.java:83)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.reportStatus (SimpleArtifactRepository.java:1184)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact (SimpleArtifactRepository.java:591)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact (SimpleArtifactRepository.java:724)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromOneMirror (RepositoryArtifactProvider.java:209)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyMirror (RepositoryArtifactProvider.java:192)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.access$1 (RepositoryArtifactProvider.java:187)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider$1.perform (RepositoryArtifactProvider.java:167)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact (SimpleArtifactRepository.java:708)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifacts (SimpleArtifactRepository.java:779)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyChildRepository (RepositoryArtifactProvider.java:179)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyFormatAvailableInRepository (RepositoryArtifactProvider.java:149)
    at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnySource (RepositoryArtifactProvider.java:135)
    at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProviderBaseImpl.getArtifact (CompositeArtifactProviderBaseImpl.java:50)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadCanonicalArtifact (MirroringArtifactProvider.java:236)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadMostSpecificNeededFormatOfArtifact (MirroringArtifactProvider.java:229)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadArtifact (MirroringArtifactProvider.java:214)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeOneFormatLocallyAvailable (MirroringArtifactProvider.java:203)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeLocallyAvailable (MirroringArtifactProvider.java:174)
    at org.eclipse.tycho.repository.local.MirroringArtifactProvider.getArtifactFile (MirroringArtifactProvider.java:118)
    at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider.getArtifactFile (CompositeArtifactProvider.java:70)
    at org.eclipse.tycho.p2.target.TargetPlatformBaseImpl.getLocalArtifactFile (TargetPlatformBaseImpl.java:93)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.addUnit (P2ResolverImpl.java:251)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.toResolutionResult (P2ResolverImpl.java:214)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:206)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:113)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.doResolveDependencies (P2DependencyResolver.java:360)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.resolveDependencies (P2DependencyResolver.java:333)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:117)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:77)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:267)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

We are using tycho 0.22.0 for building our bundles.

Update
As a temporary workaround we added the “resources” folder from the com.aspose.cells jar into the gridweb jar. Now the maven build doesn’t fail.

@fbu,

Thanks for your query.

We have reviewed the stack trace and need more details to identify the issue. Send us the sample maven eclipse project along with the pom.xml file. Ensure that this sample project compiles without any error and also if possible remove the unnecessary code which is not required for re-producing the problem.

As for the time being you have managed by copying the resources manually, so let it be like this until we analyze the problem and provide our feedback.

I’m sorry my answer is so late. I wanted to create the example project with the current version, but fortunately I can’t reproduce the error. So please see this error as resolved.

@fbu,

Good to know that your issue is sorted out. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.