Project fails to build with codegen exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -6 (Doc ID 1327400.1)

Last updated on FEBRUARY 03, 2017

Applies to:

Oracle Java CAPS - Version 5.1.3 and later
Information in this document applies to any platform.
***Checked for relevance on 02-October-2014***

Symptoms


When attempting to build a project that contains a Web Server Adaptor (WS) connected to a Business Process (BP), the build fails and the following codegen compilation error is seen:

Annotation: Caught Compilation Error(s).
Please fix before proceeding.
com.stc.codegen.framework.model.CodeGenException
at com.stc.wsserver.design.codegen.impl.WSServerCodelet.generateFiles(WSServerCodelet.java:519)
at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.processCodelets(CodeGenFrameworkImpl.java:640)
at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1546)
at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:405)
at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
at org.openide.util.Task.run(Task.java:136)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
Caused by: com.stc.codegen.framework.model.CodeGenException
at com.stc.wsserver.design.codegen.impl.JaxRpcCodelet.generateFileForWar(JaxRpcCodelet.java:1362)
at com.stc.wsserver.design.codegen.impl.JaxRpcCodelet.generateFiles(JaxRpcCodelet.java:998)
at com.stc.wsserver.design.codegen.impl.GenerateAndPublish.genAndPublish(GenerateAndPublish.java:123)
at com.stc.wsserver.design.codegen.impl.WSServerCodelet.generateFiles(WSServerCodelet.java:513)
... 10 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -6
at java.lang.String.substring(String.java:1444)

at com.stc.wsserver.design.codegen.impl.JaxRpcCodelet.createTemporaryWSDL(JaxRpcCodelet.java:1165)
at com.stc.wsserver.design.codegen.impl.JaxRpcCodelet.generateFileForWar(JaxRpcCodelet.java:1194)
[catch] ... 13 more

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