You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Francesco Mari <ma...@gmail.com> on 2015/11/24 12:06:40 UTC

Test failures in o.a.j.o.spi.whiteboard.WhiteboardUtilsTest

Hi all,

I have test failures in WhiteboardUtilsTest, producing the following output:

jmxBeanRegistrationDuplicate(org.apache.jackrabbit.oak.spi.whiteboard.WhiteboardUtilsTest)
 Time elapsed: 0 sec  <<< ERROR!
javax.management.InstanceNotFoundException:
org.apache.jackrabbit.oak:type=test,name=hello
  at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
  at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getObjectInstance(DefaultMBeanServerInterceptor.java:462)
  at
com.sun.jmx.mbeanserver.JmxMBeanServer.getObjectInstance(JmxMBeanServer.java:564)
  at
org.apache.jackrabbit.oak.spi.whiteboard.WhiteboardUtilsTest.jmxBeanRegistrationDuplicate(WhiteboardUtilsTest.java:65)

jmxBeanRegistration(org.apache.jackrabbit.oak.spi.whiteboard.WhiteboardUtilsTest)
 Time elapsed: 0.001 sec  <<< ERROR!
javax.management.InstanceNotFoundException:
org.apache.jackrabbit.oak:type=test,name=hello
  at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
  at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getObjectInstance(DefaultMBeanServerInterceptor.java:462)
  at
com.sun.jmx.mbeanserver.JmxMBeanServer.getObjectInstance(JmxMBeanServer.java:564)
  at
org.apache.jackrabbit.oak.spi.whiteboard.WhiteboardUtilsTest.jmxBeanRegistration(WhiteboardUtilsTest.java:52)

Any idea of what's going on? If it helps, this is my build environment:

Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
2014-12-14T18:29:23+01:00)
Maven home: /usr/local/Cellar/maven32/3.2.5/libexec
Java version: 1.8.0_65, vendor: Oracle Corporation
Java home:
/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.1", arch: "x86_64", family: "mac"

Re: Test failures in o.a.j.o.spi.whiteboard.WhiteboardUtilsTest

Posted by Francesco Mari <ma...@gmail.com>.
Those tests are passing now, thanks!

2015-11-24 12:50 GMT+01:00 Chetan Mehrotra <ch...@gmail.com>:

> Looks like on JDK 8 the MBean interface has to be public for MBean
> registration to work. Done that with 1716110
>
> @Francesco - Can you try again with updated trunk?
> Chetan Mehrotra
>
>
> On Tue, Nov 24, 2015 at 4:58 PM, Chetan Mehrotra
> <ch...@gmail.com> wrote:
> > On Tue, Nov 24, 2015 at 4:36 PM, Francesco Mari
> > <ma...@gmail.com> wrote:
> >> Maven home: /usr/local/Cellar/maven32/3.2.5/libexec
> >> Java version: 1.8.0_65, vendor: Oracle Corporation
> >
> > I am on JDK 1.7.0_55 and there it passes. Would try it on JDK 8
> >
> > Chetan Mehrotra
>

Re: Test failures in o.a.j.o.spi.whiteboard.WhiteboardUtilsTest

Posted by Chetan Mehrotra <ch...@gmail.com>.
Looks like on JDK 8 the MBean interface has to be public for MBean
registration to work. Done that with 1716110

@Francesco - Can you try again with updated trunk?
Chetan Mehrotra


On Tue, Nov 24, 2015 at 4:58 PM, Chetan Mehrotra
<ch...@gmail.com> wrote:
> On Tue, Nov 24, 2015 at 4:36 PM, Francesco Mari
> <ma...@gmail.com> wrote:
>> Maven home: /usr/local/Cellar/maven32/3.2.5/libexec
>> Java version: 1.8.0_65, vendor: Oracle Corporation
>
> I am on JDK 1.7.0_55 and there it passes. Would try it on JDK 8
>
> Chetan Mehrotra

Re: Test failures in o.a.j.o.spi.whiteboard.WhiteboardUtilsTest

Posted by Chetan Mehrotra <ch...@gmail.com>.
On Tue, Nov 24, 2015 at 4:36 PM, Francesco Mari
<ma...@gmail.com> wrote:
> Maven home: /usr/local/Cellar/maven32/3.2.5/libexec
> Java version: 1.8.0_65, vendor: Oracle Corporation

I am on JDK 1.7.0_55 and there it passes. Would try it on JDK 8

Chetan Mehrotra