Hi Rob,
Hmm, dunno.   Don't think I've done anything that intentionally would have
changed this behaviour.  I did end up having to move
isis-registry.properties into a different package (still in core.runtime) to
deal with a classloading issue in the archetype project, but I don't think
that's related.

I know that Kevin made some changes relating to SQL object store a week or
two back, as I recall it was to do with picking up configuration
information.  Not making accusations or anything, but I wonder if that had
an unintended side-effect?

Dan




On 27 February 2011 21:43, Robert Matthews <[email protected]>wrote:

> Guys
>
> A few weeks ago I created a facet decorator to localize my object via a
> wiki.  I created a FacetDecorator that decorates the Named, DescribedAs and
> Help facets.  In the constructor I set up a couple of properties using the
> IsisConfiguration object, accessed from IsisContext.  This worked fine.
>
> This evening I've update the code and now it fails to get the configuration
> object, and my system now won't start up.
>
> Caused by: org.apache.isis.core.commons.config.IsisConfigurationException:
> No configuration available
>    at
> org.apache.isis.core.runtime.context.IsisContext.getConfiguration(IsisContext.java:309)
>    at
> com.planchaser.help.LocalizationDownloader.init(LocalizationDownloader.java:30)
>    at
> com.planchaser.help.LocalizationFacetDecorator.<init>(LocalizationFacetDecorator.java:21)
>    at
> com.planchaser.help.LocalizationInstaller.createDecorators(LocalizationInstaller.java:18)
>    at
> org.apache.isis.defaults.progmodel.JavaReflectorInstaller.createFacetDecorators(JavaReflectorInstaller.java:268)
>    at
> org.apache.isis.defaults.progmodel.JavaReflectorInstaller.createFacetDecorators(JavaReflectorInstaller.java:243)
>    at
> org.apache.isis.defaults.progmodel.JavaReflectorInstaller.createReflector(JavaReflectorInstaller.java:96)
>    at
> org.apache.isis.defaults.progmodel.JavaReflectorInstaller.createReflector(JavaReflectorInstaller.java:55)
>    at
> org.apache.isis.core.runtime.system.installers.IsisSystemUsingInstallers.obtainReflector(IsisSystemUsingInstallers.java:295)
>    at
> org.apache.isis.core.runtime.system.installers.IsisSystemUsingInstallers.createSessionFactory(IsisSystemUsingInstallers.java:122)
>    at
> org.apache.isis.core.runtime.system.installers.IsisSystemUsingInstallers.doCreateSessionFactory(IsisSystemUsingInstallers.java:103)
>    at
> org.apache.isis.core.runtime.system.IsisSystemAbstract.init(IsisSystemAbstract.java:124)
>    at
> org.apache.isis.core.runtime.runner.IsisModule.provideIsisSystem(IsisModule.java:165)
>    ... 55 more
>
> What is the reason for the configuration object no longer being available?
> Should the decorators have a initialization process?
>
> Regards
> Rob
>
>

Reply via email to