StringIndexOutOfBoundsException When Running a JSP Page From JDev 10.1.3.3 on Ubuntu (Doc ID 601339.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version: 10.1.3.3.0 and later   [Release: and later ]
Linux x86
Linux x86-64
Ubuntu 7.10

Symptoms


You have installed JDeveloper 10.1.3.3 on a Linux Ubuntu machine.
You downloaded JDeveloper from the "Base Install" on the OTN download page.
You performed the steps 3.1 and 3.2 detailed in the Installation Guide:

3.1 Configuring Java SDK in JDeveloper

The file jdev.conf contains the line:
SetJavaHome /user1/Progs/jdk/jdk1.5.0_05

3.2 Modifying Permissions on Linux and UNIX Platforms

The group permissions are rwx and the logged in user is in the group that owns JDeveloper.

You can use JDeveloper to develop your application.
It works without any problem.
However, you you try to run any of your JSP pages, it fails with the following error message:
java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.lang.String.substring(String.java:1765)
at oracle.jdeveloper.compiler.OjcConfiguration.getSource(OjcConfiguration.java:281)
at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.ensureJavaCompilerIsSet(Oc4jWorkspaceConfig.java:1081)
at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.configureAll(Oc4jWorkspaceConfig.java:168)
at oracle.jdevimpl.runner.oc4j.Oc4jStarter.preStart(Oc4jStarter.java:631)
at oracle.jdevimpl.runner.oc4j.Oc4jStarter.start(Oc4jStarter.java:269)
at oracle.ide.runner.RunProcess.startTarget(RunProcess.java:830)
at oracle.jdeveloper.runner.JRunProcess.startTarget(JRunProcess.java:473)
at oracle.jdevimpl.runner.run.RunningProcess.startTarget(RunningProcess.java:76)
at oracle.ide.runner.RunProcess$2$1.run(RunProcess.java:768)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
#### Embedded OC4J Server could not be started up.


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