visual studio 2010 and mono for android
softwares to develop a mono droid apk.
Initially it create a project click the button, it can run successfuly on
emulator and i try to install it on android mobile (samsung galaxy y)for
that i search the (.apk file) in my project and it will locate it on
bin/debug/filname.apk.here in this bin folder i have 2 apk file
filename.apk and filename.signed.apk. I copied both apk file to my mobile
and try to install file name.apk but it failed to install and try to
install filename.signed.apk it will installed successfully, but when i try
to open it on mobile it will force close automatically.
on emulator my application working fine and also vs 2010 create two .apk file 1 is EventRegistraionApp-Signed.apk and another is EventRegistraionApp-Signed.apk ,only EventRegistraionApp-Signed.apk installed and it also install successfully on device but it giving exception which is shown below:-
09-23 06:59:38.388: E/AndroidRuntime(863): FATAL EXCEPTION: main
09-23 06:59:38.388: E/AndroidRuntime(863): java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8!
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.installProvider(ActivityThread.java:4882)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4485)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4425)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.access$1300(ActivityThread.java:141)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.os.Handler.dispatchMessage(Handler.java:99)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.os.Looper.loop(Looper.java:137)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-23 06:59:38.388: E/AndroidRuntime(863): at java.lang.reflect.Method.invokeNative(Native Method)
09-23 06:59:38.388: E/AndroidRuntime(863): at java.lang.reflect.Method.invoke(Method.java:525)
09-23 06:59:38.388: E/AndroidRuntime(863): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-23 06:59:38.388: E/AndroidRuntime(863): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-23 06:59:38.388: E/AndroidRuntime(863): at dalvik.system.NativeStart.main(Native Method)
09-23 06:59:38.388: E/AndroidRuntime(863): Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8!
09-23 06:59:38.388: E/AndroidRuntime(863): at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:30)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.installProvider(ActivityThread.java:4879)
09-23 06:59:38.388: E/AndroidRuntime(863): ... 12 more
09-23 06:59:38.388: E/AndroidRuntime(863): Caused by: android.content.pm.PackageManager$NameNotFoundException: Mono.Android.DebugRuntime
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:226)
09-23 06:59:38.388: E/AndroidRuntime(863): at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:21)
09-23 06:59:38.388: E/AndroidRuntime(863): ... 13 more
My problem is that after installation of apk to device it throwing exception of
Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8! but on emulator it is working fine
i am using monodroid 4.2.5 that is not showing evalution version
You are using a very old version of Xamarin.Android, which I advise you to update, otherwise you are going to have a bad time. That being said you are deploying the application to your device in a wrong way.
You cannot take an .apk file created in debug mode and put on your phone if it does not have the mono runtime installed, which the deploy process does for you in Visual Studio. So instead grabbing the .apk file from the folder and manually installing it on the device, you need to press deploy or run in Visual Studio and select your device.
Alternatively you can create the .apk file in Release mode, which will include the required mono stuff in the .apk file, however this way you will not be able to debug the application very well.
In order for your device to show up in the selection box, it needs to be prepared for development, which you can read more about here: http://docs.xamarin.com/guides/android/getting_started/installation/set_up_device_for_development
Related
getting error while deploying bot api.
Suppressed: java.lang.RuntimeException: Error scanning entry
com/amazonaws/services/s3/transfer/internal/TransferStateChangeListener.class
from jar
file:///C:/Users/Admin/.m2/repository/com/amazonaws/aws-java-sdk-s3/1.11.125/aws-java-sdk-s3-1.11.125.jar
at
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:891)
... 6 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(ZipFile.java:60) at
java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717) at
java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)
at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.io.FilterInputStream.read(FilterInputStream.java:133) at
java.io.FilterInputStream.read(FilterInputStream.java:133) at
org.objectweb.asm.ClassReader.a(Unknown Source) at
org.objectweb.asm.ClassReader.(Unknown Source) at
org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:959)
at
org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:940)
at
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:887)
... 6 more Suppressed: java.lang.RuntimeException: Error scanning
entry com/amazonaws/services/s3/transfer/internal/CopyMonitor.class
from jar
file:///C:/Users/Admin/.m2/repository/com/amazonaws/aws-java-sdk-s3/1.11.125/aws-java-sdk-s3-1.11.125.jar
at
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:891)
... 6 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(ZipFile.java:60) at
java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717) at
java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)
at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.io.FilterInputStream.read(FilterInputStream.java:133) at
java.io.FilterInputStream.read(FilterInputStream.java:133) at
org.objectweb.asm.ClassReader.a(Unknown Source) at
org.objectweb.asm.ClassReader.(Unknown Source) at
org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:959)
at
org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:940)
at
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:887)
... 6 more Suppressed: java.lang.RuntimeException: Error scanning
entry
com/amazonaws/services/s3/transfer/internal/MultipleFileTransferMonitor$1.class
from jar
file:///C:/Users/Admin/.m2/repository/com/amazonaws/aws-java-sdk-s3/1.11.125/aws-java-sdk-s3-1.11.125.jar
at
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:891)
... 6 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(ZipFile.java:60) at
java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717) at
java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)
at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.io.FilterInputStream.read(FilterInputStream.java:133) at
java.io.FilterInputStream.read(FilterInputStream.java:133) at
org.objectweb.asm.ClassReader.a(Unknown Source) at
org.objectweb.asm.ClassReader.(Unknown Source) at
org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:959)
at
org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:940)
at
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:887)
... 6 more
Here are few clarifications:
These logs are not related to Bot. Bot logs can be seen in the console while running the bot locally (no log file is created, you can ask for the feature here) and in the logs tab for the bot on Gupshup after deployment.
The exception you are seeing in the console is the Runtime Exception. As not mentioned specifically I assume you are running the bot's deploy goal as mvn gsbot:deploy.
The invalid LOC header (bad signature) exception may occur when there are any corrupted jar files in the local maven repository. You can find all the corrupted jars using following:
find ${USER_HOME}/.m2/repository/ -name "*jar" | xargs -L 1 zip -T | grep error | grep invalid
Then remove all the corrupted jars and update or forcefully update the maven project.
We have tried to get Allure reports generating as part of our Jenkins build.
We have followed the documentation here to the letter (except these instruction just don't work)
In following the instructions we have installed the allure jenkins plugin and the allure-nunit adapter (extracting the 7 files contained in the v0.1.0 zip to NUnit 2.6.3 addins subdirectory on Jenkins server, as instructed).
Console output is as follows:
Recording NUnit tests results
Allure Report Generation: started
Allure Report Generation: find directories by mask [**/AllureResults]
Allure Report Generation: found allure result directories [C:\Program Files
(x86)\Jenkins\jobs\<myjob>\workspace\AllureResults]
Allure Report Generation: copy founded directories in directory [C:\Program Files
(x86)\Jenkins\jobs\<myjob>\workspace\allure6887431138581709111.tmp\results]
Allure Report Generation: generate report from directory [C:\Program Files
(x86)\Jenkins\jobs\<myjob>\workspace\allure6887431138581709111.tmp]
Allure Report Generation: attach report link to build and project
Allure Report Generation: Can't delete directory [C:\Program Files
(x86)\Jenkins\jobs\<myjob>\workspace\allure6887431138581709111.tmp]
java.nio.file.FileSystemException: C:\Program Files
(x86)\Jenkins\jobs\<myjob>\workspace\allure6887431138581709111.tmp\repositories\com \fasterxml\jackson\core\jackson-annotations\2.3.0\jackson-annotations-2.3.0.jar: The process
cannot access the file because it is being used by another process.
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
at java.nio.file.Files.delete(Unknown Source)
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 hudson.Util.deleteFile(Util.java:247)
at hudson.Util.deleteRecursive(Util.java:310)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.FilePath$13.invoke(FilePath.java:1108)
at hudson.FilePath$13.invoke(FilePath.java:1105)
at hudson.FilePath.act(FilePath.java:918)
at hudson.FilePath.act(FilePath.java:896)
at hudson.FilePath.deleteContents(FilePath.java:1105)
at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.deleteRecursive(AllureReportPublisher.java:221)
at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.perform(AllureReportPublisher.java:143)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
at hudson.model.Run.execute(Run.java:1770)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Allure Report Generation: completed
Allure does not fail the build, it is marked as PASSED.
Within the Jenkins workspace\TestReports directory (created by my script) the nunit-testresults.xml file is correctly generated. The AllureResults directory is created and populated with a website shell (i.e. the data subdirectory has 0's against everything).
Another directory allure.tmp is created in the Jenkins workspace directory which includes a 'results' subdirectory, with generated files but 0's again in the files in the data subdirectory.
Also created is another copy of the AllureResults directory in the Jenkins workspace directory. Why?
In Jenkins itself I can click on the rendered "Allure Report" which gives me: "Test run (0 testsuites, 0 testcases) PASSED"
It appears to us the documentation is lacking, however it also appears there are people using it. How did they get it working?
Therefore are led to ask:
1. How did you get it to actually process the nunit-testresults.xml file?
1. Is there something else we need to install and(or) configure?
1. Are we supposed to install allure-core or is it included in the Jenkins Plugin or allure-nunit adapter?
Thanks in advance.
Further to your suggestions here.
I have installed 0.1.0 of the allure-nunit adapter and the latest version of the allure jenkins plugin.
I am running a build step batch file with the following content:
IF NOT EXIST "%WORKSPACE%\TestReports"
(
MKDIR TestReports
)
"C:\Program Files (x86)\NUnit 2.6.3\bin\nunit-console.exe" mytest.dll /framework=net-4.0 /xml=TestReports\nunit-data-testsuite.xml
exit %%ERRORLEVEL%%
This step is emitting nunit-data-testsuite.xml to the Jenkins workspace\TestReports directory.
I am NO LONGER running the allure-cli package.
As a post build step I run the Allure Report Generation task configure as follows:
Results Directories: **/TestReports
Report Version: Custom: 1.41 (should this be 1.39?)
Generate: For All Builds
Stuff got generated in the allure.tmp directory. I see that my nunit-data-testsuite.xml file was copied to the allure.tmp\results directory.
...looking good at this point.
...but then I got this in the console:
Recording NUnit tests results
Allure Report Generation: started
Allure Report Generation: find directories by mask [**/TestReports]
Allure Report Generation: found allure result directories [C:\Program Files (x86)\Jenkins\jobs\MyTests\workspace\TestReports]
Allure Report Generation: copy founded directories in directory [C:\Program Files (x86)\Jenkins\jobs\MyTests\workspace\allure6553695529802657068.tmp\results]
Allure Report Generation: generate report from directory [C:\Program Files (x86)\Jenkins\jobs\MyTests\workspace\allure6553695529802657068.tmp]
ERROR: Publisher ru.yandex.qatools.allure.jenkins.AllureReportPublisher aborted due to exception
java.io.IOException: ru.yandex.qatools.allure.report.AllureReportBuilderException: java.lang.reflect.InvocationTargetException
at ru.yandex.qatools.allure.jenkins.utils.ReportGenerator.invoke(ReportGenerator.java:47)
at ru.yandex.qatools.allure.jenkins.utils.ReportGenerator.invoke(ReportGenerator.java:18)
at hudson.FilePath.act(FilePath.java:918)
at hudson.FilePath.act(FilePath.java:896)
at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.generateReport(AllureReportPublisher.java:211)
at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.perform(AllureReportPublisher.java:141)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
at hudson.model.Run.execute(Run.java:1770)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: ru.yandex.qatools.allure.report.AllureReportBuilderException: java.lang.reflect.InvocationTargetException
at ru.yandex.qatools.allure.report.AllureReportBuilder.processResults(AllureReportBuilder.java:135)
at ru.yandex.qatools.allure.jenkins.utils.ReportGenerator.invoke(ReportGenerator.java:44)
... 14 more
Caused by: java.lang.reflect.InvocationTargetException
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 ru.yandex.qatools.allure.report.AllureReportBuilder.processResults(AllureReportBuilder.java:133)
... 15 more
Caused by: ru.yandex.qatools.allure.data.ReportGenerationException: net.sf.saxon.event.NoOpenStartTagException: An attribute node (type) cannot be created after the children of the containing element
at ru.yandex.qatools.allure.data.utils.XslTransformationUtils.applyTransformation(XslTransformationUtils.java:55)
at ru.yandex.qatools.allure.data.utils.XslTransformationUtils.applyTransformation(XslTransformationUtils.java:44)
at ru.yandex.qatools.allure.data.utils.XslTransformationUtils.applyTransformation(XslTransformationUtils.java:35)
at ru.yandex.qatools.allure.data.utils.XslTransformationUtils.applyTransformations(XslTransformationUtils.java:29)
at ru.yandex.qatools.allure.data.TestRunGenerator.generate(TestRunGenerator.java:69)
at ru.yandex.qatools.allure.data.AllureReportGenerator.generate(AllureReportGenerator.java:51)
... 20 more
Caused by: net.sf.saxon.event.NoOpenStartTagException: An attribute node (type) cannot be created after the children of the containing element
at net.sf.saxon.event.NoOpenStartTagException.makeNoOpenStartTagException(NoOpenStartTagException.java:49)
at net.sf.saxon.event.ComplexContentOutputter.attribute(ComplexContentOutputter.java:296)
at net.sf.saxon.instruct.CopyOf.copyAttribute(CopyOf.java:572)
at net.sf.saxon.instruct.Copy.processLeavingTail(Copy.java:221)
at net.sf.saxon.instruct.Template.expand(Template.java:220)
at net.sf.saxon.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:440)
at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317)
at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)
at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:174)
at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)
at net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:170)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Copy.processLeavingTail(Copy.java:217)
at net.sf.saxon.instruct.Template.expand(Template.java:220)
at net.sf.saxon.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:440)
at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317)
at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)
at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:174)
at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)
at net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:170)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Copy.processLeavingTail(Copy.java:217)
at net.sf.saxon.instruct.Template.expand(Template.java:220)
at net.sf.saxon.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:440)
at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317)
at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)
at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:174)
at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:378)
at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:333)
at net.sf.saxon.Controller.transformDocument(Controller.java:1807)
at net.sf.saxon.Controller.transform(Controller.java:1621)
at ru.yandex.qatools.allure.data.utils.XslTransformationUtils.applyTransformation(XslTransformationUtils.java:52)
... 25 more
Have I configured something incorrectly or is this a bug?
This exception is caused by Jenkins issue.
You're only supposed to install Jenkins plugin and run your tests with NUnit adapter enabled. That's all. Nothing else. Also see the details in the following issue.
HTML suite exception seen:
java.lang.RuntimeException: java.lang.RuntimeException: Firefox 3 could not be found in the path!
Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3 c:\blah\firefox.exe
at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.createBrowserLauncher(BrowserLauncherFactory.java:195)
at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.getBrowserLauncher(BrowserLauncherFactory.java:109)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.getBrowserLauncher(HTMLLauncher.java:79)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:139)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:198)
at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:640)
at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:305)
at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:245)
at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:96)
Caused by: java.lang.RuntimeException: Firefox 3 could not be found in the path!
Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3 c:\blah\firefox.exe
at org.openqa.selenium.browserlaunchers.locators.CombinedFirefoxLocator.findBrowserLocationOrFail(CombinedFirefoxLocator.java:49)
at org.openqa.selenium.server.browserlaunchers.BrowserInstallationCache.locateBrowserInstallation(BrowserInstallationCache.java:46)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.<init>(FirefoxChromeLauncher.java:53)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.createBrowserLauncher(BrowserLauncherFactory.java:184)
... 8 more
Publishing Selenium report...
ERROR: Publisher org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher aborted due to exception
java.lang.NullPointerException
at org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.perform(SeleniumHtmlReportPublisher.java:79)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
at hudson.model.Run.execute(Run.java:1757)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)
Finished: FAILURE
Firefox is installed in - C:\Program Files\Mozilla Firefox
I have added the path in the Environment variables "*firefox C:\Program Files (x86)\Mozilla Firefox\" without quotes..
Selenium version used - selenium-server-standalone-2.39.0.jar
Mozilla Firefox version - 30.0
OS - Windows 8.1
Using Grails 2.2.3
I'm going to keep my test resources in test/resources directory. Want to expand test classpath with it. In BuildConfig.groovy I've added this line:
grailsSettings.testDependencies.add new File("${basedir}/test/resources")
After that grails test-app unit: fails with:
_GrailsClasspath_groovy: 17: unable to resolve class org.codehaus.groovy.grails.compiler.GrailsProjectCompiler
# line 17, column 1.
Exception gone if I'm commenting out this line.
For sure this code worked in Grails 1.3.2
UPDATE 1
Tried to upgrade to Grails 2.2.4. Same problem
UPDATE 2
Here's full stacktrace
| Error Error executing script TestApp: org/codehaus/groovy/grails/compiler/GrailsProjectCompiler (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.NoClassDefFoundError: org/codehaus/groovy/grails/compiler/GrailsProjectCompiler
at _GrailsClasspath_groovy.run(_GrailsClasspath_groovy:36)
at _GrailsClasspath_groovy$run.call(Unknown Source)
at _GrailsEvents_groovy$run.call(Unknown Source)
at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at _GrailsEvents_groovy.run(_GrailsEvents_groovy:32)
at _GrailsEvents_groovy$run.call(Unknown Source)
at _GrailsClean_groovy$run.call(Unknown Source)
at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at _GrailsClean_groovy.run(_GrailsClean_groovy:29)
at _GrailsClean_groovy$run.call(Unknown Source)
at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at TestApp.run(TestApp.groovy:24)
at TestApp$run.call(Unknown Source)
at gant.Gant.prepareTargets(Gant.groovy:607)
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.grails.compiler.GrailsProjectCompiler
... 17 more
| Error Error executing script TestApp: org/codehaus/groovy/grails/compiler/GrailsProjectCompiler
You can find all build path options in grails.util.BuildSettings class.
I don't found any special folder for test resources.
Try to create /test/resources folder. It should be the same.
I am using Mono for Android and followed the instructions mentioned on this page: http://file.emgu.com/wiki/index.php/Emgu_CV_for_Android but when I run the application on the emulator, it throws the following exception:
Java.Lang.UnsatisfiedLinkError has been thrown Cannot load library:
find_library[1199]: 37 'libopencv_highgui.so' failed to load
previously
Java.Lang.UnsatisfiedLinkError: Cannot load library:
find_library[1199]: 37 'libopencv_highgui.so' failed to load
previously at Android.Runtime.JNIEnv.CallStaticVoidMethod (IntPtr
jclass, IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00023] in
/Users/builder/data/lanes/monodroid-mac-monodroid-4.2.4-branch/9f7cbd60/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:973
at Java.Lang.JavaSystem.LoadLibrary (System.String libName)
[0x00034] in
/Users/builder/data/lanes/monodroid-mac-monodroid-4.2.4-branch/9f7cbd60/source/monodroid/src/Mono.Android/platforms/android-15/src/generated/Java.Lang.JavaSystem.cs:253
at Emgu.CV.CvInvoke..cctor () [0x00000] in :0
--- End of managed exception stack trace ---
java.lang.UnsatisfiedLinkError: Cannot load library:
find_library[1199]: 37 'libopencv_highgui.so' failed to load
previously
at java.lang.Runtime.loadLibrary(Runtime.java:370)
at java.lang.System.loadLibrary(System.java:535)
at
mono.android.view.View_OnClickListenerImplementor.n_onClick(Native
Method)
at
mono.android.view.View_OnClickListenerImplementor.onClick(View_OnClickListenerImplementor.java:29)
at android.view.View.performClick(View.java:3511)
at android.view.View$PerformClick.run(View.java:14105)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Here is a screenshot of OpenCV-2.4.2 reference