Skip to main content

Jboss instance is teminating automatically

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
srinu_ammina
Offline
Joined: 2013-03-13

Dear Users,

We are running web based application using in the below environment.

OS : Linux
AS: jboss-4.0.3
Technologies: JSP, Hibernate,Spting

Issue: Jboss server instance is terminating automatically due to the below code frequntly.

-----------------------------------------------------------------------------------------------
public int updatetaridslatableApprv(String tarid, String status, String source,
String target, String slastarttime, String slaendtime,
String rejectremarks, String slafinavalue,String userid,String approveTime,String username) throws Exception

{

System.out.println("DBAccess.updatetaridslatableApprv() - START - tarid :" + tarid + " :: approveTime : " + approveTime +
" :: slaendtime : "+ slaendtime + " :: status :" + status);

System.out.println("updatetaridslatableApprv@@ tarid:-"+tarid+" target:-"+target+" status:-"+status+" slafinavalue:-"+slafinavalue+" ");
System.out.println("slastarttime:-"+slastarttime+" slaendtime:-"+slaendtime+" approveTime:-"+approveTime);
System.out.println("source:-"+source+" rejectremarks:-"+rejectremarks
+"userid:-"+userid+"username"+username);

int rows = 0;
String query = null;
PpmTaridApproveSLAEntity object = null;
try

{

HibernateTemplate hibernateTemplate = HibernateUtil
.getHibernateTemplate();
System.out.println("updatetaridslatableApprv## hibernateTemplate" + hibernateTemplate);
session = hibernateTemplate.getSessionFactory().openSession();

System.out.println("updatetaridslatableApprv$$ session " + session);

session.createQuery(
"update PpmTaridApproveSLAEntity set slaStartTimeStamp=to_date('"
+ slastarttime
+ "','YYYY-MM-DD HH24:MI:SS') ,slaEndTimeStamp=to_date('"
+ slaendtime
+ "','YYYY-MM-DD HH24:MI:SS'),APPROVEDTIME=to_date('"
+ approveTime
+ "','YYYY-MM-DD HH24:MI:SS'),status ='"
+ status + "', source= '" + source
+ "',target='" + target
+ "',rejectremarks='" + rejectremarks
+ "',SLAFINALVAL='" + slafinavalue + "'"
+ " ,APPROVED_BY='" + userid + "'"
+ " ,USERNAME='" + username + "'"
+ " where tarid='" + tarid + "'").executeUpdate();

System.out.println("DBAccess.updatetaridslatableApprv() - END - tarid :" + tarid);

} catch (Exception e) {
System.out.println("DBAccess.updatetaridslatableApprv() - ERROR - tarid :" + tarid + " : " + e);
e.printStackTrace();
}

finally

{

session.close();

}

return rows;

}
--------------------------------------------------------------------------------------------

During the execution of the above code at the line session.createQuery(.....)
we are getting the below issue

2013-03-14 11:15:57,065 WARN [org.apache.catalina.loader.WebappClassLoader] Failed to open JAR
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:203)
at java.util.jar.JarFile.(JarFile.java:132)
at java.util.jar.JarFile.(JarFile.java:97)
at org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java:1544)
at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1763)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1570)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:102)
at org.hibernate.impl.SessionFactoryImpl.getImportedClassName(SessionFactoryImpl.java:745)
at org.hibernate.hql.QuerySplitter.getImportedClass(QuerySplitter.java:130)
at org.hibernate.hql.QuerySplitter.concreteQueries(QuerySplitter.java:96)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:422)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:865)
at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89)
at com.tcs.telecom.ppm.util.DBAccess.updatetaridslatableApprv(DBAccess.java:36321)
at com.tcs.telecom.ppm.actions.EmpowerAction.approveNonBusi(EmpowerAction.java:40164)
at sun.reflect.GeneratedMethodAccessor3072.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
at org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:160)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at com.tcs.telecom.ppm.actions.PPMRequestProcessor.processActionPerform(PPMRequestProcessor.java:34)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.tcs.telecom.ppm.filter.SessionIdFilter.doFilter(SessionIdFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.tcs.telecom.ppm.filter.LoginFilter.doFilter(LoginFilter.java:500)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2013-03-14 11:15:57,066 WARN [org.apache.catalina.loader.WebappClassLoader] Failed to open JAR
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:203)
at java.util.jar.JarFile.(JarFile.java:132)
at java.util.jar.JarFile.(JarFile.java:97)
at org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java:1544)
at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1763)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1570)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:102)
at org.hibernate.impl.SessionFactoryImpl.getImportedClassName(SessionFactoryImpl.java:745)
at org.hibernate.hql.QuerySplitter.getImportedClass(QuerySplitter.java:130)
at org.hibernate.hql.QuerySplitter.concreteQueries(QuerySplitter.java:96)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:422)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:865)
at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89)
at com.tcs.telecom.ppm.util.DBAccess.updatetaridslatableApprv(DBAccess.java:36321)
at com.tcs.telecom.ppm.actions.EmpowerAction.approveNonBusi(EmpowerAction.java:40164)
at sun.reflect.GeneratedMethodAccessor3072.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
at org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:160)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at com.tcs.telecom.ppm.actions.PPMRequestProcessor.processActionPerform(PPMRequestProcessor.java:34)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.tcs.telecom.ppm.filter.SessionIdFilter.doFilter(SessionIdFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.tcs.telecom.ppm.filter.LoginFilter.doFilter(LoginFilter.java:500)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2013-03-14 11:15:57,068 INFO [STDOUT] DBAccess.updatetaridslatableApprv() - ERROR - tarid :25452 : java.lang.NullPointerException
2013-03-14 11:15:57,069 INFO [STDOUT] java.lang.NullPointerException
2013-03-14 11:15:57,069 INFO [STDOUT] at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1766)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1570)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
2013-03-14 11:15:57,069 INFO [STDOUT] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
2013-03-14 11:15:57,069 INFO [STDOUT] at java.lang.Class.forName0(Native Method)
2013-03-14 11:15:57,069 INFO [STDOUT] at java.lang.Class.forName(Class.java:164)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.hibernate.impl.SessionFactoryImpl.getImportedClassName(SessionFactoryImpl.java:745)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.hibernate.hql.QuerySplitter.getImportedClass(QuerySplitter.java:130)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.hibernate.hql.QuerySplitter.concreteQueries(QuerySplitter.java:96)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:422)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:865)
2013-03-14 11:15:57,069 INFO [STDOUT] at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89)
2013-03-14 11:15:57,069 INFO [STDOUT] at com.tcs.telecom.ppm.util.DBAccess.updatetaridslatableApprv(DBAccess.java:36321)
2013-03-14 11:15:57,069 INFO [STDOUT] at com.tcs.telecom.ppm.actions.EmpowerAction.approveNonBusi(EmpowerAction.java:40164)
2013-03-14 11:15:57,069 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor3072.invoke(Unknown Source)
2013-03-14 11:15:57,069 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-03-14 11:15:57,070 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:160)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
2013-03-14 11:15:57,070 INFO [STDOUT] at com.tcs.telecom.ppm.actions.PPMRequestProcessor.processActionPerform(PPMRequestProcessor.java:34)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
2013-03-14 11:15:57,070 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2013-03-14 11:15:57,070 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2013-03-14 11:15:57,070 INFO [STDOUT] at com.tcs.telecom.ppm.filter.SessionIdFilter.doFilter(SessionIdFilter.java:66)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2013-03-14 11:15:57,070 INFO [STDOUT] at com.tcs.telecom.ppm.filter.LoginFilter.doFilter(LoginFilter.java:500)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2013-03-14 11:15:57,070 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2013-03-14 11:15:57,070 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)

---------------------------------------------------------------------

For the successfull cases after the code execution session.createQuery(.....) we will be getting the below lines of the logs

2013-03-14 10:39:31,372 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:ppmDataSource]
2013-03-14 10:39:31,372 DEBUG [org.springframework.jndi.JndiObjectTargetSource] Located object with JNDI name [java:ppmDataSource]

Could you please let us know the reason for this cases?

Thanks & Regards
Srinivasa Rao A