Jump to content
Changes to the Jaspersoft community edition download ×

org.hibernate.MappingException: In Japser


eldokp

Recommended Posts

Hi,

 

It is getting following error when i load jasper srever 0.9.2 in Websphere 6.0

"org.hibernate.MappingException: An association from the table file_resource refers to an unmapped class: boolean"

 

What problem is this ? enything related to file_resource table ?

 

please find the Error trace as below,

 

 

 

 

 

An association from the table file_resource refers to an unmapped class: boolean

at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1134)

at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1052)

at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1168)

at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:871)

at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:797)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:856)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:825)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:418)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:241)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:152)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:247)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:331)

at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:155)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)

at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1355)

at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:371)

at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)

at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)

at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)

at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)

at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)

at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)

at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)

at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)

at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)

at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)

at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)

at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:1678)

at com.ibm.ws.runtime.component.ComponentImpl$_AsynchInitializer.run(ComponentImpl.java:304)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)

:sick: :sick:

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

 

I went through the work ground you have given , added acces="filed" in (<many-to-one name="reference" ..) still i a getting the same problem .

 

i think it was explaining the scenario like 'Cannot save (files) to repositoy' .Could you please explain the solution little more. I am new to hibernate

 

Please find the change have done in hbm file for RepoFileResource

 

<joined-subclass name="com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.persistent.RepoFileResource" table="file_resource">

<key column="id"/>

<property name="data" type="blob" column="data"/>

<property name="fileType" length="20" type="string" column="file_type"/>

<many-to-one column="reference" name="reference" access="field" />

</joined-subclass>

 

Regards,

Eldo kk

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...