[#2655] - Data Source per users not working as expected

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

Dear support,

I'm implementing a data source per user using the example at http://community.jaspersoft.com/wiki/switching-datasource-based-user

but when starting tomcat, I get the following exception:

Creating ActionModelService object.
Creating action model infrastructure.
2013-01-06 04:37:38,109 ERROR ContextLoader,localhost-startStop-1:307 - Context
initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SimFreteDS' defined in ServletContext resource [/WEB-INF/applicationContext-simfreteds.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy15 implementing com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.HibernateRepositoryService,com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.ReferenceResolver,com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.RepoManager,org.springframe.work.context.ApplicationContextAware,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised,java.io.Serializable' to required type 'com.jaspersoft.jasperserver.api.metadata.common.service.RepositoryService' for property 'repositoryService'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy15 implementing com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.HibernateRepositoryService,com.jaspersoft.jasperserver.api.metadata.c
ommon.service.impl.hibernate.ReferenceResolver,com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.RepoManager,org.springframework.context.ApplicationContextAware,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised,java.io.Serializable] to required type [com.jaspersoft.jasperserver.api.metadata.common.service.RepositoryService] for property 'repositoryService': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:456)
...

Attached are the two classes I've created.
Can you please help me?

Thanks,

Edson

AttachmentSize
Package icon datasource.zip1.65 KB
v5.0.0
edsonrichter's picture
Joined: Jan 5 2013 - 11:04pm
Last seen: 8 years 4 months ago

2 Comments:

#1
  • Assigned:nobody»

Hi Edson Richter,

I'm experience the same error, Did you know what was the cause? The Jasper documentation and support is very limited.

Best regards
Oscar Romero

#2
  • Assigned:» anonymous

Hello Edson,

At this time, I've removed the <property name = "dataSourceServiceFactories"> <ref bean="dataSourceServiceFactories"/> </property>
from my applicationContext-customds.xml

And then restart the jasperserver

Next, create a bean connection in jasperadmin web admin. and it works...

Actually I can't from iReport

Best regards,
Oscar Romero

Feedback
randomness