Wierd ArrayIndexOutOfBoundsException
This one seems alright to look at but gives me an
ArrayIndexOutOfBoundsException. I can't see where I am crossing the array bounds.
/*package sathyaish.practice.utilities;
I want to see how many expressions I can append to a single for-loop
statement in Java.
for ( int i = 0; i < args.length; i++, sb.append( args[i] ),
sb.append(delimiter));
public class lfl /* long for loop */
public static void main(String[] args)
if ( args.length == 0 )
System.out.println("Usage lfl arg1 [arg2 [arg3...]]");
java.lang.StringBuffer sb = new StringBuffer();
for ( int i = 0; i < args.length; i++, sb.append( args[i] ),
sb.append(" "));
System.out.println(sb.toString());
Test:
Prompt> java lfl Sathyaish is a good boy
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
at lfl.main(lfl.java:14)
for ( int i = 0; i < args.length; i++, sb.append(
args[i] ), sb.append(" "));
/code]
That line sucks big time. the sb.appends should be
in the body of the loop.
Kaj
Ps. @Op. Please don't try to be clever and write code
that is hard to read and maintain. There are no
benefits in trying to write it like you have done.Yeah, I tried to edit my answer to say the same thing. Unfortunately I failed. The line was so out of the ordinary, I jumped to my first conclusion, and completely missed the actual problem.
~Tim
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;
-
2nd monitor through mini-dvi to dvi gives wierd tinge around window
My Samsung monitor, which before using with my new Mac, produced a beautiful picture. Now that I just hooked it up with the mini-dvi to dvi toggle, any window that shows up on the Samsung has this sort of wierd glow,tinge surrounding the whole window. Like an aura. I tried to tweak the profile ,brightness etc to no avail. I think the toggle I bought was from Belkin )looked exactly the same and much less expensive than the Apple product).I doubt it that is the culprit. Anything that I can do to get a crisp and true reproduction of whatever I might place on that matter? Settings that I should look at? Or should I , in general be not expecting anything so great by using the second monitor. Thanks
Message was edited by: StokerMy apologies,,the product is Dynex http://www.futureshop.ca/catalog/proddetail.asp?logon=&langid=EN&sku_id=0665000F S10090979&catid=25607
and it is slightly under Apples price (Don't know why salesman gave me somce ridiculous $40 plus price!, Wait a minute,,I just went to the same site and it mentions a price of $52 !! http://www.futureshop.ca/catalog/proddetail.asp?logon=&langid=EN&sku_id=0665000F S10084484&catid=12503 are they nuts? -
Since updating my iPad 2 to ios8, it safari has been slow and crashing and some of the apps acting wierd. The password app doesn't work at all so had to find another way of retrieving all my passwords. Very very dissapointing. It appears from these forums that a lot of people are having the same problems wit this latest update.
Hi erastyle,
Actually the Licensing information for the package is missing hence it is not launching any applications. You need to Reserialize the products using APTEE which you can find it on the Machine where you have created the package. If you dont have the access to that Machine then please download and install Creative Cloud Packager and it will download APTEE in the below mentioned location.
Windows:
C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\CCP\utilities
Once downloaded please follow this KB article to use the Tool.
http://helpx.adobe.com/creative-cloud/packager/provisioning-toolkit-enterprise.html
Please let us know if it helps.
Regards,
Abhijit -
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()); -
Wierd Behaviour of IF then ELSE standard function
Hi All,
I am facing a very wierd behaviour of the IF then ELSE function in a mapping.
Condition to be checked: if GDS_id = 1, then (condition 1 - RFC lookup ) ElSE (condition 2 - JDBC Lookup followed by an RFC lookup).
Issue: The input payload is 0-unbounded with a possibility of a different GDS_id values.
Case 1 :
As shown below, in case the input payload has 3 repitions of the RECORD, with the Fit set having GDS_ID = 01, the mapping runs perfectly fine . All the If then Else branches are getting executed.
Case 2:
Where as iF the first GDS_ID != 01 (not 01) , thenthe target value is not getting populated properly .
I have tried all the possibilities and combinations but i am unable to resolve this. Please help.
Attached the screen shot of the message mapping, and sample test results of both the use cases.
For instance, below is a sample payload:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:mt_EMERGO_common xmlns:ns0="http://sabreEMERGO_common.com">
<Record>
<booking_date>08012013</booking_date>
<iata_code>2325540</iata_code>
<gds_id>01</gds_id>
<pos_code>RD3A</pos_code>
<gds_code>01</gds_code>
<net_booking>11</net_booking>
</Record>
<Record>
<booking_date>08012013</booking_date>
<iata_code>2325540</iata_code>
<gds_id>02</gds_id>
<pos_code>54S8 </pos_code>
<gds_code>02</gds_code>
<net_booking>11</net_booking>
</Record>
</ns0:mt_EMERGO_common>Hi All,
I have changed the message mapping like below. Even though i am not getting my target filed as value. As per my requirement if GDS_ID=01 then perform the RFC lookup and pass the value to target fields KUNNR and else GDS_ID=02 then perform the JDBC LOOKUP and JDBC LOOKUP output to RFClookup .RFC LOOKUP output pass to my target field KUNNR.
Result of my mapping is 1st record only populated KURNNR in Target side and 2nd record not showing as KUNNR filed in target side .But I have taken look on display queue in If then else out showing 2 values but it is not passing to target filed.
Please provide any suggestion to resolve this issue.
Please find the mapping logic:
Please find the test screen:
Please find the test Data:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:mt_EMERGO_common xmlns:ns0="http://sabreEMERGO_common.com">
<Record>
<booking_date>08012013</booking_date>
<iata_code>2325540</iata_code>
<gds_id>02</gds_id>
<pos_code>54S8 </pos_code>
<gds_code>AA</gds_code>
<net_booking>11</net_booking>
</Record>
<Record>
<booking_date>08012013</booking_date>
<iata_code>2325540</iata_code>
<gds_id>01</gds_id>
<pos_code>RD3A</pos_code>
<gds_code>AA</gds_code>
<net_booking>11</net_booking>
</Record>
</ns0:mt_EMERGO_common>
Regards,
Ramesh -
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 .
-
my computer is acting wierd saying it cannot start up properly, I am getting wrried that it may crash, how do I get all my itunes,..music..movies..pictures etc for all of my devices on to another computer? is Icloud only for music? what about phone contacts
There are a few methods described on this page for how to copy your iTunes content between computers : http://support.apple.com/kb/HT4527
For syncing your devices to that new computer, these two articles might be of use
syncing with a new computer : https://discussions.apple.com/docs/DOC-3141
recovering content from a device : https://discussions.apple.com/docs/DOC-3991
If the photos are those that you've synced to the device from your computer then you will need to copy the directory that they are in on your computer. If they are photos that you've copied from your device to your computer theg you can also either copy their directory, or (if they are still on it) re-copy them from the device onto the new computer (photos to computer). -
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? -
I updated an iPod touch, an iPad 2, and an iPhone 4 to iOS 6, and all of them now will not connect to WiFi. They all give this wierd 404 error page from Apple and insist that I need to login to the network. What's the fix? None of the recommended fixes work in any of these devices. Reset device, reset network, renew lease, etc. None of them work.
Does the iPod work OK?
Does it charge when connect to the computer?
Does it appear in My Computer?
Look at the dock connector on the iPod. Compare with the iPod that does work/connect.
I suspect you have a 2G iPod. Those can only go to iOS 4.2.1
http://support.apple.com/kb/HT1353#iPod_touch_late2009
iPod touch (3rd generation)
iPod touch (3rd generation) features a 3.5-inch (diagonal) widescreen multi-touch display and 32 GB or 64 GB flash drive. You can browse the web with Safari and watch YouTube videos with Wi-Fi. You can also search, preview, and buy songs from the iTunes Wi-Fi Music Store on iPod touch.
The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318. -
Wierd problem with web start in windows 7
I have a wierd problem with my web start app in windows 7, it just hang it self. it work fine in windows XP and Vista.
The wierd thing is that i can open the app but when i press on a specific button that will make a jlabel present a .png image everthing crash. why do i get this problem now? when i start the app, i load some pic i jlabels and that seems to work fine, but when i do it under the exection it seems to crash, why?
Should i do something different to make the app work in windows 7?
I hope someone can help me out!!You should:
a) open the console (java control panel, advanced options) and see the stackTrace (if any). If it's not there check for swallowing.
b) post a code snippet, to at least show how and where you retrieve the png. Possibly a SSCCE.
c) check if this happens also running as a standalone app (may be more Swing-related than JWS-related).
Bye.
Maybe you are looking for
-
How to fix freeze/lock ups when opening Burn tab under iTunes Preferences
Played around the past few nights with two PC's with the same problem after upgrading to iTunes 6.0. Would open burn tab under preferences and promptly lock up iTunes. Thought it was a driver problem, etc... Thanks to Toonz, here is what solved it si
-
How do I MERGE the purchases of two iTunes accounts into one Family Share?
We have purchased many apps via two iTunes accounts. How do we merge these purchases into on Family Share account
-
Hello! Please help me with this problem. I need to preserve the values I have entered in a textbox even if I shifted from one page to another, but currently, if I did some changes on the current page(ex: page 2) and I shifted to another page(page 3),
-
Need Help On Sound Blaster Audigy Va
hi! i wanted to buy sound blaster audigy value but in its system requirements it says that the PCI has to be 2. compliant or higher i have P3 D85eea2 baord does my boards PCI are 2. compiant. Please reply back soon cause i need to buy that card soon.
-
Make subform visible by making a selection in a dropdown
I am trying to make a subform visible if the user select yes from a dropdown. I have the following setup on the form Subfom1 -Dropdown with 3 entries, Select, No Yes. Subform2 – Text field for users to enter test The code I have been trying to use is