[jbosstools-issues] [JBoss JIRA] (JBIDE-23811) ZipException in CDICoreBuilder when indexing some Maven artifacts

Aurélien Pupier (JIRA) issues at jboss.org
Thu Feb 23 09:35:00 EST 2017


    [ https://issues.jboss.org/browse/JBIDE-23811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13368217#comment-13368217 ] 

Aurélien Pupier commented on JBIDE-23811:
-----------------------------------------

By putting a breakpoint on ZipException, I caught that too:

{noformat}
Thread [ModalContext] (Suspended (exception ZipException))	
	owns: ZipFile  (id=3964)	
	owns: InputStreamReader  (id=3965)	
	ZipFile.access$1400(long, long, long, byte[], int, int) line: 60	
	ZipFile$ZipFileInputStream.read(byte[], int, int) line: 717	
	ZipFile$ZipFileInflaterInputStream.fill() line: 419	
	ZipFile$ZipFileInflaterInputStream(InflaterInputStream).read(byte[], int, int) line: 158	
	StreamDecoder.readBytes() line: 284	
	StreamDecoder.implRead(char[], int, int) line: 326	
	StreamDecoder.read(char[], int, int) line: 178	
	InputStreamReader.read(char[], int, int) line: 184	
	BufferedReader.fill() line: 161	
	BufferedReader.read() line: 182	
	Util.getInputStreamAsCharArray(InputStream, int, String) line: 588	
	ManifestAnalyzer.analyzeManifestContents(InputStream) line: 43	
	ClasspathEntry.getCalledFileNames(IPath) line: 984	
	ClasspathEntry.resolvedChainedLibraries(IPath, HashSet, ArrayList) line: 940	
	ClasspathEntry.resolvedChainedLibraries(IPath) line: 927	
	JavaModelManager.getNonChainingJarsCache() line: 3319	
	JavaModelManager.getClasspathListCache(String) line: 3330	
	JavaModelManager.saveClasspathListCache(String) line: 4163	
	JavaModelManager.saving(ISaveContext) line: 4431	
	SaveManager.executeLifecycle(int, ISaveParticipant, SaveContext) line: 389	
	SaveManager$1.run() line: 198	
	SafeRunner.run(ISafeRunnable) line: 42	
	SaveManager.broadcastLifecycle(int, Map<String,SaveContext>, MultiStatus, IProgressMonitor) line: 201	
	SaveManager.save(int, boolean, Project, IProgressMonitor) line: 1186	
	Workspace.save(boolean, boolean, IProgressMonitor) line: 2283	
	IDEWorkbenchAdvisor$4.run(IProgressMonitor) line: 456	
	ModalContext$ModalContextThread.run() line: 119	

{noformat}

which is affecting the same aries jar. i will attach the one that i have in my local repo in case it is corrupted.

> ZipException in CDICoreBuilder when indexing some Maven artifacts
> -----------------------------------------------------------------
>
>                 Key: JBIDE-23811
>                 URL: https://issues.jboss.org/browse/JBIDE-23811
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi
>            Reporter: Aurélien Pupier
>            Assignee: Jeff MAURY
>             Fix For: 4.4.4.AM1
>
>         Attachments: org.apache.aries.blueprint.core-1.7.1.jar
>
>
> it would be nice to provide more information in log such as the classes in inspection by CDI Core Builder.
> Also if there are some issues with those jars, please report bugs to them.
> {noformat}
> !ENTRY org.jboss.tools.common.core 4 0 2017-01-17 11:17:20.815
> !MESSAGE invalid LOC header (bad signature)
> !STACK 0
> java.util.zip.ZipException: invalid LOC header (bad signature)
> 	at java.util.zip.ZipFile.read(Native Method)
> 	at java.util.zip.ZipFile.access$1400(ZipFile.java:60)
> 	at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)
> 	at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)
> 	at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
> 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
> 	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
> 	at java.io.DataInputStream.readFully(DataInputStream.java:195)
> 	at java.io.DataInputStream.readFully(DataInputStream.java:169)
> 	at org.jboss.jandex.Indexer.verifyMagic(Indexer.java:433)
> 	at org.jboss.jandex.Indexer.index(Indexer.java:689)
> 	at org.jboss.tools.common.core.jandex.JandexUtil.createJarIndex(JandexUtil.java:56)
> 	at org.jboss.tools.common.core.jandex.JandexUtil.hasAnnotation(JandexUtil.java:104)
> 	at org.jboss.tools.cdi.internal.core.scanner.lib.BeanArchiveDetector.hasAnnotatedBeans(BeanArchiveDetector.java:276)
> 	at org.jboss.tools.cdi.internal.core.scanner.lib.BeanArchiveDetector.resolve(BeanArchiveDetector.java:203)
> 	at org.jboss.tools.cdi.internal.core.scanner.lib.ClassPathMonitor.detectBeanModule(ClassPathMonitor.java:150)
> 	at org.jboss.tools.cdi.internal.core.scanner.lib.ClassPathMonitor.process(ClassPathMonitor.java:106)
> 	at org.jboss.tools.cdi.core.CDICoreBuilder.build(CDICoreBuilder.java:215)
> 	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
> 	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
> 	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
> 	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
> 	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> {noformat}
> {noformat}
> !ENTRY org.jboss.tools.common.model 4 0 2017-01-25 16:11:53.722
> !MESSAGE Exception occurs when reading C:\Users\Aurelien Pupier\.m2\repository\org\apache\aries\blueprint\org.apache.aries.blueprint.core\1.7.1\org.apache.aries.blueprint.core-1.7.1.jar
> !STACK 0
> java.util.zip.ZipException: invalid LOC header (bad signature)
> 	at java.util.zip.ZipFile.read(Native Method)
> 	at java.util.zip.ZipFile.access$1400(Unknown Source)
> 	at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
> 	at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source)
> 	at java.util.zip.InflaterInputStream.read(Unknown Source)
> 	at java.io.BufferedInputStream.fill(Unknown Source)
> 	at java.io.BufferedInputStream.read1(Unknown Source)
> 	at java.io.BufferedInputStream.read(Unknown Source)
> 	at org.jboss.tools.common.model.filesystems.impl.JarAccess.getContent(JarAccess.java:235)
> 	at org.jboss.tools.common.model.filesystems.impl.JarAccess.isTextEntry(JarAccess.java:266)
> 	at org.jboss.tools.common.model.filesystems.impl.JarFolderImpl.createFileObject(JarFolderImpl.java:95)
> 	at org.jboss.tools.common.model.filesystems.impl.JarFolderImpl.loadChildren(JarFolderImpl.java:78)
> 	at org.jboss.tools.common.model.impl.RegularObjectImpl.getChildByPathPart(RegularObjectImpl.java:159)
> 	at org.jboss.tools.common.model.filesystems.impl.JarFolderImpl.getChildByPathPart(JarFolderImpl.java:152)
> 	at org.jboss.tools.common.model.impl.XModelObjectImpl.getChildByPath(XModelObjectImpl.java:347)
> 	at org.jboss.tools.common.model.impl.XModelObjectImpl.getChildByPath(XModelObjectImpl.java:352)
> 	at org.jboss.tools.cdi.internal.core.scanner.lib.ClassPathMonitor.readRuntimes(ClassPathMonitor.java:286)
> 	at org.jboss.tools.cdi.internal.core.scanner.lib.ClassPathMonitor.process(ClassPathMonitor.java:103)
> 	at org.jboss.tools.cdi.core.CDICoreBuilder.build(CDICoreBuilder.java:215)
> 	at org.jboss.tools.cdi.core.CDICoreBuilder.<init>(CDICoreBuilder.java:101)
> 	at org.jboss.tools.cdi.core.CDICoreNature.load(CDICoreNature.java:420)
> 	at org.jboss.tools.cdi.core.CDICoreNature.resolveStorage(CDICoreNature.java:393)
> 	at org.jboss.tools.cdi.core.CDICoreNature.resolve(CDICoreNature.java:406)
> 	at org.jboss.tools.cdi.core.CDICorePlugin.getCDI(CDICorePlugin.java:165)
> 	at org.jboss.tools.cdi.core.CDICorePlugin$RCL.resourceChanged(CDICorePlugin.java:104)
> 	at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:299)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:289)
> 	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:152)
> 	at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:374)
> 	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1469)
> 	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:46)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list