Geting Error in Controller
Hi friends
In controller am geting below error...
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)at java.lang.String.substring(String.java:1904)at xxuss.oracle.apps.xp2p.fnd.framework.attachments.webui.XXFndAttachedDocCO.processFormRequest(XXFndAttachedDocCO.java:117)
in controller i had written...
super.processFormRequest(pageContext, webBean);
String hideShowEvent = pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM);
if ((OAWebBeanConstants.SHOW_EVENT.equals(hideShowEvent)) ||(OAWebBeanConstants.HIDE_EVENT.equals(hideShowEvent)))
String hideShowId = pageContext.getParameter(OAWebBeanConstants.SOURCE_PARAM);
String s7 = "";
if(hideShowId.startsWith("SearchAttachHideShow"))
s7 = hideShowId.substring(21);//am geting error here
if(!"".equals(s7))
StringBuffer stringbuffer = (new StringBuffer("SearchBasicRN")).append("_").append(s7);
String as[] = {
stringbuffer.toString()
OAPartialPageRenderUtils.addPartialTargets(pageContext, as);
anybody help me out
Thanks and Regards
Harrrry
Why are you using substring(21)? Are you sure that the String will not contain less than 21 characters?
If you are searching for a particular pattern in the String then use indexOf(String str) functio, then used the substring() function.
What do you exactly intend to do?
Similar Messages
-
Where can I download CRX developer edition ? Im geting error message on clicking the Download link.
Someone pls help me to download CRX.
Thanks in Advance.Hi Jayanth,
Are you able to down load the develoer version finally? -
I keep geting error messages when installing iTunrs on my pc. The message is error 7
I keep geting error messages when installing iTunrs on my pc. The message is error 7. I also get a windows message that says Run time error. The application has made an attempt to load the C library incorrectley.. Does anyone know how to correct this?
Solving MSVCR80 issue and Windows iTunes install issues.
-
Labview error GPIB controller not adressed correctly
I get this Labview error: GPIB controller not adressed correctly (LV5.1, win NT4) when i try to send data to a HP4275A LCR meter. How ever it works on an older system running with LabView 5.0 (also NT)!!!
How can I get rid of this problem????Hi Diego, thanks for the hints!
I tried to configure (GPIB) everything standard.
when I try a 488 command initialze, I get the controller conflict, when i don't do this I get atime out problem either by 488 write-command or by 488.2 send-command.
the differences between the systems where it works and where not are:
working: Win 95, LV 5.0, GPIB-card/TNT (plug & play)
not-working: WinNT, LV 5.1, GPIB-card/PCI
i tried to set baord config to the same parameters...
on the faulti system however I see the instrument with the MAX and I can send commands, without problems !!!!
Also the driver you posted does not work (but the NI-communicate program ;-)
i have no clue what else to do!
btw. how do I copy the spy output when running the program? I may provide
this to find errors.
Since MAX indicates the board is all right I guess it is not necessary to reinstall the boarddrivers?! -
TS3694 keep geting error code 1015 when trying to update my iphone 3gs any tips to sort it out
keep geting error code 1015 when trying to update my iphone 3gs any tips to sort it out
https://discussions.apple.com/message/19425288#19425288
https://discussions.apple.com/message/18882000#18882000
https://discussions.apple.com/message/18526759#18526759
http://support.apple.com/kb/TS3694?viewlocale=en_US
Errors related to downgrading iOS
The required resource cannot be found: This alert message occurs when your device has a newer version of iOS than what is available in iTunes. When troubleshooting a device that presents this alert message, go toSettings > General > About and check the version of iOS on the device. If it is newer than the latest released iOS version, the device may have a prerelease developer version of iOS installed. Installing an older version of iOS over a newer version is not supported.
Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.
There is not much you can do, sorry -
example of generating excel dynamically in ssis? geting error [Excel Destination [190]] Error: Opening a rowset for "Excel_Destination$" failed. Check that the object exists in the database.
Hi Vijay
Can you be little bit more specific, did you receive this error when you are designing this pacakge using BIDS
Becuase when you are designing this pacakge in BIDS, you need to manaually create a excel sheet manually for the first time you run,
are you creating excel sheet using execute sql task and excel connection with input from a variable?
Did you receive this error in validation phase or execution phase ?
Can you share your query to create table in excel ?
http://sqljunkieshare.com/2012/02/28/how-to-create-and-map-excel-destination-dynamically-in-ssis/
Use the above post -
I was trying to use the iTunes cards I got for Christmas, but I keep geting error -1202.
The Complete Guide to Using the iTunes Store
http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
Can't connect to the iTunes Store
http://support.apple.com/kb/TS1368
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/TS3297
Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
Try this first - Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
This works for some users. Not sure why.
Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
Cheers, Tom -
I have geting error code 1015 when try to restore to factory seting iphone 3G. any one know how to solve it on PC
Your phone was jailbroken. That's why you're getting this message. We cannot discuss jailbroken phones here. You're on your own.
-
Quicktime : Windows Vista w/SP2 - Windows Error : Export Controller stopped
With the latest Quicktime version I am getting several errors in several applications:
Windows Vista with SP2: "Export Controller was closed - Data Execution Prevention has sttoped Export Controller"
After Effects CS4: "Invisible OpenGL Buffer Windows: The procedure entry point...etc..etc..could not be located in the dynamic link library SQLite3.dll"
I fixed the iTunes error as suggested by Rob (moving the SQLite3.dll provided to the iTunes folder as suggested yeasterday and the error does not showed up again when I did restart my system.
But there are still "serious" issues with Windows Vista and other applications such as After Effects in regards to the SQLite3.dll. I can not even import MOV files in After Affects NO more.
Pleas help I am wasting a lot of time in attempting to fix something that was working "perfectlly" before the whole update (iTunes/Quicktime).
Thanks agaain in advance for your help and assiatnce on this matter.I am quite disappointed with these Apple' folks. Almost a month or so with the QuickTime' issues and nobody seems to know what is going on. It seems that they are quite lost. I wonder WHERE their Technical and Support Managers are ????????....
DO YOU GUYS CARE HOW MUCH IS THIS ISSUE COSTING "YOUR" COMPANY ??????????????????
DO YOU CARE ??????..with such attitude, no wonder why so many US companies are falling down to the drain.....and quickly....
A simple respond that shows COMMITMENT will do it...when are you "planning" to have a solution ????????????...
llottlott..AE4 works regardless of the errors..at least, it is my experience so far, the only thing is to convert the MOV files into for example FLV. It seems to me that any FLV option is better than MOV files and certainly with all these issues and lack of respond, FLV would become a better option. -
I am geting errors in my database alert log file ora-12012 and ora 44003
Hi all,
I am using oracle 10g ...10.2.0.1.0 and OS is solaris 10.......
i am geting these errors in my database alert log file last two days..i am not geting why it is coming?
ORA-12012: error on auto execute of job 8887
ORA-44003: invalid SQL name
and trace file is i got i am posting here please help any one is aware about this....
System name: SunOS
Node name: obrmzone1
Release: 5.10
Version: Generic_137111-06
Machine: sun4v
Instance name: ------
Redo thread mounted by this instance: 1
Oracle process number: 144
Unix process pid: 26874, image:--------- (J000)
*** ACTION NAME:(AUTO_SPACE_ADVISOR_JOB) 2011-06-10 22:00:49.372
*** MODULE NAME:(DBMS_SCHEDULER) 2011-06-10 22:00:49.372
*** SERVICE NAME:(SYS$USERS) 2011-06-10 22:00:49.372
*** SESSION ID:(110.7114) 2011-06-10 22:00:49.372
*** 2011-06-10 22:00:49.372
ORA-12012: error on auto execute of job 8887
ORA-44003: invalid SQL name
thank you in advance,
DavI just google with "ORA-44003: invalid SQL name" and found below link:
http://www.oracle-base.com/articles/10g/dbms_assert_10gR2.php
SIMPLE_SQL_NAME
The SIMPLE_SQL_NAME function checks the input string conforms to the basic characteristics of a simple SQL name:
The first character of the name is alphabetic.
The name only contains alphanumeric characters or the "_", "$", "#"
Quoted names must be enclosed by double quotes and may contain any characters, including quotes provided they are represented by two quotes in a row ("").
The function ignores leading and trailing white spaces are ignored
The length of the input string is not validated. -
Geting error While Extending VO
Hi all
am extending vo to add one column...
am geting an error like
"Each row in the query result columns must be maped to a unique query attribute in the mapped entity columns"
Any help.
Regards
HarrrryHii user11985005/Depak
Now the VO is geting extended....that error has gone "Each row in the query result columns must be maped to a unique query attribute in the mapped entity columns"
but after extending the VO am geting another error which am very confused why its throwing error "Failed to load value at index 86 with java object of type java.lang.String due to java.sql.SQLException."
any pointer on this......
For those guys whose are facing the same issue("Each row in the query result columns must be maped to a unique query attribute in the mapped entity columns")
just giv a try what i did...coz i solved my problem by this way only...but i wondered why its hapening like this...
while extending the VO i didn't modified the query...simply i just clicked next button(just to see weather the seeded VO is throwing an error or not)...finaly again i came back by clicking Back buton..in query stmt i had given the modified query
and surprisingly its get created....
Regards
Harrrry -
Geting error when deploy ear file on Oracle Application Server
Hi,
i m trying to deploy EAR on Oracle Application Server but i m getting ther Error
Operation failed with error: Missing class: oracle.adf.controller.v2.lifecycle.PagePhaseListener Dependent class:
any body know that what is this error
plz help me
HarishWhat version of JDeveloper are you using? And what version is your app server?
-
ClassCastException error in Controller object
HI folks,
I'm getting this ClassCastException error in the controller I'm extending. Basically, I'm trying to access the row values of a table which is created as OATableLayout and OARowLayout. My repeated attempts to solve this has failed. I wonder if one of you experts can figure this out. Here is the relevant runtime error message:
## Detail 0 ##
java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.form.OAFormValueBean
at oracle.cabo.ui.beans.layout.TableLayoutBean.getRowLayout(Unknown Source)
at xbol.oracle.apps.hxc.selfservice.timecard.webui.XXTimecardCO.processFormRequest(XXTimecardCO.java:57)
The lines 56 & 57 is below:
OATableLayoutBean tableBean = (OATableLayoutBean)oawebbean.findChildRecursive("ConfigUIBean");
OARowLayoutBean rowBean = (OARowLayoutBean) tableBean.getRowLayout(0);
By the way, can I use TableLayoutBean instead of OATableLayoutBean, even though the original table was created as OATableLayout? The getRowLayout method is actually from TableLayoutBean.
ThanksLet me try to start with the exception that you are getting.
The ClassCastException that you see in your first post is because the API call as below
OARowLayoutBean rowBean = (OARowLayoutBean) tableBean.getRowLayout(0);returns a FormValueBean and not a RowLayoutBean. This is the reason that you were getting this error.
I believe that the findChildRecursive(..) API exists in the Table Layout Bean. Please, check the javadoc
<JDEV_CLIENT_INSTALL_DIR>/jdevdoc/javadoc/fwk/oracle/apps/fnd/framework/webui/beans/layout/OATableLayoutBean.html#findChildRecursive(java.lang.String)
Can you please explain if you are still getting any errors even after the below code
OATableLayoutBean tableBean = (OATableLayoutBean)oawebbean.findChildRecursive("ConfigUIBean");
OARowLayoutBean rowBean = (OARowLayoutBean)tableBean.getIndexedChild(0); -
Geting Error in Crystal Report Generation Hresult =0x800a5036
I have upgraded the VB 6.0 project to VB .Net 2010, While report created perfectly in VB 6.0 but in upgraded project its throwing error HRESULT = 0x800a5036. Not sure. Any help will be appreciated.
I have upgraded the VB 6.0 project to VB .Net 2010, While report created perfectly in VB 6.0 but in upgraded project its throwing error HRESULT = 0x800a5036. Not sure. Any help will be appreciated.
Hi,
I am afraid that issues related to Crystal Report are not supported in these forums, since that blongs to third-party.
I would recommend you connect with its publisher to get supports.
http://scn.sap.com/community/crystal-reports
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Geting error while creating a dir through CREATE DIRECTORY command
Hi Gurus,
When I'm trying to create a dir through this command with logged in as SYS
CREATE DIRECTORY pump_dir AS 'd:\temp\pump_dir';
I'm getting the error
Error starting at line 1 in command:
CREATE DIRECTORY pump_dir AS 'd:\temp\pump_dir'
Error at Command Line:1 Column:18
Error report:
SQL Error: ORA-00955: name is already used by an existing object
00955. 00000 - "name is already used by an existing object"
Any ideas how I can create a dir and grant access to a different user.
Thanks
Amitava.amitavachatterjee1975 wrote:
I checked and there is no such directory. I guess it is not that simple, the error I mean.Actually it is , please see,
ORA-00955: name is already used by an existing object
Cause: An attempt was made to create a database object (such as a table, view, cluster, index, or synonym) that already exists. A user's database objects must have distinct names.
Action: Enter a unique name for the database object or modify or drop the existing object so it can be reusedSo as Sb mentioned, check that which object is using the same name that you are trying to assign to this directory object and either rename or drop the object if you want to use the same name only. If not, you can always use another distinct name for this directory object .
Aman....
Maybe you are looking for
-
I had to reformat my hard drive on my pc...have a backup now of my music on my PC....my question is how do I get the music into I tunes and have I tunes recognize my ipod now when I connect it to my pc so that it syncs automatically Thanks
-
i loaded the newest version of Mozilla, i have windows vista. I began receiving microsoft defender error messages and now i can only connect the internet through explorer. i love using mozilla. what can i do to fix the problem?
-
hi, We need a report for the Stock Transfer Advice Value Particulars based on the Packing Code from MARC table, Plant, Material, Distribution Channel, Sales Org almost from 5 tables like MARC, LIKP, LIPS, A820, KONP basing on the delivery date betwee
-
PSE 11 crashes when I attempt to add a new catalog
PSE 11 crashes when I attempt to add a new catalog to those that already exist. No programs are running that might conflict with Organizer, and I can run other functions such as downloading photos from my camera. As soon as I attempt to add a new sub
-
Exception Handling when calling a PHP Webservice
I followed a great tutorial on setting calling PHP services from ABAP ([Accessing arbitrary databases from within ABAP using a PHP data hub and web services|Accessing arbitrary databases from within ABAP using a PHP data hub and web services]). Unf