程序出现两个错误。都是两个xml的相同错误,不知道是什么意思,请高手帮忙提点意见方案两个错误为:
[Error] registrations.xml:22:16: Document root element "REGISTRATIONS", must match DOCTYPE root "null".
[Error] registrations.xml:22:16: Document is invalid: no grammar found.
[Error] configuration.xml:3:16: Document root element "CONFIGURATION", must match DOCTYPE root "null".
[Error] configuration.xml:3:16: Document is invalid: no grammar found.
两个xml的代码如下configuration.xml:<?xml version='1.0' encoding='us-ascii'?><CONFIGURATION> 
<SIP_STACK 
stack_name="nist-proxy"
stack_IP_address="192.168.0.137"
router_path="gov.nist.sip.proxy.router.ProxyRouter"
max_connections="20"
thread_pool_size="20"
    >       <LISTENING_POINT port="4000" transport="udp" />
<LISTENING_POINT port="4000" transport="tcp" />
<DOMAIN domain="there.com" />
<DOMAIN domain="pingtel.com" /> 
<DOMAIN domain="ubi.com" />
<DOMAIN domain="hotmail.com" />
<DOMAIN domain="nist.gov" />
<DOMAIN domain="nitrogen.epact.se" />
</SIP_STACK><REGISTRAR
export_registrations="true"
port="1099"
/><LOGGING
access_log_via_rmi="false"
rmi_port="0"
log_lifetime="3600"
enable_debug="true"
output_proxy="debug/proxy_output.txt"
server_log="debug/server_log.txt"
bad_message_log="debug/bad_message_log.txt"
debug_log="debug/debug_log.txt"
/><PRESENCE_SERVER 
enable="true"
/><AUTHENTICATION
enable="false"
method="digest"
class_file="gov.nist.sip.proxy.authentication.DigestServerAuthenticationMethod"
passwords_file="./configuration/gov/nist/sip/proxy/configuration/passwords.xml"
/><REGISTRATIONS 
enable="true"
expires_time="3600"
registrations_file="./configuration/gov/nist/sip/proxy/configuration/registrations.xml"
/></CONFIGURATION>  registrations.xml
<?xml version='1.0' encoding='us-ascii'?> 
<!--
  <REGISTRATION  displayName="olivier" uri="sip:[email protected]"
    ...
  </REGISTRATION>
  The display name and the uri attributes are what would be expected in the 
  To header of the REGISTER. Important: no parameters are accepted in this uri!!
  The uri attribute will constitute the key for the registrar to retrieve the
  registration.
  Parameters are accepted for the contact uri.   
  
    <CONTACT  uri="mailto:[email protected]:8000"    />
        <CONTACT  displayName="olivier work" uri="sip:[email protected]:8000" expires="10" />
        <CONTACT  uri="sipc:[email protected]:8000;transport=UDP;user=olivier" expires="56" />
    
       <CONTACT  uri="sip:129.6.50.23" />
        <CONTACT  uri="sip:129.6.50.23" />
          <CONTACT  uri="sip:[email protected]" />
    
-->
<REGISTRATIONS> 
    <REGISTRATION  displayName="Ranga " uri="sip:[email protected]" >
<BUDDY     uri = "sip:[email protected]" />
    </REGISTRATION>    <REGISTRATION  displayName="deruelle " uri="sip:[email protected]" >
<BUDDY     uri = "sip:[email protected]" />
    </REGISTRATION>
</REGISTRATIONS> 

解决方案 »

  1.   

    补充下:这两个XML,configuration.xml是软件的基本初始化的配置信息,软件运行的时候要读取配置信息 ,第二个是注册信息文件,该软件软件可以注册用户,注册的用户信息保存在registrations.xml里面
    在网上查了一些资料,设计到must match DOCTYPE root "null等错误的,基本都是由于框架的原因,但是这里根本就没有什么框架,就是基本的J2SE和一些jain-sip的api,具体是什么错误呢,请教大家