java.lang.IllegalArgumentException: Cannot convert 0 of type class java.lang.Long to class java.lang.Number

Solution Verified - Updated -

Issue

  • The following errors are observed in the server.log/catalina.out:

    java.lang.IllegalArgumentException: Cannot convert 0 of type class java.lang.Long to class java.lang.Number
        at org.apache.el.lang.ELSupport.coerceToNumber(ELSupport.java:250)
        at org.apache.el.lang.ELSupport.coerceToNumber(ELSupport.java:257)
        at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:351)
        at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:188)
    

Environment

  • JBoss Enterprise Web Server (EWS) 1.0.0
  • JBoss Enterprise Application Platform (EAP) 4.3, 5.1.1 and prior versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content