Problem Note 56271: The BatchJobLoader script fails with "mmx.batchproc.server ERROR YYYY-MM-DD HH:MM:SS,MMM [main]: Unable to load objects from XML"
In SAS® Merchandise Planning, the BatchJobLoader script might fail with the following error in the mmx.log:
mmx.batchproc.server ERROR YYYY-MM-DD HH:MM:SS,MMM [main]: Unable to load objects from XML
javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://sas.com/framework/coe/server/xml/dto", local:"BatchJobs"). Expected elements are >
{http://merchplan.retail.sas.com/framework/coe/server/xml/jaxb/dto/batchjob}BatchJobs>
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:642)
at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:254)
at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:249)
at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:116)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1049)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:478)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:459)
at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:148)
...
The error is generated because the batch job definition examples in the installation documentation and the sample.xml files have an incorrect BatchJobs xmlns value. BatchJobs xmlns="http://sas.com/framework/coe/server/xml/dto" should be changed to BatchJobs xmlns="http://merchplan.retail.sas.com/framework/coe/server/xml/jaxb/dto/batchjob".
Operating System and Release Information
SAS System | SAS Merchandise Financial Planning and SAS Merchandise In-Season Management | Microsoft Windows Server 2008 R2 | 6.5_M1 | 6.5_M1 | 9.4 TS1M2 | 9.4 TS1M2 |
64-bit Enabled AIX | 6.5_M1 | 6.5_M1 | 9.4 TS1M2 | 9.4 TS1M2 |
Linux for x64 | 6.5_M1 | 6.5_M1 | 9.4 TS1M2 | 9.4 TS1M2 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The value listed for the xmlns setting in the batch job definition examples are incorrect.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2015-08-18 09:08:55 |
Date Created: | 2015-07-24 14:31:42 |