Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
version 2.1.7c (24.11.2004)
Code between sessionFactory.openSession() and session.close():
Using Spring
Full stack trace of any exception that occurs:
Code:
14:08:59,250 INFO [DefaultListableBeanFactory] Creating shared instance of sing
leton bean 'dataSource'
14:08:59,250 INFO [DriverManagerDataSource] Loaded JDBC driver: com.mysql.jdbc.
Driver
14:08:59,250 INFO [DefaultListableBeanFactory] Creating shared instance of sing
leton bean 'sessionFactory'
14:08:59,296 INFO [Binder] Mapping class: br.myapp.domain.pessoa.AreaInter
esse -> AreaInteresse
14:08:59,312 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Telefone
-> Telefone
14:08:59,328 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Pais -> P
ais
14:08:59,343 INFO [Binder] Mapping class: br.myapp.domain.pessoa.UnidadeFe
derativa -> UnidadeFederativa
14:08:59,375 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Localidad
e -> Localidade
14:08:59,390 INFO [Binder] Mapping class: br.myapp.domain.pessoa.TipoParte
Diaria -> TipoParteDiaria
14:08:59,406 INFO [Binder] Mapping class: br.myapp.domain.pessoa.ParteDiar
ia -> ParteDiaria
14:08:59,437 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Especiali
zacao -> Especializacao
14:08:59,453 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Historico
Credito -> HistoricoCredito
14:08:59,468 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Endereco
-> Endereco
14:08:59,484 INFO [Binder] Mapping class: br.myapp.domain.pessoa.TipoLogra
douro -> TipoLogradouro
14:08:59,500 INFO [Binder] Mapping class: br.myapp.domain.pessoa.AnaliseCr
itica -> AnaliseCritica
14:08:59,500 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Anal
iseCritica.tiposAvaliacoes -> analisecritica_tipoavaliacao
14:08:59,515 INFO [Binder] Mapping class: br.myapp.domain.pessoa.TipoAvali
acao -> TipoAvaliacao
14:08:59,531 INFO [Binder] Mapping class: br.myapp.domain.pessoa.GrupoProd
uto -> GrupoProduto
14:08:59,546 INFO [Binder] Mapping class: br.myapp.domain.pessoa.TipoComis
sionamento -> TipoComissionamento
14:08:59,593 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Pessoa ->
Pessoa
14:08:59,593 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Pess
oa.divisoes -> pessoa_divisao
14:08:59,593 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Pess
oa.ramosAtividades -> pessoa_ramoAtividade
14:08:59,593 INFO [Binder] Mapping joined-subclass: br.myapp.domain.pessoa
.Banco -> Banco
14:08:59,593 INFO [Binder] Mapping joined-subclass: br.myapp.domain.pessoa
.Cliente -> Cliente
14:08:59,593 INFO [Binder] Mapping joined-subclass: br.myapp.domain.pessoa
.Colaborador -> Colaborador
14:08:59,609 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Cola
borador.regioes -> Colaborador_RegiaoAtuacao
14:08:59,625 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Cola
borador.especializacoes -> Colaborador_Especializacao
14:08:59,625 INFO [Binder] Mapping joined-subclass: br.myapp.domain.pessoa
.Fabricante -> Fabricante
14:08:59,625 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Fabr
icante.revendas -> fabricante_empresa
14:08:59,625 INFO [Binder] Mapping joined-subclass: br.myapp.domain.pessoa
.Empresa -> Empresa
14:08:59,625 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Empr
esa.distribuidores -> fabricante_empresa
14:08:59,625 INFO [Binder] Mapping joined-subclass: br.myapp.domain.pessoa
.Contato -> Contato
14:08:59,625 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Cont
ato.areasInteresse -> Contato_AreaInteresse
14:08:59,625 INFO [Binder] Mapping joined-subclass: br.myapp.domain.pessoa
.Fornecedor -> Fornecedor
14:08:59,671 INFO [Binder] Mapping class: br.myapp.domain.pessoa.CentroCus
to -> CentroCusto
14:08:59,687 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Divisao -
> Divisao
14:08:59,687 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Divi
sao.pessoas -> pessoa_divisao
14:08:59,703 INFO [Binder] Mapping class: br.myapp.domain.pessoa.TipoConta
to -> TipoContato
14:08:59,718 INFO [Binder] Mapping class: br.myapp.domain.pessoa.TipoLimit
eCredito -> TipoLimiteCredito
14:08:59,734 INFO [Binder] Mapping class: br.myapp.domain.pessoa.RamoAtivi
dade -> RamoAtividade
14:08:59,750 INFO [Binder] Mapping class: br.myapp.domain.pessoa.ContaBanc
aria -> ContaBancaria
14:08:59,765 INFO [Binder] Mapping class: br.myapp.domain.pessoa.LimiteCre
dito -> LimiteCredito
14:08:59,781 INFO [Binder] Mapping class: br.myapp.domain.pessoa.RegiaoAtu
acao -> RegiaoAtuacao
14:08:59,796 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Regi
aoAtuacao.cidades -> RegiaoAtuacao_Localidade
14:08:59,796 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Regi
aoAtuacao.colaboradores -> Colaborador_RegiaoAtuacao
14:08:59,812 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Categoria
Funcional -> CategoriaFuncional
14:08:59,828 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Percentua
lComissionamento -> PercentualComissionamento
14:08:59,828 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Perc
entualComissionamento.tipoComissionamentos -> PercentualComissionamento_TipoComi
ssionamento
14:08:59,843 INFO [Binder] Mapping class: br.myapp.domain.pessoa.Funcao ->
Funcao
14:08:59,859 INFO [Binder] Mapping class: br.myapp.domain.pessoa.MetaVenda
-> MetaVenda
14:08:59,875 INFO [Binder] Mapping class: br.myapp.domain.produto.UnidadeM
edida -> UnidadeMedida
14:08:59,890 INFO [Binder] Mapping class: br.myapp.domain.produto.OrigemPr
oduto -> OrigemProduto
14:08:59,906 INFO [Binder] Mapping class: br.myapp.domain.produto.GrupoTip
oVeiculo -> GrupoTipoVeiculo
14:08:59,937 INFO [Binder] Mapping class: br.myapp.domain.fiscal.Classific
acaoFiscal -> ClassificacaoFiscal
14:08:59,953 INFO [LocalSessionFactoryBean] Building new Hibernate SessionFacto
ry
14:08:59,953 INFO [Configuration] processing one-to-many association mappings
14:08:59,953 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Area
Interesse.subAreaInteresses -> AreaInteresse
14:08:59,953 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Pais
.unidadesFederativas -> UnidadeFederativa
14:08:59,953 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Unid
adeFederativa.localidades -> Localidade
14:08:59,953 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Ende
reco.telefones -> Telefone
14:08:59,953 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Grup
oProduto.tipoComissionamento -> TipoComissionamento
14:08:59,953 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Pess
oa.enderecos -> Endereco
14:08:59,953 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Pess
oa.contatos -> Contato
14:08:59,953 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Pess
oa.contasBancarias -> ContaBancaria
14:08:59,953 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Pess
oa.telefones -> Telefone
14:09:00,000 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Clie
nte.limitesCreditos -> LimiteCredito
14:09:00,000 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Clie
nte.analisesCriticas -> AnaliseCritica
14:09:00,000 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Cola
borador.carteiraClientes -> Cliente
14:09:00,000 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Cola
borador.metasVenda -> MetaVenda
14:09:00,015 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Cola
borador.percentuaisComissionamentos -> PercentualComissionamento
14:09:00,015 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Cola
borador.partesDiarias -> ParteDiaria
14:09:00,015 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Empr
esa.unidadesNegocios -> Empresa
14:09:00,015 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Empr
esa.colaboradores -> Colaborador
14:09:00,015 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Forn
ecedor.analisesCriticas -> AnaliseCritica
14:09:00,015 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Ramo
Atividade.subRamoAtividade -> RamoAtividade
14:09:00,015 INFO [Binder] Mapping collection: br.myapp.domain.pessoa.Limi
teCredito.historicosCreditos -> HistoricoCredito
14:09:00,015 INFO [Configuration] processing one-to-one association property re
ferences
14:09:00,015 INFO [Configuration] processing foreign key constraints
14:09:00,031 INFO [Dialect] Using dialect: net.sf.hibernate.dialect.MySQLDialec
t
14:09:00,031 INFO [SettingsFactory] Maximim outer join fetch depth: 1
14:09:00,031 INFO [SettingsFactory] Use outer join fetching: false
14:09:00,031 INFO [ConnectionProviderFactory] Initializing connection provider:
org.springframework.orm.hibernate.LocalDataSourceConnectionProvider
14:09:00,031 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup
configured (in JTA environment, use of process level read-write cache is not re
commended)
14:09:01,609 INFO [SettingsFactory] Use scrollable result sets: true
14:09:01,609 INFO [SettingsFactory] Use JDBC3 getGeneratedKeys(): true
14:09:01,609 INFO [SettingsFactory] Optimize cache for minimal puts: false
14:09:01,609 INFO [SettingsFactory] echoing all SQL to stdout
14:09:01,609 INFO [SettingsFactory] Query language substitutions: {true=1, fals
e=0}
14:09:01,609 INFO [SettingsFactory] cache provider: net.sf.hibernate.cache.EhCa
cheProvider
14:09:01,609 INFO [SettingsFactory] query cache factory: net.sf.hibernate.cache
.StandardQueryCacheFactory
14:09:01,609 INFO [Configuration] instantiating and configuring caches
14:09:01,609 INFO [SessionFactoryImpl] building session factory
14:09:01,968 INFO [SessionFactoryObjectFactory] no JNDI name configured
14:09:01,968 INFO [UpdateTimestampsCache] starting update timestamps cache at r
egion: net.sf.hibernate.cache.UpdateTimestampsCache
14:09:01,968 INFO [DefaultListableBeanFactory] Destroying singletons in factory
{org.springframework.beans.factory.support.DefaultListableBeanFactory defining
beans [dataSource,sessionFactory,transactionManager,clienteDao,bancoDao,areaInte
resseDao,categoriaFuncionalDao,divisaoDao,grupoProdutoDao,paisDao,ramoAtividadeD
ao,tipoAvaliacaoDao,tipoContatoDao,tipoLimiteCreditoDao,tipoLogradouroDao,tipoPa
rteDiariaDao,cargoDao,tipoComissionamentoDao,unidadeFederativaDao,especializacao
Dao,localidadeDao,centroCustoDao,fornecedorDao,telefoneDao,fabricanteDao,colabor
adorDao,empresaDao,regiaoAtuacaoDao,funcaoDao,unidadeMedidaDao,classificacaoFisc
alDao,origemProdutoDao,produtoDao,grupoTipoVeiculoDao,tipoVeiculoDao,modeloVeicu
loDao,versaoVeiculoDao,historicoContadorDao,tipoContadorDao,veiculoDao,baseTrans
actionProxy,messageSource,baseImportProxy,importEmpresa,importCliente,manterDivi
sao,manterFuncao,manterFornecedor,manterCentroCusto,manterRegiaoAtuacao,manterCl
iente,manterBanco,manterAreaInteresse,manterRamoAtividade,manterTipoContato,mant
erCategoriaFuncional,manterPais,manterTipoLogradouro,manterTipoAvaliacao,manterE
specializacao,manterFabricante,manterColaborador,manterEmpresa,manterGrupoProdut
o,manterUnidadeMedida,manterClassificacaoFiscal,manterOrigemProduto,manterGrupoT
ipoVeiculo,manterTipoVeiculo,manterModeloVeiculo,manterVersaoVeiculo,manterHisto
ricoContador,manterTipoContador,manterVeiculo]; root of BeanFactory hierarchy}
14:09:01,984 ERROR [LogInterceptor] EJBException in method: public abstract void
javax.ejb.EJBLocalObject.remove() throws javax.ejb.RemoveException,javax.ejb.EJ
BException, causedBy:
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'sessionFactory' defined in class path resource [META-INF/applicationCont
ext-hibernate.xml]: Initialization of bean failed; nested exception is java.lang
.NullPointerException: null
java.lang.NullPointerException
at net.sf.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.jav
a:95)
at net.sf.hibernate.cache.UpdateTimestampsCache.<init>(UpdateTimestampsC
ache.java:36)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja
va:210)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.
java:768)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionF
actory(LocalSessionFactoryBean.java:544)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterProper
tiesSet(LocalSessionFactoryBean.java:479)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1075)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:349)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:257)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:146)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:285)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:317)
at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:80)
at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:65)
at org.springframework.context.access.ContextJndiBeanFactoryLocator.crea
teBeanFactory(ContextJndiBeanFactoryLocator.java:40)
at org.springframework.beans.factory.access.JndiBeanFactoryLocator.useBe
anFactory(JndiBeanFactoryLocator.java:68)
at org.springframework.ejb.support.AbstractEnterpriseBean.loadBeanFactor
y(AbstractEnterpriseBean.java:119)
at org.springframework.ejb.support.AbstractStatelessSessionBean.ejbCreat
e(AbstractStatelessSessionBean.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ejb.StatelessSessionEnterpriseContext.<init>(StatelessSessi
onEnterpriseContext.java:63)
at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSe
ssionInstancePool.java:35)
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.j
ava:146)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
elessSessionInstanceInterceptor.java:80)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(Service
EndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
Interceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
rceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT.java:316)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
49)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
java:128)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
ryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:6
24)
at org.jboss.ejb.Container.invoke(Container.java:859)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalPro
xyFactory.java:413)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSes
sionProxy.java:82)
at $Proxy154.remove(Unknown Source)
at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.removeSess
ionBeanInstance(LocalSlsbInvokerInterceptor.java:141)
at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.releaseSes
sionBeanInstance(LocalSlsbInvokerInterceptor.java:106)
at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invoke(Loc
alSlsbInvokerInterceptor.java:84)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:174)
at $Proxy173.localizarPorCodigo(Unknown Source)
at org.apache.jsp.TesteManterAreaInteresseEjb_jsp._jspService(TesteMante
rAreaInteresseEjb_jsp.java:82)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
92)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
ContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:157)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
ctionValve.java:122)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:595)
14:09:02,234 WARN [LocalStatelessSessionProxyFactoryBean] Could not invoke 'rem
ove' on local EJB proxy
javax.ejb.EJBException: null; CausedByException is:
Error creating bean with name 'sessionFactory' defined in class path res
ource [META-INF/applicationContext-hibernate.xml]: Initialization of bean failed
; nested exception is java.lang.NullPointerException: null
at org.jboss.ejb.StatelessSessionEnterpriseContext.<init>(StatelessSessi
onEnterpriseContext.java:70)
at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSe
ssionInstancePool.java:35)
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.j
ava:146)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
elessSessionInstanceInterceptor.java:80)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(Service
EndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
Interceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
rceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT.java:316)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
49)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
java:128)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
ryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:6
24)
at org.jboss.ejb.Container.invoke(Container.java:859)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalPro
xyFactory.java:413)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSes
sionProxy.java:82)
at $Proxy154.remove(Unknown Source)
at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.removeSess
ionBeanInstance(LocalSlsbInvokerInterceptor.java:141)
at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.releaseSes
sionBeanInstance(LocalSlsbInvokerInterceptor.java:106)
at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invoke(Loc
alSlsbInvokerInterceptor.java:84)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:174)
at $Proxy173.localizarPorCodigo(Unknown Source)
at org.apache.jsp.TesteManterAreaInteresseEjb_jsp._jspService(TesteMante
rAreaInteresseEjb_jsp.java:82)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
92)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
ContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:157)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
ctionValve.java:122)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:595)
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'sessionFactory' defined in class path resource [META-INF/applicationCont
ext-hibernate.xml]: Initialization of bean failed; nested exception is java.lang
.NullPointerException: null
java.lang.NullPointerException
at net.sf.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.jav
a:95)
Name and version of the database you are using:
MySQL 4.1
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
I´m getting this error when try to use ehcache on hibernate.
thanks for help.
Moa.