You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It runs normally when I start it directly in the Java application. After packaging it into GraalVM and then into an exe file, when I open the browser and randomly enter a website to open it, the program will report this error:
2024-11-27T11:21:00.889+0800 WARN [LittleProxy-0-ClientToProxyWorker-2] i.n.util.concurrent.DefaultPromise.notifyListener0:593 - An exception was thrown by org.littleshoot.proxy.impl.ConnectionFlow$$Lambda$893990eddfe9a9ccd348683b09d88aa8387ae2a0.operationComplete()
com.browserup.bup.mitm.exception.MitmException: Error creating SSLEngine for connection to client to impersonate upstream host: www.bing.com
at com.browserup.bup.mitm.manager.ImpersonatingMitmManager.clientSslEngineFor(ImpersonatingMitmManager.java:236)
at org.littleshoot.proxy.impl.ProxyToServerConnection$7.execute(ProxyToServerConnection.java:940)
at org.littleshoot.proxy.impl.ConnectionFlow.doProcessCurrentStep(ConnectionFlow.java:142)
at org.littleshoot.proxy.impl.ConnectionFlow.processCurrentStep(ConnectionFlow.java:132)
at org.littleshoot.proxy.impl.ConnectionFlow.advance(ConnectionFlow.java:99)
at org.littleshoot.proxy.impl.ConnectionFlowStep.onSuccess(ConnectionFlowStep.java:74)
at org.littleshoot.proxy.impl.ConnectionFlow.lambda$doProcessCurrentStep$1(ConnectionFlow.java:147)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:557)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:492)
at io.netty.util.concurrent.DefaultPromise.addListener(DefaultPromise.java:185)
at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:95)
at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:30)
at org.littleshoot.proxy.impl.ConnectionFlow.doProcessCurrentStep(ConnectionFlow.java:142)
at org.littleshoot.proxy.impl.ConnectionFlow.lambda$processCurrentStep$0(ConnectionFlow.java:130)
at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
at io.netty.util.concurrent.PromiseTask.run(PromiseTask.java:106)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at [email protected]/java.lang.Thread.run(Thread.java:840)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:915)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:890)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4922)
at com.browserup.bup.mitm.manager.ImpersonatingMitmManager.getHostnameImpersonatingSslContext(ImpersonatingMitmManager.java:251)
at com.browserup.bup.mitm.manager.ImpersonatingMitmManager.clientSslEngineFor(ImpersonatingMitmManager.java:232)
... 25 common frames omitted
Caused by: java.lang.NullPointerException: null
at [email protected]/java.util.Objects.requireNonNull(Objects.java:209)
at [email protected]/java.nio.file.Files.copy(Files.java:3128)
at com.browserup.bup.mitm.KeyStoreFileCertificateSource.loadKeyStore(KeyStoreFileCertificateSource.java:124)
at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:181)
at com.browserup.bup.mitm.KeyStoreFileCertificateSource.load(KeyStoreFileCertificateSource.java:106)
at com.browserup.bup.mitm.manager.ImpersonatingMitmManager$2.get(ImpersonatingMitmManager.java:123)
at com.browserup.bup.mitm.manager.ImpersonatingMitmManager$2.get(ImpersonatingMitmManager.java:120)
at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:181)
at com.browserup.bup.mitm.manager.ImpersonatingMitmManager.createImpersonatingSslContext(ImpersonatingMitmManager.java:296)
at com.browserup.bup.mitm.manager.ImpersonatingMitmManager.createImpersonatingSslContext(ImpersonatingMitmManager.java:276)
at com.browserup.bup.mitm.manager.ImpersonatingMitmManager.lambda$getHostnameImpersonatingSslContext$0(ImpersonatingMitmManager.java:252)
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4927)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
... 29 common frames omitted
Describe the bug
It runs normally when I start it directly in the Java application. After packaging it into GraalVM and then into an exe file, when I open the browser and randomly enter a website to open it, the program will report this error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
work
Screenshots
![image](https://private-user-images.githubusercontent.com/9999969/390246580-7f47c583-ec79-41d1-8cc8-57e8c8e6c368.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTczOTEsIm5iZiI6MTczOTY5NzA5MSwicGF0aCI6Ii85OTk5OTY5LzM5MDI0NjU4MC03ZjQ3YzU4My1lYzc5LTQxZDEtOGNjOC01N2U4YzhlNmMzNjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDkxMTMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmViNjU0Y2ZhNDY4NjEwM2JiMTg3MDcxZTEwYjU3NmE3MmNkMWUzN2JlZDMzMzlmZTA2NDhjNzEzYzkxYjFiYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.pTh_9ijZZ99i9GR-UOT9sNToUlTcIJWls_ewgUn-McY)
Please complete the following information:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: