axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Thome <mth...@bbn.com>
Subject Re: axis on-the-fly wsdl generation problem
Date Wed, 16 Feb 2005 21:27:01 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
As an in-progress followup, the lack of a stack dump is due to java bug
4872096 (see <a class="moz-txt-link-freetext" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4872096">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4872096</a>
) which can be worked around by adding -Xint to the vm arguments.<br>
<br>
I'm currently getting (with the middle cut out):<br>
java.lang.StackOverflowError<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.String.charAt(String.java:443)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.xerces.util.XMLChar.isValidName(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.xerces.dom.CoreDocumentImpl.isXMLName(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.xerces.dom.CoreDocumentImpl.createElement(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.wsdl.fromJava.Types.createElementWithAnonymousType(Types.java:1699)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:411)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:346)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1796)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.wsdl.fromJava.Types.createElementWithAnonymousType(Types.java:1712)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:411)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:346)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1796)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.wsdl.fromJava.Types.createElementWithAnonymousType(Types.java:1712)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... (time passes) ...<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.wsdl.fromJava.Types.createElementWithAnonymousType(Types.java:1712)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:411)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:346)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1796)<br>
<br>
There don't seem to be any logging hooks in this code... guess it is
time to move over to the -dev list...<br>
<br>
cheers,<br>
&nbsp;&nbsp;&nbsp; -mik<br>
<br>
<br>
Jay Glanville wrote:
<blockquote
 cite="midAF72D46D56403D45AF5441A2D92F867032BFC9@server01.NaturalConvergence.com"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">I've got a deployed service which is perfectly functional, 
but for which 
the ?wsdl option fails with a simple "Exception - 
java.lang.StackOverflowError" message (without a stack dump 
or any other 
information).  The tomcat/catalina logs are similarly 
unhelpful.  Also 
interesting is that java2wsdl doesn't seem to have any 
problem with the 
(undeployed) service.

So questions:
- any debugging suggestions?  I know how to get the servlet to use my 
wsdl document instead of generating it, but it would be nice to know 
that something else isn't wrong.
- what is it that "?wsdl" is doing that is different than java2wsdl?
    </pre>
  </blockquote>
  <pre wrap=""><!---->

I recently had to deal with a similar problem.  It turns out that one of
my beanMapping beans had an infinite recursion in it's equals() method.
I believe that the equals was being called as part of the auto-WSDL
generation.  I found out which bean was causing the problem by removing
all beanMapping and typeMapping entries, and then adding them back one
by one.

So, the problem is probably in one of the beans that you're exporting.
At least, that's what was happening to me.

Hope this helps.

JDG
  </pre>
</blockquote>
</body>
</html>

Mime
View raw message