only display hello world when I run example of RinSim ubuntu 64 - rinsim

Hello I try to run the first example introduced in http://rinsim.rinde.nl/installation/intellij/,
it shows the following error:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J:
See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
then I add slf4j-simple-1.6.1.jar and it can run without bug.
But, in the simulator there is only hello world, not any other things (such as the red points) what would be the problem? I use ubuntu 64 and intelliJ.
plus I do not use the option -XstartOnFirstThread as the introduction because it will fail with error: Unrecognized option: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Thank you.

As for the SLF4J issue, this is not a bug (see troubleshooting). This message indicates that no logger implementation is found. If you don't want logging, you can safely ignore this.
As for the lack of red dots, RinSim starts in 'paused' mode, have you tried starting the simulator (using the shortcut: Cmd-P or Ctrl-P or via the menu: Control -> Play)?

Related

Issue: Porting Docker to a new platform (Tizen 4.0 + ARM64)

I have been trying to port Docker CE on a new platform (Tizen 4.0 + ARM64) using static binaries as described here
However, even though I meet all the pre-requisites described in above link, I keep getting this error while trying to run docker daemon :
WARN[2018-10-04T14:14:57.890120101+09:00] Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module bridge not found in directory /lib/modules/4.9.59-g70b545c-dirty modprobe: WARNING: Module br_netfilter not found in directory /lib/modules/4.9.59-g70b545c-dirty, error: exit status 1
WARN[2018-10-04T14:14:57.905153370+09:00] Running modprobe nf_nat failed with message: modprobe: WARNING: Module nf_nat not found in directory /lib/modules/4.9.59-g70b545c-dirty, error: exit status 1
WARN[2018-10-04T14:14:57.920222485+09:00] Running modprobe xt_conntrack failed with message: modprobe: WARNING: Module xt_conntrack not found in directory /lib/modules/4.9.59-g70b545c-dirty, error: exit status 1
Error starting daemon: Error initializing network controller: Error creating default "bridge" network: package not installed
Is there anyway to fix this?
Otherwise, Is there some alternative way to port docker onto a new platform (In this case: Tizen 4.0 + ARM64).
Key note: The platform uses a linux kernel but doesn't support many typical Linux Platform features like apt-get commands.
Any help would be greatly appreciated. Thanks in advance :)
From your error message, your system is missing a number of networking related kernel modules, from the look of it, it's looking for at least: bridge, br_netfilter, nf_nat, xt_conntrack. You'll need to port these missing kernel modules or recompile the kernel to include the relevant modules.
Docker, by itself, requires a lot of pre-requesites to run on a new platform. Some of them are mentioned here.
Apart from meeting the pre-requisites, one has to meet specific kernel requirements and in case, the kernel doesn't meet all those requirements, one has to patch the kernel accordingly to get the things running.
Here are the kernel defconfigs, one must enable to get docker running -
CONFIG_CGROUP_DEVICE=y, CONFIG_CPUSETS=y, CONFIG_BLK_CGROUP=y, CONFIG_CGROUPS=y, CONFIG_CGROUP_CPUACCT=y, CONFIG_CGROUP_DEVICE=y, CONFIG_CGROUP_FREEZER=y, CONFIG_CGROUP_SCHED=y, - CONFIG_CGROUP_PERF=y, CONFIG_CGROUP_HUGETLB=y, CONFIG_NET_CLS_CGROUP=y, CONFIG_CGROUP_NET_PRIO=y, CONFIG_CFS_BANDWIDTH=y, CONFIG_CGROUP_PIDS=y, CONFIG_BLK_CGROUP=y, CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y, CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y, CONFIG_NETFILTER_XT_MATCH_IPVS=y, CONFIG_NF_NAT_IPV4=y, CONFIG_IP_NF_FILTER=y, CONFIG_IP_NF_TARGET_MASQUERADE=y, CONFIG_IP_NF_NAT=y, CONFIG_NF_NAT=y, CONFIG_NF_NAT_NEEDED=y, CONFIG_POSIX_MQUEUE=y, CONFIG_MEMCG=y, CONFIG_MEMCG_SWAP=y, CONFIG_MEMCG_KMEM=y, CONFIG_MEMCG_SWAP_ENABLED=y, CONFIG_BRIDGE=y, CONFIG_BRIDGE_NETFILTER=y, CONFIG_VXLAN=y, CONFIG_CRYPTO=y, CONFIG_CRYPTO_AEAD=y, CONFIG_CRYPTO_GCM=y, CONFIG_CRYPTO_SEQIV=y, CONFIG_CRYPTO_GHASH=y, CONFIG_XFRM=y, CONFIG_XFRM_USER=y, CONFIG_XFRM_ALGO=y, CONFIG_INET_ESP=y, CONFIG_INET_XFRM_MODE_TRANSPORT=y, CONFIG_IPVLAN=y, CONFIG_MACVLAN=y, CONFIG_DUMMY=y, ": CONFIG_NF_NAT_FTP=y, CONFIG_NF_CONNTRACK_FTP=y, CONFIG_NF_NAT_TFTP=y, CONFIG_NF_CONNTRACK_TFTP=y, CONFIG_OVERLAY_FS=y, CONG_AUFS_FS=y, CONFIG_BTRFS_FS=y, CONFIG_BTRFS_FS_POSIX_ACL=y, CONFIG_BLK_DEV_DM=y, CONFIG_DM_THIN_PROVISIONING=y, CONFIG_NAMESPACES=y, CONFIG_NET_NS=y, CONFIG_PID_NS=y, CONFIG_IPC_NS=y, CONFIG_UTS_NS=y, CONFIG_KEYS=y, CONFIG_VETH=y, CONFIG_USER_NS=y, CONFIG_SECCOMP=y, CONFIG_BLK_DEV_THROTTLING=y, CONFIG_IOSCHED_CFQ=y, CONFIG_CFQ_GROUP_IOSCHED=y, CONFIG_FAIR_GROUP_SCHED=y, CONFIG_RT_GROUP_SCHED=y, CONFIG_IP_VS=y, CONFIG_IP_VS_NFCT=y, CONFIG_IP_VS_RR=y, CONFIG_EXT4_FS=y, CONFIG_EXT4_FS_POSIX_ACL=y, CONFIG_EXT4_FS_SECURITY=y
P.S. - Some of the above defconfigs may not be necessary to get the docker running. However, enabling all of them ensures you have extended support for all the features that docker offers.

How to eliminate warning in sca

I am new to source analyzer.These are the warnings
sourceanalyzer -b opmbuild -Xmx2G -cp '/vx/vom/BUILD/nightly/sfm/tot/02_16/06_00_14/linux/opm/jars/*.jar' '/vx/vom/BUILD/nightly/sfm/tot/
02_16/06_00_14/linux/opm/src/**/*.java'
[warning]: Assuming Java source level to be 1.4 as it was not specified. Note that the default value may change in future versions.
[warning]: Unexpected exception while parsing file DMPSolutionDao.java
[warning]: Unexpected exception while parsing file DMPWaitingOperations.java
[warning]: Unexpected exception while parsing file DmpOperations.java
[warning]: Unexpected exception while parsing file EsxDmpJob.java
[warning]: Unexpected exception while parsing file MyAppsController.java
[warning]: Multiple definitions found for class VOMBackup (/vx/vom/BUILD/nightly/sfm/tot/02_16/06_00_14/linux/opm/src/pkg/unix/linux/stage/opt/VRTSsfmcs/config/adm/VOMBackup.java:20:1 and /vx/vom/BUILD/nightly/sfm/tot/02_16/06_00_14/linux/opm/src/db/config/common/VOMBackup.java
:20:1).
The first thing you need to do is to set the Java version using -version. This may resolve the warnings you are getting since you may be utilizing constructs that are not valid in Java 1.4. Those warnings are important and you need to investigate the cause. To get to the root of the issue, use -debug-verbose -logfile opmbuild_translate.log. The log entries should provide you with a lot more assistance in diagnosing the issue. If you feel that there is a valid construct that Fortify is not parsing correctly, you should contact Fortify support and provide an example.

grails -version FATAL ERROR in native method

I'm trying to get grails version, but getting error all the time. OS: windows server 2012 and windows 8. I suspect that the port is busy, and I can't release it - need another exit from situation
So, I'm doing something like this in command line:
{PATH_TO_/bin/grails.bat} -version
The result is:
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]
So.. what can I do with it?
Thanks.
To resolve problem I've just set JAVA_OPTS
with
-Xrunjdwp:transport=dt_shmem,server=y,suspend=n
Documentation link

Chicagoboss make error for lager

I am porting my web application developed in Chicagoboss from my mac to ubuntu. But when I run make on ubuntu I get the following error:
ERROR: pre_compile failed while processing /home/myname/myapp_priv: {'EXIT',{undef,[{lager,start,[],[]},
{boss_rebar,compile,4,
[{file,"../ChicagoBoss-0.8.12/priv/rebar/boss_rebar.erl"},
{line,97}]},
{boss_plugin,pre_compile,2,
[{file,"priv/rebar/boss_plugin.erl"},{line,105}]},
{rebar_core,run_modules,4,[]},
{rebar_core,execute,5,[]},
{rebar_core,process_dir1,6,[]},
{rebar_core,process_commands,2,[]},
{rebar,main,1,[]}]}}
make: *** [all] Error 1
Am I missing something? Thanking all in advance.
This error indicates, that lager parse transforms are not present while compiling. Lager does not define functions like lager:info or lager:error directly. During compilation, it changes those calls adding line number and other useful things.
Your problem can be usually solved by moving lager before any other dependency in ./deps/boss/rebar.config or adding it as a dependency directly to your application in ./rebar.config.

Error preverifying class, coming while running my app

I am trying to run a sample project, but I am getting this error on the console and the app does not run.
I don't understand what this error means.
Packaging project ScheduleAir
C:\Eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\bin\rapc.exe -quiet codename=deliverables\Standard\4.5.0\scheduleair deliverables\Standard\4.5.0\scheduleair.rapc -sourceroot=C:\Documents and Settings\20041\workspace\ScheduleAir\src\com\intellisoft\schedule_air;C:\Documents and Settings\20041\workspace\ScheduleAir\src;C:\Documents and Settings\20041\workspace\ScheduleAir\res -import=C:\Eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\lib\net_rim_api.jar C:\Documents and Settings\20041\workspace\ScheduleAir\bin
Error preverifying class com.intellisoft.schedule_air.AppSettingScreen
VERIFIER ERROR com/intellisoft/schedule_air/AppSettingScreen.()V:
Illegal type in constant pool
Error!: Error: preverifier failed: C:\Eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\bin\preverify.exe -d C:\DOCUME ...
Packaging project ScheduleAir failed (took 0.437 seconds)
Could it be related to compiler target level in your Eclipse? For BB it should be set to 1.3, while by default Eclipse sets it to 1.5/1.6. Check "More detail on preverification errors ?" for details.
You must set JAVA_HOME in your system environment variables

Resources