amino-os / Amino.Run

Amino Distributed OS - Runtime Manager
Apache License 2.0
29 stars 12 forks source link

Execution of standalone example tests are failing #570

Closed jithutho closed 5 years ago

jithutho commented 5 years ago

This issue has been raised as execution of standalone example tests are failing, as the tests are unable to find the AppStub classes.

1) hanksTodo hankstodo_runapp_failure

jithutho commented 5 years ago

With the introduction of new "stubs" sourceSet, the stub classes are moved to the new sourceSet. Hence the execution of standalone test cases are failing, as the classpath was not having reference to the "stubs" sourceSet.

The UT, IT and check tasks were not having this issue.

sungwook-moon commented 5 years ago

I think this should be of high importance with high urgency. Otherwise, we cannot test it properly.

sungwook-moon commented 5 years ago

This is still broken. We should not check in any of changes related to core or DMs until this is resolved; otherwise, we cannot confirm if it works as our integration test is not complete (e.g., it lacks checking whether all the calls were correctly distributed to all of the kernel servers - in case of DHT+Consensus).

sungwook-moon commented 5 years ago

Kernel server cannot find stub classes.

SEVERE: Failed to initialize server policy java.lang.ClassNotFoundException: amino.run.demo.stubs.KeyValueStore_Stub at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at amino.run.policy.Library$ServerPolicyLibrary.$_initialize(Library.java:319) at amino.run.runtime.Sapphire.initAppStub(Sapphire.java:585) at amino.run.runtime.Sapphire.createPolicy(Sapphire.java:263) at amino.run.runtime.Sapphire.new(Sapphire.java:81) at amino.run.kernel.server.KernelServerImpl.createSapphireObject(KernelServerImpl.java:360) 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:835) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

prostil commented 5 years ago

@sungwook-moon Please verify and if everythign is done then please close this issue

sungwook-moon commented 5 years ago

Verified this was fixed.