Skip to content

WrongMethodTypeException after upgrading to Jruby 9.4.12.0 #272

Closed
@StockRover

Description

@StockRover

After upgrading from JRuby 9.2.20.1 and running inside Apache Tomcat any file upload form fails with this error

17-Apr-2025 15:13:17.565 INFO [main] org.apache.catalina.core.ApplicationContext.log jruby 9.4.12.0 (3.1.4) 2025-02-11 f4ab75096a OpenJDK 64-Bit Server VM 24.0.1+9-30 on 24.0.1+9-30 +jit [x86_64-mswin32]
17-Apr-2025 15:13:17.566 INFO [main] org.apache.catalina.core.ApplicationContext.log using a shared (thread-safe) runtime
17-Apr-2025 15:14:46.718 INFO [https-openssl-nio-443-exec-3] org.apache.catalina.core.ApplicationContext.log resetting rack response due exception
17-Apr-2025 15:14:47.705 SEVERE [https-openssl-nio-443-exec-3] org.apache.catalina.core.ApplicationContext.log error app failed to handle exception: java.lang.invoke.WrongMethodTypeException: handle's method type (RubyString,ByteList,int)int but found (ByteList,int)int
org.jruby.exceptions.NoMethodError: (NoMethodError) undefined method `bytesize' for Rack::Utils:Module
at RUBY.call(uri:classloader:/jruby/rack/error_app/show_status.rb:30)
at org.jruby.rack.ext.Servlet.call(org/jruby/rack/ext/Servlet.java:86)

I wouldn't be surprised if the bug is some misconfiguration on my end but I have no idea where to look. I've tried with rack versions 1.1.21 and 1.2.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions