axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: Error: org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException
Date Fri, 04 Jun 2010 00:06:52 GMT

wstx expects the character to be a valid IsoControl character

 

    protected void readXmlDecl(boolean isMainDoc, int xmlVersion)
        throws IOException, WstxException
    {
        int c = getNextAfterWs(false);

        // First, version pseudo-attribute:

        if (c != 'v') { // version info obligatory for main docs
            if (isMainDoc) {
                reportUnexpectedChar(c, ERR_XMLDECL_KW_VERSION);
            }
        }

<snip>

    }

 

  protected void reportUnexpectedChar(int i, String msg)
        throws WstxException
    {
        char c = (char) i;
        String excMsg;

        // WTF? JDK thinks null char is just fine as?!
        if (Character.isISOControl(c)) {
            excMsg = "Unexpected character (CTRL-CHAR, code "+i+")"+msg;
        } else {
            excMsg = "Unexpected character '"+c+"' (code "+i+")"+msg;
        }
        Location loc = getLocation();
        throw new WstxUnexpectedCharException(excMsg, loc, c);
    }


where character.isISOControl is defined aspublic static boolean isISOControl(char ch)

Determines if the specified character is an ISO control character. A character is considered
to be an ISO control character if its code is in the range '\u0000' through '\u001F' or in
the range '\u007F' through '\u009F'. 

Martin --
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.
 

> Date: Thu, 3 Jun 2010 15:17:02 -0700
> From: spatni@vendavo.com
> To: axis-user@ws.apache.org
> Subject: Error: org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException
> 
> 
> Hi,
> 
> I'm getting following error in Netweaver CE 7.1...Same application works
> fine in Weblogic and JBoss.
> Any pointers to troubleshoot would be of great help.
> 
> [echo] Loading system data, userName = vendavosystem
> [loaddb] org.apache.axis2.AxisFault:
> com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code
> 34) in DOCTYPE declaration; expected a space between public and system
> identifiers
> [loaddb] at [row,col {unknown-source}]: [1,62]
> [loaddb] at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:81)
> -- 
> View this message in context: http://old.nabble.com/Error%3A-org.apache.axis2.AxisFault%3A-com.ctc.wstx.exc.WstxUnexpectedCharException-tp28773599p28773599.html
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
> 
 		 	   		  
_________________________________________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
Mime
View raw message