Error on sonar-maven-plugin when analyzing csharp projects - maven-plugin

I got an error when analyzing csharp projects in sonar 3.1.1
It fails to execute sonar-maven-plugin. Here is my log file data.
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on
project MyProject: Can not execute Sonar: Error occured while reading Visual Studio files.
Could not evaluate the expression com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl#ec73b9 on project
D:\projects\MyProject\src\framework\MyPro\MyPro.csproj: XPathExpressionException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration
cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read
the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVE/MojoExecutionException
please help me to solve this issue...

You have probably added an extra JAR that is messing up the classpath. You should try to make a fresh install and everything should be OK.

Related

zookeeper 3.6.2 c client compile failed

I downloaded the 3.6.2 source tarball (apache-zookeeper-3.6.2.tar.gz, sha512sum: 16994067d460a1b6af6a71f3458c64ee32629e876a1ff6646d57be62f1a5adab57462af84074ecaded4186dd3fde035ee24cd9d578b8e5044073eb05f4ab9c3e) from apache zookeeper website. Tried to compile its C client in a debian 10 OS.
In dir zookeeper-client/zookeeper-client-c, I ran "autoreconf -if" and "./configure --enable-debug". configure complained about "configure: error: jute files are missing! Please run "ant compile_jute" while in the zookeeper top level directory."
But then tried to run "ant compile_jute" at the top dir. complained about "Buildfile: build.xml does not exist!". Did some search and tried "mvn -pl zookeeper-jute compile" at the top dir. But still have some error. Can anyone know how to solve the issue? Thanks,
xing#debian10-dev ~/d/apache-zookeeper-3.6.2> mvn -pl zookeeper-jute compile
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< org.apache.zookeeper:zookeeper-jute >-----------------
[INFO] Building Apache ZooKeeper - Jute 3.6.2
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) # zookeeper-jute ---
[INFO]
[INFO] --- mavanagaiata:0.9.4:commit (find-current-git-revision) # zookeeper-jute ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.299 s
[INFO] Finished at: 2021-03-20T23:07:23-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.koraktor:mavanagaiata:0.9.4:commit (find-current-git-revision) on project zookeeper-jute: Unable to read Git commit information: Commit "24e9d01f1321d22f1eef2a3fc0f1b3d68f68d12c" could not be loaded. Short read of block. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Updated on 3/21:
The instructions coming with README (run "ant compile_jute" at top level dir and then "autoreconf -if; ./configure --enable-debug" in dir zookeeper-client/zookeeper-client-c) seem to work for version 3.5.9. I have switched to use that version while waiting for them to update the README for 3.6.2.

Building flink from source---error of resolving dependencies

I am trying to build Apache Flink from the source. I am strictly following
the instructions given #github flink page. https://github.com/apache/flink
I am facing the error for resolving the dependencies for project
flink-mapr-fs.
Firstly, I tried using latest maven, and afterward, as per instruction at
the flink github page https://github.com/apache/flink
https://github.com/apache/flink , I also tried via maven 3.1.1, but the
same error.
In addition, I tried for flink 1.8.0 and 1.7.2 as well but the same problem exist. The detail of error is as below:
[ERROR] Failed to execute goal on project flink-mapr-fs: Could not resolve dependencies for project org.apache.flink:flink-mapr-fs:jar:1.7.2: Could not transfer artifact com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to mapr-releases (http://repository.mapr.com/maven/): GET request of: com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases failed: Premature end of Content-Length delimited message body (expected: 49411916; received: 39845888 -> [Help 1]

Codename one uwp build failed

until yesterday everything was fine, I could build my UWP app and download it from the build server.
From today, without changing anything I get an error:
[exec] Using shared compilation with compiler from directory: C:\Program Files (x86)\MSBuild\14.0\Bin
[exec] src\com\codename1\admob\AdMobNativeImplFactoryImpl.cs(6,20): error CS0266: Cannot implicitly convert type 'com.codename1.admob.AdMobNativeImpl' to 'com.codename1.admob.IAdMobNativeImpl'. An explicit conversion exists (are you missing a cast?) [C:\Users\CODENA~1\AppData\Local\Temp\build8891191631952326639xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj]
[exec] Done Building Project "C:\Users\CODENA~1\AppData\Local\Temp\build8891191631952326639xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj" (default targets) -- FAILED.
[exec]
[exec] Build FAILED.
[exec]
[exec] "C:\Users\CODENA~1\AppData\Local\Temp\build8891191631952326639xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj" (default target) (1) ->
[exec] (XamlPreCompile target) ->
[exec] src\com\codename1\admob\AdMobNativeImplFactoryImpl.cs(6,20): error CS0266: Cannot implicitly convert type 'com.codename1.admob.AdMobNativeImpl' to 'com.codename1.admob.IAdMobNativeImpl'. An explicit conversion exists (are you missing a cast?) [C:\Users\CODENA~1\AppData\Local\Temp\build8891191631952326639xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj]
[exec]
[exec] 0 Warning(s)
[exec] 1 Error(s)
[exec]
[exec] Time Elapsed 00:00:04.94
BUILD FAILED
C:\Users\CODENA~1\AppData\Local\Temp\build8891191631952326639xxx\TestProject\build-win.xml:64: exec returned: 1
does anyone know how to fix?
We released an update that added support for native interfaces for UWP which might have failed for some older stub code generated for the previous Windows versions.
I'm assuming you are using the full screen admob cn1lib?
Please file an issue or a pull request to fix this. We can probably fix it some time next week, if you want it now these are the steps to do the fix yourself:
Checkout the cn1lib sources from github
Delete the files under native/windows
Open the project in NetBeans
Find the interfaces implementing NativeInterface
Right click them and select Generate Native Sources: IMPORTANT answer NO to overwriting existing code
Build and install the library
Extra credit:
Commit the change and submit a pull request for that and ideally fork http://github.com/codenameone/CodenameOneLibs/ and submit the updated library there.

Apache Flink Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/Traversable

I have just started learning Apache Flink and found the guide link to start the development in EClipse IDE.
I followed the this to start off but getting the below error
00:20:26,993 INFO org.apache.flink.api.java.ExecutionEnvironment - The job has 0 registered types and 0 default Kryo serializers
Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/Traversable
at java.lang.ClassLoader.defineClass1(Native Method)
Here I have place the Error log log File ... Please let me know if your require more details. Thanks, Nyamath
java.util.zip.ZipException: invalid LOC header (bad signature)
Your Scala jar file provided by Maven seems to be corrupted. Please update your Maven dependencies by executing this from your project folder on the command line:
mvn -U clean install
In Eclipse, right click on your project and click on Update - - > Maven dependencies.
If that does not work you'll need to delete the corrupted Jar file in the .m2/repositories/ folder.

m2eclipse - Mystery Build Failure on Package

I am using Eclipse 3.6 (Helios64) and m2eclipse 0.12.1.20110112-1712. I have a new project that only contains two classes that builds a jar. When I right click the project and select "Run As -> Maven package", I get the following error:
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # switch-provisioning-rest-client --- [INFO] Compiling 2 source files to C:\Devel\EclipseProjects\MyProject\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
javac: invalid flag: -s
...
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
When I set up a run configuration with the Goals "package -X", the project builds without error. If I run a configuration with the goal set to compile, it builds without error and I can then run "Maven package" successfully.
This is the only project I'm having issues with. All my other projects build sucessfully when doing a "Maven package".
There's nothing exceptional about the project pom.xml. It refers to the same parent pom as the other projects and contains its project specific dependencies.
Has anybody got any ideas what could be different about this project?
TIA!
This issue was answered on the m2eclipse mailing list:
http://dev.eclipse.org/mhonarc/lists/m2e-users/msg01818.html
Although my pom had 1.6 as the version, the project configuration hadn't been updated.
From: Benjamin Bentmann
This issue is not really specific to m2e but applies to mvn in general, as such the Maven user list might provide a better audience for help.
IIRC, the specific error means you trying to use a JDK 1.5 while you need JDK 1.6+ where the javac option in question was added. Assuming your project should actually compile against JDK 1.5, downgrading the maven-compiler-plugin version might also do, I would expect it started to use the -s option when the annotation processing support was added.

Resources