JasperReports 7.1.0 error installation in ubuntu 18.04 : BUILD FAILED the following error occured while executing import-export.xml - jasperserver

I'm installing JasperReports server 7.1.0 on an Ubuntu 18.04 VM machine.
I tried the bundle installation and the manual installation and getting the same error.
In the manual installation, I'm using:
mysql 5.7
Tomcat 8
Java 8 (version "1.8.0_221")
Output:
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
BUILD FAILED
/home/ranya/Téléchargements/TIB_js-jrs_7.1.0_bin/jasperreports-server-pro-7.1.0-bin/buildomatic/bin/db-common.xml:1373: The following error occurred while executing this line:
/home/ranya/Téléchargements/TIB_js-jrs_7.1.0_bin/jasperreports-server-pro-7.1.0-bin/buildomatic/bin/import-export.xml:387: The following error occurred while executing this line:
/home/ranya/Téléchargements/TIB_js-jrs_7.1.0_bin/jasperreports-server-pro-7.1.0-bin/buildomatic/bin/import-export.xml:196: Java returned: 137
Total time: 6 minutes 57 seconds
Checking Ant return code: OK

Related

An internal error occurred during: "Starting GlassFish 5 [domain1]". Can't find bundle for base name sun.util.logging.resources.logging, locale en_DE

I am using eclipse IDE, and Glassfish5. OS is MAC. Java version is 13.0.1.
I have just started with an EJB tutorial, and found that I need Glassfish. I downloaded and added to my server. Now when I am starting it, following error occurs-
An internal error occurred during: "Starting GlassFish 5 (2) [domain1]".
Can't find bundle for base name sun.util.logging.resources.logging, locale en_DE
I got following on console-
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
-Djava.endorsed.dirs=/Users/kum/Downloads/glassfish5 2/glassfish/modules/endorsed:/Users/kum/Downloads/glassfish5 2/glassfish/lib/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Attaching my screenshot of the error-
I have tried removing and downloading full version of glassfish. But keeps on getting same error.
Somebody help please.
As suggested above, I changed the java version from 13 to 8. The server has started successfully.
I did the following steps-
On terminal brew tap adoptopenjdk/openjdk
Once above step is completed I typed brew cask install adoptopenjdk8
Once adoptopenjdk8 is installed, I checked if it is correctly installed. So I did this- ls -la /Library/Java/JavaVirtualMachines
It gave me following lines-
drwxr-xr-x 4 root wheel 128 Nov 27 11:20 .
drwxr-xr-x 4 root wheel 128 Oct 24 14:09 ..
drwxr-xr-x 3 root wheel 96 Nov 27 11:20 adoptopenjdk-8.jdk
drwxr-xr-x 3 root wheel 96 Oct 24 14:09 jdk-13.0.1.jdk
Then I checked my JAVA_HOME by doing this- echo $JAVA_HOME This gave me following
/Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home
Here, it can be seen that I have jdk-13, which I need to change to jdk 1.8. That is, I have to change my JAVA_HOME.
Change JAVA_HOME by export JAVA_HOME=`/usr/libexec/java_home -v 1.8
After this, just check the java version by java -version I got the following-
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.232-b09, mixed mode)
Thats it.
Dont forget to change the runtime environment in the glassfish server on eclipse.
Do it by-Eclipse-preferences-server-Runtime Environments-Select Glassfish-Edit-Change Java Location to your recent /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home

SonerQube doesnt start

Sonarqube Startup script does not start ob ubuntu 16.04
Error log shows:
Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11+ to run
java.lang.IllegalStateException: SonarQube requires Java 11+ to run
at org.sonar.application.App.checkJavaVersion(App.java:93)
at org.sonar.application.App.start(App.java:56)
at org.sonar.application.App.main(App.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
at java.lang.Thread.run(Thread.java:748)
<-- Wrapper Stopped
--> Wrapper Started as Console
Launching a JVM...
Startup failed: Timed out waiting for a signal from the JVM.
JVM did not exit on request, terminated
JVM Restarts disabled. Shutting down.
<-- Wrapper Stopped
If i run java -version:
java version "11.0.3" 2019-04-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.3+12-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.3+12-LTS, mixed mode)
Open conf/wrapper.conf file
Change wrapper.java.command=java to path where your JavaDK is installed eg. wrapper.java.command=C:\Program Files\Java\jdk-11.0.4\bin\java
I had the same problem a few moments ago, my JAVA_HOME variable pointed to the correct version of my profile, but when I run java -version, it printed 1.8, so I run this command:
update-java-alternatives -l
This showed me all Java versions that were installed on my machine.
After that, I run this another command:
sudo update-java-alternatives -s java-11-oracle
This changed the Java version on my machine and it works just fine.
"Warning Support for Java 8 has been deprecated in SonarQube v7.8 and will be removed in SonarQube v7.9 LTS."
checkout you java -version, and the Supported Platforms requirements: https://docs.sonarqube.org/7.7/requirements/requirements/
Then go to the downloads and choose what is the best for you:
https://www.sonarqube.org/downloads/ (Show all versions)
Check for the JRE version, I have come across the issue where the Java SDK version and JRE -version was different. That may be the issue.
Most user would like to download JDK 11 here as mentioned in recent comments. That should works.
However, I would recommend to install latest version from following link (because you have just downloaded latest sonarqube) for better compatibility.
SDK download link: https://www.oracle.com/java/technologies/javase-downloads.html
FYI,
For mac user,
Install JVM on your machine (I installed it by Homebrew).
brew cask install java
and restarted the sonar by
./sonar.sh restart
it worked for me

Antlr 4 IDE installation Failure

Following a clean install of Ubuntu 18.04, and subsequent installation of Eclipse (Version: Oxygen.3a Release (4.7.3a)) i have tried to install the Antlr4 ide using "Help -> Eclipse Marketplace", Search for Antlr4 and click Install (ANTLR 4 IDE 0.3.6). I am then given the error below:
My Java version is as follows:
%java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
Also installing jdk 11 resulted in this:
openjdk-11-jdk-headless is already the newest version (10.0.1+10-3ubuntu1)
I effectively get the same error when installing from https://marketplace.eclipse.org/content/antlr-4-ide.
Has this error been seen before, and is there a solution ?

Error on starting spark with start-all.sh

When I try to start the spark with the script start-all.sh it throws an error as
> localhost: failed to launch: nice -n 0 bin/spark-class
> org.apache.spark.deploy.worker.Worker --webui-port 8081
> spark://dev-pipeline-west-eu.jwn4tgenexauzewylryxtm545b.ax.internal.cloudapp.net:7077
> localhost: at
> sun.launcher.LauncherHelper.loadMainClass(java.base#9-internal/LauncherHelper.java:585)
> localhost: at
> sun.launcher.LauncherHelper.checkAndLoadMain(java.base#9-internal/LauncherHelper.java:497)
> localhost: full log in
> /spark-2.1.0-bin-hadoop2.7/logs/spark-shankar-org.apache.spark.deploy.worker.Worker-1-dev-pipeline-west-eu.out
When I looked to the log file available at /spark-2.1.0-bin-hadoop2.7/logs/spark-shankar-org.apache.spark.deploy.worker.Worker-1-dev-pipeline-west-eu.out has following error log.
> Error: A JNI error has occurred, please check your installation and
> try again Exception in thread "main"
> java.lang.ArrayIndexOutOfBoundsException: 64
> at java.util.jar.JarFile.match(java.base#9-internal/JarFile.java:983)
> at java.util.jar.JarFile.checkForSpecialAttributes(java.base#9-internal/JarFile.java:1017)
> at java.util.jar.JarFile.isMultiRelease(java.base#9-internal/JarFile.java:399)
> at java.util.jar.JarFile.getEntry(java.base#9-internal/JarFile.java:524)
> at java.util.jar.JarFile.getJarEntry(java.base#9-internal/JarFile.java:480)
> at jdk.internal.util.jar.JarIndex.getJarIndex(java.base#9-internal/JarIndex.java:114)
What causes the error any idea?
I had the same issue with Ubuntu 16.04.
Updating Java fixed the issue:
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Solution
Use Java version 8 not version 9.
Option 1
One option would be to uninstall Java (version 9) and reinstall Java (version 8). (You can view this posting for installing Java; make sure you make necessary changes so you install version 8.)
Option 2
If you have both installed and you are using Ubuntu, you can use this command:
sudo update-alternatives --config java
To the prompt you will see, respond with the integer associated with Java 8 and press enter.
Form:
http://continualintegration.com/miscellaneous-articles/how-do-you-troubleshoot-the-spark-shell-error-a-jni-error-has-occurred

Android build Ubuntu 16.04.1 required BlockingQueue

I am trying to build the Android source Build: LMY48M (android-5.1.1_r14) on Ubuntu 16.04.1
Got the following error
out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/java/util/concurrent/ScheduledThreadPoolExecutor.java:9: warning: [unchecked] unchecked conversion
public ScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.util.concurrent.RejectedExecutionHandler handler) { super(0,0,0,(java.util.concurrent.TimeUnit)null,(java.util.concurrent.BlockingQueue)null,(java.util.concurrent.ThreadFactory)null,(java.util.concurrent.RejectedExecutionHandler)null); throw new RuntimeException("Stub!"); }
^
required: BlockingQueue<Runnable>
found: BlockingQueue
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
#### make failed to build some targets (01:15:26 (hh:mm:ss)) ####
I am using OpenJDK-7
P.S: I was intented to build on Ubuntu 14.04, however I am using a skylake processor that doesn't have support on Ubuntu 14.04.
However, I successfully build the same Android build on a virtual box running Ubuntu 14.04 on this same machine.
Any help is appreciated.
Update#2
By following #Nir Duan suggestion, I am using OracleJDK7. but as soon I run make -j32 I am getting this error,
You asked for an OpenJDK 7 build but your version is
java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode).
************************************************************
build/core/main.mk:191: *** stop. Stop.
You're problem is because you need Oracle JDK7 and not OpenJDK-7 when building the source.
Use these commands:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
The result of $ java -version should be this:
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
(If not look here and change default java version)