2 Replies Latest reply on Oct 24, 2008 12:54 AM by I need a real name

    Very odd exception running seam tests

    I need a real name Newbie

      I keep seeing this exception when trying to do a test:



       [testng] Caused by: java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found
      r annotation element public abstract int org.hibernate.validator.Max.value() (Found data of type class j
      a.lang.Long[99999])
       [testng]     at sun.reflect.annotation.AnnotationTypeMismatchExceptionProxy.generateException(Annotatio
      ypeMismatchExceptionProxy.java:38)
       [testng]     at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.j
      a:56)
       [testng]     at $Proxy91.value(Unknown Source)
       [testng]     at org.hibernate.validator.MaxValidator.initialize(MaxValidator.java:22)
       [testng]     at org.hibernate.validator.MaxValidator.initialize(MaxValidator.java:17)
       [testng]     at org.hibernate.validator.ClassValidator.createValidator(ClassValidator.java:282)
       [testng]     ... 71 more
       [testng] FAILED CONFIGURATION: @BeforeClass init
       [testng] org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE
      EVIOUS ERRORS FOR DETAILS):
       [testng]
       [testng] *** CONTEXTS IN ERROR: Name -> Error
       [testng]
       [testng] persistence.units:jar=test-build.jar,unitName=eventsPersistenceUnit -> java.lang.annotation.An
      tationTypeMismatchException: Incorrectly typed data found for annotation element public abstract int org
      ibernate.validator.Max.value() (Found data of type class java.lang.Long[99999])
       [testng]
       [testng] persistence.units:jar=test-build.jar,unitName=management-tool -> java.lang.annotation.An
      tationTypeMismatchException: Incorrectly typed data found for annotation element public abstract int org
      ibernate.validator.Max.value() (Found data of type class java.lang.Long[99999])
       [testng]
       [testng]
       [testng]     at org.jboss.embedded.DeploymentGroup.checkIncomplete(DeploymentGroup.java:151)
       [testng]     at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:129)
       [testng]     at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:307)
       [testng]     at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:14
      
       [testng]     at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
       [testng]     at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
       [testng]     at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
       [testng] ... Removed 22 stack frames



      Anyone else see something like this before?