Link to home
Start Free TrialLog in
Avatar of Amit
AmitFlag for United States of America

asked on

Run Time error in a Javcode - at gnu.xml.aelfred2.XmlReader.setContentHandler

Hi,

I have a java code that is compiling correctly but is breaking at the run time and I am getting the following error. Any ideas why I could be getting it

thanks
-anshu

[com.microstrategy.utils.xml SEVERE] [10/19/2010 15:17:49:263] [0] [AbstractHandler.startElement] already parsing (java.lang.IllegalStateException) :  [java.lang.IllegalStateException: already parsing
      at gnu.xml.aelfred2.XmlReader.setContentHandler(XmlReader.java:106)
      at com.microstrategy.utils.xml.SAXSupportImpl.pushContentHandler(Unknown Source)
      at com.microstrategy.utils.xml.SAXSupportImpl.pushContentHandler(Unknown Source)
      at com.microstrategy.utils.xml.AbstractHandler.<init>(Unknown Source)
      at com.microstrategy.web.preferences.PreferencesMapSources.<init>(Unknown Source)
      at com.microstrategy.web.preferences.PreferenceDefinitionsMap$DefinitionHandler.doStartElement(Unknown Source)
      at com.microstrategy.utils.xml.AbstractHandler.startElement(Unknown Source)
      at gnu.xml.aelfred2.SAXDriver.startElement(SAXDriver.java:834)
      at gnu.xml.aelfred2.XmlParser.parseElement(XmlParser.java:1037)
      at gnu.xml.aelfred2.XmlParser.parseContent(XmlParser.java:1207)
      at gnu.xml.aelfred2.XmlParser.parseElement(XmlParser.java:1038)
      at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:416)
      at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
      at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
      at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
      at com.microstrategy.utils.xml.SAXSupportImpl.parse(Unknown Source)
      at com.microstrategy.web.preferences.PreferenceDefinitionsMap.load(Unknown Source)
      at com.microstrategy.web.preferences.UnsessionedCacheBase.load(Unknown Source)
      at com.microstrategy.web.preferences.UnsessionedCacheBase.load(Unknown Source)
      at com.microstrategy.utils.cache.CacheBase.get(Unknown Source)
      at com.microstrategy.web.preferences.PreferencesMgr$UnsessionedPreferencesCache.load(Unknown Source)
      at com.microstrategy.utils.cache.CacheBase.get(Unknown Source)
      at com.microstrategy.web.preferences.PreferencesMgr.getSysDefaultPreferences(Unknown Source)
      at com.microstrategy.web.preferences.PreferencesMgr.getSysDefaultPreferences(Unknown Source)
      at com.microstrategy.utils.xml.SAXSupportImpl.<clinit>(Unknown Source)
      at com.microstrategy.utils.xml.SAXSupport.getInstance(Unknown Source)
      at com.microstrategy.utils.xml.SAXSupport.getInstance(Unknown Source)
      at com.microstrategy.web.preferences.PreferenceDefinitionsMap.load(Unknown Source)
      at com.microstrategy.web.preferences.UnsessionedCacheBase.load(Unknown Source)
      at com.microstrategy.web.preferences.UnsessionedCacheBase.load(Unknown Source)
      at com.microstrategy.utils.cache.CacheBase.get(Unknown Source)
      at com.microstrategy.web.preferences.PreferencesMgr$UnsessionedPreferencesCache.load(Unknown Source)
      at com.microstrategy.utils.cache.CacheBase.get(Unknown Source)
      at com.microstrategy.web.preferences.PreferencesMgr.getSysDefaultPreferences(Unknown Source)
      at com.microstrategy.web.preferences.PreferencesMgr.getSysDefaultPreferences(Unknown Source)
      at com.microstrategy.web.objects.WebIServerSessionImpl.<clinit>(Unknown Source)
      at com.microstrategy.web.objects.WebIServerSessionListImpl.newSession(Unknown Source)
      at com.microstrategy.web.objects.WebSessionInfoListImpl.getActiveSession(Unknown Source)
      at com.microstrategy.web.objects.WebObjectsFactory.getIServerSession(Unknown Source)
      at CreateUser.main(CreateUser.java:24)
]
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Amit

ASKER

Hi CEHJ, I am running it on eclipse. Is there a setting for that  to avoid multithreaded environment

Hi Objects, How can i cofigure my app to use a different parser
>>Hi CEHJ, I am running it on eclipse. Is there a setting for that  to avoid multithreaded environment

No - that's down to your app - not the IDE
:-)