Gayathrireddy531@gmail.com | Selenium Forum
M
Posted on 19/07/2016
HIIIIII when i was trying to run module 20 frameworks i am getting dis error like the below bt i have all the jars with me bt still i am getting dis error can u plzz check it and solve it


[TestNG] Running:
C:\Users\ssr\AppData\Local\Temp\testng-eclipse--715234910\testng-customsuite.xml

SKIPPED: doLoginTest
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException
at org.testng.internal.MethodInvocationHelper.invokeDataProvider(MethodInvocationHelper.java:162)
at org.testng.internal.Parameters.handleParameters(Parameters.java:430)
at org.testng.internal.Invoker.handleParameters(Invoker.java:1276)
at org.testng.internal.Invoker.createParameters(Invoker.java:992)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1082)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:773)
at org.testng.TestRunner.run(TestRunner.java:623)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
at org.testng.TestNG.run(TestNG.java:1018)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)
Caused by: java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException
at com.qtpselenium.zoho.Util.Xls_Reader.<init>(Xls_Reader.java:39)
at com.qtpselenium.zoho.classes.LoginTest.getData(LoginTest.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.MethodInvocationHelper.invokeDataProvider(MethodInvocationHelper.java:136)
... 20 more
Caused by: java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 28 more
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1400(Unknown Source)
at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.util.jar.Manifest$FastInputStream.fill(Unknown Source)
at java.util.jar.Manifest$FastInputStream.readLine(Unknown Source)
at java.util.jar.Manifest$FastInputStream.readLine(Unknown Source)
at java.util.jar.Attributes.read(Unknown Source)
at java.util.jar.Manifest.read(Unknown Source)
at java.util.jar.Manifest.<init>(Unknown Source)
at java.util.jar.JarFile.getManifestFromReference(Unknown Source)
at java.util.jar.JarFile.getManifest(Unknown Source)
at sun.misc.URLClassPath$JarLoader$2.getManifest(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
... 35 more


===============================================
Default test
Tests run: 1, Failures: 0, Skips: 1
===============================================


===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 1
===============================================

[TestNG] Time taken by org.testng.reporters.EmailableReporter2@1b6a447: 11 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@1b64c45: 136 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@18c7aca: 15 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@1f792cf: 46 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@1f983a6: 162 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 12 ms

M
Replied on 19/07/2016

download this http://xmlbeans.apache.org/

and add it to your library.


M
Replied on 21/07/2016

hi ashish u gave the url to download xmlbeans jars..the site was
http://xmlbeans.apache.org/ but i coudn't get jar from those site can u please send me the dependency of xmbeans new version so tat i can make changes in maven and add into my test. r else can u please send me tat jar..its better to send the dependency because i am using maven projects.


and one more when i was trying ant on my command prompt its showing
Buildfile: build.xml does not exist!
Build failed
but i followed all the steps which u showed in video and still i am getting the error..


thanks
reagrds gayathri


M
Replied on 22/07/2016

http://www.java2s.com/Code/JarDownload/xmlbeans/xmlbeans-2.5.0.jar.zip


https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans/2.4.0


M
Replied on 24/07/2016

hii ashish i want to download cucumber jars could u please recommand where it is located in the code which u given us r can u recommand a url to download tat jars

and one more i am getting an error when i am running ant in my command file....i followed all the steps strictly as per the videoes still i am getting the error ..the error is

Buildfile: build.xml does not exist!
Build failed

can u please find the solution for my question and i coulld proced further beacause of dis problem


M
Replied on 24/07/2016

[quote:3utmpyzr]Buildfile: build.xml does not exist!
Build failed
[/quote:3utmpyzr]

add a build.xml that file is needed for executing ant. for more info watch the ant module.


M
Replied on 24/07/2016

download cucumber
qtpselenium.com/downloads/cucumber.rar