You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Brian KimJohnson (JIRA)" <ji...@apache.org> on 2013/07/02 05:25:22 UTC

[jira] [Commented] (MESOS-524) JVM tests are flaky on OSX.

    [ https://issues.apache.org/jira/browse/MESOS-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697461#comment-13697461 ] 

Brian KimJohnson commented on MESOS-524:
----------------------------------------

This issue does not affect the 0.12.x tag but does affect master.  I am running the Oracle JDK 1.7 and seeing this issue.  I tried to fix it by adding -Djava.awt.headless=true and -noawt to the run/test scripts but neither solved the issue.  Would be happy to test a fix.
                
> JVM tests are flaky on OSX.
> ---------------------------
>
>                 Key: MESOS-524
>                 URL: https://issues.apache.org/jira/browse/MESOS-524
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Benjamin Mahler
>            Assignee: Benjamin Mahler
>
> I'm seeing the following issue on a regular occasion:
> [ RUN      ] ZooKeeperStateTest.FetchAndStoreAndFetch
> 2013-06-24 12:18:21.277 mesos-tests[59429:f07] Apple AWT Java VM was loaded on first thread -- can't start AWT.
> java.lang.InternalError: Can't start the AWT because Java was started on the first thread.  Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line
> 	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> 	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
> 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
> 	at java.lang.Runtime.loadLibrary0(Runtime.java:823)
> 	at java.lang.System.loadLibrary(System.java:1045)
> 	at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.awt.Toolkit.loadLibraries(Toolkit.java:1605)
> 	at java.awt.Toolkit.<clinit>(Toolkit.java:1627)
> 	at sun.awt.AppContext$2.run(AppContext.java:237)
> 	at sun.awt.AppContext$2.run(AppContext.java:226)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.awt.AppContext.initMainAppContext(AppContext.java:226)
> 	at sun.awt.AppContext.access$200(AppContext.java:112)
> 	at sun.awt.AppContext$3.run(AppContext.java:299)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.awt.AppContext.getAppContext(AppContext.java:280)
> 	at com.sun.jmx.trace.Trace.out(Trace.java:180)
> 	at com.sun.jmx.trace.Trace.isSelected(Trace.java:88)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isTraceOn(DefaultMBeanServerInterceptor.java:1830)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:929)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:916)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer$2.run(JmxMBeanServer.java:1195)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.initialize(JmxMBeanServer.java:1193)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.<init>(JmxMBeanServer.java:225)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.<init>(JmxMBeanServer.java:170)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServer(JmxMBeanServer.java:1401)
> 	at javax.management.MBeanServerBuilder.newMBeanServer(MBeanServerBuilder.java:93)
> 	at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:311)
> 	at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:214)
> 	at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:175)
> 	at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)
> 	at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
> 	at org.apache.zookeeper.jmx.MBeanRegistry.register(MBeanRegistry.java:73)
> 	at org.apache.zookeeper.server.ZooKeeperServer.registerJMX(ZooKeeperServer.java:344)
> 	at org.apache.zookeeper.server.ZooKeeperServer.startup(ZooKeeperServer.java:374)
> 	at org.apache.zookeeper.server.NIOServerCnxn$Factory.startup(NIOServerCnxn.java:161)
> Exception in thread "main" Caught a JVM exception, not propagating
> It appears the fix is potentially to set NOAWT=1 in our build environment. Need to dig further.
> Some pointers:
>   http://stackoverflow.com/questions/9103494/installing-r-with-homebrew-with-java-support
>   http://lists.apple.com/archives/java-dev/2005/Mar/msg00506.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira