[MAGNOLIA-370] getting SAXParserException during bootsrap Created: 04/May/05  Updated: 17/Mar/09  Resolved: 06/May/05

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1 Final

Type: Bug Priority: Critical
Reporter: Philipp Bärfuss Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

INFO info.magnolia.cms.beans.config.ConfigLoader ConfigLoader.java(bootstrapRepositories:269) 04.05.2005 23:33:10 Trying to import content from 1 files...
ERROR info.magnolia.cms.beans.config.ConfigLoader ConfigLoader.java(bootstrapRepositories:293) 04.05.2005 23:33:10 Unable to load content from website.features.xml due to a org.xml.sax.SAXParseException Exception: can't declare any more prefixes in this context. Will try to continue.
java.lang.IllegalStateException: can't declare any more prefixes in this context
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
at info.magnolia.cms.beans.config.ConfigLoader.filterVersionsFormStream(ConfigLoader.java:350)
at info.magnolia.cms.beans.config.ConfigLoader.bootstrapRepositories(ConfigLoader.java:287)
at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:131)
at info.magnolia.cms.beans.config.ConfigLoader.<init>(ConfigLoader.java:91)
at info.magnolia.cms.servlets.Initializer.init(Initializer.java:54)



 Comments   
Comment by Fabrizio Giustina [ 05/May/05 ]

Hi Philipp, are you getting this errors with the xml actually on svn or with a new export? Does the BootStrapTest junit log the same error?

Comment by Philipp Bracher [ 06/May/05 ]

I get no error during testing (maven), but i get them during loading the server (i tested it also with magnolia.war).

I have updated my svn workdir and not generated new export files (i use those from svn).

But i got this problem on two different maschines (mac osx and suse linux).

The question is: what is the difference between junit and runtime bootstraping?

Comment by Fabrizio Giustina [ 06/May/05 ]

this seems to be a conflict when different xml parsers (xerces/crimson) are in the classpath. I see you appserver is using crimson, I will try to force the use of xerces and see if it could help...

Here you can find the result of testing different parsers posted by someone who has the same problem in tomcat (bottom of the page):
http://www.forum4designers.com/message217680.html

Comment by Fabrizio Giustina [ 06/May/05 ]

done, please give it a try and see if it works

Comment by Philipp Bracher [ 06/May/05 ]

org.apache.xerces.parsers.SAXParser is working!

Thanks

Generated at Mon Feb 12 03:16:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.