Uploaded image for project: 'XWork'
  1. XWork
  2. XW-776

OGNL exception thrown when setting float primitive in action

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0
    • None
    • None
    • Windows XP, JDK 1.4.2_01, Resin

    Description

      And OGNL exception is thrown when setting/parsing a float primitive parameter in an action.

      08-Sep-2003 17:39:23 com.opensymphony.xwork.util.CompoundRootAccessor setProperty
      SEVERE: Caught an Ognl exception while setting property floatValue
      ognl.OgnlException: floatValue [java.lang.NumberFormatException: For input string: "[Ljava.lang.String;@5c3987"]
      at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:84)
      at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
      at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1235)
      at com.opensymphony.xwork.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:43)
      at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1235)
      at ognl.ASTProperty.setValueBody(ASTProperty.java:117)
      at ognl.SimpleNode.setValue(SimpleNode.java:153)
      at ognl.Ognl.setValue(Ognl.java:478)
      at com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:66)
      at com.opensymphony.xwork.interceptor.ParametersInterceptor.before(ParametersInterceptor.java:40)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:36)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:149)
      at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:121)
      at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:165)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
      at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
      at com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFilter(RequestLifecycleFilter.java:84)
      at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)
      at com.caucho.server.http.Invocation.service(Invocation.java:315)
      at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
      at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
      at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
      at java.lang.Thread.run(Thread.java:534)
      /-- Encapsulated exception ------------\
      java.lang.NumberFormatException: For input string: "[Ljava.lang.String;@5c3987"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1207)
      at java.lang.Double.parseDouble(Double.java:220)
      at ognl.OgnlOps.doubleValue(OgnlOps.java:106)
      at ognl.OgnlOps.convertValue(OgnlOps.java:202)
      at ognl.DefaultTypeConverter.convertValue(DefaultTypeConverter.java:50)
      at ognl.DefaultTypeConverter.convertValue(DefaultTypeConverter.java:55)
      at com.opensymphony.xwork.util.XWorkConverter.convertValue(XWorkConverter.java:129)
      at ognl.OgnlRuntime.getConvertedType(OgnlRuntime.java:428)
      at ognl.OgnlRuntime.getConvertedTypes(OgnlRuntime.java:447)
      at ognl.OgnlRuntime.getConvertedMethodAndArgs(OgnlRuntime.java:473)
      at ognl.OgnlRuntime.getAppropriateMethod(OgnlRuntime.java:523)
      at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:535)
      at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:684)
      at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:76)
      at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
      at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1235)
      at com.opensymphony.xwork.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:43)
      at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1235)
      at ognl.ASTProperty.setValueBody(ASTProperty.java:117)
      at ognl.SimpleNode.setValue(SimpleNode.java:153)
      at ognl.Ognl.setValue(Ognl.java:478)
      at com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:66)
      at com.opensymphony.xwork.interceptor.ParametersInterceptor.before(ParametersInterceptor.java:40)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:36)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:149)
      at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:121)
      at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:165)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
      at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
      at com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFilter(RequestLifecycleFilter.java:84)
      at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)
      at com.caucho.server.http.Invocation.service(Invocation.java:315)
      at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
      at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
      at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
      at java.lang.Thread.run(Thread.java:534)
      --------------------------------------/
      08-Sep-2003 17:39:23 com.opensymphony.webwork.dispatcher.ServletDispatcher service
      SEVERE: Could not execute action
      java.lang.RuntimeException: Caught an Ognl exception while setting property floatValue
      at com.opensymphony.xwork.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:51)
      at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1235)
      at ognl.ASTProperty.setValueBody(ASTProperty.java:117)
      at ognl.SimpleNode.setValue(SimpleNode.java:153)
      at ognl.Ognl.setValue(Ognl.java:478)
      at com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:66)
      at com.opensymphony.xwork.interceptor.ParametersInterceptor.before(ParametersInterceptor.java:40)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:36)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:149)
      at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:121)
      at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:165)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
      at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
      at com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFilter(RequestLifecycleFilter.java:84)
      at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)
      at com.caucho.server.http.Invocation.service(Invocation.java:315)
      at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
      at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
      at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
      at java.lang.Thread.run(Thread.java:534)

      Attachments

        Activity

          People

            Unassigned Unassigned
            tonyblake2003 Tony Blake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: