juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JUNEAU-66) Juneau Core build generates BeanRuntimeException in test BeanConfigTest when building on Windows platform
Date Mon, 05 Feb 2018 19:30:00 GMT

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

James Bognar commented on JUNEAU-66:
------------------------------------

Thanks for checking David.

> Juneau Core build generates BeanRuntimeException in test BeanConfigTest when building
on Windows platform
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: JUNEAU-66
>                 URL: https://issues.apache.org/jira/browse/JUNEAU-66
>             Project: Juneau
>          Issue Type: Bug
>          Components: Code
>    Affects Versions: 6.4.0
>         Environment: Windows 2008r2 build platform with Eclipse Neon.3, both IBM and
Oracle JVM v8
>            Reporter: David Goddard
>            Priority: Minor
>
> When running a Maven build of juneau-core on Windows, the test org.apache.juneau.BeanConfigTest
fails on this line with a org.apache.juneau.BeanRuntimeException:
>   {{BeanMap bm2 = session.newBeanMap(A.class);}}
> The full stack trace is:
> org.apache.juneau.BeanRuntimeException: interface org.apache.juneau.BeanConfigTest$A
is not visible from class loader
> 	at org.apache.juneau.BeanSession.newBean(BeanSession.java:858)
> 	at org.apache.juneau.BeanSession.newBeanMap(BeanSession.java:810)
> 	at org.apache.juneau.BeanSession.newBeanMap(BeanSession.java:790)
> 	at org.apache.juneau.BeanConfigTest.testProxyHandler(BeanConfigTest.java:473)
> 	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:497)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
> 	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:497)
> 	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:202)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:155)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:81)
> 	at org.apache.maven.plugin.surefire.InPluginVMSurefireStarter.runSuitesInProcess(InPluginVMSurefireStarter.java:82)
> 	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1010)
> 	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:862)
> 	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:755)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> 	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> 	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:497)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: java.lang.IllegalArgumentException: interface org.apache.juneau.BeanConfigTest$A
is not visible from class loader
> 	at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:581)
> 	at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557)
> 	at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230)
> 	at java.lang.reflect.WeakCache.get(WeakCache.java:127)
> 	at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419)
> 	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719)
> 	at org.apache.juneau.BeanMeta.newBean(BeanMeta.java:723)
> 	at org.apache.juneau.BeanSession.newBean(BeanSession.java:851)
> 	... 57 more
> Test JRE is IBM Java 8.0.5.0:
> java version "1.8.0_144"
> Java(TM) SE Runtime Environment (build 8.0.5.0 - pwa6480sr5-20170905_01(SR5))
> IBM J9 VM (build 2.9, JRE 1.8.0 Windows Server 2008 R2 amd64-64 Compressed References
20170901_363591 (JIT enabled, AOT enabled)
> J9VM - d56eb84
> JIT  - tr.open_20170901_140853_d56eb84
> OMR  - b033a01)
> JCL - 20170823_01 based on Oracle jdk8u144-b01
> However, an Oracle JRE 1.8.0_45 +is also affected+.
> Bean session:
> {
> 	BeanContext: {
> 		id: 91876994,
> 		beansRequireDefaultConstructor: false,
> 		beansRequireSerializable: false,
> 		beansRequireSettersForGetters: false,
> 		beansRequireSomeProperties: true,
> 		beanMapPutReturnsOldValue: false,
> 		beanConstructorVisibility: 'PUBLIC',
> 		beanClassVisibility: 'PUBLIC',
> 		beanMethodVisibility: 'PUBLIC',
> 		beanFieldVisibility: 'PUBLIC',
> 		useInterfaceProxies: true,
> 		ignoreUnknownBeanProperties: false,
> 		ignoreUnknownNullBeanProperties: true,
> 		ignorePropertiesWithoutSetters: true,
> 		ignoreInvocationExceptionsOnGetters: false,
> 		ignoreInvocationExceptionsOnSetters: false,
> 		useJavaBeanIntrospector: false,
> 		beanFilters: [
> 		],
> 		pojoSwaps: [
> 		],
> 		notBeanClasses: [
> 		],
> 		implClasses: {
> 		},
> 		sortProperties: false,
> 		locale: null,
> 		timeZone: null,
> 		mediaType: null,
> 		includeProperties: {
> 		},
> 		excludeProperties: {
> 		}
> 	},
> 	BeanSession: {
> 		locale: 'en_GB',
> 		timeZone: null
> 	}
> }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message