Issue Details (XML | Word | Printable)

Key: VALIDATOR-19
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Niall Pemberton
Reporter: Masahiro Honda
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Validator

[validator] The Form cannot be used for the validator's method parameter.

Created: 30/Mar/06 02:38 PM   Updated: 12/Nov/07 07:25 PM
Return to search
Component/s: Framework
Affects Version/s: 1.2.0 Release, 1.3.0 Release
Fix Version/s: 1.3.1 Release

Time Tracking:
Not Specified

File Attachments:
  Size
Text File commons-validator.lzh 2006-03-30 03:10 PM Masahiro Honda 13 kB
Zip Archive commons-validator.zip 2006-03-31 08:55 AM Masahiro Honda 14 kB
Environment:
Operating System: Windows XP
Platform: All

Bugzilla Id: 39151
Resolution Date: 22/Nov/06 10:27 PM


 Description  « Hide
The form is declared as a validator's method parameter.
The exception occur.

org.apache.commons.validator.ValidatorException: argument type mismatch
at org.apache.commons.validator.ValidatorAction.executeValidationMethod
(ValidatorAction.java:549)
at org.apache.commons.validator.Field.validateForRule(Field.java:766)
at org.apache.commons.validator.Field.validate(Field.java:845)
at org.apache.commons.validator.Form.validate(Form.java:290)
at org.apache.commons.validator.Validator.validate(Validator.java:353)
at org.apache.commons.validator.ValidatorParameterTest.testAllValid
(ValidatorParameterTest.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:196)



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henri Yandell made changes - 16/May/06 10:07 AM
Field Original Value New Value
issue.field.bugzillaimportkey 39151 12342997
Henri Yandell made changes - 16/May/06 11:54 AM
Project Commons [ 12310458 ] Commons Validator [ 12310494 ]
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Component/s Validator [ 12311135 ]
Key COM-2845 VALIDATOR-19
Affects Version/s 1.3 Final [ 12311662 ]
Henri Yandell made changes - 16/May/06 12:04 PM
Affects Version/s 1.3 Final [ 12311733 ]
Niall Pemberton made changes - 19/Jul/06 01:26 PM
Component/s Framework [ 12311271 ]
Bugzilla Id 39151
Niall Pemberton made changes - 22/Nov/06 10:27 PM
Status Reopened [ 4 ] Resolved [ 5 ]
Fix Version/s 1.3.1 [ 12311934 ]
Assignee Niall Pemberton [ niallp ]
Resolution Fixed [ 1 ]
Niall Pemberton made changes - 22/Nov/06 10:29 PM
Bugzilla Id 39151
Affects Version/s 1.2.0 Release [ 12311749 ]
Henri Yandell made changes - 12/Nov/07 07:25 PM
Status Resolved [ 5 ] Closed [ 6 ]