Cartridge Deployment Failure - java.lang.StringIndexOutOfBoundsException: String index out of range: -13 (Doc ID 789812.1)

Last updated on AUGUST 02, 2016

Applies to:

Oracle Communications Order and Service Management - Version 6.3.1 and later
Information in this document applies to any platform.
Checked for relevance on 27-Jun-2012

Symptoms

-- Problem Statement:
When deploying a cartridge the following error is received:

<24-Feb-2009 3:32:38,065 EST PM> <INFO> <operation.ImportOperation> <[ACTIVE]
ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <Import 53% complete
(69 entities processed: 56 changed, 13 unchanged)>
<24-Feb-2009 3:32:38,080 EST PM> <ERROR>
<transformer.CartridgeEntityTransformer> <[ACTIVE] ExecuteThread: '1' for queue:
'weblogic.kernel.Default (self-tuning)'> <Exception thrown transforming cartridge entity to
ObjectModel.>
java.lang.StringIndexOutOfBoundsException: String index out of range: -13
at java.lang.String.substring(String.java:1768)
at com.mslv.oms.metadatahandler.transformer.TransformerUtil.formatDuration(Unknown Source)
at com.mslv.oms.metadatahandler.transformer.ProcessTransformer.convertToObjectModel(Unknown
Source)
at com.mslv.oms.metadatahandler.transformer.CartridgeEntityTransformer.toObjectModel(Unknown
Source)
at com.mslv.oms.metadatahandler.operation.ImportOperation.processEntity(Unknown Source)
at com.mslv.oms.metadatahandler.operation.ImportOperation.processEntity(Unknown Source)
at com.mslv.oms.metadatahandler.operation.ImportOperation.doProcess(Unknown Source)
at com.mslv.oms.metadatahandler.operation.ImportOperation.deploy(Unknown Source)
at com.mslv.oms.cartridgemgmt.DeployCartridgeMDB.c(Unknown Source)
at com.mslv.oms.cartridgemgmt.DeployCartridgeMDB.a(Unknown Source)
at com.mslv.oms.cartridgemgmt.DeployCartridgeMDB.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4060)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3953)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4467)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)


<24-Feb-2009 3:32:38,080 EST PM> <ERROR> <operation.ImportOperation>
<[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <Import
failed for process:p100_ipvpn_activation>
com.mslv.oms.metadatahandler.handler.HandlerException: Transformation of cartridge entity
[process:p100_ipvpn_activation] to ObjectModel failed.
at com.mslv.oms.metadatahandler.transformer.CartridgeEntityTransformer.toObjectModel(Unknown
Source)
at com.mslv.oms.metadatahandler.operation.ImportOperation.processEntity(Unknown Source)
at com.mslv.oms.metadatahandler.operation.ImportOperation.processEntity(Unknown Source)
at com.mslv.oms.metadatahandler.operation.ImportOperation.doProcess(Unknown Source)
at com.mslv.oms.metadatahandler.operation.ImportOperation.deploy(Unknown Source)
at com.mslv.oms.cartridgemgmt.DeployCartridgeMDB.c(Unknown Source)
at com.mslv.oms.cartridgemgmt.DeployCartridgeMDB.a(Unknown Source)
at com.mslv.oms.cartridgemgmt.DeployCartridgeMDB.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4060)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3953)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4467)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -13
at java.lang.String.substring(String.java:1768)
at com.mslv.oms.metadatahandler.transformer.TransformerUtil.formatDuration(Unknown Source)
at com.mslv.oms.metadatahandler.transformer.ProcessTransformer.convertToObjectModel(Unknown
Source)
... 17 more



-- Steps To Reproduce:
1. Import the project in SCE and try to deploy the cartridge.

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms