Saturday 15 May 2010

xpages - openNTF Domino API causing large amounts of log files - StackOverflowError -



xpages - openNTF Domino API causing large amounts of log files - StackOverflowError -

i've been testing , using openntf domino api (oda) heavily these past few days, , starting notice big amounts of log files beingness generated. (oda version m4.5) yesterday, found more 10,000 of them. today, there few hundred. seems written 1 time day , same time time of day (roughly 14:00 15:00). print outs of stacktrace same. here excerpt log:

14.10.2014 15:02:16 http jvm: java.lang.stackoverflowerror 14.10.2014 15:02:16 http jvm: @ sun.nio.cs.singlebyteencoder.encodearrayloop(singlebyteencoder.java:70) 14.10.2014 15:02:16 http jvm: @ sun.nio.cs.singlebyteencoder.encodeloop(singlebyteencoder.java:146) 14.10.2014 15:02:16 http jvm: @ java.nio.charset.charsetencoder.encode(charsetencoder.java:555) 14.10.2014 15:02:16 http jvm: @ sun.nio.cs.streamencoder$charsetse.implwrite(streamencoder.java:405) 14.10.2014 15:02:16 http jvm: @ sun.nio.cs.streamencoder.write(streamencoder.java:159) 14.10.2014 15:02:16 http jvm: @ java.io.outputstreamwriter.write(outputstreamwriter.java:229) 14.10.2014 15:02:16 http jvm: @ java.io.bufferedwriter.flushbuffer(bufferedwriter.java:122) 14.10.2014 15:02:16 http jvm: @ java.io.printstream.write(printstream.java:500) 14.10.2014 15:02:16 http jvm: @ java.io.printstream.print(printstream.java:643) 14.10.2014 15:02:16 http jvm: @ java.io.printstream.println(printstream.java:780) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.logging.defaultfilehandler.publish(defaultfilehandler.java:134) 14.10.2014 15:02:16 http jvm: @ java.util.logging.logger.log(logger.java:1281) 14.10.2014 15:02:16 http jvm: @ java.util.logging.logger.log(logger.java:1244) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.utils.dominoutils$4.run(dominoutils.java:279) 14.10.2014 15:02:16 http jvm: @ java.security.accesscontroller.doprivileged(accesscontroller.java:327) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.utils.dominoutils.handleexception(dominoutils.java:273) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.iterators.documentiterator.getcollectionids(documentiterator.java:79) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.iterators.documentiterator.<init>(documentiterator.java:53) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.impl.documentcollection.iterator(documentcollection.java:747) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.impl.notecollection.add(notecollection.java:159) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.impl.documentcollection.tolotusnotecollection(documentcollection.java:83) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.iterators.documentiterator.getcollectionids(documentiterator.java:70) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.iterators.documentiterator.<init>(documentiterator.java:53) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.impl.documentcollection.iterator(documentcollection.java:747) 14.10.2014 15:02:16 http jvm: @ org.openntf.domino.impl.notecollection.add(notecollection.java:159)

the lastly bit loop endlessly. unable find corresponding entry in org.openntf*.log file.

edit* after going through few hundred documents, did see variation normal loop. whether or not relevant, cannot say:

14.10.2014 15:10:29 http jvm: error trying format output error handling. resorting standard stack trace...nullnull 14.10.2014 15:10:29 http jvm: java.lang.stackoverflowerrorjava.lang.stackoverflowerrorjava.lang.stackoverflowerror 14.10.2014 15:10:29 http jvm: @ sun.nio.cs.singlebyteencoder.encodearrayloop(singlebyteencoder.java:70) 14.10.2014 15:10:29 http jvm: @ sun.nio.cs.singlebyteencoder.encodeloop(singlebyteencoder.java:146) 14.10.2014 15:10:29 http jvm: @ java.nio.charset.charsetencoder.encode(charsetencoder.java:555) 14.10.2014 15:10:29 http jvm: @ sun.nio.cs.streamencoder$charsetse.implwrite(streamencoder.java:405) 14.10.2014 15:10:29 http jvm: @ sun.nio.cs.streamencoder.write(streamencoder.java:159) 14.10.2014 15:10:29 http jvm: @ java.io.outputstreamwriter.write(outputstreamwriter.java:229) 14.10.2014 15:10:29 http jvm: @ java.io.bufferedwriter.flushbuffer(bufferedwriter.java:122) 14.10.2014 15:10:29 http jvm: @ java.io.printstream.write(printstream.java:500) 14.10.2014 15:10:29 http jvm: @ java.io.printstream.print(printstream.java:643) 14.10.2014 15:10:29 http jvm: @ java.io.printstream.append(printstream.java:1039) 14.10.2014 15:10:29 http jvm: @ java.io.printstream.append(printstream.java:51) 14.10.2014 15:10:29 http jvm: @ java.lang.stacktraceelement.appendto(stacktraceelement.java:180) 14.10.2014 15:10:29 http jvm: @ java.lang.throwable.appendto(throwable.java:305) 14.10.2014 15:10:29 http jvm: @ java.lang.throwable.printstacktrace(throwable.java:332) 14.10.2014 15:10:29 http jvm: @ java.lang.throwable.printstacktrace(throwable.java:212) 14.10.2014 15:10:29 http jvm: @ java.lang.throwable.printstacktrace(throwable.java:163) 14.10.2014 15:10:29 http jvm: @ org.openntf.domino.logging.defaultconsolehandler.publish(defaultconsolehandler.java:104) 14.10.2014 15:10:29 http jvm: @ java.util.logging.logger.log(logger.java:1281) 14.10.2014 15:10:29 http jvm: @ java.util.logging.logger.log(logger.java:1244) 14.10.2014 15:10:29 http jvm: @ org.openntf.domino.utils.dominoutils$4.run(dominoutils.java:279) 14.10.2014 15:10:29 http jvm: @ java.security.accesscontroller.doprivileged(accesscontroller.java:327) 14.10.2014 15:10:29 http jvm: @ org.openntf.domino.utils.dominoutils.handleexception(dominoutils.java:273) 14.10.2014 15:10:29 http jvm: @ org.openntf.domino.iterators.documentiterator.getcollectionids(documentiterator.java:79) 14.10.2014 15:10:29 http jvm: @ org.openntf.domino.iterators.documentiterator.<init>(documentiterator.java:53) 14.10.2014 15:10:29 http jvm: @ org.openntf.domino.impl.documentcollection.iterator(documentcollection.java:747) 14.10.2014 15:10:29 http jvm: @ org.openntf.domino.impl.notecollection.add(notecollection.java:159) 14.10.2014 15:10:29 http jvm: @ org.openntf.domino.impl.documentcollection.tolotusnotecollection(documentcollection.java:83) is known issue? if so, how can right it? if cannot right quickly, can @ to the lowest degree turn off print out server log? is indeed error api seems stacktrace, or using incorrectly?

this looks problem fixed in subsequent release think related iterators.

in m4.5, if adding documentcollection notecollection phone call iterator on documentcollection @ line 159 https://github.com/openntf/org.openntf.domino/blob/m4.5/org.openntf.domino/src/org/openntf/domino/impl/notecollection.java.

however, documentcollection iterator instantiated calling getcollectionids, adds documentcollection new notecollection @ line 83 https://github.com/openntf/org.openntf.domino/blob/m4.5/org.openntf.domino/src/org/openntf/domino/impl/documentcollection.java.

this cause of stack trace, in release candidate subsequent m4.5, fixed. corresponding method, starting on line 180, uses core notecollection.add method https://github.com/openntf/org.openntf.domino/blob/master/org.openntf.domino/src/org/openntf/domino/impl/notecollection.java

xpages

No comments:

Post a Comment