Re: DI container has no binding for key

2022-03-29 Thread Andrus Adamchik
com>> > >>>>>> wrote: > >>>>>>> > >>>>>>>> The bootstrap code is as vanilla as it can get: > >>>>>>>> > >>>>>>>

Re: DI container has no binding for key

2022-03-28 Thread Stefan Stegic
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse >> >>> . >> >>>>>>> >> >>>>>>> On Wed, Mar 23, 2022 at 4:33 PM Andrus Adamchik < >> >>> aadamc...@gmail.com> >> >>>>>> wrote: >&

Re: DI container has no binding for key

2022-03-23 Thread Stefan Stegic
; ServerRuntime cayenneRuntime = ServerRuntime.builder() > >>>>>>>>>>.addConfig("cayenne-project.xml") > >>>>>>>>>> .build(); > >>>>>>>> > >>>>>>>>

Re: DI container has no binding for key

2022-03-23 Thread Andrus Adamchik
ObjectContextFactory means ServerModule is not loaded in >>> the >>>>>>>> environment. Since 4.1 (BTW, which version of Cayenne are we >>> talking >>>>>>>> about?), ServerModule is loaded by processing >>>>>>>> >>>

Re: DI container has no binding for key

2022-03-23 Thread Stefan Stegic
ut Spigot's >> >>> >> classpath that prevents this code in ModuleLoader from returning >> >>> proper >> >>> >> resources: >> >>> >> >> >>> >> for (ModuleProvider provider : ServiceLoader.load(providerClass)) { >

Re: DI container has no binding for key

2022-03-23 Thread Stefan Stegic
)) { > >>> ... } > >>> >> > >>> >> We need to understand how Spigot classpath works. Cursory Googling > >>> shows > >>> >> that this is a common problem, just don'

Re: DI container has no binding for key

2022-03-23 Thread Michael Gentry
t;> shows >>> >> that this is a common problem, just don't immediately see a solution. >>> >> >>> >> Andrus >>> >> >>> >> >>> >>> On Mar 23, 2022, at 4:03 PM, Andrus Adamchik >>> >> wro

Re: DI container has no binding for key

2022-03-23 Thread Michael Gentry
he stack shows that there's already an instance of Cayenne >> >> runtime available to the code, but the runtime is in a bad state (not >> clear >> >> why). So thread binding should not be required. >> >>> >> >>> Andrus >> >>> >> >>> &

Re: DI container has no binding for key

2022-03-23 Thread Stefan Stegic
> >> wrote: >> >>> >> >>> Actually the stack shows that there's already an instance of Cayenne >> >> runtime available to the code, but the runtime is in a bad state (not >> clear >> >> why). So threa

Re: DI container has no binding for key

2022-03-23 Thread Stefan Stegic
the runtime is in a bad state (not > clear > >> why). So thread binding should not be required. > >>> > >>> Andrus > >>> > >>> > >>>> On Mar 23, 2022, at 4:00 PM, John Huss wrote: > >>>> > >

Re: DI container has no binding for key

2022-03-23 Thread Andrus Adamchik
: >>>> >>>> You have to bind the DI injector to the thread (and unbind it later): >>>> >>>> CayenneRuntime.*bindThreadInjector*(cayenneRuntime.getInjector()); >>>> >>>> If you are using servlets, then CayenneFilt

Re: DI container has no binding for key

2022-03-23 Thread Stefan Stegic
> >> > >> If you are using servlets, then CayenneFilter will do this for you. > >> Otherwise you can bind it at the start of a request and unbind it at the > >> end. > >> > >> On Wed, Mar 23, 2022 at 9:10 A

Re: DI container has no binding for key

2022-03-23 Thread Andrus Adamchik
er will do this for you. >> Otherwise you can bind it at the start of a request and unbind it at the >> end. >> >> On Wed, Mar 23, 2022 at 9:10 AM Stefan Stegic >> wrote: >> >>> Hi Andrus, >>> >>> Of course: >>> >>>

Re: DI container has no binding for key

2022-03-23 Thread Andrus Adamchik
> On Wed, Mar 23, 2022 at 9:10 AM Stefan Stegic > wrote: > >> Hi Andrus, >> >> Of course: >> >> org.apache.cayenne.di.DIRuntimeException: DI container has no binding for >> key >>at >> >> org.

Re: DI container has no binding for key

2022-03-23 Thread John Huss
23, 2022 at 9:10 AM Stefan Stegic wrote: > Hi Andrus, > > Of course: > > org.apache.cayenne.di.DIRuntimeException: DI container has no binding for > key > at > > org.apache.cayenne.di.spi.DefaultInjector.getProvider(DefaultInjector.java

Re: DI container has no binding for key

2022-03-23 Thread Stefan Stegic
Hi Andrus, Of course: org.apache.cayenne.di.DIRuntimeException: DI container has no binding for key at org.apache.cayenne.di.spi.DefaultInjector.getProvider(DefaultInjector.java:158) ~[?:?] at org.apache.cayenne.di.spi.DefaultInjector.getProvider(DefaultInjector.java:144

Re: DI container has no binding for key

2022-03-23 Thread Andrus Adamchik
t; executed by the server in my plugin's OnEnable lifecycle hook: > > org.apache.cayenne.di.DIRuntimeException: DI container has no binding for > key > > > My initial theory was that it's being executed from a different thread, so > the DI system might not ha

DI container has no binding for key

2022-03-22 Thread Stefan Stegic
cuting Main from the command line (java -cp myPlugin.jar path.to.Main), but it fails with the following error when executed by the server in my plugin's OnEnable lifecycle hook: org.apache.cayenne.di.DIRuntimeException: DI container has no binding for key My initial theory was that it's b

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
at > >> >> > org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) > >> >> > at > >> >> > org.jboss.as.weld.ejb.EjbRequestScopeActivationIn

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread Nikita Timofeev
>> >> > org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) >> >> > [jboss-invocation-1.2.1.Final.jar:1.2.1.Final] >> >> > at >> >> > org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(We

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
ionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:109) > >> > [wildfly-ee-8.2.0.Final.jar:8.2.0.Final] > >> > at > >> > org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) > >>

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread Nikita Timofeev
tractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) >> > >> > at >> > >> > org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.jav

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
;> > org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) > > >> > [jboss-invocation-1.2.1.Final.jar:1.2.1.Final] > > >> > at > > >> > org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjecti

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
ionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:109) > >> > [wildfly-ee-8.2.0.Final.jar:8.2.0.Final] > >> > at > >> > org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) > >>

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread Nikita Timofeev
>> > org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) >> > [jboss-invocation-1.2.1.Final.jar:1.2.1.Final] >> > at >> > org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) >> >

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
ntext.java:309) > > [jboss-invocation-1.2.1.Final.jar:1.2.1.Final] > > at > > org.jboss.as.weld.injection.WeldInterceptorInjectionInterceptor.processInvocation(WeldInterceptorInjectionInterceptor.java:56) > > at > > org.jboss.invocation.Interc

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread Nikita Timofeev
g.jboss.as.weld.ejb.Jsr299BindingsCreateInterceptor.processInvocation(Jsr299BindingsCreateInterceptor.java:94) > at > org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) > [jboss-invocation-1.2.1.Final.jar:1.2.1.Final] > at > org.jboss.as.ee.

Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final] at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273) ... 27 more Caused by: org.apache.cayenne.ConfigurationException: [v.3.1B2 Feb 05 2013 20:19:35] DI container has no binding for key

Re: CompletionException: org.apache.cayenne.di.DIRuntimeException: DI container has no binding for key

2016-06-06 Thread Hugi Thordarson
On a lighter note, this was a bit of a panicky situtation since it happened during a hackathon, where Cayenne (among others) earned us the title “best technical solution”. And we got this excellent production-quality Yoda to show for it :). >>> >>> Nice! Can you provide any

Re: CompletionException: org.apache.cayenne.di.DIRuntimeException: DI container has no binding for key

2016-06-06 Thread Andrus Adamchik
> On Jun 6, 2016, at 5:12 PM, Hugi Thordarson wrote: > >>> >>> On a lighter note, this was a bit of a panicky situtation since it happened >>> during a hackathon, where Cayenne (among others) earned us the title “best >>> technical solution”. And we got this excellent production-quality Yoda

Re: CompletionException: org.apache.cayenne.di.DIRuntimeException: DI container has no binding for key

2016-06-06 Thread Hugi Thordarson
> On Jun 3, 2016, at 5:36 PM, Hugi Thordarson wrote: >>>> >>>> Hi all, >>>> >>>> I’m getting the following exception when running Cayenne inside a play >>>> project. Any ideas? >>>> >>>> [CompletionException: org.apache.cayenne.di.DIRuntimeException: DI >>>> container has no binding for key >>> org.apache.cayenne.dba.firebird.FirebirdSniffer>] >>>> >>>> Cheers, >>>> - hugi >>> >> >

Re: CompletionException: org.apache.cayenne.di.DIRuntimeException: DI container has no binding for key

2016-06-06 Thread Andrus Adamchik
ll, >>> >>> I’m getting the following exception when running Cayenne inside a play >>> project. Any ideas? >>> >>> [CompletionException: org.apache.cayenne.di.DIRuntimeException: DI >>> container has no binding for key >> org.apache.cayenne.dba.firebird.FirebirdSniffer>] >>> >>> Cheers, >>> - hugi >> >

Re: CompletionException: org.apache.cayenne.di.DIRuntimeException: DI container has no binding for key

2016-06-06 Thread Andrus Adamchik
gt; [CompletionException: org.apache.cayenne.di.DIRuntimeException: DI container > has no binding for key org.apache.cayenne.dba.firebird.FirebirdSniffer>] > > Cheers, > - hugi

CompletionException: org.apache.cayenne.di.DIRuntimeException: DI container has no binding for key

2016-06-03 Thread Hugi Thordarson
Hi all, I’m getting the following exception when running Cayenne inside a play project. Any ideas? [CompletionException: org.apache.cayenne.di.DIRuntimeException: DI container has no binding for key ] Cheers, - hugi