atom feed3 messages in net.java.dev.jwsdp.usersRe: Possible bug in sjsxp
FromSent OnAttachments
Neeraj BajajJul 12, 2005 10:23 pm 
Neeraj BajajJul 13, 2005 3:59 am 
Neeraj BajajJul 14, 2005 3:58 am 
Subject:Re: Possible bug in sjsxp
From:Neeraj Bajaj (Neer@Sun.COM)
Date:Jul 14, 2005 3:58:19 am
List:net.java.dev.jwsdp.users

Marten,

I have identfied the problem in the code which is byte --> char conversion. So i have a workaround for you, if you use FileReader instead of FileInputStream problem will go away.

I will work on fixing the problem now. I thought i should let you know the possible workaround if this problem is stopping you from any work :-)

- Neeraj

Marten,

I could reproduce this bug. Large size of XML file is making it difficult to debug. It seems this will take some more time. I will keep you posted and push a new build as soon as this bug is fixed.

Thanks, - Neeraj

[cc'ed this mail to use@jwsdp.dev.java.net & use@jaxp.dev.java.net to involve community.]

Marten,

I will look into it. As you have attached the XML file and test case to reproduce the problem. Fix should be quicker :-)

Thanks, - Neeraj

Mårten Gustafsson wrote:

Neeraj

When parsing very large input files sjsxp complains about missing end tag. The error occurs after approx 2 MBytes. Test program and input file are attached. The program works fine with codehaus stax.

I use the latest sjsxp and jdk.1.5.0_04.

The error message is:

javax.xml.stream.XMLStreamException : ParseError at [row,col]:[5280,113]

Message: The element type "Box" must be terminated by the matching end-tag "</Box>".

at com.sun.xml.stream.XMLReaderImpl.next( XMLReaderImpl.java:508 )

at Main.main( Main.java:25 )