• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOXMLDecoder parse exception...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOXMLDecoder parse exception...


  • Subject: WOXMLDecoder parse exception...
  • From: "Shravan Kumar.M" <email@hidden>
  • Date: Sat, 20 Jan 2007 18:15:54 +0530

Hi All,

I am getting the following exception with the WOXMLDecoder.

I am trying to decode the WOConfig.xml file [HTTP Adaptor configuration file used in the WebObjects deployment] with woadaptor.dtd in my system as you see in the following code snippet:

woConfigFileContentStream = new FileInputStream(System.getProperty("file.woconfig.xml.path"));
NSData woConfigXMLData = new NSData(woConfigFileContentStream,1024);


if(woConfigXMLData != null)
{
decodedWOConfigXMLDict = (NSMutableDictionary) xmlDecoder.decodeRootObject(woConfigXMLData); // The app throws the following error log at this point
System.out.println("WOConfig.xml content is : "+decodedWOConfigXMLDict);
}


Error Log for this issue:

[Fatal Error] woadaptor.dtd:8:16: The name token is required in the enumerated type list for the "scheduler" attribute declaration.
[2007-01-11 21:54:02 IST] <WorkerThread0> <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
com.webobjects.foundation.NSForwardException [com.webobjects.appserver.xml.WOXMLException] null
[2007-01-11 21:54:03 IST] <WorkerThread0> com.webobjects.foundation.NSForwardException for com.webobjects.appserver.xml.WOXMLException for org.xml.sax.SAXParseException: The name token is required in the enumerated type list for the "scheduler" attribute declaration.
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
at com.webobjects.appserver.xml.WOXMLDecoder.decodeRootObject(WOXMLDecoder.java:700)
at com.webobjects.appserver.xml.WOXMLDecoder.decodeRootObject(WOXMLDecoder.java:676)
at Main.decodeWOConfigFile(Main.java:61)
at Main.<init>(Main.java:38)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities.java:575)
at com.webobjects.appserver._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:463)
at com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:573)
at com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:1954)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:273)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:552)


Looking forward to your valuable solutions. Let me know if you need any other information.

Thank you,
Shravan Kumar.M
Effigent India
www.effigent.com
-----------------------------------------------------



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: MySQL and automatical apostrophes escaping problem
  • Next by Date: Re: Project Wonder and Log4J
  • Previous by thread: WOXMLDecoder parse exception...
  • Next by thread: multiple build targets in xcode
  • Index(es):
    • Date
    • Thread