java.io.IOException: Cannot run program "hg": CreateProcess error=2, The system cannot find the file specified WARNING [javax.enterprise.resource.corba.ee._CORBA_.util]: "IOP01211405: (BAD_OPERATION) Exception in loadStub" java.lang.ClassNotFoundException: com.sun.ejb.codegen.GenericEJBHome_Generated

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • After the 5/4 rebase, the hbase unit tests in the timeline service project are failing: {noformat} org.apache.hadoop.yarn.server.timelineservice.reader.TestTimelineReaderWebServicesHBaseStorage Time elapsed: 5.103 sec <<< ERROR! java.io.IOException: Shutting down at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at org.apache.hadoop.hbase.http.HttpServer.addDefaultServlets(HttpServer.java:677) at org.apache.hadoop.hbase.http.HttpServer.initializeWebServer(HttpServer.java:546) at org.apache.hadoop.hbase.http.HttpServer.<init>(HttpServer.java:500) at org.apache.hadoop.hbase.http.HttpServer.<init>(HttpServer.java:104) at org.apache.hadoop.hbase.http.HttpServer$Builder.build(HttpServer.java:345) at org.apache.hadoop.hbase.http.InfoServer.<init>(InfoServer.java:77) at org.apache.hadoop.hbase.regionserver.HRegionServer.putUpWebUI(HRegionServer.java:1697) at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:550) at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:333) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:139) at org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:217) at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:153) at org.apache.hadoop.hbase.MiniHBaseCluster.init(MiniHBaseCluster.java:213) at org.apache.hadoop.hbase.MiniHBaseCluster.<init>(MiniHBaseCluster.java:93) at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniHBaseCluster(HBaseTestingUtility.java:978) at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:938) at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:812) at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:806) at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:750) at org.apache.hadoop.yarn.server.timelineservice.reader.TestTimelineReaderWebServicesHBaseStorage.setup(TestTimelineReaderWebServicesHBaseStorage.java:87) {noformat} The root cause is that the hbase mini server depends on hadoop common's {{MetricsServlet}} which has been removed in the trunk (HADOOP-12504): {noformat} Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/metrics/MetricsServlet at org.apache.hadoop.hbase.http.HttpServer.addDefaultServlets(HttpServer.java:677) at org.apache.hadoop.hbase.http.HttpServer.initializeWebServer(HttpServer.java:546) at org.apache.hadoop.hbase.http.HttpServer.<init>(HttpServer.java:500) at org.apache.hadoop.hbase.http.HttpServer.<init>(HttpServer.java:104) at org.apache.hadoop.hbase.http.HttpServer$Builder.build(HttpServer.java:345) at org.apache.hadoop.hbase.http.InfoServer.<init>(InfoServer.java:77) at org.apache.hadoop.hbase.regionserver.HRegionServer.putUpWebUI(HRegionServer.java:1697) at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:550) at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:333) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:139) ... 26 more {noformat}
    via by Sangjin Lee,
  • The class loader used by coherence should also look up in the other plugins. ClassLoader: org.jivesoftware.openfire.container.PluginClassLoader@199c2e java.io.IOException: readObject failed: java.lang.ClassNotFoundException: org.jivesoftware.openfire.gateway.registration.cluster.SeniorRegistrationRequest at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:585) at com.tangosol.io.ResolvingObjectInputStream.resolveClass(ResolvingObjectInputStream.java:68) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2084) at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2202) at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:3) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.InvocationService$InvocationRequest.read(InvocationService.CDB:8) at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onNotify(Service.CDB:110) at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35) at java.lang.Thread.run(Thread.java:613)
    via by Gaston Dombiak,
  • When is synchronization required?
    via by 3004,
  • Backup/Restore Coherence cache
    via by 3004,
    • java.io.IOException: Cannot run program "hg": CreateProcess error=2, The system cannot find the file specified WARNING [javax.enterprise.resource.corba.ee._CORBA_.util]: "IOP01211405: (BAD_OPERATION) Exception in loadStub" java.lang.ClassNotFoundException: com.sun.ejb.codegen.GenericEJBHome_Generated at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:257)
    No Bugmate found.