[cdi-dev] microbenchmark for CDI performance
Mark Struberg
struberg at yahoo.de
Tue Oct 21 07:01:21 EDT 2014
I was under the impression that weld-dev just got renamed to cdi-dev.
I also got another issue while quickly starting up new threads:
88 [main] INFO org.jboss.weld.Bootstrap - WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
Exception in thread "Thread-3" java.lang.NullPointerException
at org.apache.deltaspike.cdise.weld.ContextController.startRequestScope(ContextController.java:147)
at org.apache.deltaspike.cdise.weld.WeldContextControl.startRequestScope(WeldContextControl.java:161)
at org.apache.deltaspike.cdise.weld.WeldContextControl.startContext(WeldContextControl.java:70)
at at.struct.cdi.performance.CdiPerformanceTest$1.run(CdiPerformanceTest.java:56)
at java.lang.Thread.run(Thread.java:745)
is this a concurrency issue under high load? Or am I just doing something wrong?
LieGrue,
strub
On Tuesday, 21 October 2014, 12:49, John D. Ament <john.d.ament at gmail.com> wrote:
>
>
>Mark,
>
>
>Did you mean to send this to weld-dev instead of cdi-dev? (though I'm not sure if that list is still maintained)
>
>
>At first glance, these look odd:
>
>
>persistence-api-1.0.2.jar
>validation-api-1.0.0.GA.jar
>jboss-ejb-api_3.1_spec-1.0.2.Final.jar
>jboss-el-api_3.0_spec-1.0.0.Alpha1.jar
>
>
>I don't recall them coming in when running SE.
>
>
>On Tue, Oct 21, 2014 at 5:59 AM, Mark Struberg <struberg at yahoo.de> wrote:
>
>Hi!
>>
>>Weld folks, I need some help with a micro benchmark:
>>
>>You know we've talked about disk footprint in SE, so I hacked together a small microbenchmark and as a side effect we also got what is really needed to have CDI running
>>
>>https://github.com/struberg/cdi-performance
>>
>>I'm curious about missing some dependency excludes for Weld.
>>
>>could you please run
>>
>>$> mvn clean dependency:copy-dependencies -DincludeScope=compile -PWeld -Dweld.version=2.2.5.Final
>>$> ls -al target/dependency/
>>
>>and tell me which dependencies can be without having some CDI functionality missing?
>>
>>Feel free to pimp the pom and ship a pull request.
>>
>>
>>txs and LieGrue,
>>strub
>>_______________________________________________
>>cdi-dev mailing list
>>cdi-dev at lists.jboss.org
>>https://lists.jboss.org/mailman/listinfo/cdi-dev
>>
>>Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.
>>
>
>
>
More information about the cdi-dev
mailing list