You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Dawid Weiss <da...@gmail.com> on 2013/12/11 09:39:24 UTC
An outstanding default XML Parser bug.
Hi Rory,
Which mailing list should be used to post jaxp bugs? I've just filed
an outstanding issue with valid XML parsing with the default parser.
Unfortunately the submit system doesn't let you know the bug number -
quite unfortunate.
This issue has been in there for a while -- we hit it in 2011:
http://issues.carrot2.org/browse/CARROT-813
and I finally found the time to inspect the source code and get to the
bottom of it. Better now than never :)
Anyway, this always craps out on me, any Sun-derived JDK I've tied:
import java.io.StringReader;
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
public class Foo {
public static void main(String[] args) throws Exception {
StringBuilder builder = new StringBuilder();
builder.append("<root attr=\"");
for (int i = 0; i < 200; i++) {
builder.append("\n");
}
builder.append("foo.");
builder.append("\" />");
final XMLReader reader = XMLReaderFactory.createXMLReader();
System.out.println(reader.getClass().getName());
reader.parse(new InputSource(new StringReader(builder.toString())));
}
}
Dawid
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: An outstanding default XML Parser bug.
Posted by "Rory O'Donnell Oracle, Dublin Ireland" <ro...@oracle.com>.
Hi Dawid,
"Introduced in section" has been updated to 6 & "Affects Version/s"
includes 6, 7 & 8.
Rgds, Rory
On 11/12/2013 19:09, Dawid Weiss wrote:
> Thanks Rory. Remember my point about Jira not allowing comments? :) Heh.
>
>> Introduced In Version: 7u40
> This isn't true. This bug has been in Java what seems like forever.
> I've just checked:
>
>> java version "1.6.0_27"
>> Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
>> Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)
> and the bug is there as well.
>
> Dawid
>
> On Wed, Dec 11, 2013 at 12:48 PM, Rory O'Donnell Oracle, Dublin
> Ireland <ro...@oracle.com> wrote:
>> https://bugs.openjdk.java.net/browse/JDK-8029955
>>
>> Rgds,Rory
>>
>>
>> On 11/12/2013 10:57, Rory O'Donnell Oracle, Dublin Ireland wrote:
>>> Hi Dawid,
>>>
>>> core-libs-dev@openjdk.java.net has jaxp related discussions on there, it
>>> should be a
>>> good starting point.
>>>
>>> Rgds, Rory
>>>
>>> On 11/12/2013 08:41, Dawid Weiss wrote:
>>>> I received an e-mail with the issue number, it's 2657290.
>>>>
>>>> Dawid
>>>>
>>>> On Wed, Dec 11, 2013 at 9:39 AM, Dawid Weiss <da...@gmail.com>
>>>> wrote:
>>>>> Hi Rory,
>>>>>
>>>>> Which mailing list should be used to post jaxp bugs? I've just filed
>>>>> an outstanding issue with valid XML parsing with the default parser.
>>>>> Unfortunately the submit system doesn't let you know the bug number -
>>>>> quite unfortunate.
>>>>>
>>>>> This issue has been in there for a while -- we hit it in 2011:
>>>>>
>>>>> http://issues.carrot2.org/browse/CARROT-813
>>>>>
>>>>> and I finally found the time to inspect the source code and get to the
>>>>> bottom of it. Better now than never :)
>>>>>
>>>>> Anyway, this always craps out on me, any Sun-derived JDK I've tied:
>>>>>
>>>>>
>>>>> import java.io.StringReader;
>>>>>
>>>>> import org.xml.sax.InputSource;
>>>>> import org.xml.sax.XMLReader;
>>>>> import org.xml.sax.helpers.XMLReaderFactory;
>>>>>
>>>>> public class Foo {
>>>>> public static void main(String[] args) throws Exception {
>>>>> StringBuilder builder = new StringBuilder();
>>>>> builder.append("<root attr=\"");
>>>>> for (int i = 0; i < 200; i++) {
>>>>> builder.append("\n");
>>>>> }
>>>>> builder.append("foo.");
>>>>> builder.append("\" />");
>>>>> final XMLReader reader = XMLReaderFactory.createXMLReader();
>>>>> System.out.println(reader.getClass().getName());
>>>>> reader.parse(new InputSource(new
>>>>> StringReader(builder.toString())));
>>>>> }
>>>>> }
>>>>>
>>>>> Dawid
>>>
>> --
>> Rgds,Rory O'Donnell
>> Quality Engineering Manager
>> Oracle EMEA , Dublin, Ireland
>>
--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: An outstanding default XML Parser bug.
Posted by Dawid Weiss <da...@gmail.com>.
Thanks Rory. Remember my point about Jira not allowing comments? :) Heh.
> Introduced In Version: 7u40
This isn't true. This bug has been in Java what seems like forever.
I've just checked:
> java version "1.6.0_27"
> Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
> Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)
and the bug is there as well.
Dawid
On Wed, Dec 11, 2013 at 12:48 PM, Rory O'Donnell Oracle, Dublin
Ireland <ro...@oracle.com> wrote:
> https://bugs.openjdk.java.net/browse/JDK-8029955
>
> Rgds,Rory
>
>
> On 11/12/2013 10:57, Rory O'Donnell Oracle, Dublin Ireland wrote:
>>
>> Hi Dawid,
>>
>> core-libs-dev@openjdk.java.net has jaxp related discussions on there, it
>> should be a
>> good starting point.
>>
>> Rgds, Rory
>>
>> On 11/12/2013 08:41, Dawid Weiss wrote:
>>>
>>> I received an e-mail with the issue number, it's 2657290.
>>>
>>> Dawid
>>>
>>> On Wed, Dec 11, 2013 at 9:39 AM, Dawid Weiss <da...@gmail.com>
>>> wrote:
>>>>
>>>> Hi Rory,
>>>>
>>>> Which mailing list should be used to post jaxp bugs? I've just filed
>>>> an outstanding issue with valid XML parsing with the default parser.
>>>> Unfortunately the submit system doesn't let you know the bug number -
>>>> quite unfortunate.
>>>>
>>>> This issue has been in there for a while -- we hit it in 2011:
>>>>
>>>> http://issues.carrot2.org/browse/CARROT-813
>>>>
>>>> and I finally found the time to inspect the source code and get to the
>>>> bottom of it. Better now than never :)
>>>>
>>>> Anyway, this always craps out on me, any Sun-derived JDK I've tied:
>>>>
>>>>
>>>> import java.io.StringReader;
>>>>
>>>> import org.xml.sax.InputSource;
>>>> import org.xml.sax.XMLReader;
>>>> import org.xml.sax.helpers.XMLReaderFactory;
>>>>
>>>> public class Foo {
>>>> public static void main(String[] args) throws Exception {
>>>> StringBuilder builder = new StringBuilder();
>>>> builder.append("<root attr=\"");
>>>> for (int i = 0; i < 200; i++) {
>>>> builder.append("\n");
>>>> }
>>>> builder.append("foo.");
>>>> builder.append("\" />");
>>>> final XMLReader reader = XMLReaderFactory.createXMLReader();
>>>> System.out.println(reader.getClass().getName());
>>>> reader.parse(new InputSource(new
>>>> StringReader(builder.toString())));
>>>> }
>>>> }
>>>>
>>>> Dawid
>>
>>
>
> --
> Rgds,Rory O'Donnell
> Quality Engineering Manager
> Oracle EMEA , Dublin, Ireland
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: An outstanding default XML Parser bug.
Posted by "Rory O'Donnell Oracle, Dublin Ireland" <ro...@oracle.com>.
https://bugs.openjdk.java.net/browse/JDK-8029955
Rgds,Rory
On 11/12/2013 10:57, Rory O'Donnell Oracle, Dublin Ireland wrote:
> Hi Dawid,
>
> core-libs-dev@openjdk.java.net has jaxp related discussions on there,
> it should be a
> good starting point.
>
> Rgds, Rory
>
> On 11/12/2013 08:41, Dawid Weiss wrote:
>> I received an e-mail with the issue number, it's 2657290.
>>
>> Dawid
>>
>> On Wed, Dec 11, 2013 at 9:39 AM, Dawid Weiss <da...@gmail.com>
>> wrote:
>>> Hi Rory,
>>>
>>> Which mailing list should be used to post jaxp bugs? I've just filed
>>> an outstanding issue with valid XML parsing with the default parser.
>>> Unfortunately the submit system doesn't let you know the bug number -
>>> quite unfortunate.
>>>
>>> This issue has been in there for a while -- we hit it in 2011:
>>>
>>> http://issues.carrot2.org/browse/CARROT-813
>>>
>>> and I finally found the time to inspect the source code and get to the
>>> bottom of it. Better now than never :)
>>>
>>> Anyway, this always craps out on me, any Sun-derived JDK I've tied:
>>>
>>>
>>> import java.io.StringReader;
>>>
>>> import org.xml.sax.InputSource;
>>> import org.xml.sax.XMLReader;
>>> import org.xml.sax.helpers.XMLReaderFactory;
>>>
>>> public class Foo {
>>> public static void main(String[] args) throws Exception {
>>> StringBuilder builder = new StringBuilder();
>>> builder.append("<root attr=\"");
>>> for (int i = 0; i < 200; i++) {
>>> builder.append("\n");
>>> }
>>> builder.append("foo.");
>>> builder.append("\" />");
>>> final XMLReader reader = XMLReaderFactory.createXMLReader();
>>> System.out.println(reader.getClass().getName());
>>> reader.parse(new InputSource(new
>>> StringReader(builder.toString())));
>>> }
>>> }
>>>
>>> Dawid
>
--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: An outstanding default XML Parser bug.
Posted by "Rory O'Donnell Oracle, Dublin Ireland" <ro...@oracle.com>.
Hi Dawid,
core-libs-dev@openjdk.java.net has jaxp related discussions on there, it
should be a
good starting point.
Rgds, Rory
On 11/12/2013 08:41, Dawid Weiss wrote:
> I received an e-mail with the issue number, it's 2657290.
>
> Dawid
>
> On Wed, Dec 11, 2013 at 9:39 AM, Dawid Weiss <da...@gmail.com> wrote:
>> Hi Rory,
>>
>> Which mailing list should be used to post jaxp bugs? I've just filed
>> an outstanding issue with valid XML parsing with the default parser.
>> Unfortunately the submit system doesn't let you know the bug number -
>> quite unfortunate.
>>
>> This issue has been in there for a while -- we hit it in 2011:
>>
>> http://issues.carrot2.org/browse/CARROT-813
>>
>> and I finally found the time to inspect the source code and get to the
>> bottom of it. Better now than never :)
>>
>> Anyway, this always craps out on me, any Sun-derived JDK I've tied:
>>
>>
>> import java.io.StringReader;
>>
>> import org.xml.sax.InputSource;
>> import org.xml.sax.XMLReader;
>> import org.xml.sax.helpers.XMLReaderFactory;
>>
>> public class Foo {
>> public static void main(String[] args) throws Exception {
>> StringBuilder builder = new StringBuilder();
>> builder.append("<root attr=\"");
>> for (int i = 0; i < 200; i++) {
>> builder.append("\n");
>> }
>> builder.append("foo.");
>> builder.append("\" />");
>> final XMLReader reader = XMLReaderFactory.createXMLReader();
>> System.out.println(reader.getClass().getName());
>> reader.parse(new InputSource(new StringReader(builder.toString())));
>> }
>> }
>>
>> Dawid
--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: An outstanding default XML Parser bug.
Posted by Dawid Weiss <da...@gmail.com>.
I received an e-mail with the issue number, it's 2657290.
Dawid
On Wed, Dec 11, 2013 at 9:39 AM, Dawid Weiss <da...@gmail.com> wrote:
> Hi Rory,
>
> Which mailing list should be used to post jaxp bugs? I've just filed
> an outstanding issue with valid XML parsing with the default parser.
> Unfortunately the submit system doesn't let you know the bug number -
> quite unfortunate.
>
> This issue has been in there for a while -- we hit it in 2011:
>
> http://issues.carrot2.org/browse/CARROT-813
>
> and I finally found the time to inspect the source code and get to the
> bottom of it. Better now than never :)
>
> Anyway, this always craps out on me, any Sun-derived JDK I've tied:
>
>
> import java.io.StringReader;
>
> import org.xml.sax.InputSource;
> import org.xml.sax.XMLReader;
> import org.xml.sax.helpers.XMLReaderFactory;
>
> public class Foo {
> public static void main(String[] args) throws Exception {
> StringBuilder builder = new StringBuilder();
> builder.append("<root attr=\"");
> for (int i = 0; i < 200; i++) {
> builder.append("\n");
> }
> builder.append("foo.");
> builder.append("\" />");
> final XMLReader reader = XMLReaderFactory.createXMLReader();
> System.out.println(reader.getClass().getName());
> reader.parse(new InputSource(new StringReader(builder.toString())));
> }
> }
>
> Dawid
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org