|
|
|
Code: { { code} } WeldContainer weld = new Weld() .containerId(id) .disableDiscovery() .beanClasses(classes) .addInterceptor(TransactionalInterceptor.class) .addBeanClass(TransactionSupport.class) .extensions(new TransactionExtension(), new OsgiExtension()) .initialize(); { { code} }
Exception: { { code} } java.lang.UnsupportedOperationException at com.google.common.collect.UnmodifiableIterator.remove(UnmodifiableIterator.java:43) at com.google.common.collect.TransformedIterator.remove(TransformedIterator.java:53) at org.jboss.weld.bootstrap.enablement.GlobalEnablementBuilder.filter(GlobalEnablementBuilder.java:296) at org.jboss.weld.bootstrap.enablement.GlobalEnablementBuilder.createModuleEnablement(GlobalEnablementBuilder.java:239) at org.jboss.weld.bootstrap.BeanDeployment.createEnablement(BeanDeployment.java:213) at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:389) at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76) at org.jboss.weld.environment.se.Weld.initialize(Weld.java:583) at org.apache.aries.jpa.cdi.AbstractTest.createCdi(AbstractTest.java:141) at org.apache.aries.jpa.cdi.AbstractTest.createCdi(AbstractTest.java:129) at org.apache.aries.jpa.cdi.SimpleTest.test(SimpleTest.java:54) { { code} }
The collection comes from {{Weld#buildSyntheticBeansXml()}} which creates immutable collections.
|
|
|
|