Jahia Dev Forum > Error in registering...

0 (0 Good)
0 (0 Bad)

Error in registering a custom module

by  brunoseznec »  2015/03/03 09:59

Hello,

I have a warning , later an error in creating a Spring Bean. When I restrart 2 times Jahia, it is OK.

Any idea ?

Thanks.

Bruno

>>

2015-03-03 09:50:17,249: WARN  [fileinstall-D:\IntranetV3\EnterpriseDistribution-DigitalFactory7003-SDK\digital-factory-data/modules] org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener: Got exception while handling event org.osgi.framework.BundleEvent[source=im-module-provider [127]]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JahiaGroupManagerSCAMERProvider' defined in URL [bundle://127.7:0/META-INF/spring/im-module-provider.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: fr.iam.core.dto.ProviderCategory cannot be cast to fr.iam.core.dto.ProviderCategory
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)

>>

The previous error: Error creating bean with name 'JahiaGroupManagerCLProvider' defined in URL [bundle://127.6:0/META-INF/spring/im-module-provider.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: fr.iam.core.dto.ProviderCategory cannot be cast to fr.iam.core.dto.ProviderCategory occured 2 times.


Your Server has generated an error. Please review the details below for additional information: 


Error: fr.iam.core.dto.ProviderCategory cannot be cast to fr.iam.core.dto.ProviderCategory


Stack trace:
-------------
Cause level : 0 (level 0 is the most precise exception)
java.lang.ClassCastException: fr.iam.core.dto.ProviderCategory cannot be cast to fr.iam.core.dto.ProviderCategory
    at fr.iam.providers.groups.feg.JahiaGroupManagerFEGProvider.getGroupList(JahiaGroupManagerFEGProvider.java:99)
    at fr.iam.providers.groups.AbstractGroupIMProvider.start(AbstractGroupIMProvider.java:72)
    at fr.iam.providers.groups.feg.JahiaGroupManagerFEGProvider.start(JahiaGroupManagerFEGProvider.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1638)

  • Error in registering a custom module
    2015/03/03 09:59

    brunoseznec <p>Hello,</p> <p>I have a warning , later an error in creating a Spring Bean. When I restrart 2 times Jahia, it is OK.</p> <p>Any idea ?</p> <p>Thanks.</p> <p>Bruno</p> <p>&gt;&gt;</p> <p>2015-03-03 09:50:17,249: WARN &nbsp;[fileinstall-D:\IntranetV3\EnterpriseDistribution-DigitalFactory7003-SDK\digital-factory-data/modules] org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener: Got exception while handling event org.osgi.framework.BundleEvent[source=im-module-provider [127]]<br /> org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;JahiaGroupManagerSCAMERProvider&#39; defined in URL [bundle://127.7:0/META-INF/spring/im-module-provider.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: fr.iam.core.dto.ProviderCategory cannot be cast to fr.iam.core.dto.ProviderCategory<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)</p> <p>&gt;&gt;</p> <p>The previous error: Error creating bean with name &#39;JahiaGroupManagerCLProvider&#39; defined in URL [bundle://127.6:0/META-INF/spring/im-module-provider.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: fr.iam.core.dto.ProviderCategory cannot be cast to fr.iam.core.dto.ProviderCategory occured 2 times.</p> <p><br /> Your Server has generated an error. Please review the details below for additional information:&nbsp;</p> <p><br /> Error: fr.iam.core.dto.ProviderCategory cannot be cast to fr.iam.core.dto.ProviderCategory</p> <p><br /> Stack trace:<br /> -------------<br /> Cause level : 0 (level 0 is the most precise exception)<br /> java.lang.ClassCastException: fr.iam.core.dto.ProviderCategory cannot be cast to fr.iam.core.dto.ProviderCategory<br /> &nbsp;&nbsp; &nbsp;at fr.iam.providers.groups.feg.JahiaGroupManagerFEGProvider.getGroupList(JahiaGroupManagerFEGProvider.java:99)<br /> &nbsp;&nbsp; &nbsp;at fr.iam.providers.groups.AbstractGroupIMProvider.start(AbstractGroupIMProvider.java:72)<br /> &nbsp;&nbsp; &nbsp;at fr.iam.providers.groups.feg.JahiaGroupManagerFEGProvider.start(JahiaGroupManagerFEGProvider.java:62)<br /> &nbsp;&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> &nbsp;&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br /> &nbsp;&nbsp; &nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br /> &nbsp;&nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:606)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1638)</p>

  • Number of messages  19
    Registration date Mar 3, 2015
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page