You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Glen Stampoultzis <gs...@gmail.com> on 2005/06/09 14:31:27 UTC
Error reported from hivemodule.xml
I'm getting the following error reported:
Parameters to service implementation factory HibernateSessionFactory
contains no contributions but expects exactly one contribution.
The offending hivemodule code is:
<service-point id="HibernateSession" interface="net.sf.hibernate.Session">
<invoke-factory service-id="HibernateSessionFactory" model="threaded"/>
</service-point>
Any clues to what I'm missing? It doesn't seem to be causing any
actual problems but I'd still like to know the cause.
Regards,
Glen Stampoultzis
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
RE: Error reported from hivemodule.xml
Posted by Jean-Francois Poilpret <jf...@hcm.vnn.vn>.
Hi,
I think the problem comes from the fact that HibernateSessionFactory is a HM
ServiceImplementationFactory and hence by default, HM imposes ONE
contribution occurrence of parameters whenever you use it as a factory for
one of your services.
This is easy to workaround, Chris gave one part of the solution but did not
apply it to the right location:
<service-point id="HibernateSessionFactory"
interface="org.apache.hivemind.ServiceImplementationFactory"
parameters-occurs="none">
</service-point>
The parameter-occurs="none" must be used at the definition of FACTORY
service-point.
This should do the trick.
However, as James pointed out, I think this error does not prevent the
system from working normally anyway (except that having an ERROR in the log
is always frustrating ;-))
Cheers
Jean-Francois
PS: [shameless self-promotion] Did you consider using HiveMind Utilities'
hivetranse module for using hibernate in your project?
-----Original Message-----
From: James Carman [mailto:james@carmanconsulting.com]
Sent: Sunday, June 12, 2005 7:03 AM
To: hivemind-user@jakarta.apache.org; 'Glen Stampoultzis'
Subject: RE: Error reported from hivemodule.xml
I believe I saw those same error messages while I was writing that code for
the article. It doesn't really cause any problems.
-----Original Message-----
From: Glen Stampoultzis [mailto:gstamp@gmail.com]
Sent: Saturday, June 11, 2005 6:47 AM
To: hivemind-user@jakarta.apache.org
Subject: Re: Error reported from hivemodule.xml
That didn't seem to do anything for me. Also I noticed that the
hibernate session stuff on the server side article
(http://www.theserverside.com/articles/content/HivemindBuzz/article.html)
didn't need to supply this attribute.
Regards,
Glen
On 6/10/05, Chris Conrad <cc...@vasoftware.com> wrote:
> Hi Glen,
>
> To get rid of that error change your service point to read:
>
> <service-point id="HibernateSession"
> interface="net.sf.hibernate.Session" parameters-occurs="none">
> <invoke-factory ....
> </service-point>
>
> Notice the parameters-occurs attribute in the service-point element.
>
> --Chris
>
>
>
> On Jun 9, 2005, at 5:31 AM, Glen Stampoultzis wrote:
>
> > I'm getting the following error reported:
> >
> > Parameters to service implementation factory HibernateSessionFactory
> > contains no contributions but expects exactly one contribution.
> >
> > The offending hivemodule code is:
> >
> > <service-point id="HibernateSession"
> > interface="net.sf.hibernate.Session">
> > <invoke-factory service-id="HibernateSessionFactory"
> > model="threaded"/>
> > </service-point>
> >
> >
> > Any clues to what I'm missing? It doesn't seem to be causing any
> > actual problems but I'd still like to know the cause.
> >
> > Regards,
> >
> > Glen Stampoultzis
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
RE: Error reported from hivemodule.xml
Posted by James Carman <ja...@carmanconsulting.com>.
I believe I saw those same error messages while I was writing that code for
the article. It doesn't really cause any problems.
-----Original Message-----
From: Glen Stampoultzis [mailto:gstamp@gmail.com]
Sent: Saturday, June 11, 2005 6:47 AM
To: hivemind-user@jakarta.apache.org
Subject: Re: Error reported from hivemodule.xml
That didn't seem to do anything for me. Also I noticed that the
hibernate session stuff on the server side article
(http://www.theserverside.com/articles/content/HivemindBuzz/article.html)
didn't need to supply this attribute.
Regards,
Glen
On 6/10/05, Chris Conrad <cc...@vasoftware.com> wrote:
> Hi Glen,
>
> To get rid of that error change your service point to read:
>
> <service-point id="HibernateSession"
> interface="net.sf.hibernate.Session" parameters-occurs="none">
> <invoke-factory ....
> </service-point>
>
> Notice the parameters-occurs attribute in the service-point element.
>
> --Chris
>
>
>
> On Jun 9, 2005, at 5:31 AM, Glen Stampoultzis wrote:
>
> > I'm getting the following error reported:
> >
> > Parameters to service implementation factory HibernateSessionFactory
> > contains no contributions but expects exactly one contribution.
> >
> > The offending hivemodule code is:
> >
> > <service-point id="HibernateSession"
> > interface="net.sf.hibernate.Session">
> > <invoke-factory service-id="HibernateSessionFactory"
> > model="threaded"/>
> > </service-point>
> >
> >
> > Any clues to what I'm missing? It doesn't seem to be causing any
> > actual problems but I'd still like to know the cause.
> >
> > Regards,
> >
> > Glen Stampoultzis
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
Re: Error reported from hivemodule.xml
Posted by Glen Stampoultzis <gs...@gmail.com>.
Sorry - ignore that. Got it going.
now... if I could just figure out why it isn't closing down sessions.
-- Glen
On 6/11/05, Glen Stampoultzis <gs...@gmail.com> wrote:
> That didn't seem to do anything for me. Also I noticed that the
> hibernate session stuff on the server side article
> (http://www.theserverside.com/articles/content/HivemindBuzz/article.html)
> didn't need to supply this attribute.
>
> Regards,
>
> Glen
>
> On 6/10/05, Chris Conrad <cc...@vasoftware.com> wrote:
> > Hi Glen,
> >
> > To get rid of that error change your service point to read:
> >
> > <service-point id="HibernateSession"
> > interface="net.sf.hibernate.Session" parameters-occurs="none">
> > <invoke-factory ....
> > </service-point>
> >
> > Notice the parameters-occurs attribute in the service-point element.
> >
> > --Chris
> >
> >
> >
> > On Jun 9, 2005, at 5:31 AM, Glen Stampoultzis wrote:
> >
> > > I'm getting the following error reported:
> > >
> > > Parameters to service implementation factory HibernateSessionFactory
> > > contains no contributions but expects exactly one contribution.
> > >
> > > The offending hivemodule code is:
> > >
> > > <service-point id="HibernateSession"
> > > interface="net.sf.hibernate.Session">
> > > <invoke-factory service-id="HibernateSessionFactory"
> > > model="threaded"/>
> > > </service-point>
> > >
> > >
> > > Any clues to what I'm missing? It doesn't seem to be causing any
> > > actual problems but I'd still like to know the cause.
> > >
> > > Regards,
> > >
> > > Glen Stampoultzis
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
Re: Error reported from hivemodule.xml
Posted by Glen Stampoultzis <gs...@gmail.com>.
That didn't seem to do anything for me. Also I noticed that the
hibernate session stuff on the server side article
(http://www.theserverside.com/articles/content/HivemindBuzz/article.html)
didn't need to supply this attribute.
Regards,
Glen
On 6/10/05, Chris Conrad <cc...@vasoftware.com> wrote:
> Hi Glen,
>
> To get rid of that error change your service point to read:
>
> <service-point id="HibernateSession"
> interface="net.sf.hibernate.Session" parameters-occurs="none">
> <invoke-factory ....
> </service-point>
>
> Notice the parameters-occurs attribute in the service-point element.
>
> --Chris
>
>
>
> On Jun 9, 2005, at 5:31 AM, Glen Stampoultzis wrote:
>
> > I'm getting the following error reported:
> >
> > Parameters to service implementation factory HibernateSessionFactory
> > contains no contributions but expects exactly one contribution.
> >
> > The offending hivemodule code is:
> >
> > <service-point id="HibernateSession"
> > interface="net.sf.hibernate.Session">
> > <invoke-factory service-id="HibernateSessionFactory"
> > model="threaded"/>
> > </service-point>
> >
> >
> > Any clues to what I'm missing? It doesn't seem to be causing any
> > actual problems but I'd still like to know the cause.
> >
> > Regards,
> >
> > Glen Stampoultzis
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
Re: Error reported from hivemodule.xml
Posted by Chris Conrad <cc...@vasoftware.com>.
Hi Glen,
To get rid of that error change your service point to read:
<service-point id="HibernateSession"
interface="net.sf.hibernate.Session" parameters-occurs="none">
<invoke-factory ....
</service-point>
Notice the parameters-occurs attribute in the service-point element.
--Chris
On Jun 9, 2005, at 5:31 AM, Glen Stampoultzis wrote:
> I'm getting the following error reported:
>
> Parameters to service implementation factory HibernateSessionFactory
> contains no contributions but expects exactly one contribution.
>
> The offending hivemodule code is:
>
> <service-point id="HibernateSession"
> interface="net.sf.hibernate.Session">
> <invoke-factory service-id="HibernateSessionFactory"
> model="threaded"/>
> </service-point>
>
>
> Any clues to what I'm missing? It doesn't seem to be causing any
> actual problems but I'd still like to know the cause.
>
> Regards,
>
> Glen Stampoultzis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org