You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ales St <st...@seznam.cz> on 2005/12/01 10:14:22 UTC

Problem with abstract class-SAXException: Invalid element in

Hi
I have a problem with Axis in java. I have generated some abstract class
named SymbolType, and some class LineSymbol which extend from it:
public class LineSymbol  extends net.opengis.www.sld.SymbolType{
private net.opengis.www.sld.Geometry geometry;
private net.opengis.www.sld.Stroke stroke;
........
}
And when i wanted to  to initialize it(it is a field):
SymbolType[] symbol=new SymbolType[1];
   symbol[0]=new LineSymbol();

And then i try to run my aplication, a axis exception is generated:
org.xml.sax.SAXException: Invalid element in
net.opengis.www.sld.SymbolType - Geometry
All generated exception is down.
I hope, that my description of this problem is sufficient,if not, I will try
to describe it better.
So my question is,can Axis do something like that i described before or Axis
can not do it? Or can you help me how this problem to solve? Because I don't
knew what else could be wrong. And it is very important for me to solve it.
Thank for help

All exception is:
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: Invalid element in
net.opengis.www.sld.S
ymbolType - Geometry
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}hostname:pocitac

org.xml.sax.SAXException: Invalid element in
net.opengis.www.sld.SymbolType - Ge
ometry
        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
.java:222)
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
java:129)
        at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializ
ationContext.java:1087)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
nt(AbstractSAXParser.java:633)
        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
EndElement(XMLNSDocumentScannerImpl.java:719)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:834)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:148)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1242)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at
org.apache.axis.encoding.DeserializationContext.parse(Deserialization
Context.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders
tandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at wms.WmsSoapBindingStub.getMap(WmsSoapBindingStub.java:1013)
        at clSOAP.getMap(clSOAP.java:295)
        at clSOAP.main(clSOAP.java:314)
org.xml.sax.SAXException: Invalid element in
net.opengis.www.sld.SymbolType - Ge
ometry