<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/pushlets/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/pushlets/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/pushlets/bugs/</id><updated>2014-06-20T09:37:15.796000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#12 EventParser.parse throws OOM when end &gt; is missing</title><link href="https://sourceforge.net/p/pushlets/bugs/12/?limit=25#7a01" rel="alternate"/><published>2014-06-20T09:37:15.796000Z</published><updated>2014-06-20T09:37:15.796000Z</updated><author><name>Just van den Broecke</name><uri>https://sourceforge.net/u/justb/</uri></author><id>https://sourceforge.net06dc4a0e7973a72b276fb84195c934a033ebc7f5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;: v1.0_(example) --&amp;gt; 2.0.5&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>EventParser.parse throws OOM when end &gt; is missing</title><link href="https://sourceforge.net/p/pushlets/bugs/12/" rel="alternate"/><published>2014-06-20T09:34:31.427000Z</published><updated>2014-06-20T09:34:31.427000Z</updated><author><name>Just van den Broecke</name><uri>https://sourceforge.net/u/justb/</uri></author><id>https://sourceforge.net8d56727962b580e08026f9b59730767291f823c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 12 has been modified: EventParser.parse throws OOM when end &amp;gt; is missing&lt;br /&gt;
Edited By: Just van den Broecke (justb)&lt;br /&gt;
&lt;em&gt;milestone updated: u'v1.0&lt;/em&gt;(example)' =&amp;gt; u'2.0.5'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>EventParser.parse throws OOM when end &gt; is missing</title><link href="https://sourceforge.net/p/pushlets/bugs/12/" rel="alternate"/><published>2014-06-20T09:34:31.427000Z</published><updated>2014-06-20T09:34:31.427000Z</updated><author><name>Just van den Broecke</name><uri>https://sourceforge.net/u/justb/</uri></author><id>https://sourceforge.net7c3662d4a9557f18e76b02030a7086e8bb201288</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;From Carsten: &lt;br /&gt;
Date: 18-06-14 12:15&lt;/p&gt;
&lt;p&gt;We have stumbled over a bug in EventParser.parse that causes an OOM exception when the &amp;gt; char is missing.&lt;/p&gt;
&lt;p&gt;The following code should check for -1 returned from read() and break/throw accordingly.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c1"&gt;// Then find end-tag ('&amp;gt;'), appending all chars to preparsed string.&lt;/span&gt;
&lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;nextChar&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;char&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;aReader&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="n"&gt;preparsedString&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nextChar&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
 &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nextChar&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="sc"&gt;'&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This can/will happen if there is a difference between the char encoding used by the server (tomcat) hosting pushlet and the encoding of any strings contained in the events sent from a client.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Chat demo can't send special char</title><link href="https://sourceforge.net/p/pushlets/bugs/11/" rel="alternate"/><published>2012-04-27T07:45:17Z</published><updated>2012-04-27T07:45:17Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net6fb91c98dc32c5203b0cef4c57a0dfc6ad680778</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;when send special char..access error..&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PushletClient.joinListen returns before session ID is saved</title><link href="https://sourceforge.net/p/pushlets/bugs/10/" rel="alternate"/><published>2009-06-05T21:56:31Z</published><updated>2009-06-05T21:56:31Z</updated><author><name>Craig M</name><uri>https://sourceforge.net/u/falcor1/</uri></author><id>https://sourceforge.net7ff238620da2b9098a4bf314db2d7e3a63f98875</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Since the handling of E_JOIN_LISTEN_ACK is processed in a different thread than the one that starts the DataEventListener, it is possible that a call to PushletClient.joinListen will return before the E_JOIN_LISTEN_ACK branch executes to save the session ID.  This can cause throwOnInvalidSession if the user calls PushletClient.subscribe immediately after PushletClient.joinListen.&lt;/p&gt;
&lt;p&gt;Flow of events that cause the problem:&lt;br /&gt;
- Client calls PushletClient.joinListen&lt;br /&gt;
- DataEventListener thread is started via startDataEventListener&lt;br /&gt;
- DataEventListener sends E_JOIN_LISTEN to pushlet&lt;br /&gt;
- DataEventListener notifies thread that started it, joinListen returns&lt;br /&gt;
- Client calls PushletClient.subscribe, throwOnInvalidSession is triggered and ID  is still null&lt;br /&gt;
- Shortly after the E_JOIN_LISTEN_ACK is received and ID is saved&lt;/p&gt;
&lt;p&gt;The work around I am using is this:&lt;br /&gt;
- Add a boolean field to PushletClient named  'startFromJoinListen'&lt;br /&gt;
- Move the 'this.notify()' code in DataEventListener.run() to a method called 'signalReady()'&lt;br /&gt;
- If Pushlet.joinListen is called then set startFromJoinListen to true&lt;br /&gt;
- In DataEventListener, if (!startFromJoinListen) { signalReady(); } immediately after the call to openURL.  However if startFromJoinListen is true then don't call signalReady()  until E_JOIN_LISTEN_ACK is received.&lt;br /&gt;
This will ensure that there is a session ID saved before further calls can be made.  I can submit a patch if you like.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Poll mode blocks when no event present</title><link href="https://sourceforge.net/p/pushlets/bugs/9/" rel="alternate"/><published>2008-04-09T15:39:53Z</published><updated>2008-04-09T15:39:53Z</updated><author><name>Olivier G</name><uri>https://sourceforge.net/u/oligo/</uri></author><id>https://sourceforge.net26ef69b8ebe821e2bbd7577ae21e20ed6bd83eb3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In poll mode, when the event-queue is empty, the thread is blocked waiting for an event. This is not the expected behaviour of poll mode.&lt;/p&gt;
&lt;p&gt;The problem seems to be located in Subscriber.fetchEvent() line 236: deQueueAll() is called with a zero value. Then dequeueAll(), call the wait method with this previous value, blocking the thread forever.&lt;/p&gt;
&lt;p&gt;A quick (and dirt) workarround is to initialize queueReadTimeoutMillis with 1 for example.&lt;/p&gt;
&lt;p&gt;I attached a file with the blocked thread stack trace.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Browsers receaving all events when listening on different su</title><link href="https://sourceforge.net/p/pushlets/bugs/8/" rel="alternate"/><published>2008-02-19T11:27:50Z</published><updated>2008-02-19T11:27:50Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net371a594601cedc6ff56f267ba4e545872c6bf138</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have two web browsers listening on different subjects&lt;/p&gt;
&lt;p&gt;"/CTE/7" and "/CTE/9".&lt;/p&gt;
&lt;p&gt;i have a java servlet publishing events on each subjects depending on which browser it originated.  for some reason both browsers are getting all requests.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Stock demo doest not run in WebSphere</title><link href="https://sourceforge.net/p/pushlets/bugs/7/" rel="alternate"/><published>2007-12-07T03:02:23Z</published><updated>2007-12-07T03:02:23Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.nete094b006a166ab1c4ab647e8b101fd4dd1b7f755</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Stock demo doest not run in WebSphere6.&lt;br /&gt;
Data was send and printwriter was flushed but client didn't received data.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Refreshing Stocks demo running in IE with F5 problem</title><link href="https://sourceforge.net/p/pushlets/bugs/6/" rel="alternate"/><published>2007-07-20T21:26:58Z</published><updated>2007-07-20T21:26:58Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3573a88650675d3ed36fa1c8ca9fc91d20d68ce9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Refreshing Stocks demo running in IE with F5 causes updates to stop arriving for about 15 seconds. Reconnect should take musch less time than that.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with Umlauts in IE</title><link href="https://sourceforge.net/p/pushlets/bugs/5/" rel="alternate"/><published>2007-05-26T11:05:30Z</published><updated>2007-05-26T11:05:30Z</updated><author><name>Andreas Kuhtz</name><uri>https://sourceforge.net/u/andreaskuhtz/</uri></author><id>https://sourceforge.net53040db6259b32c10fe898b25c866656e5319849</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I've detected a problem if the event that is pushed contains some german umlauts (not sure if the same occurs with some french characters, too).&lt;br /&gt;
It works with Firefox but does not work in IE. Finally I found the solution for the problem.&lt;br /&gt;
In the class nl.justobjects.pushlet.core.XMLAdapter the contentType for strictXML is set as "text/xml" but to have it work with umlauts you must change this to "text/xml; charset=UTF-8" (line 38).&lt;br /&gt;
After this change it works.&lt;/p&gt;
&lt;p&gt;Btw: Great work, I love pushlets ;-)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>