Project

General

Profile

Bug #2096

In rare cases an API jar is missing

Added by Henning Blohm over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
z2-core
Target version:
Start date:
29.06.2021
Due date:
% Done:

0%

Estimated time:
origin:

Description

E.g.

Caused by: java.lang.IllegalStateException: Classpath construction - Failed to introspect file:/home/hb/workspace_zf-work/zf-work.core/z2-base.core/bin/../work/repos/com_zfabrik_dev_repo_devRepo/pkg/com_zfabrik_work_portal/java/17a599e7d06_00/bin.api/lib/com.zfabrik.work.portal.api.jar
     at com.zfabrik.impl.components.java.ComponentClassLoader$ClassPath.init(ComponentClassLoader.java:436)
     at com.zfabrik.impl.components.java.ComponentClassLoader$ClassPath.locate(ComponentClassLoader.java:493)
     at com.zfabrik.impl.components.java.ComponentClassLoader.findResource(ComponentClassLoader.java:838)
     at com.zfabrik.impl.components.java.ComponentClassLoader.getResource(ComponentClassLoader.java:825)
     at java.base/java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:322)
     at com.zfabrik.impl.components.java.jdt.NameEnvironmentImpl._findType(NameEnvironmentImpl.java:172)
     at com.zfabrik.impl.components.java.jdt.NameEnvironmentImpl.findType(NameEnvironmentImpl.java:52)
     at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createPlainPackage(LookupEnvironment.java:1139)
     at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:135)
     at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:475)
     at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:855)
     at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:394)
     at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
     at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:426)
     at com.zfabrik.impl.components.java.jdt.SimpleJDTCompiler.compile(SimpleJDTCompiler.java:128)
     at com.zfabrik.impl.components.java.jdt.JavaCompilerComponent.compile(JavaCompilerComponent.java:24)
     at com.zfabrik.components.java.build.ICompiler.compile(ICompiler.java:121)
     ... 45 more
 Caused by: java.nio.file.NoSuchFileException: /home/hb/workspace_zf-work/zf-work.core/z2-base.core/bin/../work/repos/com_zfabrik_dev_repo_devRepo/pkg/com_zfabrik_work_portal/java/17a599e7d06_00/bin.api/lib/com.zfabrik.work.portal.api.jar
     at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)

but the folder work/repos/com_zfabrik_dev_repo_devRepo/pkg/com_zfabrik_work_portal/java/17a599e7d06_00/bin.api/lib/ does actually exist.

As if the API jar was there but then removed again, or as if API compilation actually failed but the failure was not noticed.

Also available in: Atom PDF