-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
env: openJdk 11.0.1
log detail:
* DELEGATING -> java.util.jar.JarFile.<clinit>
* DELEGATING -> java.util.jar.JarFile.<init>
* DELEGATING -> java.util.jar.JarFile.entries
WARNING: the class class java.util.jar.JarFile$$Lambda$40/0x0000000800208c40 is ignored!
* DELEGATING -> java.util.zip.ZipFile.ensureOpen
* DELEGATING -> java.util.zip.ZipFile.getZipEntry
otf - getZipEntry__Ljava_lang_String_2_3BILjava_util_function_Function_2__Ljava_util_zip_ZipEntry_2
Disconnected from the target VM, address: 'localhost:58263', transport: 'socket'
Exception in thread "main" ---------------------- JPF error stack trace ---------------------
gov.nasa.jpf.JPFNativePeerException: exception in native method java.util.zip.ZipFile.getZipEntry
at gov.nasa.jpf.vm.NativeMethodInfo.executeNative(NativeMethodInfo.java:186)
at gov.nasa.jpf.jvm.bytecode.EXECUTENATIVE.execute(EXECUTENATIVE.java:73)
at gov.nasa.jpf.vm.ThreadInfo.executeInstruction(ThreadInfo.java:1910)
at gov.nasa.jpf.vm.ThreadInfo.executeTransition(ThreadInfo.java:1861)
at gov.nasa.jpf.vm.SystemState.executeNextTransition(SystemState.java:765)
at gov.nasa.jpf.vm.VM.forward(VM.java:1721)
at gov.nasa.jpf.search.Search.forward(Search.java:937)
at gov.nasa.jpf.search.DFSearch.search(DFSearch.java:79)
at gov.nasa.jpf.JPF.run(JPF.java:613)
at com.huawei.runner.JarApp.main(JarApp.java:38)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at OTF_JPF_java_util_zip_ZipFile.getZipEntry__Ljava_lang_String_2_3BILjava_util_function_Function_2__Ljava_util_zip_ZipEntry_2(OTF_JPF_java_util_zip_ZipFile.java:84)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at gov.nasa.jpf.vm.NativeMethodInfo.executeNative(NativeMethodInfo.java:125)
... 9 more
Caused by: java.lang.NullPointerException
at java.base/java.util.zip.ZipFile.getZipEntry(ZipFile.java:674)
... 19 more
WARNING: the class class java.util.jar.JarFile$$Lambda$40/0x0000000800208c40 is ignored!
The problem is that classloaderInfo cannot match the class. As a result, the func
value is null in the getZipEntry method.
private ZipEntry getZipEntry(String name, byte[] bname, int pos,
Function<String, ? extends ZipEntry> func) {
...
ZipEntry e = func.apply(name); //throw NullPointerException
Metadata
Metadata
Assignees
Labels
No labels