java - glassfish server getting hang after sometime -


i facing new problem in glassfish server :(

after server starts after sometime gets hang , stops processing requests

following exceptions in server log


[#|2011-05-08t17:44:34.027+0300|warning|sun-appserver2.1|javax.enterprise.system.stream.err|_threadid=17;_threadname=timer-18 ;_requestid=a47329c8-5efa-4e29-b90d-a5bda9c8f725;| java.util.logging.errormanager: 5: error in formatting logrecord|#]  [#|2011-05-08t17:44:34.036+0300|warning|sun-appserver2.1|javax.enterprise.system.stream.err|_threadid=17;_threadname=timer-18 ;_requestid=a47329c8-5efa-4e29-b90d-a5bda9c8f725;| java.security.providerexception: implnextbytes() failed         @ sun.security.pkcs11.p11securerandom.implnextbytes(p11securerandom.java:170)         @ sun.security.pkcs11.p11securerandom.enginenextbytes(p11securerandom.java:117)         @ java.security.securerandom.nextbytes(securerandom.java:413)         @ java.util.uuid.randomuuid(uuid.java:161)         @ com.sun.enterprise.admin.monitor.callflow.agentimpl$threadlocalstate.<init>(agentimpl.java:162)         @ com.sun.enterprise.admin.monitor.callflow.agentimpl$1.initialvalue(agentimpl.java:256)         @ com.sun.enterprise.admin.monitor.callflow.agentimpl$1.initialvalue(agentimpl.java:255)         @ java.lang.threadlocal$threadlocalmap.getaftermiss(threadlocal.java:374)         @ java.lang.threadlocal$threadlocalmap.get(threadlocal.java:347)         @ java.lang.threadlocal$threadlocalmap.access$000(threadlocal.java:225)         @ java.lang.threadlocal.get(threadlocal.java:127)         @ com.sun.enterprise.admin.monitor.callflow.agentimpl.getthreadlocaldata(agentimpl.java:1070)         @ com.sun.enterprise.server.logging.uniformlogformatter.uniformlogformat(uniformlogformatter.java:320)         @ com.sun.enterprise.server.logging.uniformlogformatter.format(uniformlogformatter.java:151)         @ java.util.logging.streamhandler.publish(streamhandler.java:179)         @ com.sun.enterprise.server.logging.fileandsysloghandler.publish(fileandsysloghandler.java:512)         @ java.util.logging.logger.log(logger.java:440)         @ java.util.logging.logger.dolog(logger.java:462)         @ java.util.logging.logger.log(logger.java:526)         @ com.sun.enterprise.deployment.autodeploy.autodeploycontrollerimpl$autodeploytask.run(autodeploycontrollerimpl.java :391)         @ java.util.timerthread.mainloop(timer.java:512)         @ java.util.timerthread.run(timer.java:462) caused by: sun.security.pkcs11.wrapper.pkcs11exception: ckr_device_error         @ sun.security.pkcs11.wrapper.pkcs11.c_generaterandom(native method)         @ sun.security.pkcs11.p11securerandom.implnextbytes(p11securerandom.java:167)         ... 21 more |#]  [#|2011-05-08t17:44:36.034+0300|severe|sun-appserver2.1|javax.enterprise.system.tools.deployment|_threadid=17;_threadname=tim er-18;_requestid=a47329c8-5efa-4e29-b90d-a5bda9c8f725;|"dpl8011: autodeployment failure while deploying application : nul l"|#]  [#|2011-05-08t17:44:38.034+0300|severe|sun-appserver2.1|javax.enterprise.system.tools.deployment|_threadid=17;_threadname=tim er-18;_requestid=a47329c8-5efa-4e29-b90d-a5bda9c8f725;|"dpl8011: autodeployment failure while deploying application : nul l"|#]  ******** 

when in hang state took thread dump , found 1 dead lock below !!!

found 1 java-level deadlock: ============================= &quot;selectorthread-4242&quot;:   waiting lock monitor 0x0040ef60 (object 0x56cd6dd0, org.apache.jasper.util.systemloghandler),   held &quot;timer-2&quot; &quot;timer-2&quot;:   waiting lock monitor 0x0040f5d8 (object 0x568bc440, com.sun.enterprise.server.logging.systemoutanderrhandler$loggingprintstream),   held &quot;selectorthread-4242&quot;  java stack information threads listed above: =================================================== &quot;selectorthread-4242&quot;:     @ java.lang.throwable.printstacktrace(throwable.java:461)     - waiting lock &lt;0x56cd6dd0&gt; (a org.apache.jasper.util.systemloghandler)     @ java.lang.throwable.printstacktrace(throwable.java:452)     @ java.util.logging.errormanager.error(errormanager.java:78)     - locked &lt;0x5a4fe388&gt; (a java.util.logging.errormanager)     @ com.sun.enterprise.server.logging.uniformlogformatter.uniformlogformat(uniformlogformatter.java:364)     @ com.sun.enterprise.server.logging.uniformlogformatter.format(uniformlogformatter.java:151)     @ java.util.logging.streamhandler.publish(streamhandler.java:179)     - locked &lt;0x568825e0&gt; (a com.sun.enterprise.server.logging.fileandsysloghandler)     @ com.sun.enterprise.server.logging.fileandsysloghandler.publish(fileandsysloghandler.java:512)     - locked &lt;0x568825e0&gt; (a com.sun.enterprise.server.logging.fileandsysloghandler)     @ java.util.logging.logger.log(logger.java:440)     @ java.util.logging.logger.dolog(logger.java:462)     @ java.util.logging.logger.log(logger.java:485)     @ com.sun.enterprise.server.logging.systemoutanderrhandler$loggingbytearrayoutputstream.flush(systemoutanderrhandler.java:368)     - locked &lt;0x568b84f0&gt; (a com.sun.enterprise.server.logging.systemoutanderrhandler$loggingbytearrayoutputstream)     @ java.io.printstream.write(printstream.java:414)     - locked &lt;0x568bc440&gt; (a com.sun.enterprise.server.logging.systemoutanderrhandler$loggingprintstream)     @ com.sun.enterprise.server.logging.systemoutanderrhandler$loggingprintstream.write(systemoutanderrhandler.java:293)     @ sun.nio.cs.streamencoder$charsetse.writebytes(streamencoder.java:336)     @ sun.nio.cs.streamencoder$charsetse.implflushbuffer(streamencoder.java:404)     @ sun.nio.cs.streamencoder.flushbuffer(streamencoder.java:115)     - locked &lt;0x568bc470&gt; (a java.io.outputstreamwriter)     @ java.io.outputstreamwriter.flushbuffer(outputstreamwriter.java:169)     @ java.io.printstream.write(printstream.java:459)     - locked &lt;0x568bc440&gt; (a com.sun.enterprise.server.logging.systemoutanderrhandler$loggingprintstream)     @ java.io.printstream.print(printstream.java:602)     @ com.sun.enterprise.server.logging.systemoutanderrhandler$loggingprintstream.print(systemoutanderrhandler.java:205)     @ java.io.printstream.println(printstream.java:739)     - locked &lt;0x568bc440&gt; (a com.sun.enterprise.server.logging.systemoutanderrhandler$loggingprintstream)     @ com.sun.enterprise.server.logging.systemoutanderrhandler$loggingprintstream.println(systemoutanderrhandler.java:187)     @ org.apache.jasper.util.systemloghandler.println(systemloghandler.java:254)     @ org.apache.jasper.util.systemloghandler.println(systemloghandler.java:254)     @ org.apache.jasper.util.systemloghandler.println(systemloghandler.java:254)     @ org.apache.jasper.util.systemloghandler.println(systemloghandler.java:254)     @ java.util.logging.errormanager.error(errormanager.java:76)     - locked &lt;0x5a4fe3a8&gt; (a java.util.logging.errormanager)     @ com.sun.enterprise.server.logging.uniformlogformatter.uniformlogformat(uniformlogformatter.java:364)     @ com.sun.enterprise.server.logging.uniformlogformatter.format(uniformlogformatter.java:151)     @ com.sun.enterprise.server.logging.amxlogginghook.publish(amxlogginghook.java:198)     @ com.sun.enterprise.server.logging.fileandsysloghandler.publish(fileandsysloghandler.java:531)     - locked &lt;0x568825e0&gt; (a com.sun.enterprise.server.logging.fileandsysloghandler)     @ java.util.logging.logger.log(logger.java:440)     @ java.util.logging.logger.dolog(logger.java:462)     @ java.util.logging.logger.log(logger.java:551)     @ com.sun.enterprise.web.connector.grizzly.selectorthread.doselect(selectorthread.java:1445)     @ com.sun.enterprise.web.connector.grizzly.selectorthread.startlistener(selectorthread.java:1316)     - locked &lt;0x56cdf878&gt; (a [ljava.lang.object;)     @ com.sun.enterprise.web.connector.grizzly.selectorthread.startendpoint(selectorthread.java:1279)     @ com.sun.enterprise.web.connector.grizzly.selectorthread.run(selectorthread.java:1255) &quot;timer-2&quot;:     @ java.io.printstream.println(printstream.java:738)     - waiting lock &lt;0x568bc440&gt; (a com.sun.enterprise.server.logging.systemoutanderrhandler$loggingprintstream)     @ com.sun.enterprise.server.logging.systemoutanderrhandler$loggingprintstream.println(systemoutanderrhandler.java:178)     @ org.apache.jasper.util.systemloghandler.println(systemloghandler.java:258)     @ org.apache.jasper.util.systemloghandler.println(systemloghandler.java:258)     @ org.apache.jasper.util.systemloghandler.println(systemloghandler.java:258)     @ org.apache.jasper.util.systemloghandler.println(systemloghandler.java:258)     @ java.lang.throwable.printstacktrace(throwable.java:462)     - locked &lt;0x56cd6dd0&gt; (a org.apache.jasper.util.systemloghandler)     @ java.lang.throwable.printstacktrace(throwable.java:452)     @ com.sun.jbi.management.system.adminservice.heartbeat(adminservice.java:975)     @ com.sun.jbi.management.system.adminservice.handlenotification(adminservice.java:198)     @ com.sun.jmx.interceptor.defaultmbeanserverinterceptor$listenerwrapper.handlenotification(defaultmbeanserverinterceptor.java:1652)     @ javax.management.notificationbroadcastersupport.handlenotification(notificationbroadcastersupport.java:221)     @ javax.management.notificationbroadcastersupport.sendnotification(notificationbroadcastersupport.java:184)     @ javax.management.timer.timer.sendnotification(timer.java:1295)     - locked &lt;0x57d2e590&gt; (a javax.management.timer.timernotification)     @ javax.management.timer.timer.notifyalarmclock(timer.java:1264)     @ javax.management.timer.timeralarmclock.run(timer.java:1347)     @ java.util.timerthread.mainloop(timer.java:512)     @ java.util.timerthread.run(timer.java:462)  **found 1 deadlock.** 

please suggest

thanks ali

got same issue

i resolve cause .properties file contained simple quote ' , when jersey logger tries log it, cannot parse json send server.

so kind of string jersey trying log , carefull on special characters


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -