-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Mapping Exception at runtime-Jboss EAP 4.0.3-Hibernate 3.0.5
PostPosted: Wed Mar 23, 2011 1:15 am 
Newbie

Joined: Tue Mar 22, 2011 10:32 am
Posts: 1
I have come across an in issue in our production server. I am using a named query to get some session details and out of 100 times 1 or 2 fails. Pls find the exception below. I have no idea why this error is coming when it working all the other times in the same method. I am using JBoss EAP 4.0.3 and Hibernate 3.0.5. Below stacktrace is a wrapped. Since it happens only in the production server we have no option to get a full stacktrace. Pls help me to resolve this issue. I have made sure that there is no duplicate SessionInfo.hbm.xml in the ear. Kindly let me know if you need more details.

Message :Named query not known: SessionInfo.findSession

TRACE :
Cause of the exception is..
+----------------------------------------------------------+
com.emirates.jfoundation.exception.ServiceException
+----------------------------------------------------------+
com.emirates.jfoundation.exception.ServiceException: Named query not known: SessionInfo.findSession

at com.emirates.jfoundation.security.session.SessionManager.isValidSession(SessionManager.java:173)
at com.emirates.jfoundation.security.hooks.SecurityInterceptor.processOnEntry(SecurityInterceptor.java:65)
at com.emirates.jfoundation.servicecollaborator.runtime.EJBServiceRuntime.preTransaction(EJBServiceRuntime.java:144)
at com.emirates.locomotive.server.stock.implementation.StockServiceBean.getDocumentHistory(StockServiceBean.java:908)
at sun.reflect.GeneratedMethodAccessor734.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:278)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:960)
at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPInvokerHA.invoke(JRMPInvokerHA.java:176)
at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)


Top
 Profile  
 
 Post subject: Re: Mapping Exception at runtime-Jboss EAP 4.0.3-Hibernate 3.0.5
PostPosted: Wed Mar 23, 2011 9:26 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi, I'm sorry I would try to be helpful but 3.0.5 is way too old for my knowledge (several years!), I don't know if something like this occurred in other cases.
This seems like a concurrency issue, likely fixed in more recent version of Hibernate.
Sounds you're using the supported version (EAP), you should get in touch with JBoss support they should know or be able to fix it.

Consider having a look on the issue tracker: http://opensource.atlassian.com/project ... browse/HHH

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.