The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
NoSQL Mongo extension causing java.lang.NullPointerException
Hi,
I have RM 2.4 server problem. I copied NoSQL (rmx_nosql-6.4.0) and text mining (rmx_text-6.4.1) extensions from RM Studio into server plugins directory. They load fine, I configured Mongo connection and it tests OK in config window. The server is trial version, running with Java jre-7u79 64bit on Windows7.
When I run a process with Mongo read it fails like this:
Anyone have any ideas about this issue?
Ozzy
I have RM 2.4 server problem. I copied NoSQL (rmx_nosql-6.4.0) and text mining (rmx_text-6.4.1) extensions from RM Studio into server plugins directory. They load fine, I configured Mongo connection and it tests OK in config window. The server is trial version, running with Java jre-7u79 64bit on Windows7.
When I run a process with Mongo read it fails like this:
May 30, 2015 8:53:16 PM <unknown> <unknown>Same process executes OK on RM Studio.
INFO: Process context is: Macros: [_ra_user : admin, _ra_jobID : 28]; Input: []; Output: []
May 30, 2015 8:53:16 PM <unknown> <unknown>
INFO: No filename given for result file, using stdout for logging results!
May 30, 2015 8:53:16 PM <unknown> <unknown>
INFO: Process //_LOCAL/home/admin/test2mongo starts
May 30, 2015 8:53:16 PM <unknown> <unknown>
SEVERE: Process failed: java.lang.NullPointerException
May 30, 2015 8:53:16 PM <unknown> <unknown>
SEVERE: Here: Process[1] (Process)
subprocess 'Main Process'
==> +- Read MongoDB[1] (Read MongoDB)
+- JSON To Data[0] (JSON To Data)
Anyone have any ideas about this issue?
Ozzy
Tagged:
0
Answers
can you please post the entire server.log? I just tried it and it works fine for me.
Regards,
Marco
that helps, however we still need the complete server.log, from the point onwards you executed the process. The setup behind the scenes before the actual process execution is the most interesting part for us
Regards,
Marco
After that I connected rapidminer studio and when I connect to RM server repository bunch of socket write errors start to pop up. This is another problem that makes it impossible to work with the server over the VPN connection.I figured that this might be related to my original problem so you will see these errors after the mongo error.
Log file is to big for a post so here is dropbox link:
https://www.dropbox.com/s/nvey3tviawqd0fu/server.log?dl=0
Thanks
Ozzy
Are you executing the process as admin? How exactly did you start it? Via Studio or via Server interface? Because the log states it does not know the user and thus falls back to a null user. The NullPointerException is a bug on our side regardless (I have filed a ticket for that), but the process should not be executed as a null user..
On another note, do you experience any problems regarding the socket write errors, or is it purely in the logs? From my experience, those socket write errors can be safely ignored.
Regards,
Marco
yes I was executing the process as admin. I tried running it from the Studio and via the server web interface.. with the same results.
I'll try with another user account and see if this helps.
Regarding socket write errors, when I run Studio locally, there are occasional freeze-ups when communicating with the server and once in a while server status will go offline. If I try to connect via remote VPN connection, server is unusable due to excruciating pauses almost every time you try to access it from the studio. .
Ozzy
Is this a matter of using the same usernames in windows and RM ? Is there a quick workaround you can think of so I can get going until bug fix gets done?
Ozzy
no, this is weird. Can you try explicitly setting all permissions on the MongoDB connection in the Server UI?
Regards,
Marco
I am starting to think that maybe we have some wired interplay of different versions of OS, Java and Mongo extensions...
I am thinking of doing a totally fresh install on a brand new server..
What is the proven version of Java jre for windows install I should use?
Ozzy
if anything, it is a problem stemming from something in the database backing the server.
Latest Java 7 is recommended. Won't work with Java 8 at the moment.
Regards,
Marco
I did a fresh W2012 server install, loaded fresh mySQL, Java 7 jre, installed Rapidminer server and loaded Mongo extensions.
Now I get java null pointer exception when I test the server connection during the configuration. So, worse than before....
Any ideas where do we go from here....?
Ozzy
after a long night and some sleep, fresh start in the morning... coffee and ... solution !
Back to original install, it all seems to be related to anonymous user account in RM server. I created anonymous and anonymousUser accounts and this got the whole thing going. I'll do some more tests and report further details if any...
Thanks,
Ozzy
I'm afraid that's a quirk when creating a new connection via the Server UI. You need to click "Submit" before testing because of the way it works behind the scenes. Otherwise the data you enter is not set and you're basically testing whether an all empty connection works.
What I would suggest is actually using Studio to create and edit Server connections via "Tools"-> "Manage Connections". You can select your Server on the left side and then test and store connections via the GUI.
Regards,
Marco