com>>
> >>>>>> wrote:
> >>>>>>>
> >>>>>>>> The bootstrap code is as vanilla as it can get:
> >>>>>>>>
> >>>>>>>
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:
>&
; ServerRuntime cayenneRuntime = ServerRuntime.builder()
> >>>>>>>>>>.addConfig("cayenne-project.xml")
> >>>>>>>>>> .build();
> >>>>>>>>
> >>>>>>>>
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
>>>>>>>>
>>>
ut Spigot's
>> >>> >> classpath that prevents this code in ModuleLoader from returning
>> >>> proper
>> >>> >> resources:
>> >>> >>
>> >>> >> for (ModuleProvider provider : ServiceLoader.load(providerClass)) {
>
)) {
> >>> ... }
> >>> >>
> >>> >> We need to understand how Spigot classpath works. Cursory Googling
> >>> shows
> >>> >> that this is a common problem, just don'
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
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
>> >>>
>> >>>
&
> >> 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
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:
> >>>>
> >
:
>>>>
>>>> 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
> >>
> >> 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
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:
>>>
>>>
> 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.
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
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
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
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
at
> >> >> > org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55)
> >> >> > at
> >> >> > org.jboss.as.weld.ejb.EjbRequestScopeActivationIn
>> >> > 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
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)
> >>
tractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55)
>> > >> > at
>> > >> > org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.jav
;> > 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
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)
> >>
>> > 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)
>> >
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
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.
(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
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
> 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
> 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
>>>
>>
>
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
>>
>
gt; [CompletionException: org.apache.cayenne.di.DIRuntimeException: DI container
> has no binding for key org.apache.cayenne.dba.firebird.FirebirdSniffer>]
>
> Cheers,
> - hugi
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
34 matches
Mail list logo