cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting - Importing Issue

Former Member
0 Kudos

HI experts,

I need your knowledge and advise.

We just upgraded succesfully to the following version: Build:M33.104-74500

we have 3 environments (Dev/Qual/prod).

We have a Masterchain (contains several jobchains, jobs etc) succesfully running in all 3 environments.We now discovered that there's an error in BW for executing some steps due to some batch process not being available.

So we decided to create a new MC with some jobs from the "old" jobchain moved to the new one.

We have no issues in importing the new MC to qual.

BUT: when importing the "old"(changed) masterchain we receive a job error.

All single jobchains exist in all 3 environments.

I checked and compared manually the changed masterchain in the dev system to the quality system.

Strange enough, but chains are now the same.

It looks like the job has been imported correctly.

But we were not sure and decided to export the MC and import it again - and that's where CPS throws errors.

Our question now is, can't we import a MC several times? We have the impression that we cannot import a chain a second time.

Here's the stderr.log:

ERROR 2014-08-29 11:59:19,464 Europe/Paris [Redwood Job Thread Pool: GLOBAL.System.System worker 0] job.System_Import_Archive.16823882 - Import failed, no objects have been imported.

-- JOB RUN STACK TRACE --

JCS-113018: Exception while parsing source jar:file:/usr/sap/Q12/J26/j2ee/cluster/server0/scheduler/16820000-16829999/16823882/JOB_16823882carin.car.car!/JobDefinition/COMPASS.MC_OTIS_Others_Chain.xml at line 8: 94. See cause for further information

at com.redwood.scheduler.model.imprt.BaseImporter.importObject(BaseImporter.java:293)

at com.redwood.scheduler.model.imprt.ImportScanner.importObject(ImportScanner.java:52)

at com.redwood.scheduler.model.imprt.BaseImporter.importObject(BaseImporter.java:185)

at com.redwood.scheduler.model.imprt.CronacleArchiveReader.scanArchive(CronacleArchiveReader.java:153)

at com.redwood.scheduler.model.imprt.CronacleArchiveReader.importAll(CronacleArchiveReader.java:89)

at com.redwood.scheduler.system.jobs.CronacleArchiveImport.runInternal(CronacleArchiveImport.java:397)

at com.redwood.scheduler.system.jobs.CronacleArchiveImport.run(CronacleArchiveImport.java:193)

at com.redwood.scheduler.system.jobs.CommonSystemJob.execute(CommonSystemJob.java:53)

at com.redwood.scheduler.systemjobservice.impl.JobWorker.doWork(JobWorker.java:253)

at com.redwood.scheduler.infrastructure.workqueue.Worker.run(Worker.java:76)

at java.lang.Thread.run(Thread.java:763)

Caused by: JCS-113007: Cannot set field Application on Job Definition COMPASS.MC_OTIS_Others_Chain (Latest Version) to Application:COMPASS.COMPASS.GLOBAL.Overall_Applications

at com.redwood.scheduler.model.writer.ApplicationObjectWriter.setParentApplicationRaw(ApplicationObjectWriter.java:91)

at com.redwood.scheduler.model.writer.ApplicationObjectWriter.setField(ApplicationObjectWriter.java:60)

at com.redwood.scheduler.model.writer.JobDefinitionWriter.setField(JobDefinitionWriter.java:812)

at com.redwood.scheduler.model.writer.ModelEventProxy.setField(ModelEventProxy.java:46)

at com.redwood.scheduler.model.writer.ModelEventProxy.setField(ModelEventProxy.java:46)

at com.redwood.scheduler.model.writer.ModelEventProxy.setField(ModelEventProxy.java:46)

at com.redwood.scheduler.model.imprt.ModelEventXmlReader.leafElement(ModelEventXmlReader.java:121)

at com.redwood.scheduler.infrastructure.xml.BasicLeafTextXmlContentHandler.endElement(BasicLeafTextXmlContentHandler.java:87)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604)

at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:180)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:378)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2758)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:513)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:744)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:128)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:543)

at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)

at com.redwood.scheduler.model.imprt.BaseImporter.importObject(BaseImporter.java:263)

... 10 more

Caused by: JCS-113012: Missing object for business key: Application:COMPASS.COMPASS.GLOBAL.Overall_Applications

at com.redwood.scheduler.model.writer.ApplicationObjectWriter.setParentApplication(ApplicationObjectWriter.java:121)

at com.redwood.scheduler.model.writer.ApplicationObjectWriter.setParentApplicationRaw(ApplicationObjectWriter.java:87)

... 31 more

How can we make that masterchain exportable?

How can we prevent such behavior in future?

Regards

Greg

PS: I have attached the jobdef, the stdout.log and the stderr.log as txt

Accepted Solutions (1)

Accepted Solutions (1)

h_carpenter
Active Contributor
0 Kudos

Hi Gregor,

I understand that these stacks are scary. When you get a stack like this, read only the lines starting with "caused by"

Caused by: JCS-113007: Cannot set field Application on Job Definition COMPASS.MC_OTIS_Others_Chain (Latest Version) to

Application:COMPASS.COMPASS.GLOBAL.Overall_Applications

AND

Caused by: JCS-113012: Missing object for business key: Application:COMPASS.COMPASS.GLOBAL.Overall_Applications

Create an application in the GLOBAL partition named Overall_Applications and you should be able to import the chain.

Regards,

HP

Former Member
0 Kudos

Hi HP,

you just saved my day, my weekend and our transporting issues are solved.

This is simply lovely.

A big big thanx!!!!!

h_carpenter
Active Contributor
0 Kudos

Hi Gregor,

Don't exaggerate, ;-), happy I could help. Have a nice weekend.

Regards,

HP

Answers (0)