Skip to content

Exception: java.lang.VerifyError: Bad type on operand stack Exception Details: Location: cn/hutool/core/net/url/UrlBuilder.toURL(Ljava/net/URLStreamHandler;)Ljava/net/URL; @85: invokestatic Reason: Type 'java/net/URLStreamHandler' (current fram #103

@squirrel51

Description

@squirrel51

📝 问题描述

idea 刚打开就提示了

🏷 插件版本

1.8.7

💻 IDE及运行环境

IntelliJ IDEA 2025.2.1 (Ultimate Edition)
内部版本号 #IU-252.25557.131
Runtime version: 21.0.8+1-b1038.68 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows

📋 堆栈跟踪

java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    cn/hutool/core/net/url/UrlBuilder.toURL(Ljava/net/URLStreamHandler;)Ljava/net/URL; @85: invokestatic
  Reason:
    Type 'java/net/URLStreamHandler' (current frame, stack[6]) is not assignable to 'java/lang/String'
  Current Frame:
    bci: @85
    flags: { }
    locals: { 'cn/hutool/core/net/url/UrlBuilder', 'java/net/URLStreamHandler', 'java/lang/StringBuilder', 'java/lang/String' }
    stack: { uninitialized 64, uninitialized 64, 'java/lang/String', 'java/lang/String', integer, 'java/lang/String', 'java/net/URLStreamHandler' }
  Bytecode:
    0000000: bb00 c959 b700 134d 2c2a b600 4fb6 0014
    0000010: 572a b600 504e 2db8 0051 9900 0e2c 103f
    0000020: b600 522d b600 1457 2ab4 0048 b800 5199
    0000030: 0011 2c10 23b6 0052 2ab6 0053 b600 1457
    0000040: bb00 5459 2ab6 0055 2ab4 002c 2ab4 0029
    0000050: 2cb6 0015 2bb8 017b b700 56b0 3a04 01b0
    0000060:                                        
  Exception Handler Table:
    bci [64, 91] => handler: 92
  Stackmap Table:
    append_frame(@40,Object[#201],Object[#141])
    same_frame(@64)
    same_locals_1_stack_item_frame(@92,Object[#202])

	at cn.hutool.http.HttpRequest.of(HttpRequest.java:154)
	at cn.hutool.http.HttpRequest.of(HttpRequest.java:139)
	at cn.hutool.http.HttpRequest.get(HttpRequest.java:64)
	at cn.hutool.http.HttpUtil.get(HttpUtil.java:119)
	at dt.a(SourceFile:374)
	at dt.b(SourceFile:72)
	at dt.d(SourceFile:59)
	at com.intellij.util.Alarm$Request$schedule$1$1.invokeSuspend(Alarm.kt:410)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:613)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1189)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:778)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:765)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions