Recon error - java.lang.IndexOutOfBoundsException
While running recon for an AIX server in SUn IDM 8.1, I am getting the following error:
Error iterating accounts for resource sys1:
java.lang.IndexOutOfBoundsException: Index: 229, Size: 229
and the recon goes into Failed status. What could be the reason for this error?
hi,
i thnik u need to check Resource file Attribute list index number or otherwise u chk ur Resource Adapter.
Similar Messages
-
Hi Experts,
Through protal I am changing Other Bank details (IT0009 subtype 0001) for US employee.
I get the error java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 when I am edditing the other bank details.
Please help me out in this.
PrasadHi,
java.lang.IndexOutOfBoundsException occurs when the runtime environment tries to access the index of an array which doesn't exist. (Index 2 = third entry, you only seem to have 2 entries though).
Are you certain, the Pernr's Infotype is maintained correctly?
Could you post the entire error log from NWA so we can see the JAVA Stack? Maybe the error is nested.
Check Notes 1356222 and 1359671 as well. They might solve your error right away.
best regards, Lukas
Edited by: Lukas Weigelt on Jul 14, 2011 9:36 AM -
UWL workitem error - java.lang.IndexOutofBoundsException
Any alternative solutions/workaround are welcome.
1. e.g. make the UWL refresh faster.
2.Current Delta Cache validity period or iview is
disable for UWL.
3.We encountered the below UWL bugs @ EP 7.0 SPS9, Patched JTECHF level 11 and JTECHS level 12.
4.Temporary solution, Users need to re-click on inbox
5. to refresh the workitem after the error below.
6. steps:
You will see two or more workitems in your UWL
inbox.
Click on the 1st workitem on top. Process the
workitem by clicking on
the 'Recommend' button.
To go back to the UWL, click on the 'Inbox' tab to
go back to the inbox.
Click on the second (the last) workitem in the UWL
list, and the
error "IndexOutOfBounds" will appear.
7. error message:
Internal Server Error
java.lang.IndexOutofBoundsException
StevenHi Abhilash,
Thanks. The code is working fine. Now, I am facing another problem. In back end certain data (sum_hrs) is stored as String. The values are like 7,00. This 7,00 has be converted into 7.00. How we can do it?
The code is as below. I tried using replace function. However it is not working.
IPrivateTimesheetView.ICategoriesElement categoryElement;
String wbs ="h";
double d =0;
String sum_hrs ="";
for (int i=0 ; i<wdContext.nodeWorklist().size() ; i++){
wdContext.nodeWorklist().setLeadSelection(i);
categoryElement = wdContext.createCategoriesElement();
wbs = wdContext.currentWorklistElement().getReciever_Wbs_Element();
sum_hrs = wdContext.currentWorklistElement().getSum_Hours();
sum_hrs = sum_hrs.replace(",",".");
if( sum_hrs != null && sum_hrs.trim().length()>0)
d = Double.parseDouble(sum_hrs) ;
categoryElement.setCategoryText(wbs);
categoryElement.setSeries1Value(d);
wdContext.nodeCategories().addElement(categoryElement);
wbs = "";
The error message is
java.lang.NoSuchMethodError: java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
at com.sastech.app.models.TimesheetView.onActionFindRecord(TimesheetView.java:253)
at com.sastech.app.models.wdp.InternalTimesheetView.wdInvokeEventHandler(InternalTimesheetView.java:365)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
... 26 more
Can you please help me?
Regards,
S -
I am trying to deploy the allocation calc scripts in HPCM and ran into the indexoutofboundsexception. Does anyone know how I resolve this?
I have successfully deployed the calculation database. This is version 11.1.1.2.
Cheers,
Below is the relevant section of the hpm.log file.
2009-04-07 21:02:06,645 [Thread-16] ERROR com.hyperion.profitability.business.integration.ces.jobs.ProcessCalcscriptsJob: Error processing calc scripts
com.hyperion.profitability.common.ProfitabilityRuntimeException: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
at com.hyperion.profitability.data.dao.AllocationDAOImpl.loadAllocations(AllocationDAOImpl.java:129)
at com.hyperion.profitability.business.mdb.deployment.calcscriptgeneration.CalcScriptGenerationHelper.getInterCellLevelAllocations(CalcScriptGenerationHelper.java:145)
at com.hyperion.profitability.business.mdb.deployment.calcscriptgeneration.CalculationScriptGenerator.generateCalcScripts(CalculationScriptGenerator.java:397)
at com.hyperion.profitability.business.service.GenerateCalcScript.generateCalcScript(GenerateCalcScript.java:49)
at com.hyperion.profitability.business.service.ServiceFacade.calcScriptGenerate(ServiceFacade.java:724)
at com.hyperion.profitability.business.integration.ces.jobs.ProcessCalcscriptsJob.start(ProcessCalcscriptsJob.java:47)
at com.hyperion.profitability.business.integration.ces.TaskHandler$AgentThread.run(TaskHandler.java:128)
Caused by: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.hyperion.profitability.data.dao.AllocationDAOImpl.extractAllocationDriver(AllocationDAOImpl.java:403)
at com.hyperion.profitability.data.dao.AllocationDAOImpl.extractAllocationDriver(AllocationDAOImpl.java:352)
at com.hyperion.profitability.data.dao.AllocationDAOImpl.loadAllocations(AllocationDAOImpl.java:91)
... 6 moreI am working on first profitability application creation. I have performed the following steps till now:
1. Creating Dimension Library for the Profitability Application. (I haven't put any details in the AllocationType Dimension)
2. Validate and Deploy the Profitability Application.
3. Created Staging Table (HPM_STG_STAGE, HPM_STG_ASSIGNMENT...) in Database. These are blank staging tables.
My question is:
1. How the data load happens in the Profitability Application.
2. After creating stages, does it get populated when you create stages? How are you going to populate the same.
3. Are you able to open the application in Essbase? I can see this through Shared Services but am unable to open the same in Essbase.
Let me know if you have done things differently than this. -
Java.lang.IndexOutOfBoundsException when zipping larger files
i get the error:
java.lang.IndexOutOfBoundsException
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:261)
at compress.zipEntry(compress.java:126)
at compress.Create_Zip_File(compress.java:84)
at Test.backup(Test.java:101)
at Test.<init>(Test.java:37)
at Test.main(Test.java:149)
when zipping a file which is 349MB in size I think this might be because it trying to store the file in the memory and the file is too large.What can I do to not store it in memory or if im wrong can someone point me in the right direction.
Thanks.
FileOutputStream zipFile = null;
ZipOutputStream zipOut = null;
private void listContents( File Zip_File, File dir, ZipOutputStream out )
throws Exception
// Assume that dir is a directory. List
// its contents, including the contents of
// subdirectories at all levels.
System.out.println("Directory \"" + dir.getName() + "\"");
String[] files ; // The names of the files in the directory.
files = dir.list();
for (int i = 0; i < files.length; i++) {
File f; // One of the files in the directory.
f = new File(dir, files);
if ( f.isDirectory() )
// Call listContents() recursively to
// list the contents of the directory, f.
listContents(Zip_File, f, out);
else
// For a regular file, just print the name, files[i].
zipEntry(Zip_File, f, out);
} // end listContents()
public void Create_Zip_File(File Zip_File,File[] To_Be_Zipped_Files,
boolean Skip_Dirs)
try
// Open archive file
FileOutputStream stream=new FileOutputStream(Zip_File);
ZipOutputStream out=new ZipOutputStream(stream);
for (int i=0;i<To_Be_Zipped_Files.length;i++)
//if (To_Be_Zipped_Files[i]==null
// || !To_Be_Zipped_Files[i].exists()
// || (Skip_Dirs ))
// continue;
System.out.println("Adding "+To_Be_Zipped_Files[i].getName());
zipEntry(Zip_File, To_Be_Zipped_Files[i], out);
out.close();
stream.close();
System.out.println("Finished zipping : "
+ Zip_File.getAbsolutePath());
catch (Exception e)
e.printStackTrace();
System.out.println("Error: " + e.getMessage());
return;
private void zipEntry(File Zip_File, File file, ZipOutputStream out)
throws Exception
if (file.isDirectory())
listContents(Zip_File, file, out);
return;
int BUFFER_SIZE=10240000; // 10 M
byte buffer[]=new byte[BUFFER_SIZE];
// Add archive entry
ZipEntry zipAdd=new ZipEntry(file.getAbsolutePath());
//zipAdd.setTime(file.lastModified());
out.putNextEntry(zipAdd);
// Read input & write to output
FileInputStream in=
new FileInputStream(file.getAbsolutePath());
int len;
int nRead=in.available();
while((count = in.read(buffer, 0, BUFFER_SIZE)) != -1)
out.write(buffer, 0, nRead);
// System.out.println("loop ");
in.close();
out.closeEntry();of course!!Thanks problem solved:DI don't see how - it is very very wrong!
private void zipEntry(File Zip_File, File file, ZipOutputStream out)
throws Exception
if (file.isDirectory())
listContents(Zip_File, file, out);
return;
int BUFFER_SIZE=4094;
byte buffer[]=new byte[BUFFER_SIZE];
// Add archive entry
ZipEntry zipAdd=new ZipEntry(file.getAbsolutePath());
//zipAdd.setTime(file.lastModified());
out.putNextEntry(zipAdd);
// Read input & write to output
InputStream in= new BufferedInputStream( new FileInputStream(file.getAbsolutePath()), BUFFER_SIZE);
for(int count = 0; (count = in.read(buffer)) != -1;)
out.write(buffer, 0, count);
in.close();
out.closeEntry();
}Message was edited by:
sabre150 -
Hi All,
I am getting error java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
when i am accessing the salary slip link show overview.
Where i am missing. Is this related to some Configurations in R/3.
If yes then where to apply this setting and what parameters to set.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:512)
at java.util.ArrayList.get(ArrayList.java:329)
at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.getElement(Node.java:2034)
at com.sap.tc.webdynpro.progmodel.context.Node$MappedElementList.getElement(Node.java:2399)
at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
at com.sap.tc.webdynpro.progmodel.context.Node.setLeadSelection(Node.java:753)
at com.sap.xss.hr.rem2.selection.SelectionView.wdDoModifyView(SelectionView.java:141)
at com.sap.xss.hr.rem2.selection.wdp.InternalSelectionView.wdDoModifyView(InternalSelectionView.java:433)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:488)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1299)
at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:326)
at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:868)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Please Help me asap.
Thanks & Regards,
Dhruv ShahHi Suresh,
I have same type of problem.I have checked ex_filtered_rgdir itab in debug mode. I have only one enty. but still iam getting Java exception error. Please let me know do i need to do any thing.
see my code below under following method: IF_EX_XSS_REM_INTERFACE~PROVIDE_FILTERED_RGDIR
loop AT IM_IN_RGDIR into wa_rgdir .
if wa_rgdir-PAYDT le sy-datum.
append wa_RGDIR TO EX_FILTERED_RGDIR.
endif.
ENDLOOP.
But when i click on Show Overview Link then below error is coming.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:507)
at java.util.ArrayList.get(ArrayList.java:324)
at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.getElement(Node.java:2034)
at com.sap.tc.webdynpro.progmodel.context.Node$MappedElementList.getElement(Node.java:2399)
at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
at com.sap.tc.webdynpro.progmodel.context.Node.setLeadSelection(Node.java:753)
at com.sap.xss.hr.rem2.selection.SelectionView.wdDoModifyView(SelectionView.java:141)
at com.sap.xss.hr.rem2.selection.wdp.InternalSelectionView.wdDoModifyView(InternalSelectionView.java:433)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:488)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1299)
at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:326)
at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:868)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Thanks and Regards,
Raju
Edited by: Vamsi K on May 20, 2009 10:20 AM
Edited by: Vamsi K on May 20, 2009 10:21 AM
Edited by: Vamsi K on May 20, 2009 10:22 AM -
Avoid java.lang.IndexOutOfBoundsException error
This is the error message:
java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
at at java.util.ArrayList.RangeCheck(ArrayList.java:539)
at at java.util.ArrayList.get(ArrayList.java:356)
Below line of coding is the place where system encounter the error
node.setLeadSelection(j); //this is the place causing the error
if (!"".equals(wdContext.getCurrentElement()
.getAttributeValue((String) contextInputFields.get(c))))
allFieldsEmpty = false;
} else {
wdThis.raiseNoAnswersMaintained();
// if all answer fields are empty then set the question lead selection from 1...n
if (allFieldsEmpty) {
// set lead selection of dropdown listboxes from 1...n
for (int j = 0; j < contextDropDowns.size(); j++) {
IWDNode node =
wdContext.getChildNode(
(String) contextDropDowns.elementAt(j),
0);
node.setLeadSelection(j); //this is the place causing the error
for (int j = 0; j < contextDropDowns.size(); j++) {
IWDNode node =
wdContext.getChildNode(
(String) contextDropDowns.elementAt(j) + "Overview",
0);
node.setLeadSelection(j);
What should i do to avoid this error?
There is quite similar thread reported, but no solution given in the thread.
Re: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Appreciate any comment/suggestion.
regards,
Prakesh.Hi prakash,
I am not getting what you are trying to do for getting the Node.
Could you please explain what is
contextDropDowns
you should directly get the node using wdcontext.node<node name>.
I think the method that you are trying is not giving the correct node to you and so index is going out of range.
Reagrds,
Sarbjeet. -
Java.lang.IndexOutOfBoundsException while using lexicals
Hi,
I am trying to use a dynamic where clause with the described mechanism.
- all report parameters defined as global variables in default package
- whereclause defined as global variable in default package
- defaultPackage defined in DataTemplate
- before Report Trigger defined as function in default package which sets the where clause
- Trigger executed in datatemplate (this works fine so far unless I try to use the &whereclause in a sqlStatement)
When I try to use the whereclause variable from the default package in one of my statements in the data template I get an Error like
" The report cannot be rendered because of an error, please contact the administrator. "
in the UI and on the console log I get
[070606_031501966][][EXCEPTION] java.lang.IndexOutOfBoundsException: Index: 0, S
ize: 0
at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492
at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306)
at oracle.apps.xdo.dataengine.DataTemplateParser.getParentDataSource(Dat
aTemplateParser.java:1449)
at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:298
at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:2
64)
at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:251)
at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:192)
at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:229)
at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.ja
va:336)
at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.callDataP
rocessor(AdvancedQueryBoundValue11.java:126)
at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getValue(
AdvancedQueryBoundValue11.java:79)
at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportC
ontextImplV11.java:335)
at oracle.apps.xdo.servlet.XDOProcessor.process(XDOProcessor.java:235)
at oracle.apps.xdo.servlet.ReportImpl.renderBody(ReportImpl.java:227)
at oracle.apps.xdo.servlet.ReportImpl.renderReportBody(ReportImpl.java:4
6)
at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:319)
at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:223)
at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterC
hain.java:64)
at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilt
er.java:52)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:629)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:376)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
estHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:451)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
stHandler.java:218)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:119)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
cketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Any Ideas??I solved the issue ...
since I am using the standalone version of XML Publisher with the UIs the declaration of the lexical in the dataTeamplate was the problem.
If I define
<sqlStatement name="Unterlagen"><![CDATA[select id,bezeichnung from AJS_UNTERL_CHECKLISTE where ANFORDERER = 1 and [b]&whereclause ]]>
instead of
<sqlStatement name="Unterlagen"><![CDATA[select id,bezeichnung from AJS_UNTERL_CHECKLISTE where ANFORDERER = 1 and [b]&whereclause ]]>
it works fine!
Regards,
Lars -
Java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
We have upgraded from Crystal 10 to 2008. We are able to run all reports from the admin console but when trying to connect and run from a java based application to the crystal server, we encounter the following error:
[0000TvbEgjI3QkQAR-cNXc83c5x:-1]2010-06-28 17:13:23,797] [AUDIT]: - Reports - Attempt to schedule - [EXPORT] - Activity_Tag_Change_DB:_E0002046A_PLDB:_LUKETEST_SS:_NEW-V#1-5/06_ACT_RPT-5/6/10 8:37 AM_to_SS:_NEW-V#1-6/26_ACT_RPT-6/26/10 1:17 PM_Run_On:[6-28-2010][17:13:23.797] -- Failed -- Index: 0, Size: 0
[0000TvbEgjI3QkQAR-cNXc83c5x:-1]2010-06-28 17:13:24,579] [ERROR]: - Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at java.util.ArrayList.RangeCheck(ArrayList.java)
at java.util.ArrayList.get(ArrayList.java)
at com.crystaldecisions.sdk.occa.infostore.internal.InfoObjects.get(InfoObjects.java:530)
at com.acnielsen.arch.crystalreports.ReportManager.scheduleReport(ReportManager.java)
at com.acnielsen.espec.web.action.activity.ReportParametersAction.export(ReportParametersAction.java:697)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
The query value is: Select SI_PROCESSINFO.SI_PROMPTS From CI_INFOOBJECTS Where SI_NAME = 'Export_Activity_Tag_Change.rpt' AND SI_PARENT_FOLDER IN (1109,1928,2383) AND SI_INSTANCE = 0
The code that generates this error is:
IInfoObjects infoObjects = infoStore.query(query);
IInfoObject infoObject = (IInfoObject) infoObjects.get(0);
Com.crystaldecisions.sdk.occa.infostore.iinfoobject is the class that I'm calling.
Any help would be greatly appreciated.
Thank youHi,
We need more information from your side to understand this issue better :
First where from are you trying to connect is it client machine or server machine ?
What is the Application server you are using.. ?
On which server you are trying to configure ?
Before upgrade was it working perfectly ?
Thanks
Shakeel -
Java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
Hi,
I am using Jdeveloper 11.1.1.5.
When we are trying to create a new row in the table through EO, we have overrided the default Create method in EOImpl.
protected void create(AttributeList attributeList) {
DBTransaction trans = getDBTransaction();
SequenceImpl seq = new SequenceImpl("CONTACT_INFO_ID_Q", trans);
DBSequence dbSeq = new DBSequence(seq.getSequenceNumber());
System.out.println("dbseq is "+dbSeq);
this.setContactInformationId(new Long(dbSeq.toString()));
super.create(attributeList);
We are getting Index 1 size 1 error at the point where we are trying to set the key attribute (ContactInformationId) for this EO. We are setting this key attribute through a sequence. Detailed log shows:
[2012-08-25T09:11:17.933-04:00] [DefaultServer] [TRACE:32] [] [] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 284928cbeaee1f83:4f86d3a2:1395de4e125:-8000-0000000000000044,0] [SRC_CLASS: oracle.adf.model.binding.DCBindingContainer] [APP: Prism#V2.0] [SRC_METHOD: reportException] [23459] oracle.jbo.RowCreateException: JBO-25017: New entity row of type PhoneXEO cannot be created.[[
at oracle.jbo.server.ViewRowStorage.processRowCreateExceptions(ViewRowStorage.java:3872)
at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1155)
at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:472)
at org.adr.prism.account.model.view.AccountPhoneVORowImpl.create(AccountPhoneVORowImpl.java:1264)
at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:489)
at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:5568)
at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1937)
at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2458)
at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2499)
at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:2480)
at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:10857)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1364)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2149)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:313)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at oracle.jbo.server.QueryCollection.getRowInitValues(QueryCollection.java:1859)
at oracle.jbo.server.ViewObjectImpl.createRowWithEntity(ViewObjectImpl.java:15132)
at oracle.jbo.server.ViewObjectImpl.createNewRowInQC(ViewObjectImpl.java:15467)
at oracle.jbo.server.ViewObjectImpl.afterRowUpdate(ViewObjectImpl.java:13573)
at oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:13839)
at oracle.jbo.server.EntityCache.sendEvent(EntityCache.java:1498)
at oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:1514)
at oracle.jbo.server.EntityCache.notifyColumnAndBlgChange(EntityCache.java:1570)
at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7384)
at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7365)
at oracle.jbo.server.EntityImpl.notifyAttributesAndBlgChanged(EntityImpl.java:7374)
at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:3642)
at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3203)
at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1971)
at org.adr.prism.contact.model.entity.ContactInformationEOImpl.setContactInformationId(ContactInformationEOImpl.java:267)
* at org.adr.prism.contact.model.entity.ContactInformationEOImpl.create(ContactInformationEOImpl.java:521)*
* *at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:1163)
at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1151)
... 81 more
## Detail 0 ##
Thanks,
Ankit BhatiaCan someone suggest me what can be done to fix this issue.
When we are trying to create a new row in the table through EO, we have overrided the default Create method in EOImpl. We are getting this error only in a particular scenario. It is working fine for the other VOs created for this EO and also working for a particular scenario in the same VO.
I would also like to mention if "Application module pooling" is turned off in AM configurations, it is working fine although it is bringing new errors. So turning this configuration off will not help and is also not an ideal solution.
Will creating a seperate VO for this scenario be any help? -
Java.lang.IndexOutOfBoundsException during InvokeApplicationPhase
Hello,
I'm developing JSF 1.1_01 application and during page submit have this stack trace:
[04.12.15 10.26.43:875 EET] 554fd8f WebGroup E SRVE0026E: [Servlet Error]-[Index: 0, Size: 0]: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java(Inlined Compiled Code))
at java.util.ArrayList.remove(ArrayList.java(Compiled Code))
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:271)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1006)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:589)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:209)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:121)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:280)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Anything wrong with application configuration?
Thank you,
AndrejusDid you check if you are triggering multiple threads to execute at the same time ?
-
Java.lang.IndexOutOfBoundsException: SelectOne submittedValue's index 1 is
I have two drop down. If i change value in 1st drop down, the 2nd drop down value list changes( i am using using autoSubmit and partialTriggers ).
But when i try to change the value in 2nd drop down list, and again change the value in the 1st dropdown, i get the below error. Please help me.
<tr:selectOneChoice autoSubmit="true" value="#{addbean.accountFeature}" id="selectAccountFeatures" size="1">
<f:selectItems value="#{inputMap}" />
</tr:selectOneChoice>
<tr:selectOneChoice partialTriggers="selectAccountFeatures" value="#{addbean.cardOrCheckTitle}" id="selectCardOrCheckType" size="1">
<f:selectItems value="#{checkTypeMap}" />
</tr:selectOneChoice>
java.lang.IndexOutOfBoundsException: SelectOne submittedValue's index 1 is out of bounds. It should be between 0 and 0
at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.__getIndex(SimpleSelectOneRenderer.java:423)
at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer._convertIndexedSubmittedValue(SimpleSelectOneRenderer.java:214)
at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.getConvertedValue(SimpleSelectOneRenderer.java:181)
at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.getConvertedValue(InputLabelAndMessageRenderer.java:65)
at org.apache.myfaces.trinidad.component.UIXEditableValue.getConvertedValue(UIXEditableValue.java:422)
at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:164)
at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:488)
at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:270)
at javax.faces.component.UIForm.processValidators(UIForm.java:74)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:709)
at javax.faces.component.UIViewRoot.access$101(UIViewRoot.java:43)
at javax.faces.component.UIViewRoot$2.process(UIViewRoot.java:97)
at javax.faces.component.UIViewRoot.process(UIViewRoot.java:206)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:93)
at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:148)
at arch.jsf.JsfResource.process(JsfResource.java:145)
at arch.presentation.beans.WebApplication._doServletFilterForRequest(WebApplication.java:564)
at arch.presentation.beans.WebApplication.processResource(WebApplication.java:1368)
at arch.presentation.beans.WebApplication.processRequest(WebApplication.java:2531)
at arch.service.beans.ServiceContainer.processRequest(ServiceContainer.java:3913)
at arch.no.engine.Context.processRequest(Context.java:68)
at arch.no.engine.HttpConnector.processRequest(HttpConnector.java:58)
at arch.no.http.Response.prepare(Response.java:563)
at arch.no.http.Response._execute(Response.java:1975)
at arch.no.http.Response.execute(Response.java:1910)
at arch.no.http.HttpThreadPool._run(HttpThreadPool.java:32)
at arch.util.ThreadPool._runLoopBody(ThreadPool.java:215)
at arch.util.ThreadPool._runForThread(ThreadPool.java:232)
at arch.util.ThreadPool.access$000(ThreadPool.java:5)Then either you did it wrong, or it is a bug in Trinidad.
I've explored the Google results of the in the subject mentioned exception message and I noticed suggestions such as setting the value with an empty String. This is a nasty bug. Report it to the Trinidad boys over there at Apache.org. This problem is not related to the JSF core API. -
Java.lang.IndexOutOfBoundsException: CachedRowSetRowKey[0]
Anyone had this problem..when i try to fetch the record using dataprovider parameterized query.
plz tell me ur valuable ideas if any..
Thanks in Advance
code:
try {
getGetShaftRowSet().setObject(1,"Shaft");
log("shaft entered");
getGetShaftRowSet().setObject(2,getSessionBean1().getSize());
log("size ok");
getGetShaftRowSet().setObject(3,"Stainless Steel SST 316");
log("mat ok");
getGetShaftRowSet().setObject(4,Integer.valueOf(sgbQty));
log("int val1 ok");
getGetShaftRowSet().setObject(5,Integer.valueOf(sgbQty));
log("int val2 ok");
getGetShaftDataProvider().refresh();
log("provider refreshed");
getGetShaftDataProvider().cursorFirst();
Object compId=getGetShaftDataProvider().getValue("COMP_ID");
testMsg.setText("comp id"+compId);
error("comp id"+getGetShaftRowSet().getCommand());
} catch (Exception e) {
log("Exception occurred!!", e);
error("exp"+e);
Sql statement :
getShaftRowSet.setCommand("SELECT ALL JSC.COMPONENT.COMP_ID \nFROM JSC.COMPONENT WHERE JSC.COMPONENT.NAME_TYPE = ? AND JSC.COMPONENT.SIZE_TYPE = ? AND JSC.COMPONENT.MATERIAL = ? AND JSC.COMPONENT.MIN_LOTSIZE_TYPE >= ? AND JSC.COMPONENT.MAX_LOTSIZE_TYPE <= ? ");
getShaftRowSet.setTableName("COMPONENT");
getShaftDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{components.getShaftRowSet}"));
log Details:
[#|2006-03-16T15:52:47.227+0800|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=47;|WebModule[/RFQ_PROJ]shaft entered|#]
[#|2006-03-16T15:52:47.227+0800|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=47;|WebModule[/RFQ_PROJ]size ok|#]
[#|2006-03-16T15:52:47.237+0800|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=47;|WebModule[/RFQ_PROJ]mat ok|#]
[#|2006-03-16T15:52:47.237+0800|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=47;|WebModule[/RFQ_PROJ]int val1 ok|#]
[#|2006-03-16T15:52:47.237+0800|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=47;|WebModule[/RFQ_PROJ]int val2 ok|#]
[#|2006-03-16T15:52:47.237+0800|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=47;|WebModule[/RFQ_PROJ]provider refreshed|#]
[#|2006-03-16T15:52:47.507+0800|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=47;|WebModule[/RFQ_PROJ]Exception occurred!!
java.lang.IndexOutOfBoundsException: CachedRowSetRowKey[0]
at com.sun.data.provider.impl.CachedRowSetDataProvider.getValue(CachedRowSetDataProvider.java:651)
at com.sun.data.provider.impl.AbstractTableDataProvider.getValue(AbstractTableDataProvider.java:369)
at com.sun.data.provider.impl.AbstractDataProvider.getValue(AbstractDataProvider.java:62)
at rfq.components.button1_action(components.java:1432)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
|#]Hallo,
are you sure that at least one row is returned by the query?
If not, than the "getValue" might return that type of error.
Hope this helps.
Ciao,
Fabio -
Java.lang.IndexOutOfBoundsException
Hi,
Quite new to Java, and have an error which I can't solve!! Not sure how simple it is :)
Basically, I Run the following code on the server, and can connect two clients to it, the client which was the last to be connected works fine, but any others bring up an error:
Exception in thread "Thread-0" java.lang.IndexOutOfBoundsException: end
at java.util.regex.Matcher.region(Matcher.java:895)
at java.util.Scanner.findPatternInBuffer(Scanner.java:986)
at java.util.Scanner.findWithinHorizon(Scanner.java:1653)
at java.util.Scanner.nextLine(Scanner.java:1514)
at ClientHandler.run(EmailServer.java:144)
I have commented line 144.
public void run()
do
String name = input.nextLine();
String sendRead = input.nextLine();
while (!sendRead.equals("quit"))
//Deleted a lot of code here which processes what has been inputted by the client
name = input.nextLine();
sendRead = input.nextLine(); //LINE 144 where the error occurs
try
client.close();
catch (IOException e)
e.printStackTrace();
}while (input.hasNextLine());
}Hi,
I would suggest that you put a SOP statement in between line 143 and 144 and print out the value of 'name', input.hasNextLine().toString() . Compare the value of 'name' to the input given by client and check if that is the last line. If so, then you will have to go through your logic to figure out why this is happening. If this is not the case, then post the complete code. We might be able to help you out then. -
Java.lang.IndexOutOfBoundsException: toIndex = 59
Hi all,
when ever I started my scenario from UNIX console I am getting "java.lang.IndexOutOfBoundsException: toIndex = 59"
this error
command:
bash-3.00# ./startscen.sh PALASH 001 GLOBAL "-name=PalashSystemAgent"
A JDK is required to execute Web Services with OracleDI. You are currently using
a JRE.
OracleDI: Starting scenario PALASH 001 in context GLOBAL ...
java.lang.IndexOutOfBoundsException: toIndex = 59
at java.util.SubList.<init>(AbstractList.java(Compiled Code))
at java.util.RandomAccessSubList.<init>(AbstractList.java(Compiled Code)
at java.util.RandomAccessSubList.subList(AbstractList.java:878)
at com.sunopsis.d.a.g.a(g.java)
at com.sunopsis.d.a.f.b(f.java)
at com.sunopsis.tools.core.SnpsStringTools.b(SnpsStringTools.java)
at com.sunopsis.dwg.DwgObject.snpsDecypher(DwgObject.java)
at com.sunopsis.security.DefaultDwgSecurityManager.getDefaultSecurityMan
ager(DefaultDwgSecurityManager.java)
at com.sunopsis.security.DefaultDwgSecurityManager.getDefaultSecurityMan
ager(DefaultDwgSecurityManager.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
io.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.t(e.java)
at com.sunopsis.dwg.cmd.e.y(e.java)
at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
at oracle.odi.Agent.main(Agent.java)
please suggest me
waiting for your reply
regards
Palash ChatterjeeHi,
Please add this line in ur cron tab entry and check it for me whether this scenario is running from cron tab or not .
Do the necessary changes
1)instead of CHECK write ur scnario name along with other parameters
2)my startscen.sh is in /app/odi/oracledi/bin directory so change accordingly
3)After adding this line please check that log file is created with log entry or not
CAUTION :Remove that cron entry after doing the test because that entry will send a mail to your /usr/spool/mail/root every time it will execute this command
* * * * * /app/odi/oracledi/bin/./startscen.sh CHECK 003 GLOBAL -NAME=AIX_58_PAgent -v=5 >/app/odi/work/lastLog.log
insead of cron job while I am running this code
/app/odi/oracledi/bin/./startscen.sh CHECK 003 GLOBAL -NAME=AIX_58_PAgent -v=5 >/app/odi/work/lastLog.log
it's working well and giving it's output also................................
I am trying to solve this for last few days but unable to solve .............I don't have much more knowledge in UNIX may be for this reason I failed ..................Need your help
regards,
Palash Chatterjee
Maybe you are looking for
-
I've been sharing my husbands Apple ID for years and I now want to create my own Apple ID but how can I get all my information saved on my husbands Apple ID to my new Apple ID.
-
Sort an XMLList on an attribute value?
How do you sort an XMLList (or XMLListCollection) on an attribute value rather than the element content? Thanks, ...scott
-
Ultra Search Installation Problems
Hi, I'm trying to configure ultra search for an existing database running oracle 9.2. i couldn't find the folder oc4j_portal and hence the config file under it. But there is a config file under j2ee/home, so i tried to use that and i fount that there
-
Enhancement request: ISO week number
M language includes a function that returns the week number from a date: Date.WeekOfYear However, it is much less flexible than the Excel 2010 Worksheet function WEEKNUM, which accepts a "return type" parameter. It can be used to return a ISO 8601 co
-
Set up and install files for adobe design premium cs3
Where are the files found? I've copied the program files and can find the files to install