Solved

FRM-92100 and java.lang.StringIndexOutOfBoundsException when using Forms Built-in Edit_TextItem

Posted on 2008-10-21
2
3,863 Views
Last Modified: 2013-12-18
We recently upgraded from Forms and Reports 6i to 10g.

We've found that when our users attempt to modify a field using the built-in editor (called with Edit_TextItem) they sometimes recieve an error message.  It seems to only happen if they open the text editor on a field which already contains data, modify the data, and then close the editor.  If they cut out the data and paste it right back in before making their edits, everything works fine.

FRM-92100: Your Connection to the Server was interrupted.
This may be the result of a network error, or a failure on the Server.
You will need to reestablish you connection.

Details...
Java EXception:
java.lang.StringIndexOutOfBoundsException: String index out of range: 471
      at java.lang.String.substring(Unknown Source)
      at oracle.ewt.lwAWT.lwText.LWTextField.scrollSelectionIntoView(Unknown Source)
      at oracle.ewt.lwAWT.lwText.LWTextComponent.select(Unknown Source)
      at oracle.ewt.lwAWT.lwText.LWTextComponent.select(Unknown Source)
      at oracle.ewt.lwAWT.lwText.LWTextComponent.setCaretPosition(Unknown Source)
      at oracle.ewt.lwAWT.lwText.LWTextComponent.setCaretPosition(Unknown Source)
      at oracle.forms.ui.delegates.VCommonTextDelegate.setProperty(Unknown Source)
      at oracle.forms.ui.delegates.VTextFieldDelegate.setProperty(Unknown Source)
      at oracle.forms.ui.VTextField.setProperty(Unknown Source)
      at oracle.forms.handler.TextComponentItem.onUpdate(Unknown Source)
      at oracle.forms.handler.TextFieldItem.onUpdate(Unknown Source)
      at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
      at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)
      at oracle.forms.engine.Runform.processMessage(Unknown Source)
      at oracle.forms.engine.Runform.processSet(Unknown Source)
      at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
      at oracle.forms.engine.Runform.onMessage(Unknown Source)
      at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
      at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
      at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

Thanks for any help you can provide.


0
Comment
Question by:donneleg
2 Comments
 
LVL 20

Expert Comment

by:gatorvip
ID: 22770981
This looks like bug 338834.1 in Metalink


"If the following 2 conditions are met the forms is crashing:

1.display items have an initial value text with "carriage return" inserted into it
2.on the same form a button or a textitem is present and has the "Prompt" property set"

Solution

You can use a  work-around or upgrade to 10.1.2.2 or apply a one off patch for

 10.1.2.0.2 : Patch 4658455:
0
 

Accepted Solution

by:
donneleg earned 0 total points
ID: 22853061
Thanks gatorvip, that sounded right except that we are upgraded to 10.1.2.2.  The weird thing is I found an old reference to the actual problem, way back on Forms and Reports 6.  
The solution on 6 was to modify the field property 'Keep Cursor Position' from a Yes to a No.  My fields (in Forms and Reports 10) were already set to No.  Out of frustration, I set them to 'Yes' just to see what would happen.  Well, what happened is it fixed the problem.  I'm not sure if Oracle changed the behavior somewhere in there and just didn't document it.  Perhaps they fixed the problem from 6 and caused it on 10.  Either way, it works now.  
Sorry it took so long to get back to this board.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
oracle rollup query 3 50
How do I get sql developer to give me valuable exception information? 2 46
Oracle Public Synonyms and Privileges 2 50
selective queries 7 21
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now