axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Created: (AXIS-1387) org.xml.sax.SAXException in Admin.listConfig() when not using FileProvider
Date Thu, 10 Jun 2004 20:47:10 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1387

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1387
    Summary: org.xml.sax.SAXException in  Admin.listConfig() when not using FileProvider
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             beta-2

   Assignee: 
   Reporter: rakesh bhakta

    Created: Thu, 10 Jun 2004 1:46 PM
    Updated: Thu, 10 Jun 2004 1:46 PM
Environment: Win2000,JVM 1.4.2_3,Avalon, Merlin, Jetty

Description:
I created an AxisServer from a SimpleProvider, using 
following code (concept from http://ivory.codehaus.org ).


fileProvider = new FileProvider( myServiceWSDDFileName );
provider     = new SimpleProvider(fileProvider);
axisServer   = new AxisServer( provider);


When I go to URL http://localhost:8080/axis/?list,
I get the following exeception:

ERROR   2004-06-10 15:39:10.795 [org.apac] (): exception00
org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of file.
        at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:629)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:280)
        at org.apache.axis.utils.Admin.listConfig(Admin.java:231)
        at org.apache.axis.transport.http.QSListHandler.invoke(QSListHandler.java:66)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)


Now perhaps I should not be able to get a ?list, but I should not get this exception either,
and my browser should not hang.

It look like the code at org.apache.axis.utils.Admin.listConfig() has a bug.  "AxisFault(Messages.getMessage("noEngineWSDD"))"
is never thrown because of the statement "if (config instanceof WSDDEngineConfiguration)",
and thus, a "null" is sent into the SAX parser.

  





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message