Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBoss error : Runtime shutdown hook called, forceHalt: true

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi Ranchars,

I am using MyEclipse for web development , iReport for reporting and
SQLServer 2005 RDBMS.

When I am calling iReport jrxml file from JSP button which forwards action to servlet handling report generation using iReport API , it is generating report successfully , but when I am closing the report JBoss is also getting shut down.


16:50:52,072 INFO [Server] Runtime shutdown hook called, forceHalt: true
16:50:52,072 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
16:50:52,072 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
16:50:52,118 INFO [TomcatDeployer] undeploy, ctxPath=/ITMS, warUrl=.../deploy/ITMS.war/
16:50:52,743 INFO [TomcatDeployer] undeploy, ctxPath=/ATWORK, warUrl=.../deploy/ATWORK.war/
16:50:52,806 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' from JNDI name 'java:JmsXA'
16:50:52,821 INFO [testTopic] Unbinding JNDI name: topic/testTopic
16:50:52,821 INFO [securedTopic] Unbinding JNDI name: topic/securedTopic
16:50:52,821 INFO [testDurableTopic] Unbinding JNDI name: topic/testDurableTopic
16:50:52,821 INFO [testQueue] Unbinding JNDI name: queue/testQueue
16:50:52,837 INFO [A] Unbinding JNDI name: queue/A
16:50:52,837 INFO [B] Unbinding JNDI name: queue/B
16:50:52,837 INFO [C] Unbinding JNDI name: queue/C
16:50:52,837 INFO [D] Unbinding JNDI name: queue/D
16:50:52,837 INFO [ex] Unbinding JNDI name: queue/ex
16:50:52,837 INFO [DLQ] Unbinding JNDI name: queue/DLQ
16:50:52,853 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' from JNDI name 'java efaultDS'
16:50:54,103 INFO [HypersonicDatabase] Database standalone closed clean
16:50:54,181 INFO [MailService] Mail service 'java:/Mail' removed from JNDI
16:50:54,181 INFO [TomcatDeployer] undeploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
16:50:54,290 INFO [Http11BaseProtocol] Pausing Coyote HTTP/1.1 on http-0.0.0.0%2F0.0.0.0-8080
16:50:55,306 INFO [StandardService] Stopping service jboss.web
16:50:55,352 INFO [Http11BaseProtocol] Stopping Coyote HTTP/1.1 on http-0.0.0.0%2F0.0.0.0-8080
16:50:55,352 INFO [TomcatDeployer] undeploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
16:50:55,352 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
16:50:55,352 INFO [TomcatDeployer] undeploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp25962jbossws-context-exp.war/
16:50:55,399 INFO [TomcatDeployer] undeploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
16:50:55,743 INFO [Server] Shutdown complete
Shutdown complete
Halting VM

Thus it is generating report properly but when I close window of generated report it shuts down ........


Please help....


 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

16:50:52,072 INFO [Server] Runtime shutdown hook called, forceHalt: true



Are there any calls to System.exit in your code?
 
Nikes Shah
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
There are no calls to System.exit.

Problem occurs only when I call report which runs fine but when I close the Report Viewer (iReport) it shuts down the JBoss.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I dont know much about iReport. When you say, you close the report, how do you do that? The jboss logs show that there definitely some part of the application which is triggering/forcing JBoss to stop. Maybe you will have to look at iReport part to make sure it doesnt send any SIGINT signal to the java process (which represents JBoss server)
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
viewReport will call System.exit by default.

set false to 2th arg to false to prevent this

JasperViewer.viewReport(jasperPrint, false);
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
paza, please do not wake the zombies.
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic