Mango in Raspberry Pi B+ - Error during initialization
-
Hi, I am trying to install Mango 2.4.0 in a Raspberry Pi B+.
I am using the latest Raspbian and Java 1.8._06
When I execute ma-start.sh file i got the following error
INFO 2014-07-24 17:09:46,525 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'pachube', v1.4.7 by Infinite Automation Software INFO 2014-07-24 17:09:46,908 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'openv4j', v1.0.4 by aploese INFO 2014-07-24 17:09:46,975 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'opcda', v1.5.5 by Infinite Automation Software INFO 2014-07-24 17:09:47,126 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'dglux', v1.0.11 by Infinite Automation Software INFO 2014-07-24 17:09:47,243 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'internal', v1.4.4 by Infinite Automation Software INFO 2014-07-24 17:09:47,448 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'meta', v2.0.7 by Infinite Automation Software INFO 2014-07-24 17:09:47,762 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'twilio', v1.0.3 by (unknown vendor) INFO 2014-07-24 17:09:47,898 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'sstGraphics', v1.0.5 by Infinite Automation Software INFO 2014-07-24 17:09:47,994 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'jspViews', v2.0.3 by Infinite Automation Software INFO 2014-07-24 17:09:48,719 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'http', v1.4.6 by Infinite Automation Software INFO 2014-07-24 17:09:48,847 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'virtualDS', v1.4.4 by Infinite Automation Software INFO 2014-07-24 17:09:48,960 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'abeip', v1.0.6 by Deltamation Software INFO 2014-07-24 17:09:49,054 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'asciiFile', v1.1.3 by Infinite Automation INFO 2014-07-24 17:09:49,168 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'sstTheme', v1.0.5 by Infinite Automation Software INFO 2014-07-24 17:09:49,191 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'dataFile', v1.0.4 by Infinite Automation INFO 2014-07-24 17:09:49,391 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'controlcore', v1.0.4 by Infinite Automation INFO 2014-07-24 17:09:49,673 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'sqlConsole', v1.4.4 by Infinite Automation Software INFO 2014-07-24 17:09:49,777 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'scripting', v1.0.7 by Infinite Automation Software INFO 2014-07-24 17:09:49,876 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'pop3', v1.4.4 by Infinite Automation Software INFO 2014-07-24 17:09:49,966 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'reports', v2.0.6 by Infinite Automation Software INFO 2014-07-24 17:09:50,160 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'loggingConsole', v1.0.1 by Infinite Automation INFO 2014-07-24 17:09:50,180 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'dnp3', v1.4.5 by Infinite Automation Software INFO 2014-07-24 17:09:50,368 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'dataImport', v1.3.4 by Infinite Automation Software INFO 2014-07-24 17:09:50,507 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'scheduledEvents', v1.4.6 by (unknown vendor) INFO 2014-07-24 17:09:50,659 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'vmstat', v1.4.6 by Infinite Automation Software INFO 2014-07-24 17:09:50,812 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'snmp', v1.4.5 by Infinite Automation Software INFO 2014-07-24 17:09:50,907 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'mbus', v1.0.4 by Infinite Automation Software INFO 2014-07-24 17:09:50,938 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'pid', v1.0.2 by Infinite Automation INFO 2014-07-24 17:09:51,058 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'galil', v1.4.4 by Infinite Automation Software INFO 2014-07-24 17:09:51,199 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'pointLinks', v1.4.5 by Infinite Automation Software INFO 2014-07-24 17:09:51,274 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'persistent', v1.4.6 by Infinite Automation Software INFO 2014-07-24 17:09:51,378 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'watchlists', v1.5.7 by Infinite Automation Software INFO 2014-07-24 17:09:51,583 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'abpccc', v1.0.4 by Deltamation Software INFO 2014-07-24 17:09:51,694 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'sstGlobalScripts', v1.4.5 by Infinite Automation Software INFO 2014-07-24 17:09:51,773 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'onewire', v1.4.5 by Infinite Automation Software INFO 2014-07-24 17:09:51,847 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'modbus', v1.4.8 by Infinite Automation Software INFO 2014-07-24 17:09:51,983 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'log4JReset', v1.0.5 by Infinite Automation Software INFO 2014-07-24 17:09:52,000 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'graphicalViews', v1.4.8 by Infinite Automation Software INFO 2014-07-24 17:09:52,131 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'maintenanceEvents', v1.4.7 by Infinite Automation Software INFO 2014-07-24 17:09:52,260 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'templateConfig', v1.0.4 by Infinite Automation Software INFO 2014-07-24 17:09:52,379 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'serial', v1.1.2 by Infinite Automation INFO 2014-07-24 17:09:52,448 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'sqlds', v1.5.5 by Infinite Automation Software INFO 2014-07-24 17:09:52,524 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'BACnet', v2.1.0 by Infinite Automation Software INFO 2014-07-24 17:09:52,609 (com.serotonin.m2m2.Main.loadModules:399) - Loading module 'jmxds', v1.4.4 by Infinite Automation Software 2014-07-24 17:10:00.493:INFO::jetty-7.4.5.v20110725 2014-07-24 17:10:03.933:INFO::started c.s.m.w.OverridingWebAppContext{/,file:/home/pi/Desktop/mango_automation_2.4.0_full_install/web/},file:/home/pi/Desktop/mango_automation_2.4.0_full_install/web/ 2014-07-24 17:10:05.208:INFO::Started SelectChannelConnector@0.0.0.0:8080 STARTING 2014-07-24 17:10:05.438:INFO::stopped c.s.m.w.OverridingWebAppContext{/,file:/home/pi/Desktop/mango_automation_2.4.0_full_install/web/},file:/home/pi/Desktop/mango_automation_2.4.0_full_install/web/ ERROR 2014-07-24 17:10:05,538 (com.serotonin.m2m2.Lifecycle.terminate:360) - com.serotonin.provider.InputStreamEPollProvider ERROR 2014-07-24 17:10:05,579 (com.serotonin.m2m2.Lifecycle.terminate:368) - com.serotonin.provider.ProcessEPollProvider ERROR 2014-07-24 17:10:05,620 (com.serotonin.m2m2.Main.main:111) - Error during initialization java.lang.NullPointerException at com.serotonin.m2m2.Lifecycle.configureStartupDwr(Lifecycle.java:792) at com.serotonin.m2m2.Lifecycle.webServerInitialize(Lifecycle.java:741) at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:177) at com.serotonin.m2m2.Main.main(Main.java:106)
Anybody could help me solving this error?
Also, I think it is important to mention that I had to edit the ma-start.sh file in order to get rid of a error stating that "Server VM is only supported on ARMv7+ VFP". I deleted the -server in line 45 (as suggested in another infinite automation forum)
Thanks in advance
Gabriel -
Are you running ma-start.sh as root/su?
FWIW I have been playing around with Mango on a Pi using OpenJDK and it works fine.
pi@mango ~ $ java -version java version "1.7.0_25" OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1~deb7u1+rpi1) OpenJDK Zero VM (build 22.0-b10, mixed mode)
-
Yes, I am executing sudo ./ma-start.sh
I also, checked using a java version 1.7.0_40 and it keep showing the same error.
Did you edit ma-start file? What version of Mango are you using?Any other idea?
Gabriel
-
@zozayagabo said:
Yes, I am executing sudo ./ma-start.sh
I also, checked using a java version 1.7.0_40 and it keep showing the same error.
Did you edit ma-start file? What version of Mango are you using?Any other idea?
Gabriel
I'm using 2.4.0.
The only thing I can think of is that I usually run:* sudo bash ma-start.sh*
I haven't edited anything at all - it all just worked.You didn't accidentally download the 'upgrade' zip did you?
-
Same thing using the bash instruction.
The file is named mango_automation_2.4.0_full_install.zip . So, it is the right one.
Now, I did have to edit the ma-start file and get rid of the -server in line 45 because I kept getting this error.
Error ocurred during initialization of VM
Server VM is only supported on ARMv7+ VFPIt does not feel like a good practice to edit the executable file. But i could not find another way to get past this error.
Gabriel
-
The problem was solved and I could successfully run Mango in my Raspberry Pi B+
Instead of just deleting the -server option in he ma-start.sh, I changed it to -client in line 45 or 53 (depends on the Mango version)
I also, re-transferred the installation file, But this time all the files were already extracted.One of those, or the combination of them, fixed the problem.
Thanks for your help.
Gabriel -
@zozayagabo said:
I also, re-transferred the installation file, But this time all the files were already extracted.
Good that you have solved it and thanks for posting the solution/update.
I wonder if the problem wasn't in the way you were extracting the zip file (causing some permissions issue).
Did you use the linux 'unzip' program? -
Did you use the linux 'unzip' program?
Yes, I was using the Raspbian 'unzip' program. So I extracted first in windows and transferred the already extracted files and Mango ran without issues.
Gabriel
-
@zozayagabo said:
Did you use the linux 'unzip' program?
Yes, I was using the Raspbian 'unzip' program. So I extracted first in windows and transferred the already extracted files and Mango ran without issues.
That's interesting, I also used unzip in Raspbian, so I'm out of ideas as to why yours didn't work.
-
I too am unsure why you needed to modify it to -client. Removing -server is necessary, though, as it's a Java optimization flag not supported by ARMv6
I suppose we could modify the start up scripts to check the host architecture and handle this case...