Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4064

WW-3698 cause ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.3.14
    • 2.3.16
    • Plugin - JasperReports
    • None

    Description

      my application works fine before commit 1439171,when I upgrade to 2.3.14,it raise a ClassCastException

      Caused by: java.lang.ClassCastException: org.hibernate.collection.internal.PersistentList cannot be cast to net.sf.jasperreports.engine.JRDataSource
      
      	at order_1283128512214_277101.evaluate(order_1283128512214_277101:275)
      
      	at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:190)
      
      	... 120 more
      
      class Order{
      
      List<OrderItem> items;
      
      }
      

      items in subreport should be JRDataSource but List

      Attachments

        1. application-error.log
          25 kB
          Yanming Zhou

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              quaff Yanming Zhou
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: