Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3076

Wrong error message from org.zkoss.zk.ui.metainfo.Parser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.3
    • 7.0.6
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.0.3 S2

      I type at the top of my zul:
      <?xel-method prefix="y" name="isDateFirstDayOfAMonth" class="com.myproject.MyClass"
      signature="boolean myMethod(Date)"?>

      The parser cannot find the Date class but the error message says :
      Caused by: org.zkoss.zk.ui.UiException: file:/C:/Proje...sub/valorisationGrille.zul:6:52: Class not found: com.myproject.MyClass

      When in fact it broke off at org.zkoss.lang.Classes.getMethodBySignature() when trying to get the class Date from getClassOfSignature(resolver, clsnm) art the line 653.

      The name of the class causing the ClassNotFoundException is in the DetailMessage attribut, so easy to add the correct class name causing the exception.

            SEFI SEFI
            WilliamBakker WilliamBakker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h