6 Replies Latest reply on Jan 22, 2007 10:02 PM by Peter Johnson

    Jboss shut itself down, when I close a Apllet.

    Radouane El Marjani Newbie

      Hi all,

      I have a serious problem, and I find no solution.

      I use PDFBox in my Webapplication and I have created with this Tool PDF Files, all is fine, by clicking a Button, I can open my PDF Files with help of PDFBox Methode. An applet will be oppening and I can read my pdf file, the Problem is, wenn I close my File (applet window), my Jboss Server shut itself down and I don't Know, what I musst do to prevent that.

      Have someone an Idea, I will appreciate.

      Thanks,

      Radouane marjani

        • 1. Re: Jboss shut itself down, when I close a Apllet.
          Peter Johnson Master

          Is there anything in the log file or on the console that would give a clue as to what is happening? Especially any messages indicating the the server is shutting down.

          • 2. Re: Jboss shut itself down, when I close a Applet.
            Radouane El Marjani Newbie

            Hi,

            Thanks for your answer,
            Hier is what the log file shows:

            04:35:40,487 INFO [STDOUT] pValues: [19900003]
            04:35:40,487 INFO [STDOUT] in pValues
            04:35:40,487 INFO [STDOUT] ACTION::paramName: currentProjectID , paramValue: 42

            04:35:40,487 INFO [STDOUT] ACTION::paramName: 397|textLabel , paramValue: 19900
            003
            04:35:40,487 INFO [STDOUT] ACTION::paramName: 540|textLabel , paramValue: Die R
            echnung wird gezeigt.
            04:35:40,487 INFO [STDOUT] ACTION::paramName: pageID , paramValue: 391
            04:35:40,487 INFO [STDOUT] ACTION::paramName: 462|table , paramValue: true

            //Until hier all was ok, but as I close a pdf reader applet (PDFBox),
            //I got hier JBoss SHUTDOWN. No Failure , as you see at the head of //logfile.

            04:36:07,767 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
            04:36:07,767 INFO [EJBDeployer] Undeploying: file:/C:/jboss-4.0.2/server/defaul
            t/deploy/TelefonManagementEJB.jar
            04:36:08,027 INFO [EjbModule] Undeployed Telefon_KundenTarif
            04:36:08,027 INFO [EjbModule] Undeployed Telefon_CalldatenItems
            04:36:08,027 INFO [EjbModule] Undeployed Telefon_Kunden
            04:36:08,037 INFO [EjbModule] Undeployed Telefon_MethodesUtility
            04:36:08,037 INFO [EjbModule] Undeployed Telefon_Adresse
            04:36:08,037 INFO [EjbModule] Undeployed ManageDataBase
            04:36:08,037 INFO [EjbModule] Undeployed Telefon_DatumUtility
            04:36:08,047 INFO [EjbModule] Undeployed Telefon_Rechnung
            04:36:08,047 INFO [EjbModule] Undeployed Telefon_Tarif
            04:36:08,047 INFO [EjbModule] Undeployed Telefon_Login
            04:36:08,047 INFO [EjbModule] Undeployed Telefon_KundenAdressen
            04:36:08,047 INFO [EjbModule] Undeployed Telefon_DatenBank
            04:36:08,057 WARN [DeploymentInfo] Could not delete file:/C:/jboss-4.0.2/server
            /default/tmp/deploy/tmp22732TelefonManagementEJB.jar restart will delete it
            04:36:08,057 INFO [TomcatDeployer] undeploy, ctxPath=/uploader, warUrl=file:/C:
            /jboss-4.0.2/server/default/tmp/deploy/tmp22722Uploader.ear-contents/UpWeb-exp.w
            ar/
            04:36:08,087 INFO [EJBDeployer] Undeploying: file:/C:/jboss-4.0.2/server/defaul
            t/tmp/deploy/tmp22722Uploader.ear-contents/UpEJB.jar
            04:36:08,207 INFO [EjbModule] Undeployed Project
            04:36:08,207 INFO [EARDeployer] Undeploying J2EE application, destroy step: fil
            e:/C:/jboss-4.0.2/server/default/deploy/Uploader.ear

            Any Idea, I will appreciate.

            Radouane

            • 3. Re: Jboss shut itself down, when I close a Apllet.
              Radouane El Marjani Newbie

              Hi,

              I have forget somthing, my pdf file was in bin directory of Jboss, that I was oppening.
              Is that a Problem?

              Radouane

              • 4. Re: Jboss shut itself down, when I close a Apllet.
                Peter Johnson Master

                What were the lines in the log file immediately before this line:

                04:36:07,767 INFO [Server] JBoss SHUTDOWN: Undeploying all packages

                That line does not state what caused the server to shut down, only that it is shutting down. The lines before that will give some clues as to why the server shut down.

                Was there a line similar to the following:

                [Server] Runtime shutdown hook called, forceHalt: true

                If so, then the either your code or PDFBox called System.exit(), or an INT signal was sent to the server. The again, someone could have called the shutdown method on the jboss.system:type=Server MBean.

                • 5. Re: Jboss shut itself down, when I close a Aplet.
                  Radouane El Marjani Newbie

                  Hi,

                  That was all in lodfile what I have sending, I don't become the failure:

                  "Runtime shutdown hook called, forceHalt: true" .

                  I think my problem is in this code, here is a methode of PDFBox,
                  hier i can read my pdf file, it's fine, a applet show me the pdf file,then I click on exit, here come the methode: System.exit(0) von PDFBox Package; so I think here force this exit that my Jboss Server must shut down. So is there a Property to set in Jboss that prevent this problem.
                  --------------------------------------------------------------------------------------
                  String[] pdfargs = {filename};

                  try {

                  PDFReader.main(pdfargs);
                  } catch (Exception e3) {
                  e3.printStackTrace();
                  return result;
                  }
                  --------------------------------------------------------------------------------------
                  Thanks,
                  Radouane

                  • 6. Re: Jboss shut itself down, when I close a Apllet.
                    Peter Johnson Master

                    You need to either modify the PDFBox code such that it does not call System.exit(), or you need to use the code in a way such tat calling that method is avoided. And both of those tasks are larger than what can be handled in this forum.