History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UP-1803
Type: Bug Bug
Status: Open Open
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Vincent MATHIEU
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
uPortal

xml file validating

Created: 22/Aug/07 01:57 PM   Updated: 03/Oct/07 12:09 PM
Component/s: Framework
Affects Version/s: 2.6.0 GA, 2.6.1 RC1, 2.6.1 RC2
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File portal.log (29 kb)



 Description  « Hide
When I start uportal 2.6.0-GA, I have the following exception

ERROR [main] utils.SAXErrorHandler.[] août/22 15:08:03 - ResourceLoader.getResourceAsDocument(/properties/ldap.xml)
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)


ldap.xml is a valid xml file
Uportal seems to want validate ldap.xml, but there is no DTD with this file.

It sound like UP-1780

I have this exception with native uportal distribution, and only 2 files modifyed :
- personDirectory.xml : uncomment ldap access
- ldap.xml :

<?xml version="1.0"?>
<ldapConnections>
   <connection default="true">
       <name>Universite</name>
       <host>ldap.univ-nancy2.fr</host>
       <port>392</port>
       <baseDN>ou=People,dc=univ-nancy2,dc=fr</baseDN>
       <managerDN>cn=ssss,dc=univ-nancy2,dc=fr</managerDN>
       <managerPW>xxx</managerPW>
       <uidAttribute>uid</uidAttribute>
   </connection>
</ldapConnections>


I have this problem with other xml file without DTD, as PAGSGroupStoreConfig.xml

portal.log in debug mode is join

 All   Comments   Work Log   Change History      Sort Order:
Eric Dalquist [29/Aug/07 05:21 PM]
I believe loading does work but takes two tries with the first try failing and producing the stack trace. The loading code needs to be changed to not produce the first error message.

Vincent MATHIEU [29/Aug/07 05:37 PM]
yes Eric.

But it is difficult to use portal.log in a production environment with a lot of exception stacks.

Vincent


Eric Dalquist [29/Aug/07 05:44 PM]
Reverting to Minor based on comments.

Eric Dalquist [02/Oct/07 02:41 PM]
Does the portal still start? I think this may be a case of the patch for UP-1780 can't stop the SAXErrorHandler from logging the error even though it is handled higher up in the chain.

Vincent MATHIEU [03/Oct/07 03:04 AM]
Yes, the portal, starts and works normally.
The problem is limited to the multiple exceptions in the log.