• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Xtags / IO Taglib Problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a JSP where I am using the Xtags tag library (Jakarta) to parse some XML content, which is returned from a SOAP call. My code is shown below. I am using the doc variable to store the document for parsing. The code works fine in most cases, however every so often it will throw the following exception...
org.apache.taglibs.xtags.util.JspNestedException: Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.
Once this exception is thrown, I get it every time I try to access the page. The only way to get rid of the error is to restart Tomcat or to delete the jsp.java file from the Work directory in order to force a recompile of the JSP.
I have looked into caching issues but I do not think that is the problem. Is there a problem with the xtags or io taglibs that might cause this?

<xtags:parse id="detail">
<io:soap
url="http://localhost:8002/axis/services/getdetail"
SOAPAction="">
<io:body>
<joe:Envelope xmlns:joe="http://schemas.xmlsoap.org/soap/envelope/">
<joe:Body>
<requestDetail xmlns="urn:anewdetail">
<personId><%=sPersonID%></personId>
</requestDetail>
</joe:Body>
</joe:Envelope>
</io:body>
</io:soap>
</xtags:parse>
<% doc = detail; %>
Thanks for any help!
[ February 06, 2004: Message edited by: Super Joe ]
[ February 06, 2004: Message edited by: Super Joe ]
[ February 06, 2004: Message edited by: Super Joe ]
 
Joseph Sayen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, I might add that the SOAP call is returning the correct data. I confirmed this using TCPMON.
Thanks,
Joe
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch "Super Joe"!
You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Thanks!
bear
JSP Forum Bartender
reply
    Bookmark Topic Watch Topic
  • New Topic