• Post Reply Bookmark Topic Watch Topic
  • New Topic

Xtags / IO Taglib Problem  RSS feed

 
Joseph Sayen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!