StringIndexOutOfBoundsException at String.substring 1938 (from XdfAnalyzer.enter(AuditContext,XMLAttr)) (Doc ID 759442.1)

Last updated on JULY 26, 2017

Applies to:

Oracle JDeveloper - Version 11.1.1.0.0 and later
Information in this document applies to any platform.

Symptoms

When following a tutorial in JDeveloper 11g, you get the following error displayed in the Structure Window:

INTERNAL: StringIndexOutOfBoundsException at String.substring 1938 (from XdfAnalyzer.enter(AuditContext,XMLAttr))

Starting up JDeveloper from the Console window (<JDEV_Home>\jdev\bin\jdev.exe) shows java.lang.StringIndexOutOfBoundsException: String index out of range: -1:

____AUDIT ERROR 0: 89.852,531 [status-0] exception visiting
oracle.ml.parser.v2.XMLAttr@930708 (ProductsBaseOrderItemsFkLink.xml-0 (open)[720:772):
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1938)
        at oracle.jbo.dt.dependency.xdf.Utils.getParentName(Utils.java:181)
        at oracle.jbo.dt.dependency.xdf.QualifiedAttributeReference.findAttribute(QualifiedAttributeReference.java:102)
        at oracle.jbo.dt.dependency.xdf.QualifiedAttributeReference.findDeclaraionModel(QualifiedAttributeReference.java:75)
        at oracle.jbo.dt.dependency.xdf.AttributeReference.findDeclaration(AttributeReference.java:91)
        at oracle.bali.xml.gui.jdev.audit.XdfAnalyzer._reportUnusedReferences(XfAnalyzer.java:89)
        at oracle.bali.xml.gui.jdev.audit.XdfAnalyzer.enter(XdfAnalyzer.java:62
        at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at oracle.jdevimpl.audit.core.ProfileBinding$Invoker.invoke(ProfileBindng.java:219)
...

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