Project

General

Profile

Defect #290

hang when getting the timeline

Added by Robert Ivens almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Start date:
04/30/2011
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

Over the versions I did had some hangs or finally some timeouts but this time it hung forever (+15mins).
Here is the stacktrace.


Files

getTimeLine_hang.txt (27.5 KB) getTimeLine_hang.txt Robert Ivens, 04/30/2011 06:56 PM

History

#1

Updated by Patrick Talbot almost 13 years ago

  • Status changed from New to In Progress

Not sure this is the plugin actually...

I have seen quite a lot of Exceptions (running Servoy from Eclipse0 when updating the field - these are coming from the java HtmlEditorKit used by Servoy for HTML_AREA fields...
Maybe you could output a flag to confirm that the plugin returned the value and see if the lock occur before or after the value is sent back...

From the stack trace here it seems that this is DBGP (javascript Servoy debugger) which is locked.

#2

Updated by Patrick Talbot almost 13 years ago

This is what I'm talking about:

Exception in thread "pool-4-thread-16" java.util.EmptyStackException
at java.util.Stack.peek(Unknown Source)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertElement(Unknown Source)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertUpdate(Unknown Source)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insert(Unknown Source)
at javax.swing.text.DefaultStyledDocument.insert(Unknown Source)
at javax.swing.text.html.HTMLDocument.insert(Unknown Source)
at javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(Unknown Source)
at javax.swing.text.html.HTMLDocument$HTMLReader.flush(Unknown Source)
at com.servoy.j2db.util.FixedHTMLEditorKit.read(FixedHTMLEditorKit.java:1516)
at com.servoy.j2db.util.FixedJEditorPane.read(FixedJEditorPane.java:113)
at com.servoy.j2db.util.FixedJEditorPane.access$0(FixedJEditorPane.java:104)
at com.servoy.j2db.util.FixedJEditorPane$PageLoader.run(FixedJEditorPane.java:258)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

and there are more (from 16 up to...)

Exception in thread "pool-4-thread-99" java.util.EmptyStackException
at java.util.Stack.peek(Unknown Source)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertElement(Unknown Source)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertUpdate(Unknown Source)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insert(Unknown Source)
at javax.swing.text.DefaultStyledDocument.insert(Unknown Source)
at javax.swing.text.html.HTMLDocument.insert(Unknown Source)
at javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(Unknown Source)
at javax.swing.text.html.HTMLDocument$HTMLReader.flush(Unknown Source)
at com.servoy.j2db.util.FixedHTMLEditorKit.read(FixedHTMLEditorKit.java:1516)
at com.servoy.j2db.util.FixedJEditorPane.read(FixedJEditorPane.java:113)
at com.servoy.j2db.util.FixedJEditorPane.access$0(FixedJEditorPane.java:104)
at com.servoy.j2db.util.FixedJEditorPane$PageLoader.run(FixedJEditorPane.java:258)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

But these are not trapped by Servoy because they happen in a different thread.
And they happen AFTER the plugin has sent back its return value.

I must admin it's only recently that I have seen these exceptions in Servoy (using 5.2.7i here in my case), but it definitely smells like a new Servoy issue to me.

#3

Updated by Robert Ivens almost 13 years ago

  • Status changed from In Progress to Closed

okay, lets call it a Servoy Dev issue then and not the plugin.

#4

Updated by Patrick Talbot almost 13 years ago

I'm going to follow that, and probably report to Servoy...
Basically as soon as you you have more than 20 tweets in the HTML_AREA (the threshold is not that clear cut), you get one of these exceptions for each new line you add.

I think there is something wrong in com.servoy.j2db.util.FixedHTMLEditorKit, I don't think it was there before, will need to check the history on that unless it's coming from yet another class called by this one.

Maybe one thing to try in the sample solution though would be to fill a temp String variable and then fill the "tweets" form variable in one go?

#5

Updated by Robert Ivens almost 13 years ago

I updated the sample solution to use a variable to fill the form-variable in one go.

#6

Updated by Patrick Talbot almost 13 years ago

Robert Ivens wrote:

I updated the sample solution to use a variable to fill the form-variable in one go.

Yes, and guess what: no more EmptyStackException
I will try and do a simple case for Johan on this one.

Also available in: Atom PDF