Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
"Rapidminer.init() java.lang.ExceptionInInitializerError"
Hi, I'm a student trying to incorporate rapidminer in my java code. I got everything working on my laptop (initializing rapidminer, generating an example set, building a model), but when I move the exact same code to a server, I have the following problem at RapidMiner.init();
It seems like it is failing at Loading operator documentation from jar, but I cannot figure out why. Has anyone run into this problem before? Thanks so much for your help!
2010-11-08 07:37:58 CONFIG: Locale not specified explicitly. Set default locale to US. (RapidMiner.init())
2010-11-08 07:37:58 CONFIG: Initializing I18N (RapidMiner.splashMessage())
2010-11-08 07:37:58 CONFIG: Ensuring RapidMiner Home is set (RapidMiner.splashMessage())
2010-11-08 07:37:58 INFO: Property rapidminer.home is not set. Guessing. (Launcher.ensureRapidMinerHomeSet())
2010-11-08 07:37:58 INFO: Trying base directory of classes (build) '/home/modechoice/slicer/lib'...gotcha! (Launcher.ensureRapidMinerHomeSet())
2010-11-08 07:37:58 CONFIG: Reading Configuration Files (RapidMiner.splashMessage())
2010-11-08 07:37:58 CONFIG: Reading configuration resource com/rapidminer/resources/rapidminerrc. (ParameterService.loadAllRCFiles())
2010-11-08 07:37:58 CONFIG: Execution mode UNKNOWN does not permit file access. Ignoring all rcfiles. (ParameterService.loadAllRCFiles())
2010-11-08 07:37:58 CONFIG: Registering Plugins (RapidMiner.splashMessage())
2010-11-08 07:37:58 CONFIG: Creating directory '/root/.RapidMiner5'. (ParameterService.getUserRapidMinerDir())
2010-11-08 07:37:58 CONFIG: Read extension state. (ManagedExtension.readConfiguration())
2010-11-08 07:37:58 CONFIG: Plugin directory /home/modechoice/slicer/lib/lib/plugins does not exist. (Plugin.findPlugins())
2010-11-08 07:37:58 CONFIG: Initializing Operators (RapidMiner.splashMessage())
2010-11-08 07:37:58 CONFIG: Loading operators from 'OperatorsCore.xml'. (OperatorService.registerOperators())
2010-11-08 07:37:59 CONFIG: Loading operator documentation from jar:file:/home/modechoice/slicer/lib/RapidMiner/rapidminer.jar!/com/rapidminer/resources/i18n/OperatorsCoreDocumentation.xml. (OperatorDocBundle$XMLControl.newBundle())
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
at com.rapidminer.operator.OperatorDescription.loadIcons(OperatorDescription.java:371)
at com.rapidminer.operator.OperatorDescription.<init>(OperatorDescription.java:98)
at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.java:282)
at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.java:279)
at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.java:255)
at com.rapidminer.tools.OperatorService.registerOperators(OperatorService.java:229)
at com.rapidminer.tools.OperatorService.registerOperators(OperatorService.java:203)
at com.rapidminer.tools.OperatorService.init(OperatorService.java:149)
at com.rapidminer.RapidMiner.init(RapidMiner.java:398)
at MainRunner.Slicer.main(Slicer.java:56)
Caused by: java.lang.NullPointerException
at java.security.SecureRandom.nextBytes(SecureRandom.java:292)
at java.security.SecureRandom.next(SecureRandom.java:311)
at java.util.Random.nextLong(Random.java:247)
at java.io.File.generateFile(File.java:1682)
at java.io.File.createTempFile(File.java:1791)
at javax.imageio.stream.FileCacheImageInputStream.<init>(FileCacheImageInputStream.java:96)
at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(InputStreamImageInputStreamSpi.java:51)
at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:343)
at javax.imageio.ImageIO.read(ImageIO.java:1383)
at com.rapidminer.gui.tools.DefaultFrameIconProvider.getFrameIcons(DefaultFrameIconProvider.java:55)
at com.rapidminer.gui.tools.SwingTools.reloadFrameIcons(SwingTools.java:187)
at com.rapidminer.gui.tools.SwingTools.setFrameIconProvider(SwingTools.java:175)
at com.rapidminer.gui.tools.SwingTools.setupFrameIcons(SwingTools.java:179)
at com.rapidminer.gui.tools.SwingTools.<clinit>(SwingTools.java:170)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
... 10 more
It seems like it is failing at Loading operator documentation from jar, but I cannot figure out why. Has anyone run into this problem before? Thanks so much for your help!
2010-11-08 07:37:58 CONFIG: Locale not specified explicitly. Set default locale to US. (RapidMiner.init())
2010-11-08 07:37:58 CONFIG: Initializing I18N (RapidMiner.splashMessage())
2010-11-08 07:37:58 CONFIG: Ensuring RapidMiner Home is set (RapidMiner.splashMessage())
2010-11-08 07:37:58 INFO: Property rapidminer.home is not set. Guessing. (Launcher.ensureRapidMinerHomeSet())
2010-11-08 07:37:58 INFO: Trying base directory of classes (build) '/home/modechoice/slicer/lib'...gotcha! (Launcher.ensureRapidMinerHomeSet())
2010-11-08 07:37:58 CONFIG: Reading Configuration Files (RapidMiner.splashMessage())
2010-11-08 07:37:58 CONFIG: Reading configuration resource com/rapidminer/resources/rapidminerrc. (ParameterService.loadAllRCFiles())
2010-11-08 07:37:58 CONFIG: Execution mode UNKNOWN does not permit file access. Ignoring all rcfiles. (ParameterService.loadAllRCFiles())
2010-11-08 07:37:58 CONFIG: Registering Plugins (RapidMiner.splashMessage())
2010-11-08 07:37:58 CONFIG: Creating directory '/root/.RapidMiner5'. (ParameterService.getUserRapidMinerDir())
2010-11-08 07:37:58 CONFIG: Read extension state. (ManagedExtension.readConfiguration())
2010-11-08 07:37:58 CONFIG: Plugin directory /home/modechoice/slicer/lib/lib/plugins does not exist. (Plugin.findPlugins())
2010-11-08 07:37:58 CONFIG: Initializing Operators (RapidMiner.splashMessage())
2010-11-08 07:37:58 CONFIG: Loading operators from 'OperatorsCore.xml'. (OperatorService.registerOperators())
2010-11-08 07:37:59 CONFIG: Loading operator documentation from jar:file:/home/modechoice/slicer/lib/RapidMiner/rapidminer.jar!/com/rapidminer/resources/i18n/OperatorsCoreDocumentation.xml. (OperatorDocBundle$XMLControl.newBundle())
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
at com.rapidminer.operator.OperatorDescription.loadIcons(OperatorDescription.java:371)
at com.rapidminer.operator.OperatorDescription.<init>(OperatorDescription.java:98)
at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.java:282)
at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.java:279)
at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.java:255)
at com.rapidminer.tools.OperatorService.registerOperators(OperatorService.java:229)
at com.rapidminer.tools.OperatorService.registerOperators(OperatorService.java:203)
at com.rapidminer.tools.OperatorService.init(OperatorService.java:149)
at com.rapidminer.RapidMiner.init(RapidMiner.java:398)
at MainRunner.Slicer.main(Slicer.java:56)
Caused by: java.lang.NullPointerException
at java.security.SecureRandom.nextBytes(SecureRandom.java:292)
at java.security.SecureRandom.next(SecureRandom.java:311)
at java.util.Random.nextLong(Random.java:247)
at java.io.File.generateFile(File.java:1682)
at java.io.File.createTempFile(File.java:1791)
at javax.imageio.stream.FileCacheImageInputStream.<init>(FileCacheImageInputStream.java:96)
at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(InputStreamImageInputStreamSpi.java:51)
at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:343)
at javax.imageio.ImageIO.read(ImageIO.java:1383)
at com.rapidminer.gui.tools.DefaultFrameIconProvider.getFrameIcons(DefaultFrameIconProvider.java:55)
at com.rapidminer.gui.tools.SwingTools.reloadFrameIcons(SwingTools.java:187)
at com.rapidminer.gui.tools.SwingTools.setFrameIconProvider(SwingTools.java:175)
at com.rapidminer.gui.tools.SwingTools.setupFrameIcons(SwingTools.java:179)
at com.rapidminer.gui.tools.SwingTools.<clinit>(SwingTools.java:170)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
... 10 more
Tagged:
0
Answers
your server seems to run under an incompatible JVM it seems to me. Try to start RapidMiner in the Server Mode by calling RapidMiner.setExecution Mode before calling the init method.
Greetings,
Sebastian
Before my Rapidminer.init() line, I tried
RapidMiner.setExecutionMode(RapidMiner.ExecutionMode. the following list );
APPLET,APPSERVER,COMMAND_LINE,EMBEDDED_WITH_UI,EMBEDDED_WITHOUT_UI,UI,UNKNOWN,WEBSTART
I first tried appserver, and command_line, and I just thought it would go through all of them, but none worked.
I'm still trying to figure out why RapidMiner.init won't work, do you happen to have any other tips? Thanks for the help!
Previous JVM where could not run rapidminer was:
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxi3260sr8fp1-20100624_01(SR8 FP1))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr8ifx-20100609_59383 (JIT enabled, AOT enabled)
J9VM - 20100609_059383
JIT - r9_20100401_15339ifx2
GC - 20100308_AA)
JCL - 20100624_01
Now using OpenJVM
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (suse-28.3-i386)
OpenJDK Client VM (build 14.0-b08, mixed mode)