ArrayIndexOutOfBoundsException
Environment: Win2000, Oracle 8.1.6, XML SQL Utility 1.2.0, XML Parser for PL/SQL 1.0.2
When I call this procedure in loop of 10000 iteration I have this error message (for 1000 works fine, but if repeated few times in same session, error is same):
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.ArrayIndexOutOfBoundsException
ORA-06512: at "SYS.XMLNODECOVER", line 0
ORA-06512: at "SYS.XMLDOM", line 535
ORA-06512: at "SYS.PARSE", line 32
ORA-06512: at line 4
Is there something that I am missing? Should I change something in init.ora or there is some procedure or function that should be called?
Thanks, Nenad.
Procedure PARSE
IS
xmlString varchar2(32000):='<?xml version="1.0"?>
<message type="EMP">
<ROWSET>
<ROW num="1">
<EMPNO>7369</EMPNO>
</ROW>
<ROW num="2">
<EMPNO>7330</EMPNO>
</ROW>
<ROW num="3">
<EMPNO>7333</EMPNO>
</ROW>
</ROWSET>
</message>';
lv_p xmlparser.parser;
lv_doc xmldom.DOMDocument;
begin
-- new parser
lv_p := xmlparser.newParser;
-- set some characteristics
xmlparser.setValidationMode(lv_p, FALSE);
-- parse input buffer
xmlparser.parseBuffer(lv_p, xmlString);
-- get document
lv_doc := xmlparser.getDocument(lv_p);
--free document
xmldom.freeDocument(lv_doc);
--free parser
xmlparser.freeParser(lv_p);
END; -- Procedure PARSE
null
Is there limit of parsed messages in one session?
See above.
Thanks,
Nenad.
Similar Messages
-
OID can not display some users - java.lang.ArrayIndexOutOfBoundsException:0
We have set up AD to OID synchronization for users and groups using Import connector, and it worked fine. The users in OID can log into applications protected by OAM. But recently I found that some users that could be displayed in OID before can not be displayed now. If I click on the DN in Oracle Directory Manager, a error window pops up. It is a long error message, and the first a few lines are as follows :
0
java.lang.ArrayIndexOutOfBoundsException:0
at oracle.ldap.admin.AttrOptions.<init>(entry.jave:3151)
at Oracle.ldap.admin.Entry.getProp(entry.java:457)
I don't see any error message in the integration profile or log files. I am testing things on an account that is having this trouble, and the strange thing is that it can not log into application protected by OAM any more, but it can log into OAM console.
We use OID 10.1.2.3 on Windows, and OAM 10.1.4.0.1.
I searched in Metalink but didn't find anything helpful. Any help is appreciated. Thanks for your time.
HailiePramod,
Thank you for your reply. Please see below my answers to your questions:
-> Do you see any pattern in the users (DN) that are unable to be displayed/login?
Yes I do see some pattern. There is one change on the problem user's dn - the "\" after the last name is gone.
Before: cn=smith\, john, cn=users,dc=abc,dc=com
Now: cn=smith, john, cn=users,dc=abc,dc=com
However I check in Active directory "\" is presented. In OID if I right click on cn=smith, john and try to delete it, I got a error message "LDAP: error code 34 - Error in DN Normalization". Is that caused by the missing of "\"?
-> Does ldapsearch on these users (with all attributes) show something (special chars, etc)?
ldapsearch on cn=cn=smith, john,cn=users,dc=abc,dc=com returns no objects:
$ldapsearch -L -D "cn=orcladmin" -w "*****" -h host -p 389 -b "cn=smith, john,cn=users,dc=abc,dc=com" -s sub "objectclass=*"
ldap_search: No such object
ldap_search: matched: cn=Users, dc=abc,dc=com
Ldap search on cn=smith\, john,cn=users,dc=abc,dc=com:
$ldapsearch -L -D "cn=orcladmin" -w "*****" -h host -p 389 -b "cn=smith\, john,cn=users,dc=abc,dc=com" -s sub "objectclass=*"
dn: cn="smith, john",cn=users,dc=abc,dc=com
uid: [email protected]
employeenumber: 916963
cn: smith, john
registeredaddress: 512
krbprincipalname: [email protected]
orclsamaccountname: ABC.COM$JSmith
sn: johnsmith
displayname: John
orclobjectguid: lJO0N+8H4UW/30yHukSfsw==
orclobjectsid: AQUAAAAAAAUVAAAAohxTYWIV3XFeP55cYjwAAA==
orcluserprincipalname: [email protected]
objectclass: oblixorgperson
objectclass: inetorgperson
objectclass: orcluserv2
objectclass: person
objectclass: orcladuser
objectclass: organizationalPerson
objectclass: top
obver: 10.1.4.0
-> Do you see the same behavior when you use any generic LDAP browser (Ex: Apache Directory Studio) instead of ODM?
I don't have Apache Directory Studio installed yet. I will try that later.
-> Does the changelog for the particular synch (for the affected users) show something?
Here is what I found in ActiveChgImp.aud
(weeks ago)
97426524 : Success : MODIFY : cn=smith\, john,cn=users,dc=abc,dc=com
(Recently change - The back slach after smith was gone, and "" showed up)
97469970 : Success : MODIFY : cn="smith, john",cn=users,dc=abc,dc=com
-> If login to OAM is possible, can the user modify his/her profile, and does it save the changes? If it does, can you try logging in to apps?
This user can log into OAM identity system, but when I click on "My profile" under "User manager", I got a error message "You do not have sufficient access rights".
If I log into identity system as orcladmin, I was able to modify it and save the changes. But in OID the user is still not displayed. Same error message. When I tried to add it as administrator, I could search on it, add it, but when I press "done", it didn't show up on the admin list. The users that can be displayed in OID can be added to admin list without a problem.
Thanks,
Hailie -
Java.lang.ArrayIndexOutOfBoundsException
I got java.lang.ArrayIndexOutOfBoundsException
in the method find(). But why?
/**Class CDRack represents collections of compact discs.
Discs are located in the rack in slots numbered from zero upwards.
The discs are represented by Record objects and empty slots by null values. */
public class CDRack extends Object {
private Record[] collection;
/**Creates a new, empty CD rack.
Parameters:
size - the size of the new rack, i.e. the number of slots it has */
public CDRack(int size) {
collection = new Record[size];
this.size = size;
/**Determines if the given disc object is stored in the rack.
Parameters:
disc - a disc to be located in the rack
Returns:
the slot number of the given cd if it is in the rack or
a negative number if it is not */
public int find(Record disc) {
if (collection[slot]==null)
return -1;
else {
disc = collection[slot];
return slot;
}Thanks for help to everyone. I works out now :)
like this:
public int find(Record disc) {
for(int slot=0; slot<collection.length; slot++) {
if (collection[slot] == disc) {
return slot;
return -1;
-
Folder.getMessage(i) throws an ArrayIndexOutOfBoundsException
I'm trying to keep a cache for messages stored in a folder. the number of messages is around 18.000. I creeated a class that have a method that returns a message by its "Message-ID" header. Because i'd encoutered an out of memory exception when i was keeping all messages in memory i'm keeping only 1000 messages, if the message i'm looking for is not in this 1000 messages it fetches the next 1000 messages (so in memory is stored at a moment only 1000). This method is called in a loop(i'm parsing all messages). after i get the message i verify if the message really exists on the folder :
nr = msg.getMessageNumber();//msg is the message found
javax.mail.Message msgCurr = msg.getFolder().getMessage(nr);
String idver = msgCurr.getHeader("Message-ID")[0];
if(id.equals(idver)) return msgCurr;//idver is the String representation of the Message-ID header.
after a number of messages(last time around 10000) the line msg.getFolder().getMessage(nr); throwed a java.lang.ArrayIndexOutOfBoundsException: 9971 >= 1443
like the folder contains only 1443 messages.
Between calls the folder is open(READ_ONLY) and closed.
is it possible that repeted open/close operation on this folder to lead to the corruption of this folder instance? or the problem is in my code...the database ideea is a good one but it will not work for me, this is a part of an IMAP connector, so it has to be able to retrieve messages from an IMAP account.
i've thought to stop open and close the folder (i belive this is the cause),try open a folder when a connection is made to the IMAP server and leave it open until the connection is dropped but in this way I risk to leave some open connections to the IMAP server (if application crashes) and this might cause the server to fail...
this case (18000 messages in one folder) is not the most usual use case, but what if in some account i'll find 100.000 or a million documents.
i hesitated to start changing the code (no more open close at each fetch/query) because i thought maybe i'm wrong and the server is capable to manage a lot of open/close operation...(and it seems like for a time at least it can .... almost 10000 mails were processed). -
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
hi to all.
iam getting this error: could any one give me the solution.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at DinosaursDataLoader.getData(DinosaursDataLoader.java:49)
at DinosaursPack.load(DinosaursPack.java:22)
at DinosaursPack.<init>(DinosaursPack.java:18)
at myproject.main(myproject.java:17)
import java.util.*;
import java.io.*;
import javax.swing.ImageIcon;
public class Driver {
public static void main (String[] args) {
// create a Scanner and grab the data . . .
File f=new File("C:\\Users\\hariprasad koineni\\Desktop\\r.txt");// my text file containes 12 dinosuor card info
Scanner scanner = null;
try {
scanner = new Scanner(f);
} catch (FileNotFoundException fnf) {
System.out.println(fnf.getMessage());
System.exit(0);
// scan file line-by-line
scanner.useDelimiter("------------------------------------------------------------------");
int y=0;
while (scanner.hasNext()) {
String line = scanner.next().trim();
System.out.println(line);
String bits[]= new String[19];
String[] bit = line.split("\n"); // Regex available since Java 5
for(int j=0;j<=(bit.length-1);j++){
String[] bis = bit[j].split(":");
System.out.println(bis[0]);
String t=bis[1].trim();
bits[j]=t;
System.out.println(bits[j]);
System.out.println(j);
String t = bits[0]; // title
String imgFileName = bits[1]; // image file name
float h = Float.parseFloat(bits[2]); // height
String w = bits[3]; // weight
String l = bits[4]; // length
int kr = Integer.parseInt(bits[5]); // killer rating
String i = bits[6]; // intelligence
int a = Integer.parseInt(bits[7]); // age
String df = bits[8]; // dino file
// create the image
y++;
System.out.println(line);
System.out.println(y);
}h_koineni wrote:
sorry
iam getting the error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at Driver.main(Driver.java:38)So meaning this line cause the exception:
String t=bis[1].trim(); // hard-coded int literal 1That happens because, in line 36,
String[] bis = bit[j].split(":");What will happen if the delimiter ':' is not found? It will return an array with a size of 1, and at this time referencing index 1 is out of bound, remember that the upper bound of an array is its size-1. One workaround is to put a selection structure after line 36.
if (bis != null && bis.length == 2) {
String t=bis[1].trim();
bits[j]=t;
}Then, recompile your code and try again. -
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
I am getting error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
Pls tell me where I am wrong:
import javax.swing.JOptionPane;
import java.io.File;
import java.io.*;
import java.io.IOException;
import java.util.*;
class Test {
String lname, fname, finalLetterGrade, LetterGrade, sub1,sub2,sub3,sub4,sub5,sub;
int testone = 0;
int a=0,b,c,d,e, count= 0, abs = 0,j;
int testtwo = 0;
int testthree = 0;
int testfour = 0;
int testfive = 0;
int finalExamGrade = 0;
int i=0;
int participation = 0;
int lowScore = 0;
int abs1,abs2,abs3,abs4,abs5;
String s="absent";
Character ch;
String []name;
int []Mark;
double finalNumericGrade = 0;
public Test() {
public void inputGrades()
int input, row, col;
Scanner scan = new Scanner(System.in);
System.out.println("Enter the length of the square matrix: ");
col = scan.nextInt();
name = new String[col];
Mark = new int[col];
for(i = 0; i < col ; i++)
name=JOptionPane.showInputDialog("Enter Student Name"+(i+1)+" Name: ");
System.out.println(name[i]);
for(j=0; j < col;j++)
Mark[j]=Integer.parseInt(JOptionPane.showInputDialog("Marks "+(j+1)+" Mark: "));
System.out.println(Mark[j]);
System.out.println("Average-->"+getAverage());
System.out.println("Student'-->"+toString());
public double getAverage()
if( Mark[0]==0 || Mark[1]==0 || Mark[2]==0 || Mark[3]==0 || Mark[4]==0)
finalNumericGrade=((((float)(Mark[0])) + ((float)(Mark[1])) + ((float)(Mark[2])) + ((float)(Mark[3])) + ((float)(Mark[4])))/4);
else
finalNumericGrade=((((float)(Mark[0])) + ((float)(Mark[1])) + ((float)(Mark[2])) + ((float)(Mark[3])) + ((float)(Mark[4])))/5);;
return finalNumericGrade;
private String letterGrade(){
//System.out.println(" +++ finalNumericGrade " + finalNumericGrade );
if ((finalNumericGrade >= 3.50) & (finalNumericGrade <= 4))
finalLetterGrade = "A";
else
if ((finalNumericGrade >= 2.50) & (finalNumericGrade < 3.50))
finalLetterGrade = "B";
else
if ((finalNumericGrade >= 2) & (finalNumericGrade < 2.50))
finalLetterGrade = "C";
else
if ((finalNumericGrade >= 1) & (finalNumericGrade < 2))
finalLetterGrade = "D";
else
if (finalNumericGrade == 0)
finalLetterGrade = "X";
else finalLetterGrade ="Z";
return finalLetterGrade;
public int getAbsentee()
if(testone == 0)
abs1=1;
if(testtwo == 0)
abs2=1;
if(testthree == 0)
abs3=1;
if(testfour == 0)
abs4=1;
if(testfive == 0)
abs5=1;
return abs=abs1+abs2+abs3+abs4+abs5;
public String AbsentSub()
if((testone < testtwo) & (testone < testthree) & (testone < testfour) & (testone < testfive))
sub=sub1;
if((testtwo < testone) & (testtwo < testthree) & (testtwo < testfour) & (testtwo < testfive))
sub=sub2;
if((testthree < testone) & (testthree < testtwo) & (testthree < testfour) & (testthree < testfive))
sub=sub3;
if((testfour < testone) & (testfour < testthree) & (testfour < testtwo) & (testfour < testfive))
sub=sub4;
if((testfive < testone) & (testfive < testtwo) & (testfive < testthree) & (testfive < testfour))
sub=sub5;
return sub;
public int getLowScore(){
//Determine and return the lowest score
lowScore = testone;
if (testtwo < lowScore) lowScore = testtwo;
if (testthree < lowScore) lowScore = testthree;
if (testfour < lowScore) lowScore = testfour;
if (testfive < lowScore) lowScore = testfive;
return lowScore;
public String toString() {
String studentStringValue="\n\nStudent " sub1 " "+sub2+" "+sub3+" "+sub4+" "+sub5+ " Lowest Final Marks \n\n";
studentStringValue+= name[i]+"\t";
if(Mark[0]==0)
studentStringValue+="" s "\t";
else
a=Mark[0];
ch = new Character(((char) ((69-a))));
studentStringValue+= Mark[0]+" "+ch+ "\t";
if(Mark[1]==0)
studentStringValue+="" s "\t";
else
b=Mark[1];
ch = new Character(((char) ((69-b))));
studentStringValue+= Mark[1]+" "+ch+ "\t";
if(Mark[2]==0)
studentStringValue+="" s "\t";
else
c=Mark[2];
ch = new Character(((char) ((69-c))));
studentStringValue+=Mark[2] +" "+ch+ "\t";
if(Mark[3]==0)
studentStringValue+="" s "\t";
else
d=Mark[3];
ch = new Character(((char) ((69-d))));
studentStringValue+= Mark[3] +" "+ch+ "\t";
if(Mark[4]==0)
studentStringValue+="" s "\t";
else
e=Mark[4];
ch = new Character(((char) ((69-e))));
studentStringValue+=Mark[4] +" "+ch+ "\t";
try {
BufferedWriter out = new BufferedWriter(new FileWriter(".//Marks3.txt", true));
out.write(studentStringValue);
out.close();
} catch (IOException e) {
//studentStringValue+=" " + abs + " ";
//studentStringValue+=" " sub"\t";
studentStringValue+=" " + finalNumericGrade + " \n\n";
//studentStringValue+=" Final Letter Grade is: " + finalLetterGrade +"\n";
return studentStringValue;
}// toString
public void printName(){
System.out.print(" "+lname);
System.out.print(" "+fname);
public static void main(String[] args)
Test s = new Test();
s.inputGrades();
System.out.println("Average-->" +s.getAverage());
//System.out.println("Average-->" +s.setAverage());
//System.out.println("Absent students in each Test-->" + s.getAbsentee());
// s.getLowScore();
//System.out.println("Final Letter Grade --> " + s.letterGrade());
// s.AbsentSub();
System.out.println(""+ s.toString());hi,
I am getting error on line 232 n 339
My error is :
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
at Test.toString(Test.java:232)
at Test.main(Test.java:339)
my code is :
import javax.swing.JOptionPane;
import java.io.File;
import java.io.*;
import java.io.IOException;
import java.util.*;
class Test {
String lname, fname, finalLetterGrade, LetterGrade, sub1,sub2,sub3,sub4,sub5,sub;
int testone = 0;
int a=0,b,c,d,e, count= 0, abs = 0,j,ab,abm=0,abj=0,abn=0,abd=0;
int testtwo = 0;
int testthree = 0;
int testfour = 0;
int testfive = 0;
int finalExamGrade = 0;
int i=0;
int participation = 0;
int lowScore = 0;
int abs1,abs2,abs3,abs4,abs5;
String s="absent";
Character ch;
String []name;
String[] subj;
int []Mark;
double finalNumericGrade = 0;
public Test() {
public void inputGrades()
int input, row, col;
Scanner scan = new Scanner(System.in);
System.out.println("Enter the length of Array: ");
col = scan.nextInt();
name = new String[col];
subj = new String[5];
Mark = new int[5];
for(i = 0; i < col ; i++)
name=JOptionPane.showInputDialog("Enter Student Name"+(i+1)+" Name: ");
System.out.println(name[i]);
for(j=0; j < 5;j++)
subj[j]=JOptionPane.showInputDialog("Enter Subject"+(j+1)+" Name: ");
Mark[j]=Integer.parseInt(JOptionPane.showInputDialog("Marks "+(j+1)+" Mark: "));
System.out.println(subj[j]);
System.out.println(Mark[j]);
System.out.println("Student'-->"+toString());
System.out.println("Average Stu-->"+getAverage());
getLowScore();
public double getAverage()
if( Mark[0]==0 || Mark[1]==0 || Mark[2]==0 || Mark[3]==0 || Mark[4]==0)
finalNumericGrade=((((float)(Mark[0])) + ((float)(Mark[1])) + ((float)(Mark[2])) + ((float)(Mark[3])) + ((float)(Mark[4])))/4);
else
finalNumericGrade=((((float)(Mark[0])) + ((float)(Mark[1])) + ((float)(Mark[2])) + ((float)(Mark[3])) + ((float)(Mark[4])))/5);;
return finalNumericGrade;
private String letterGrade(){
//System.out.println(" +++ finalNumericGrade " + finalNumericGrade );
if ((finalNumericGrade >= 3.50) & (finalNumericGrade <= 4))
finalLetterGrade = "A";
else
if ((finalNumericGrade >= 2.50) & (finalNumericGrade < 3.50))
finalLetterGrade = "B";
else
if ((finalNumericGrade >= 2) & (finalNumericGrade < 2.50))
finalLetterGrade = "C";
else
if ((finalNumericGrade >= 1) & (finalNumericGrade < 2))
finalLetterGrade = "D";
else
if (finalNumericGrade == 0)
finalLetterGrade = "X";
else finalLetterGrade ="Z";
return finalLetterGrade;
/*****Java Absentee***/
public int getAbsenteeJava()
if((Mark[0]==0))
abj=abj+1;
else
abj=0;
return abj;
public void setAbsenteeJava()
System.out.println("Absent in Java-->"+abj);
/***Maths Absentee****/
public int getAbsenteeMaths()
if(Mark[1]==0)
abm=abm+1;
else
abm=0;
return abm;
public void setAbsenteeMaths()
System.out.println("Absent in Maths-->"+abm);
/****Stats Absentee---*/
public int getAbsenteeStat()
sub3="Stats";
if(Mark[2]==0)
abs=abs+1;
else
abs=0;
return abs;
public void setAbsenteeStat()
System.out.println("Absent in Stats-->"+abs);
/*****NEt Absentee****/
public int getAbsenteeNet()
sub4="Network";
if(Mark[3]==0)
abn=abn+1;
else
abn=0;
return abn;
public void setAbsenteeNet()
System.out.println("Absent in Network-->"+abn);
/*****Database Absentee****/
public int getAbsenteeData()
sub5="Database";
if(Mark[4]==0)
abd=abd+1;
else
abd=0;
return abd;
public void setAbsenteeData()
System.out.println("Absent in Database-->"+abd);
public String getLowScore(){
//Determine and return the lowest score
if(((subj[0].equals(sub1)) || (Mark[0]==0)))
sub="Java";
else if(((subj[1].equals(sub2)) || (Mark[1]==0)))
sub="Maths";
else if(((subj[2].equals(sub3)) & (Mark[2]==0)))
sub="Stats";
else if(((subj[3].equals(sub4)) || (Mark[3]==0)))
sub="Network";
else if(((subj[4].equals(sub5)) || (Mark[4]==0)))
sub="Database";
return sub;
public String toString() {
String studentStringValue="\n\nStudent " subj[0] " "+subj[1]+" "+subj[2]+" "+subj[3]+" "+subj[4]+ " Lowest Final Marks \n\n";
String nm = name[i];
studentStringValue+= nm+"\t";
if(Mark[0]==0)
studentStringValue+="" s "\t";
else
{// 232: Line: getting ERROR here
a=Mark[0];
ch = new Character(((char) ((69-a))));
studentStringValue+= Mark[0]+" "+ch+ "\t";
if(Mark[1]==0)
studentStringValue+="" s "\t";
else
b=Mark[1];
ch = new Character(((char) ((69-b))));
studentStringValue+= Mark[1]+" "+ch+ "\t";
if(Mark[2]==0)
studentStringValue+="" s "\t";
else
c=Mark[2];
ch = new Character(((char) ((69-c))));
studentStringValue+=Mark[2] +" "+ch+ "\t";
if(Mark[3]==0)
studentStringValue+="" s "\t";
else
d=Mark[3];
ch = new Character(((char) ((69-d))));
studentStringValue+= Mark[3] +" "+ch+ "\t";
if(Mark[4]==0)
studentStringValue+="" s "\t";
else
e=Mark[4];
ch = new Character(((char) ((69-e))));
studentStringValue+=Mark[4] +" "+ch+ "\t";
//studentStringValue+=" " + abs + " ";
studentStringValue+=" " sub"\t";
studentStringValue+=" " + finalNumericGrade + " \n\n";
//studentStringValue+=" Final Letter Grade is: " + finalLetterGrade +"\n";
try {
BufferedWriter out = new BufferedWriter(new FileWriter(".//Marks3.txt", true));
out.write(studentStringValue);
out.close();
} catch (IOException e) {
return studentStringValue;
}// toString
public void printName(){
System.out.print(" "+lname);
System.out.print(" "+fname);
public static void main(String[] args)
Test s = new Test();
s.inputGrades();
System.out.println("Average-->" +s.getAverage());
//System.out.println("Average-->" +s.setAverage());
s.getAbsenteeJava();
s.setAbsenteeJava();
s.getAbsenteeMaths();
s.setAbsenteeMaths();
s.getAbsenteeStat();
s.setAbsenteeStat();
s.getAbsenteeNet();
s.setAbsenteeNet();
s.getAbsenteeData();
s.setAbsenteeData();
s.getLowScore();
//System.out.println("Final Letter Grade --> " + s.letterGrade());
System.out.println(""+ s.toString()); -
I got ArrayIndexOutOfBoundsException when I tried to generate the gif image
I just upgrade JDK from 1.5 to 1.6. Then I want to save my image as a gif file. ( I used to save it as png file which was working perfect. ). I got ArrayIndexOutOfBoundsException at the time I am trying to save the image file:
java.lang.ArrayIndexOutOfBoundsException: 0
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:267)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.insertNode(PaletteBuilder.java:274)
at com.sun.imageio.plugins.common.PaletteBuilder.buildPalette(PaletteBuilder.java:237)
at com.sun.imageio.plugins.common.PaletteBuilder.createIndexedImage(PaletteBuilder.java:76)
at com.sun.imageio.plugins.gif.GIFImageWriter.write(GIFImageWriter.java:564)
at com.sun.imageio.plugins.gif.GIFImageWriter.write(GIFImageWriter.java:492)
at javax.imageio.ImageWriter.write(ImageWriter.java:598)
at javax.imageio.ImageIO.write(ImageIO.java:1479)
at javax.imageio.ImageIO.write(ImageIO.java:1521)
at xxx.xxx.xxx.clusterImage.ClusterImageMaker.saveImage(ClusterImageMaker.java:863)
The code that caused exception in ClusterImageMaker.java is as following:
try {
857 //if (!imageExist(atrgtr, list)) {
858 //return;
859 //}
860 String gifname = findImageFileName( atrgtr, somNum,list);
861 String fullname = gifpath + gifname;
862 log.info("file name = " + fullname);
863 ImageIO.write(im_out, "GIF", new File( fullname ));
864 } catch (Exception ex) {
865 log.error("error" + ex.getMessage());
866 ex.printStackTrace();
867 throw new SMDException( "fail to save image file ", ex );
868 }
It took me quite a time trying to figure it out. Now I am desperate. Please help.Post a SSCCE .
-
ArrayIndexOutOfBoundsException error while executing template in planning
Hi all,
I am executing a planning function but I always get this Array error message. The planning function works fine but something is not happening in the web interface....
Below is the error message..much appreciated if anyone could help.
The initial exception that caused the request to fail was:
3
java.lang.ArrayIndexOutOfBoundsException: 3
at com.sap.ip.bi.webapplications.ui.items.buttongroup.ButtonGroup.setButton(ButtonGroup.java:155)
at com.sap.ip.bi.webapplications.ui.items.buttongroup.ButtonGroup.getParameters(ButtonGroup.java:301)
at com.sap.ip.bi.webapplications.ui.items.buttongroup.ButtonGroup.getElementToRender(ButtonGroup.java:184)
at com.sap.ip.bi.webapplications.ui.items.UiItem.getLocalRootUrNode(UiItem.java:466)
at com.sap.ip.bi.webapplications.ui.items.UiItem.getRootUrNode(UiItem.java:428)
Log ID 001E0B6F0A56006B000006C80000338800045F5564534868
Details: Full Exception Chain
Messages
INFO: Planning function Copy Previous New Positions into Official Plan ( S executed without errors
INFO: 378 records read, 72 generated, 0 changed, 0 deleted
System Environment
Server
BI Java Release: 7 - Patch level: 0000000014 - Description: BI Web Applications Java - Additional info: - Production mode: true
BI ABAP Release: 700 - Patch level: 0016 - Description: SAP NetWeaver BI 7.0 (SAP_BW) - Additional info: - Production mode: true
Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_15-b02
Operating System Windows 2003 - amd64 - 5.2
Context
ACCESSIBLE false
CACHE true
CONTENT_PADDING true
COUNTRY
DEBUG false
DEBUG_LEVEL 0
DEBUG_MESSAGES false
DEBUG_TEXTS false
DISPLAY_STACK_TRACE_IN_ERROR_PAGES true
LANGUAGE en
Master System Alias SAP_BW
NAVIGATION_NODE_LAUNCHER_URL pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex
PROFILING false
Query String (Current Browser Request) BI_COMMAND=&BI_COMMAND-BI_ADVANCED=OVERVIEW_TABSTRIP_t_OVERVIEW_TABSTRIP&BI_COMMAND-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&BI_COMMAND-PASSIVE_ID=OVERVIEW_TABSTRIP_t_OVERVIEW_TABSTRIP_tc&BI_COMMAND-PASSIVE_VALUE=false&BI_COMMAND-TARGET_ITEM_REF=OVERVIEW_TABSTRIP&BI_COMMAND_1=&BI_COMMAND_1-BI_ADVANCED=DROPDOWN_POSITION_AcDDLBase&BI_COMMAND_1-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&BI_COMMAND_1-PASSIVE_ID=DROPDOWN_POSITION_AcDDLBase_combobox&BI_COMMAND_1-PASSIVE_VALUE=SELECT_ALL&BI_COMMAND_1-TARGET_ITEM_REF=DROPDOWN_POSITION&BI_COMMAND_2=&BI_COMMAND_2-BI_ADVANCED=DROPDOWN_SEQNO_AcDDLBase&BI_COMMAND_2-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&BI_COMMAND_2-PASSIVE_ID=DROPDOWN_SEQNO_AcDDLBase_combobox&BI_COMMAND_2-PASSIVE_VALUE=SELECT_ALL&BI_COMMAND_2-TARGET_ITEM_REF=DROPDOWN_SEQNO&BI_COMMAND_3=&BI_COMMAND_3-BI_ADVANCED=DROPDOWN_EMPLOYEE_AcDDLBase&BI_COMMAND_3-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&BI_COMMAND_3-PASSIVE_ID=DROPDOWN_EMPLOYEE_AcDDLBase_combobox&BI_COMMAND_3-PASSIVE_VALUE=SELECT_ALL&BI_COMMAND_3-TARGET_ITEM_REF=DROPDOWN_EMPLOYEE&BI_COMMAND_4=&BI_COMMAND_4-BI_ADVANCED=DETAILS_TABSTRIP_t_DETAILS_TABSTRIP&BI_COMMAND_4-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&BI_COMMAND_4-PASSIVE_ID=DETAILS_TABSTRIP_t_DETAILS_TABSTRIP_tc&BI_COMMAND_4-PASSIVE_VALUE=false&BI_COMMAND_4-TARGET_ITEM_REF=DETAILS_TABSTRIP&BI_COMMAND_5=&BI_COMMAND_5-BI_ADVANCED=PLANNING_QUERY_1_interactive_pivot_left_top&BI_COMMAND_5-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&BI_COMMAND_5-PASSIVE_ID=PLANNING_QUERY_1_interactive_pivot_left_top_paginator&BI_COMMAND_5-PASSIVE_VALUE=1&BI_COMMAND_5-TARGET_ITEM_REF=PLANNING_QUERY_1&BI_COMMAND_6=&BI_COMMAND_6-BI_ADVANCED=PLANNING_QUERY_1_interactive_pivot_right_top&BI_COMMAND_6-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&BI_COMMAND_6-PASSIVE_ID=PLANNING_QUERY_1_interactive_pivot_right_top_paginator&BI_COMMAND_6-PASSIVE_VALUE=1&BI_COMMAND_6-TARGET_ITEM_REF=PLANNING_QUERY_1&BI_COMMAND_7=&BI_COMMAND_7-BI_ADVANCED=PLANNING_QUERY_1_interactive_pivot_left_bottom&BI_COMMAND_7-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&BI_COMMAND_7-PASSIVE_ID=PLANNING_QUERY_1_interactive_pivot_left_bottom_paginator&BI_COMMAND_7-PASSIVE_VALUE=1&BI_COMMAND_7-TARGET_ITEM_REF=PLANNING_QUERY_1&BI_COMMAND_8=&BI_COMMAND_8-BI_ADVANCED=PLANNING_QUERY_1_interactive_pivot_right_bottom&BI_COMMAND_8-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&BI_COMMAND_8-PASSIVE_ID=PLANNING_QUERY_1_interactive_pivot_right_bottom_paginator&BI_COMMAND_8-PASSIVE_VALUE=1&BI_COMMAND_8-TARGET_ITEM_REF=PLANNING_QUERY_1&BI_COMMAND_9=&BI_COMMAND_9-BI_COMMAND_TYPE=VALIDATE&BI_COMMAND_10=&BI_COMMAND_10-BI_COMMAND_TYPE=EXEC_PLANNING_FUNCTION_SIMPLE&BI_COMMAND_10-PLANNING_FUNCTION=SCF_COPY_NEWPOS_OP&BI_COMMAND_10-SELECTOR_DATA_PROVIDER_REF=PLANNING_QUERY&BI_COMMAND_10-TARGET_DATA_AREA_REF=DEFAULT&BI_COMMAND_11=&BI_COMMAND_11-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS&BI_COMMAND_11-INIT_PARAMETERS-BUTTON_LIST-BUTTON_4-ENABLED=X&BI_COMMAND_11-ITEM_TYPE=BUTTON_GROUP_ITEM&BI_COMMAND_11-TARGET_ITEM_REF=SAVE_RESET_COPY_BUTTONS&BI_COMMAND_12=&BI_COMMAND_12-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS&BI_COMMAND_12-INIT_PARAMETERS-VISIBILITY=HIDDEN&BI_COMMAND_12-ITEM_TYPE=BUTTON_GROUP_ITEM&BI_COMMAND_12-TARGET_ITEM_REF=COPY_FUNCTION_BUTTONS&REQUEST_ID=4
Query String (Initial Browser Request) DUMMY=3&TEMPLATE=ZWILSON_TEMPLATE
RTL false
Request URL http://esccbid.escc.gov.uk:50000
SAP_BW_IVIEW_ID pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex
SERVER_URL_PREFIX http://esccbid.escc.gov.uk:50000
THEME_NAME sap_tradeshow
TRACE false
TRAY_TYPE PLAIN
Template (Main Object) BTMP ZWILSON_TEMPLATE
Template (Main) ZWILSON_TEMPLATE
Template Parameters <parameterList>
<param name="ABAP_STATELESS" value="X"/>
<param name="BODY_ONLY" value="X"/>
<param name="CHECK_POPUP_BLOCKER" value="X"/>
<param name="CLEAR_VARIABLES" value="X"/>
<param name="DATA_MODE" value="NEW"/>
<param name="DOCUMENT_SAVE_LEVEL" value="0"/>
<param name="ERRORS_VISIBLE" value="X"/>
<param name="INFORMATION_VISIBLE" value="X"/>
<param name="ITEMS_STATELESS" value="false"/>
<param name="MELT_VARIABLES" value="X"/>
<param name="REPORT_REPORT_DISPLAY_TARGET" value="X"/>
<param name="RRI_OPEN_MODE" value="OPEN_IN_SEPARATE_WINDOW">
<param name="OPEN_IN_SEPARATE_WINDOW" value=""/>
</param>
<param name="SHOW_PERSONALIZED_VARIABLES" value="X"/>
<param name="START_STATELESS_INTERVAL" value="0"/>
<param name="STATELESS" value="false"/>
<param name="SYSTEM_MESSAGES_VISIBLE" value="X">
<param name="SYSTEM_MESSAGES_DISPLAY_MODE" value="ALWAYS"/>
</param>
<param name="TEMPLATE_VERSION" value="1"/>
<param name="USE_CONTEXT_MENU_SNIPPETS" value="X"/>
<param name="USE_LAYERED_WINDOWS" value="X"/>
<param name="USE_SPECIFIC_VARIANT_CATALOG" value="X"/>
<param name="VARIABLE_SCREEN" value="X"/>
<param name="WARNINGS_VISIBLE" value="X"/>
<param name="WINDOW_MODE" value="modal"/>
</parameterList>
Time Wed Dec 31 10:44:26 GMT 2008
USE_HTTPS_FOR_ADS false
USE_SAP_EXPORT_LIB false
User SERCOWNKN (USER.R3_DATASOURCE.SERCOWNKN)
Deployed SCAs
SCA Version SP Patch Compiled Deployed
ADSSAP 7.00 14 0 2007-11-18 05:51:47 GMT 2008-03-04 14:42:04 GMT
BASETABLES 7.00 14 0 2007-11-18 06:07:37 GMT 2008-03-04 14:29:07 GMT
BI-BASE-S 7.00 14 3 2008-04-14 06:59:16 BST 2008-04-28 15:51:19 BST
BI-IBC 7.00 15 0 2008-02-18 05:00:17 GMT 2008-04-09 16:26:10 BST
BI-REPPLAN 7.00 14 0 2007-11-17 05:56:51 GMT 2008-03-04 15:08:33 GMT
BI-WDALV 7.00 14 0 2007-11-17 05:57:00 GMT 2008-03-04 15:08:45 GMT
BIWEBAPP 7.00 14 3 2008-04-14 07:00:01 BST 2008-04-28 15:50:57 BST
BI_MMR 7.00 14 0 2007-11-18 06:08:29 GMT 2008-03-04 14:42:22 GMT
BI_UDI 7.00 14 0 2007-11-18 06:08:52 GMT 2008-03-04 14:49:38 GMT
BP_BIADMIN 60.1 5 0 2006-01-18 13:49:00 GMT 2007-01-08 12:34:11 GMT
CAF 7.00 14 0 2007-11-17 06:28:38 GMT 2008-03-04 14:52:37 GMT
CAF-KM 7.00 14 0 2007-11-17 06:00:43 GMT 2008-03-04 15:16:27 GMT
CAF-UM 7.00 14 0 2007-11-17 06:28:47 GMT 2008-03-04 14:42:49 GMT
CORE-TOOLS 7.00 14 0 2007-11-18 06:12:27 GMT 2008-03-04 14:29:21 GMT
DI_CBS 7.00 11 0 2007-02-02 07:51:52 GMT 2007-05-30 13:12:00 BST
DI_CMS 7.00 11 0 2007-02-02 07:52:31 GMT 2007-05-30 13:42:29 BST
DI_DTR 7.00 11 0 2007-02-02 07:53:48 GMT 2007-05-30 13:44:06 BST
EP-PSERV 7.00 14 0 2007-12-10 19:31:59 GMT 2008-03-04 15:09:12 GMT
EP-WDC 7.00 14 0 2007-11-18 04:10:28 GMT 2008-03-04 15:09:45 GMT
EPBC 7.00 14 0 2007-11-18 04:08:00 GMT 2008-03-04 14:43:48 GMT
EPBC2 7.00 14 0 2007-11-18 04:08:26 GMT 2008-03-04 15:09:48 GMT
FORUMS 7.00 12 0 2007-04-26 06:38:00 BST 2007-07-05 13:29:42 BST
JLOGVIEW 7.00 14 0 2007-11-17 19:24:00 GMT 2008-03-04 14:29:37 GMT
JSPM 7.00 14 0 2007-12-10 16:07:00 GMT 2008-03-04 14:10:28 GMT
KM-KW_JIKS 7.00 14 0 2007-11-18 06:16:32 GMT 2008-03-04 14:43:59 GMT
KMC-BC 7.00 14 0 2007-11-18 04:10:52 GMT 2008-03-04 15:10:23 GMT
KMC-CM 7.00 14 0 2007-11-18 04:12:21 GMT 2008-03-04 15:10:52 GMT
KMC-COLL 7.00 14 0 2007-11-18 04:12:58 GMT 2008-03-04 15:11:09 GMT
KMC-UI 7.00 12 0 2007-04-26 06:38:00 BST 2007-07-10 12:41:58 BST
LM-PORTAL 7.00 14 0 2007-11-17 06:05:58 GMT 2008-03-04 15:11:11 GMT
LM-TOOLS 7.00 14 1 2008-01-24 10:15:56 GMT 2008-03-04 14:56:05 GMT
NET-PDK 7.00 14 0 2007-11-18 04:13:24 GMT 2008-03-04 15:05:06 GMT
RTC 7.00 14 0 2007-11-18 04:13:42 GMT 2008-03-04 15:05:10 GMT
RTC-STREAM 7.00 14 0 2007-11-18 04:13:43 GMT 2008-03-04 14:59:01 GMT
SAP-EU 7.00 14 0 2007-11-17 06:07:36 GMT 2008-03-04 15:15:51 GMT
SAP-JEE 7.00 14 0 2007-11-18 06:23:21 GMT 2008-03-04 14:30:17 GMT
SAP-JEECOR 7.00 14 0 2007-11-18 06:25:32 GMT 2008-03-04 14:32:36 GMT
SAP_JTECHF 7.00 14 0 2007-12-10 17:24:24 GMT 2008-03-04 14:33:48 GMT
SAP_JTECHS 7.00 14 0 2007-11-23 07:39:50 GMT 2008-03-04 14:48:49 GMT
UMEADMIN 7.00 14 0 2007-11-17 06:39:16 GMT 2008-03-04 14:56:22 GMT
UWLJWF 7.00 14 0 2007-11-18 04:14:41 GMT 2008-03-04 15:11:24 GMT
VCBASE 7.00 14 0 2007-11-18 04:14:46 GMT 2008-03-04 15:16:44 GMT
VCFLEX 7.00 14 0 2007-11-18 04:15:19 GMT 2008-03-04 15:06:41 GMT
VCFRAMEWORK 7.00 14 0 2007-11-18 04:15:30 GMT 2008-03-04 15:06:46 GMT
VCKITBI 7.00 14 0 2007-11-18 04:03:22 GMT 2008-03-04 14:59:02 GMT
VCKITGP 7.00 14 0 2007-11-18 04:15:30 GMT 2008-03-04 14:59:03 GMT
VCKITXX 7.00 14 0 2007-11-18 04:15:30 GMT 2008-03-04 14:59:06 GMT
WDEXTENSIONS 7.00 14 0 2007-11-17 06:09:18 GMT 2008-03-04 15:16:57 GMT
Full Exception Chain
Log ID 001E0B6F0A56006B000006C80000338800045F5564534868
com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while generating HTML
at com.sap.ip.bi.webapplications.ui.items.UiItem.render(UiItem.java:392)
at com.sap.ip.bi.webapplications.runtime.rendering.impl.ContainerNode.render(ContainerNode.java:70)
at com.sap.ip.bi.webapplications.runtime.rendering.impl.PageAssemblerRenderingRoot.processRendering(PageAssemblerRenderingRoot.java:52)
at com.sap.ip.bi.webapplications.runtime.impl.Page.buildRenderingTree(Page.java:4395)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRenderingRootNode(Page.java:4469)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRendering(Page.java:4108)
at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:4054)
at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:2863)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2709)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:983)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller._processRequest(Controller.java:872)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:849)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:333)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:250)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:24)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
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)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
at com.sap.ip.bi.webapplications.ui.items.buttongroup.ButtonGroup.setButton(ButtonGroup.java:155)
at com.sap.ip.bi.webapplications.ui.items.buttongroup.ButtonGroup.getParameters(ButtonGroup.java:301)
at com.sap.ip.bi.webapplications.ui.items.buttongroup.ButtonGroup.getElementToRender(ButtonGroup.java:184)
at com.sap.ip.bi.webapplications.ui.items.UiItem.getLocalRootUrNode(UiItem.java:466)
at com.sap.ip.bi.webapplications.ui.items.UiItem.getRootUrNode(UiItem.java:428)
at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.buildUrTree(AcItemBridge.java:95)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:33)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.MatrixLayoutCell.iterateOverChildren(MatrixLayoutCell.java:82)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.MatrixLayoutRow.iterateOverChildren(MatrixLayoutRow.java:75)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.MatrixLayout.iterateOverChildren(MatrixLayout.java:88)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.container.matrixlayout.control.AcMatrixControlGrid.iterateOverChildren(AcMatrixControlGrid.java:41)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:61)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.FlowLayoutItem.iterateOverChildren(FlowLayoutItem.java:82)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.FlowLayout.iterateOverChildren(FlowLayout.java:88)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:61)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.Toolbar.iterateOverChildren(Toolbar.java:88)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.Group.iterateOverChildren(Group.java:91)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.container.group.control.AcGroupControl.iterateOverChildren(AcGroupControl.java:260)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.start(CompositeBuildUrTreeTrigger.java:59)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.triggerComposites(ExtendedRenderManager.java:69)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.BICompositeManager.renderRoot(BICompositeManager.java:79)
at com.sap.ip.bi.webapplications.ui.items.UiItem.render(UiItem.java:390)
... 46 moreHi, the issue is described in SAP note 1260133. Please note that SPS 14, Patch #3 for the BI-components BI-BASE-S and BIWEBAPP is pretty old. Are there any plans to upgrade your java stack in the near future? Otherwise you won't be able to apply this correction, since recent java corrections are only available for the last 3 SPS. Please have a look at note 1072576 for further information.
If this correction does not solve your issue, please open a message with SAP.
Best regards,
Janine -
Ojdbc14 drivers: ArrayIndexOutOfBoundsException
Hi all,
we experience a random error while executing a stored procedure on an Oracle Db.
The procedure is called by 100 running parallel threads (each thread calls it once with different parameters) but some times (<1%) it fails, here is the stack trace:
java.lang.ArrayIndexOutOfBoundsException: -3445775
at oracle.jdbc.driver.DateCommonBinder.setOracleCYMD(OraclePreparedStatement.java:15532)
at oracle.jdbc.driver.DateBinder.bind(OraclePreparedStatement.java:15627)
at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:2866)
at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2151)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3280)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3390)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4223)
at com.cgey.report.ReportGeneratorThread.callSP(ReportGeneratorThread.java:99)
at com.cgey.report.ReportGeneratorThread.load(ReportGeneratorThread.java:188)
at com.cgey.report.ReportGeneratorThread.run(ReportGeneratorThread.java:240)
If you try to run the same procedure that failed independently the execution is correct.
Oracle Version: Version 9.2.0.6.0
Drivers Version: Oracle JDBC Driver version - "10.2.0.1.0" (Jun 2005)
Is it possible that this issue is related to the BUG-6396242? Does anyone has a solution for 10g drivers?
Thank you in advance!
Edited by: 791859 on 31-ago-2010 12.39I'll try to update the drivers, but I hope that this won't introduce new problems due to missing backward compatibility...
Any other idea? Do you think that reducing the number of parallel threads could help us? -
Addition of fields in ABAP RFC causes java.lang.ArrayIndexOutOfBoundsExcept
Hi,
I had been calling an ABAP RFC from my WDJ application successfully till yesterday. Then we felt the need for 2 additional fields in RFC for better results. Since then, I'm not able to call this RFC. The error being thrown is copied below.
All context mappings are done correctly and there is no compilation/build error in application but on runtime the following error is being thrown.
Can someone guide me here for solution to this issue?
Thanks,
Vishwas.
500 Internal Server Error
SAP NetWeaver Application Server 7.00/Java AS 7.00
Failed to process request. Please contact your system administrator.
[Hide]
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
java.lang.ArrayIndexOutOfBoundsException
at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsString(JcoBaseTypeData.java:663)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsString(DynamicRFCModelClass.java:420)
at com.pa.material.model.Z_Sd_Get_Availability_Input.getAuart(Z_Sd_Get_Availability_Input.java:186)
at com.pa.materialprice.wdp.IPublicGet_Material_Price$IZ_Sd_Get_Availability_InputElement.wdGetObject(IPublicGet_Material_Price.java:518)
at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdGetObject(MappedNodeElement.java:350)
... 60 more
See full exception chain for details.
System Environment
Client
Web Dynpro Client Type HTML Client
User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Version null
DOM version null
Client Type msie6
Client Type Profile ie6
ActiveX enabled
Cookies enabled
Frames enabled
Java Applets enabled
JavaScript enabled
Tables enabled
VB Script enabled
Server
Web Dynpro Runtime Vendor: SAP, build ID: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:13:14[UTC], changelist=455669, host=pwdfm101), build date: Mon Dec 17 17:41:35 CST 2007
J2EE Engine 7.00 patchlevel 109044.44
Java VM Classic VM, version:1.4, vendor: IBM Corporation
Operating system OS/400, version: V5R4M0, architecture: PowerPC
Session & Other
Session Locale en_US
Time of Failure Thu Jan 24 12:43:46 CST 2008 (Java Time: 1201200226852)
Web Dynpro Code Generation Infos
local/Get_Material_Price
SapDictionaryGenerationCore 7.0009.20060802115015.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:24:21[UTC], changelist=413123, host=PWDFM101.wdf.sap.corp)
SapDictionaryGenerationTemplates (unknown)
SapGenerationFrameworkCore 7.0009.20060719095755.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:12:57[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
SapIdeWebDynproCheckLayer 7.0009.20060802115035.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:30:00[UTC], changelist=413124, host=PWDFM101.wdf.sap.corp)
SapMetamodelCommon 7.0009.20060210160857.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:13:46[UTC], changelist=388995, host=PWDFM101.wdf.sap.corp)
SapMetamodelCore 7.0009.20060210160857.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:13:38[UTC], changelist=388995, host=PWDFM101.wdf.sap.corp)
SapMetamodelDictionary 7.0009.20060719095619.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:21:59[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
SapMetamodelWebDynpro 7.0009.20060428190938.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:26:52[UTC], changelist=400815, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationCTemplates 7.0009.20060804145649.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:45:29[UTC], changelist=413534, host=pwdfm101)
SapWebDynproGenerationCore 7.0009.20060802115035.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:30:11[UTC], changelist=413124, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationTemplates 7.0009.20060804145649.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:45:29[UTC], changelist=413534, host=pwdfm101)
sap.com/tcwddispwda
No information available null
sap.com/tcwdcorecomp
No information available null
Detailed Error Information
Detailed Exception Chain
java.lang.ArrayIndexOutOfBoundsException
at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsString(JcoBaseTypeData.java:663)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsString(DynamicRFCModelClass.java:420)
at com.pa.material.model.Z_Sd_Get_Availability_Input.getAuart(Z_Sd_Get_Availability_Input.java:186)
at com.pa.materialprice.wdp.IPublicGet_Material_Price$IZ_Sd_Get_Availability_InputElement.wdGetObject(IPublicGet_Material_Price.java:518)
at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdGetObject(MappedNodeElement.java:350)
at com.sap.tc.webdynpro.progmodel.context.AttributePointer.getObject(AttributePointer.java:157)
at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1079)
at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1070)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.getValue(AbstractInputField.java:1262)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.InputFieldAdapter.getValue(InputFieldAdapter.java:597)
at com.sap.tc.ur.renderer.ie6.InputFieldRenderer.render(InputFieldRenderer.java:39)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutCellFragment(MatrixLayoutRenderer.java:405)
at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutRowFragment(MatrixLayoutRenderer.java:355)
at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutFragment(MatrixLayoutRenderer.java:122)
at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.render(MatrixLayoutRenderer.java:39)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:116)
at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:39)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:276)
at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:82)
at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:39)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:116)
at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:39)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.UiWindowRenderer.render(UiWindowRenderer.java:35)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendHtml(HtmlClient.java:1037)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.fillDynamicTemplateContext(HtmlClient.java:455)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:1216)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:247)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRetrieveData(WindowPhaseModel.java:583)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:113)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:107)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:270)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:710)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:623)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:215)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:113)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:60)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:332)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:0)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:336)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:868)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:250)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:0)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:92)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:30)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:35)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)Hi Vishwas,
After changing the RFC , u need to reimport the model & server has to be restarted for refreshing the model.if that u have already done, send the code.
regards
Sumit -
Uncaught exception java.lang.ArrayIndexOutOfBoundsException in J2ME
hi all,
i found a strange error (uncaught exception java.lang.ArrayIndexOutOfBoundsException) every time when i tried to developed a MIDlet and servlet to retrieve data from database. can anyone tell me why this error occur? this is example of MIDlet code:
public void checkResult() {
HttpConnection conn = null;
InputStream is = null;
OutputStream os = null;
byte[] receivedData = null;
String userid = "123";
try {
String url = getAppProperty("Result.URL");
conn = (HttpConnection)Connector.open(url);
byte postData [] = ("userid=" + userid).getBytes();
conn.setRequestMethod(HttpConnection.POST);
conn.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
conn.setRequestProperty ( "Content-Length", Integer.toString (postData.length));
conn.setRequestProperty("Connection", "close" );
conn.setRequestProperty("Content-length",Integer.toString(postData.length));
os = conn.openOutputStream();
os.write(postData);
os.close();
is = conn.openInputStream();
String contentType = conn.getType();
int len = (int)conn.getLength();
if (len > 0)
receivedData = new byte[len];
int nb = is.read(receivedData);
else
receivedData = new byte[1024];
int ch;
len = 0;
while ((ch = is.read()) != -1)
receivedData[len++] = (byte)ch;
response.setText(new String(receivedData,0,len));
display.setCurrent(outputForm);
catch (IOException e) {
System.out.println(e.getMessage());
e.printStackTrace();
finally {
try {
if (is != null) {
is.close();
if (os != null) {
os.close();
if (conn != null) {
conn.close();
catch (IOException e) {
from aliceThat would be a point where I miss bounds checking on your part:
receivedData = new byte[1024];
int ch;
len = 0;
while ((ch = is.read()) != -1)
receivedData[len++] = (byte)ch; // what happens if more than 1024 characters come along??
}Otherwise the exact line of error, the stack trace or some context would be helpful. -
ArrayIndexOutOfBoundsException when setting a date in a prepared statement
Hi,
was wondering if anyone could help. I have a prepared statement, with two "variables" in it. I need to set the first of these to a string (using setString(1, "string)
and the second to a date, using setDate(2, SQLDate)
My SQL date is a valid date ass I've run a debugger and checked, but everytime setDate is called an Array Out Of Bound Exception is thrown. Can anyone shed any light on this as I'm rather confused as to why this is happening!
Thanks in advanceI havent got a small runnable example to hand, but taking an excert from my code I have:
for (int i = 0; i < this.columnNames.size();i++)
singleDateEventFlagSingleArea.setString(1, newAreaName);
singleDateEventFlagSingleArea.setDate(2, Date.valueOf((String) this.columnNames.get(i)));
eventFlagsResult = singleDateEventFlagSingleArea.executeQuery()
}newAreaName is a argument passed to the method. columnNames is a vector of dates/strings, which I parse back into a date to pass to the setDate method
Where the value of the date in the statement is changed to a preset value each iteration.
The exception stack I'm getting is:
exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1
at oracle.jdbc.dbaccess.DBDataSetImpl._getDBItem(DBDataSetImpl.java:378)
at oracle.jdbc.dbaccess.DBDataSetImpl._createOrGetDBItem(DBDataSetImpl.java:781)
at oracle.jdbc.dbaccess.DBDataSetImpl.setBytesBindItem(DBDataSetImpl.java:2399)
at oracle.jdbc.driver.OraclePreparedStatement.setItem(OraclePreparedStatement.java:1134)
at oracle.jdbc.driver.OraclePreparedStatement.setDate(OraclePreparedStatement.java:2223)
at treeTableVersion2.TreeTable.updateValuesSingleDateSingleArea(TreeTable.java:393)
at treeTableVersion2.TestWindow.actionPerformed(TestWindow.java:394)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
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)Although I think a lot of that is because the process is called by a button press.
The sql statement thats causing the problem is:
select h.areaname,
e.code,
e.descript,
ec.date_raised,
ec.date_progressing,
ec.date_completed
from hareas h, evt_type e, evt_core ec
where h.areaname = ?
and e.evt_type_id = ec.evt_type_id
and (h.nblink = ec.area1_nblink or h.nblink = ec.area2_nblink)
and ec.date_raised = ?
group by h.areaname,
e.code,
e.descript,
ec.date_raised,
ec.date_progressing,
ec.date_completed
order by h.areanameThanks for your help -
Please provide assistance with clarifying any limitations of the DOMParser.parse() operations. Please let me know if there is an alternative approach to what I am doing below. The details of my situation follow:
I am using Visual Cafe 3 with the Oracle XML parser 2.0.2.6 to parse an XML string using the DOMParser parse(Reader), parse(InputSource), parse(InputStream) operation in order to retrieve a DOMDocument object.
I have taken several approaches all of which result in the following exception:
"java.lang.ArrayIndexOutOfBoundsException: 16388"
This error appears to be raised by XMLReader:
oracle\xml\parser\v2\XMLReader(1411)... The java source is unavailable to debug the code.
I have also changed the XML string to a simple innocuous string. But I still get the same message. The literal string value is as follows: "<?xml version="1.0"?><EMPLIST><EMP><ENAME>MARTIN</ENAME></EMP><EMP><ENAME>SCOTT</ENAME></EMP></EMPLIST>"
The code fragments I have used to perform the parse() operations are given below:
//Reader approach
StringReader xmlReader = new StringReader( inXMLString );
parser.parse( xmlReader );
// InputSource approach
InputSource source = new InputSource( xmlReader );
parser.parse( source );
// InputStream approach
ByteArrayInputStream byteStream = new ByteArrayInputStream( inXMLString.getBytes() );
parser.parse( byteStream );
Any assistance would be greatly appreciated.
nullPlease provide assistance with clarifying any limitations of the DOMParser.parse() operations. Please let me know if there is an alternative approach to what I am doing below. The details of my situation follow:
I am using Visual Cafe 3 with the Oracle XML parser 2.0.2.6 to parse an XML string using the DOMParser parse(Reader), parse(InputSource), parse(InputStream) operation in order to retrieve a DOMDocument object.
I have taken several approaches all of which result in the following exception:
"java.lang.ArrayIndexOutOfBoundsException: 16388"
This error appears to be raised by XMLReader:
oracle\xml\parser\v2\XMLReader(1411)... The java source is unavailable to debug the code.
I have also changed the XML string to a simple innocuous string. But I still get the same message. The literal string value is as follows: "<?xml version="1.0"?><EMPLIST><EMP><ENAME>MARTIN</ENAME></EMP><EMP><ENAME>SCOTT</ENAME></EMP></EMPLIST>"
The code fragments I have used to perform the parse() operations are given below:
//Reader approach
StringReader xmlReader = new StringReader( inXMLString );
parser.parse( xmlReader );
// InputSource approach
InputSource source = new InputSource( xmlReader );
parser.parse( source );
// InputStream approach
ByteArrayInputStream byteStream = new ByteArrayInputStream( inXMLString.getBytes() );
parser.parse( byteStream );
Any assistance would be greatly appreciated.
null -
JTabbed Pane ArrayIndexOutOfBoundsException
Not sure if this is a java bug or just an error in my code.
After focusing on the last tab (tab 5) and closing it (by pressing a key)
then clicking on the new last tab (tab 4)
-> an ArrayIndexOutOfBoundsException occurs.
The code:
import java.awt.event.*;
import javax.swing.*;
public class Test extends JFrame implements KeyListener{
private JTabbedPane tab;
public Test(){
this.setSize(400,400);
tab = new JTabbedPane();
this.getContentPane().add(tab);
for (int x=0;x<6;x++)
tab.add(""+x,new JPanel());
tab.addKeyListener(this);
this.setVisible(true);
public void keyPressed(KeyEvent e) {}
public void keyReleased(KeyEvent e) {}
public void keyTyped(KeyEvent e) {
tab.removeTabAt(tab.getSelectedIndex());
public static void main(String[] args){
new Test();
The exception:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 5
at javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.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.Window.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.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I am using 1.5.0 beta 2. Any thoughts?The exception is thrown when clicking on the last tab after the first removal (trying to select it) not when trying to remove it. And looking at java's source, the selection is changed when a tab is removed.
-
RFC 2 File Error in RFC sender: java.lang.ArrayIndexOutOfBoundsException
Hello,
I'm sending data asynchronously from R3 to a file through XI, I've got the RFC destination (in R3) and sender RFC channel (in XI) configured and tested. Working fine.
Then in my report I've got the following code that sends 1 string and 4 internal tables 2 to XI:
CALL FUNCTION 'Z_RFC_ENVIAR_DATOS_PSP'
IN BACKGROUND TASK DESTINATION 'SAP_2_XI'
EXPORTING
RUTA = p_ruta
TABLES
IT_DEMANDA = p_gt_demanda
IT_STOCKS = lt_stocks
IT_CUARENTENAS = lt_cuarent
IT_COMPRAS = lt_repartos.
COMMIT WORK.
I've done that king of connection several times and allways worked but now I've got that error in the communication channel monitoring at RWB:
Error in processing caused by: java.lang.ArrayIndexOutOfBoundsException
And no message is created in XI. What can it be?
Thanks for your helpHi Chen Lin,
The problem is with the adapter but no message is generated yet in XI, so I don't have XML yet.
The RFC sends the data to XI through the RFC destination and at this point something is wrong because that error is produced. The error is visible in both sides, In transaction SM58 at R3 I can see the error that tRFC hasn't been precessed because the ArrayIndexOutOfBoundsException.
But if I go to communication channel monitoring I can see the same error too, so that confirms that the communication between R3 and XI works fine but something is wrong and the error don't give me more details -
ArrayIndexOutOfBoundsException in JDeveloper
Hi,
I am working with JDeveloper for 11.5.10 CU2. I extended a View object for an LOV and created the relevant substitution for it.
It was working fine and when I had to create another substitution it did not allow me to go ahead.
On the click of the the Substitutions Tab in the Edit Business Components Project window I get the following error:
java.lang.ArrayIndexOutOfBoundsException
at oracle.jbo.dt.ui.main.tree.DtuTreeNode.getChildAt(DtuTreeNode.java:109)
at javax.swing.tree.DefaultTreeModel.nodesWereInserted(DefaultTreeModel.java:293)
at javax.swing.tree.DefaultTreeModel.insertNodeInto(DefaultTreeModel.java:223)
at oracle.jbo.dt.ui.main.tree.DtuBaseTree.addChild(DtuBaseTree.java:142)
at oracle.jbo.dt.ui.main.tree.DtuJboTree.addChild(DtuJboTree.java:472)
at oracle.jbo.dt.ui.main.tree.DtuJboTree.populateObject(DtuJboTree.java:465)
at oracle.jbo.dt.ui.main.tree.DtuJboTree.populateContainerChildren(DtuJboTree.java:429)
at oracle.jbo.dt.ui.main.tree.DtuJboTree.populateFromContainer(DtuJboTree.java:393)
at oracle.jbo.dt.ui.main.tree.DtuJboTree.populateContainerChildren(DtuJboTree.java:414)
at oracle.jbo.dt.ui.main.tree.DtuJboTree.populateTree(DtuJboTree.java:362)
at oracle.jbo.dt.ui.main.tree.DtuJboTree.setApplication(DtuJboTree.java:118)
at oracle.jbo.dt.ui.pkg.PKSubsPanel.enter(PKSubsPanel.java:169)
at oracle.jbo.dt.ui.main.dlg.DtuWizard.selectPage(DtuWizard.java:620)
at oracle.jbo.dt.ui.pkg.PKAppWizard.selectPage(PKAppWizard.java:258)
at oracle.jbo.dt.ui.main.dlg.DtuWizard.selectPage(DtuWizard.java:595)
at oracle.jbo.dt.ui.main.dlg.DtuWizard.newMddPageSelected(DtuWizard.java:633)
at oracle.jbo.dt.ui.main.dlg.DtjMddTraversable.onEntry(DtuMddNavigable.java:255)
at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:649)
at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:630)
at oracle.ide.panels.MDDPanel.access$7000571(MDDPanel.java:86)
at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:933)
at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:803)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
at java.awt.Dialog$1.run(Dialog.java:540)
at java.awt.Dialog.show(Dialog.java:561)
at java.awt.Component.show(Component.java:1133)
at java.awt.Component.setVisible(Component.java:1088)
at oracle.jbo.dt.ui.main.dlg.DtjDialog.setVisible(DtjDialog.java:137)
at oracle.jbo.dt.ui.main.dlg.DtjMddWizardDialog.setVisible(DtuWizard.java:1922)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.jbo.dt.ui.main.dlg.DtjDialog.showDialog(DtjDialog.java:115)
at oracle.jbo.dt.ui.main.dlg.DtjMddWizardDialog.showDialog(DtuWizard.java:1881)
at oracle.jbo.dt.ui.main.dlg.DtuWizard.createMddWizard(DtuWizard.java:422)
at oracle.jbo.dt.ui.main.dlg.DtuWizard.setVisible(DtuWizard.java:276)
at oracle.jbo.dt.ui.main.dlg.DtuWizard.showDialog(DtuWizard.java:254)
at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokePackageWizard(JdxMenuManager.java:877)
at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokePackageWizard(JdxMenuManager.java:854)
at oracle.jbo.dt.ui.main.DtuMenuManager.doEditMenuAction(DtuMenuManager.java:1150)
at oracle.jbo.dt.ui.main.DtuMenuManager.doMenuAction(DtuMenuManager.java:1006)
at oracle.jbo.dt.jdevx.ui.JdxMenuManager.doMenuAction(JdxMenuManager.java:533)
at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:838)
at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:823)
at oracle.jbo.dt.jdevx.ui.JdxMenuManager.doActionPerformed(JdxMenuManager.java:391)
at oracle.jbo.dt.jdevx.ui.JdxMenuInvoker.run(JdxMenuManager.java:1076)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
I tried restarting JDeveloper but it still persists. Any help in this regard would be appreciated.
Warm Regards,
Jasmine.public WizardPage getPageAt(int index)
Returns a page by index.
Parameters:
index - the page index
Throws:
ArrayIndexOutOfBoundsException - If an invalid index was given
Try to check your implementation before the error existed. If you think the code is correct try to CLEAN your project (I mean, go to RUN then select clean). Then try to recompile. Sometimes intermittent errors appears when your code is not clean.
TIP:
* In JDEV the XML file (PageDef) is updated automatically, try to look at those files because there are times when you remove something, the XML is not properly updated (you have to clean it manually sometimes in explorer).
*The code is autogenerated when you add something, right. Sometimes the arrangement of code affects the output.
I hope this can help you somehow. God bless.
Cykun
Maybe you are looking for
-
Can I plug in my hard drive while booted on install DVD snow leopard
I got the white screen of death then unplugged my harddrive and booted from cd, then I set it to boot always from cd and after many times of turning on and off only once did I get it to boot from the DVD with the harddrive in. I wondered if I could
-
Query to get file name of field
Hi folks, I have one field in SQL table with whole file names: e.g C:\Directory1\File 1.txt C:\Drirectory2\SubDirectory1\Image 33.jpg I need one query to show only the file names: e.g File 1.txt Image 33.jpg What I need to do to get only the file na
-
OK, so I have a job application downloaded from its source in PDF format. I'd like to fill it out and save it in, say, a word document. I see no guidelines for doing this. Uploading it to Acrobat changes the format completely. Ditto with cut/paste. I
-
Different views in "Personnel Data" tab for a withdrawn personnel number
Hi, In PA20 one user can see the ticks for "Actions, Organizational Assignment & Personal Data" in "Personnel Data" tab for a personnel number which has been withdrawn. But another user can see tick only for "Organizational Assignment" in "Personnel
-
Having trouble tethering the Nikon 7000 in Lightroom 3.6
Seem to be lots of talk about tethering the D7000 but no one actually says it's working for them. I have worked through all the help here in the Adobe Community but no joy when it comes to connecting the camera. Here is a short run down of what I hav