java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy this exception occured while running from command prompt.

2,328 views
Skip to first unread message

Elango van

unread,
Jun 2, 2013, 3:27:56 PM6/2/13
to webd...@googlegroups.com
JUnit version 4.11
Exception in thread "main" java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653)
at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460)
at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
at java.lang.Class.initAnnotationsIfNecessary(Class.java:3070)
at java.lang.Class.getAnnotations(Class.java:3050)
at org.junit.runner.Description.createSuiteDescription(Description.java:123)
at org.junit.internal.runners.ErrorReportingRunner.getDescription(ErrorReportingRunner.java:25)
at org.junit.runners.Suite.describeChild(Suite.java:122)
at org.junit.runners.Suite.describeChild(Suite.java:26)
at org.junit.runners.ParentRunner.getDescription(ParentRunner.java:298)
at org.junit.runner.JUnitCore.run(JUnitCore.java:159)
at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:96)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:47)
at org.junit.runner.JUnitCore.main(JUnitCore.java:40)
at com.zoho.crm.MainClass.main(MainClass.java:78)

Marcus Merrell

unread,
Jun 2, 2013, 8:35:16 PM6/2/13
to webd...@googlegroups.com, webd...@googlegroups.com
We'll need more information before we can say for sure, but this looks like a problem in your JUnit annotation, not anything WebDriver related. 

Try removing all annotations from your file except just the bare @Test annotation necessary for executing the tests. 

If that doesn't work, you'll need to post some code or more context or something... The stack trace only tells us so much. 
MM

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages