Question about java.lang.long
I have a very basic understanding problem:
long a = (5*24*60*60*1000);
long b = (30*24*60*60*1000);
System.out.println(a);
System.out.println(b);
results in:
[java] 432000000
[java] -1702967296
how can this be? I would expect the second one to be six times the first result, i.e. 2592000000
I would highly appreciate any hints on what my misunderstanding is based on ...
In the meantime I found it: Its in the language specification, $3.10.1 Integer Literals:
An integer literal is of type long if it is suffixed with an ASCII letter L or l (ell); otherwise it is of type int (�4.2.1). The suffix L is preferred, because the letter l (ell) is often hard to distinguish from the digit 1 (one).
Similar Messages
-
Question about java.lang.UnsatisfiedLinkError
When I try connect to database using oci8 driver, I get this error. I try work with different driver versions 8.1.5, 8.1.7, java can't find different functions, but kind of error remain that same. Does anybody know, how fix this bug?
PS
Sorry about my ugly English.
Thanks
Max
nullUnsatsfied Link error means that the requiered libraries are not in the correct place. This is clearly mentioned in the documentation at : http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83724/getsta2.htm
It depends on which OS you are using so I can not tell you... you will have to read and hopefully your probelm will be solved.
By the way, I used the OCI and pure JDBC drivers on NT platform and found that pure driver gives better performance than oci driver, contrary to what many people say and it is written in the docs.
It would be nice to know your experience with OCI driver. -
Question about "java.lang.ThreadLocal".
public class PrinterUser extends Thread {
private Printer printer;
private String content;
private String user;
public PrinterUser(Printer printer,String content,String user) {
this.printer = printer;
this.content = content;
this.user = user;
void print() {
printer.print(content);
public void run() {
print();
public static void main(String[] args) {
Printer p = new Printer();
ThreadLocalPrinter tlp = new ThreadLocalPrinter();
new PrinterUser(p,"User A is printing...","A").start();
new PrinterUser(p,"User B is printing...","B").start();
new PrinterUser(tlp,"User C is printing..." + tlp.get(),"C").start();
new PrinterUser(tlp,"User D is printing..." + tlp.get(),"D").start();
class Printer {
synchronized void print(String content) {
System.out.print("Preparing...");
try {
Thread.sleep(2000);
catch(InterruptedException e) {
System.out.println(e);
System.out.println(content);
synchronized void printErrors() {
System.out.println("Errors...");
class ThreadLocalPrinter extends Printer {
private static int nextSerialNum = 0;
private static ThreadLocal serialNum = new ThreadLocal() {
protected synchronized Object initialValue() {
return new Integer(nextSerialNum++);
public static int get() {
return ((Integer)serialNum.get()).intValue();
}Why the result is :
Preparing...Preparing...User A is printing...
Preparing...User C is printing...0
Preparing...User B is printing...
User D is printing...0
But not
User C is printing...0
User D is printing...1
?I seldom use ThreadLocal but a standard usage might be ...
public class PrinterUser extends Thread {
private ThreadLocalPrinter printer;
private String content;
private String user;
public PrinterUser(ThreadLocalPrinter printer,String content,String user) {
this.printer = printer;
this.content = content;
this.user = user;
void print() {
printer.print(content);
public void run() {
print();
public static void main(String[] args) {
ThreadLocalPrinter tlp = new ThreadLocalPrinter();
PrinterUser puC = new PrinterUser(tlp, "User C is printing...", "C");
PrinterUser puD = new PrinterUser(tlp, "User D is printing...", "D");
puC.start();
puD.start();
abstract class Printer {
synchronized void print(String content) {
System.out.println("Preparing... " + getSerial());
try {
Thread.sleep(2000);
catch(InterruptedException e) {
System.out.println(e);
System.out.println(content);
abstract int getSerial();
synchronized void printErrors() {
System.out.println("Errors...");
class ThreadLocalPrinter extends Printer {
private static int nextSerialNum = 0;
private static ThreadLocal serialNum = new ThreadLocal() {
protected synchronized Object initialValue() {
return new Integer(nextSerialNum++);
public static int get() {
return ((Integer)serialNum.get()).intValue();
int getSerial(){
return get();
} -
Constructor<T> getConstructor(Class... parameterTypes)
If i want to get the non-parameter Constructor?
How can i do?Hint: varargs (Class...) can take any number of arguments, including zero.
-
Question about "java.lang.Object.equals()".
public class TestEquals {
private int a;
private int b;
public TestEquals(int a,int b) {
setA(a);
setB(b);
public int getA() {
return a;
public void setA(int a) {
this.a = a;
public int getB() {
return b;
public void setB(int b) {
this.b = b;
public static void main(String[] args) {
TestEquals te01 = new TestEquals(1,2);
TestEquals te02 = new TestEquals(1,2);
System.out.println("te01 equals to te02: " + te01.equals(te02));
te01.setA(2);
System.out.println("te01 equals to te02: " + te01.equals(te02));
}The result is:
te01 equals to te02: false
te01 equals to te02: false
Why the first case is false?You didn't override Object.equals() in your TestEquals class. So, you are calling Object.equals(), which just compares reference values. You need to write your own equals() method (presumably, make sure te01.a==te02.a and te01.b==te02.b). Depending on what you do with your objects, you would want to override Object.hashCode(), too.
-
Question about Java's HttpServer: Threading? Backlog?
Hello,
I have two questions about Java's HttpServer (com.sun.net.httpserver). From the JavaDoc:
>
Management of threads can be done external to this object by providing a Executor object. If none is provided a default implementation is used.
>
How can I get information about the default implementation in 1.6.0_13? Do you know the behavior? From my observations, the default implementation uses no Threads, meaning every request is handled in the same Thread, this results in handling the requests to the HttpServer one after another.
Is this right?
The second question is about this, also from the JavaDoc:
>
When binding to an address and port number, the application can also specify an integer backlog parameter. This represents the maximum number of incoming TCP connections which the system will queue internally. [...]
>
When setting the backlog to -1, it uses the systems default backlog. How can I determine the systems default backlog? Can some lines of Java code reveal it (there is no getBeacklog() method)? Or is it up to the Operating System (we use Redhat Linux)?
Thanks a lot for your help!
Regards,
TimoHow can I determine the systems default backlog?You can't. There is no API for that even at the C level.
Can some lines of Java code reveal itNo.
Or is it up to the Operating System (we use Redhat Linux)?Yes. Linux provides a large default. It seems to be at least 50 on most platforms. This is not something you should be worrying about. -
Three questions about Java and Ftp
Hello, i've the following questions about Java and Ftp:
1- .netrc file is in $HOME directory but i can't access to this directory from java code. The following line producesan Exception (directory doesn't exists)
FileWriter file = new FileWriter ("$HOME/.netrc");
2- .netrc file must have the following permissions: -rw- --- --- but when i create the .netrc file the following permissions are on default: -rw- r-- r--, how can i change this permissions? (In java code, i can't use chmod.....)
3- Are there any way to pass parameters to a .netrc file? If i get to do this i needn't change the permissions because i can't modify or create/destroy this file.
Thanks in advanced!!!
Kike1- .netrc file is in $HOME directory but i can't
access to this directory from java code. The
following line producesan Exception (directory
doesn't exists)
FileWriter file = new FileWriter ("$HOME/.netrc");$HOME would have to be replaced by a shell, I don't
think you can use it as part of a legal path.
Instead, use System.getProperty("user.home");
Ok, thanks
2- .netrc file must have the followingpermissions:
-rw- --- --- but when i create the .netrc file the
following permissions are on default: -rw- r--r--,
how can i change this permissions? (In java code,i
can't use chmod.....)Yes, you can: Runtime.exec("chmod ...");
I need to use estrictly the .netrc with -rw- --- --- permissions
Yes, i can use Runtime.exec ("chmod ..."); but i don't like very much this solution because is a slow solution, am i right?
3- Are there any way to pass parameters to a.netrc
file? If i get to do this i needn't change the
permissions because i can't modify orcreate/destroy
this file.I don't think so. Why do you need the .netrc file in
Java at all? Writing a GUI frontend?I want to use automatic ftp in a java program and FTP server, the files and path are not always the same, so i can:
- modify .netrc (for me is the complex option)
- destroy and create a new .netrc (is easier but i have permissions problem)
- use .netrc with parameters but i haven't found any help about it
Thanks for your prompt reply!!!!
Kike -
Cmp-field of type 'java.lang.Long' does not have a no-arg constructor
Hi,
I am a newer of Oracle9i JDeveloper and I am learning it by "Oracle9i JDeveloper Reviewers Guide". I did the sample as the guideline in "Oracle9i JDeveloper Reviewers Guide". But when I tried to run the sample I made, the error : "cmp-field of type 'java.lang.Long' does not have a no-arg constructor which is needed for properties/fields based mapping" was appeared.
Any one know how to correct it?
Thanks in advance.
Best Regards,
Double
Auto-deploying file:/E:/JDev9i/jdev/Workspace2/J2EE/classes/ (No previous deployment found)...
Error compiling E:\JDev9i\jdev\Workspace2\J2EE\classes: cmp-field of type 'java.lang.Long' does not have a no-arg constructor which is needed for properties/fields based mapping
Oracle9iAS (9.0.3.0.0) Containers for J2EE initializedI'm getting the same thing. The message doesn't indicate which of the four beans I have that use type Long is encountering this. I suspect that since it says 'constructor' it is one of the two which uses an Long for a primary key.
Yet another OC4J bug,
Michael A. Moran -
Jdeveloper 9i beta : Bc4j : Sequence : java.lang.long error
I am using sequence to genetrate a auto number but it gives an
error of java.lang.long
Error:
path="" :java.lang.Long
javax.servlet.jsp.JspException: java.lang.Long
int oracle.jbo.html.jsp.datatags.RowTag.doStartTag()
void site1.DataEditComponent._jspService
(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service
(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.app.JspApplication.dispatchRequest
(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void oracle.jsp.JspServlet.doDispatch
(oracle.jsp.app.JspRequestContext)
void oracle.jsp.JspServlet.internalService
(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void oracle.jsp.JspServlet.service
(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service
(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void org.apache.tomcat.core.ServletWrapper.doService
(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
void org.apache.tomcat.core.Handler.service
(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
void org.apache.tomcat.core.ServletWrapper.service
(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
void
org.apache.tomcat.facade.RequestDispatcherImpl.doInclude
(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void
org.apache.tomcat.facade.RequestDispatcherImpl.access$1
(org.apache.tomcat.facade.RequestDispatcherImpl,
javax.servlet.ServletRequest, javax.servlet.ServletResponse)
java.lang.Object
org.apache.tomcat.facade.RequestDispatcherImpl$2.run()
java.lang.Object
java.security.AccessController.doPrivileged
(java.security.PrivilegedExceptionAction)
void
org.apache.tomcat.facade.RequestDispatcherImpl.include
(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.runtime.OraclePageContext.include
(java.lang.String)
int oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag
void site1.DeptView__Edit._jspService
(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service
(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.app.JspApplication.dispatchRequest
(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void oracle.jsp.JspServlet.doDispatch
(oracle.jsp.app.JspRequestContext)
void oracle.jsp.JspServlet.internalService
(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void oracle.jsp.JspServlet.service
(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service
(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void org.apache.tomcat.core.ServletWrapper.doService
(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
void org.apache.tomcat.core.Handler.service
(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
void org.apache.tomcat.core.ServletWrapper.service
(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
void
org.apache.tomcat.core.ContextManager.internalService
(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
void org.apache.tomcat.core.ContextManager.service
(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
void
org.apache.tomcat.service.http.HttpConnectionHandler.processConne
ction(org.apache.tomcat.service.TcpConnection, java.lang.Object
void org.apache.tomcat.service.TcpWorkerThread.runIt
(java.lang.Object[])
void
org.apache.tomcat.util.ThreadPool$ControlRunnable.run()
void java.lang.Thread.run()
path="" :java.lang.Long
Code I have used :
SequenceImpl s = new SequenceImpl("deptsequence",getDBTransaction
Integer next = (Integer)s.getData();
int i = next.intValue();
setDeptno(new Number(i));
This error does not happen if i use a hard coded value
eg:
setDeptno(new Number(10));
this code works fineHi Manoj,
In Jdeveloper 9i, sequence.next() is not castable to an Integer.
Try casting it to a Long (Long has an intValue() function as
well).
Hope this helps,
Avrom -
Urgent: automatic key generation and java.lang.Long
Hi,
I keep getting the following error:
In RDBMS CMP bean 'UserEntity', when Automatic Key Generation is enabled, the
Primary Key class must be java.lang.Integer.
I need to have Long as primary key, how do I solve it?
Thanks,
A.Use WebLogic Server 8.1
java.lang.Long is supported in WLS 8.1
thanks,
Deepak
"iggy" <[email protected]> wrote:
>
Hi,
I keep getting the following error:
In RDBMS CMP bean 'UserEntity', when Automatic Key Generation is enabled,
the
Primary Key class must be java.lang.Integer.
I need to have Long as primary key, how do I solve it?
Thanks,
A. -
Hi,
I have written a java system to read and analyse log files. I wrote the code and tested it on a windows xp machine with the latest 1.4.2 SDK. It all worked fine, tested and debuged it. Finally moved it onto a Linux Red Hat 9 machine, where it will live from now on, with the same SDK.
Expected it to compile fine, but it has thrown 2 errors. Here they are :
main.java:174: incompatible types
found : java.lang.Long
required: long
long boutx = Long.valueOf(bout);
^
main.java:184: incompatible types
found : java.lang.Long
required: long
long binx = Long.valueOf(bin);
^
2 errors
bout and bin are Strings that contain a large number. int is not big enough to hold the number. What i am tryign to do is convert the String to a long so i can divide it by 1000000 then convert it back to a Strign again.
Like i said, it worked fine on Windows XP. I am at a loss on what to do to solve this.
Thanks :)ok, im fairly new to java so, i made a mistake. BUT, it works in XP for sure, no errors. I did use BlueJ to compile it, dont knwo if that makes any difference. But it compiles and get teh correct values lol.
OK, so long is a primitive right? and Long.valueOf() is a object that stores a primitive value long ? The way i thought it worked was teh Object Long just worked out the long value of a String. Is thsi correct or am i thinkign wrong?
I have read the ********** API a few times :) Thats where i got valueOf() friom. I just didnt understand it right. :)
Any sugestions on how i should be going abotu this?
Thanks for you response. -
Question About Java Threads and Blocking
I'm helping someone rehost a tool from the PC to the Sun. We're using the Netbeans IDE and the Java programming language. I took a Java course several years ago, but need some help with something now. We're developing a front-end GUI using Swing to allow users to select different options to perform their tasks. I have a general question that will apply to all cases where we run an external process from the GUI. We have a "CommandProcessor" class that will call an external process using the "ProcessBuilder" class. I'm including the snippet of code below where this happens. We pass in a string which is the command we want to run. We also instantiate a class called "StreamGobbler" my coworker got off the Internet for redirecting I/O to a message window. I'm also including the "StreamGobbler" class below for reference. Here's the "CommandProcessor" class:
// Test ProcessBuilder
public class CommandProcessor {
public static void Run(String[] cmd) throws Exception {
System.out.println("inside CommandProcessor.Run function...");
Process p = new ProcessBuilder(cmd).start();
StreamGobbler s1 = new StreamGobbler("stdin", p.getInputStream());
StreamGobbler s2 = new StreamGobbler("stderr", p.getErrorStream());
s1.start();
s2.start();
//p.waitFor();
System.out.println("Process Returned");
Here's the "StreamGobbler" class:
import java.lang.*;
import java.io.*;
// Attempt to make the output of the process go to the message window
// as it is produced rather that waiting for the process to finish
public class StreamGobbler implements Runnable {
String name;
InputStream is;
Thread thread;
public StreamGobbler (String name, InputStream is){
this.name = name;
this.is = is;
public void start(){
thread = new Thread (this);
thread.start();
public void run(){
try{
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
while (true){
String s = br.readLine();
if (s == null) break;
System.out.println(s);
//messageWindow.writeToMessageArea("[" + name + "]" + s);
is.close();
catch(Exception ex){
System.out.println("Problem reading stream" + name + "...:" + ex);
ex.printStackTrace();
The "CommandProcessor" class calls two (2) instances of the "StreamGobbler" class, one for "stdin" and one for "stderr". My coworker discovered these are the 2 I/O descriptors that are needed for the external command we're running in this case. We're actually called the Concurrent Versions System (cvs) command from the GUI. Here's what we need it to do:
We want to display the output real-time as the external process is executing, but we want to block any actions being performed on the GUI itself until the process finishes. In other words, we want to show the user any generated output from the process, but don't want to alllow them to perform any other actions on the GUI until this process has finished. If we use the "waitFor()" function associated with a process, it blocks all external process output until the process has completed and then spews all the output to the screen all at once. That's NOT what we want. Also, if we don't use the "waitFor()" function, the code just continues on as it should, but we don't know how to block any actions on the GUI until this process has finished. My coworker tried the following code, but it also blocked any output until the process had finished:
while (s1.thread.isAlive() || s2.thread.isAlive())
// We really don't do anything here
I'm pretty sure we have to use threads for the output, but how do we instantly show all output and block any GUI actions?
Thank you in advance for your help!You're talking about a GUI, but there's nothing in that code which is putting events into the GUI update thread. You also say that nothing happens to the GUI until the CommandProcessor.Run() method returns if you wait for the process.
This implies that you're calling CommandProcessor.Run() in an ActionListener. This will block the GUI thread until it completes.
I was going to explain what to do, but a quick Google informed me that there's a new class which is designed to help in these situations SwingWorker (or as a [separate library|https://swingworker.dev.java.net/] if you're not up-to-date yet). -
Questions about Java Servlets and JSP
Hi,
I'm a confident Java Programmer (and really enjoy using this language) but am very new to Java servlets and Java Server Pages.
I have previously worked with Perl on my web projects (simple 'league' style voting pages). I read in my 'Core Java' book that I should no longer use perl or even cgi.
I need to know more about Java servlets and Java Server Pages so I can make the switch to a 'real' programming language.
I have a few questions:
How should I start to learn JS and JSP?
How applicable will the java knowlegdge I have already be?
Are JSP common on the world wide web?
What tools do I need to start? (I currently develop in JBuilder and have Java 1.4.1 Standard Edition)
Is it likey my web host (and others) will support JSP?
Thank-you very much for helping a novice get started,
Regards,
PaulHi, Steve ...has to be frustrating! But do not despair.
Let's suppose the servlet it's named MyServlet on package org.servlets
WEB-INF should look:
WEB-INF
classes
org
servlets
MyServlet.class
web.xml
web.xml file should have this two declarations:
<web-app>
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>org.servlets.MyServlet</servlet-class>
</servlet>
<!-- other servlets -->
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/MyServlet</url-pattern>
</servlet-mapping>
<!-- other servlets mappings -->
</web-app>Now, once the container starts (Tomcat?), you should be able to see that servlet in:
http://localhost:8080/[my-context/]MyServletAnd what my-context is? The web application context. This string should be empty if your're deploying to the root context, otherwise should the context name. In Tomcat, deploying to root context defaults to using webapps/ROOT.
Sorry for my English, but I felt the need to answer your request. I hope it helps despite my writing. -
ADF: What do I do about java.lang.ArrayIndexOutOfBoundsException errors?
Hi,
I have an application that has suddenly started giving java.lang.ArrayIndexOutOfBoundsException errors when I run it. The application only has two pages in it at the moment; after it is started it runs okay to begin with, but if I go from the first to the second page and back again, these errors start popping up whenever I try to do anything (like selecting a row in a table, or trying to log out of the application. The errors don't SEEM to be directly related to any recent changes in the application, but it's hard for me to tell.
The integrated weblogicserver log has this to say (from just one click on the page):
<Utils><reportException> 0
java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.jbo.uicli.binding.JUCtrlHierBinding.findNodeByDCEPath(JUCtrlHierBinding.java:705)
at oracle.adf.model.dvt.binding.common.CommonBinding.findNodeByDCEPath(CommonBinding.java:130)
at oracle.jbo.uicli.binding.JUCtrlHierBinding.resolveBindingForDCE(JUCtrlHierBinding.java:635)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.resolveBindingForDCE(JUCtrlHierNodeBinding.java:861)
at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.resolveBinding(JUCtrlValueBinding.java:4045)
at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.getChangeType(JUCtrlValueBinding.java:4062)
at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.logDataChangeEvent(FacesCubicBinding.java:361)
at oracle.adfinternal.view.faces.dvt.model.binding.gauge.FacesGaugeBinding.dataChanged(FacesGaugeBinding.java:96)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.createAndNotifyDCE(JUCtrlValueBinding.java:305)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.createAndNotifyDCE(JUCtrlHierNodeBinding.java:2379)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateNavigated(JUCtrlValueBinding.java:277)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.updateNavigated(JUCtrlHierNodeBinding.java:2152)
at oracle.jbo.uicli.binding.JUIteratorBinding.navigated(JUIteratorBinding.java:300)
at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:264)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3639)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3610)
at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3393)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1566)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3384)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:8836)
at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:767)
at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:667)
at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:475)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4372)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3387)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3371)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3371)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3222)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2791)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:21)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:364)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
<Utils><buildFacesMessage> ADF: Adding the following JSF error message: Uventet undtagelse fundet: java.lang.ArrayIndexOutOfBoundsException, msg=0
oracle.jbo.JboException: JBO-29000: Uventet undtagelse fundet: java.lang.ArrayIndexOutOfBoundsException, msg=0
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:404)
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:466)
at oracle.adf.model.dvt.binding.transform.Utils.reportException(Utils.java:538)
at oracle.adf.model.dvt.binding.transform.Utils.reportException(Utils.java:551)
at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.logDataChangeEvent(FacesCubicBinding.java:401)
at oracle.adfinternal.view.faces.dvt.model.binding.gauge.FacesGaugeBinding.dataChanged(FacesGaugeBinding.java:96)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.createAndNotifyDCE(JUCtrlValueBinding.java:305)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.createAndNotifyDCE(JUCtrlHierNodeBinding.java:2379)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateNavigated(JUCtrlValueBinding.java:277)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.updateNavigated(JUCtrlHierNodeBinding.java:2152)
at oracle.jbo.uicli.binding.JUIteratorBinding.navigated(JUIteratorBinding.java:300)
at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:264)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3639)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3610)
at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3393)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1566)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3384)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:8836)
at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:767)
at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:667)
at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:475)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4372)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3387)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3371)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3371)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3222)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2791)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:21)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:364)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.jbo.uicli.binding.JUCtrlHierBinding.findNodeByDCEPath(JUCtrlHierBinding.java:705)
at oracle.adf.model.dvt.binding.common.CommonBinding.findNodeByDCEPath(CommonBinding.java:130)
at oracle.jbo.uicli.binding.JUCtrlHierBinding.resolveBindingForDCE(JUCtrlHierBinding.java:635)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.resolveBindingForDCE(JUCtrlHierNodeBinding.java:861)
at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.resolveBinding(JUCtrlValueBinding.java:4045)
at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.getChangeType(JUCtrlValueBinding.java:4062)
at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.logDataChangeEvent(FacesCubicBinding.java:361)
... 68 more
(the actual log entry is about three times longer than the above, but I had to shorten it in order to be allowed to post this message).
I don't really know how to use this information. It seems to point to internal packages, and doesn't really tell me anything about what is actually wrong, or where (that I can see).
How can I find out what the real problem is, and what has caused it?
Regards,
AndreasHi,
I have an application that has suddenly started giving java.lang.ArrayIndexOutOfBoundsException errors when I run it. The application only has two pages in it at the moment; after it is started it runs okay to begin with, but if I go from the first to the second page and back again, these errors start popping up whenever I try to do anything (like selecting a row in a table, or trying to log out of the application. The errors don't SEEM to be directly related to any recent changes in the application, but it's hard for me to tell.
The integrated weblogicserver log has this to say (from just one click on the page):
<Utils><reportException> 0
java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.jbo.uicli.binding.JUCtrlHierBinding.findNodeByDCEPath(JUCtrlHierBinding.java:705)
at oracle.adf.model.dvt.binding.common.CommonBinding.findNodeByDCEPath(CommonBinding.java:130)
at oracle.jbo.uicli.binding.JUCtrlHierBinding.resolveBindingForDCE(JUCtrlHierBinding.java:635)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.resolveBindingForDCE(JUCtrlHierNodeBinding.java:861)
at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.resolveBinding(JUCtrlValueBinding.java:4045)
at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.getChangeType(JUCtrlValueBinding.java:4062)
at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.logDataChangeEvent(FacesCubicBinding.java:361)
at oracle.adfinternal.view.faces.dvt.model.binding.gauge.FacesGaugeBinding.dataChanged(FacesGaugeBinding.java:96)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.createAndNotifyDCE(JUCtrlValueBinding.java:305)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.createAndNotifyDCE(JUCtrlHierNodeBinding.java:2379)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateNavigated(JUCtrlValueBinding.java:277)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.updateNavigated(JUCtrlHierNodeBinding.java:2152)
at oracle.jbo.uicli.binding.JUIteratorBinding.navigated(JUIteratorBinding.java:300)
at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:264)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3639)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3610)
at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3393)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1566)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3384)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:8836)
at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:767)
at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:667)
at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:475)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4372)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3387)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3371)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3371)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3222)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2791)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:21)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:364)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
<Utils><buildFacesMessage> ADF: Adding the following JSF error message: Uventet undtagelse fundet: java.lang.ArrayIndexOutOfBoundsException, msg=0
oracle.jbo.JboException: JBO-29000: Uventet undtagelse fundet: java.lang.ArrayIndexOutOfBoundsException, msg=0
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:404)
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:466)
at oracle.adf.model.dvt.binding.transform.Utils.reportException(Utils.java:538)
at oracle.adf.model.dvt.binding.transform.Utils.reportException(Utils.java:551)
at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.logDataChangeEvent(FacesCubicBinding.java:401)
at oracle.adfinternal.view.faces.dvt.model.binding.gauge.FacesGaugeBinding.dataChanged(FacesGaugeBinding.java:96)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.createAndNotifyDCE(JUCtrlValueBinding.java:305)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.createAndNotifyDCE(JUCtrlHierNodeBinding.java:2379)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateNavigated(JUCtrlValueBinding.java:277)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.updateNavigated(JUCtrlHierNodeBinding.java:2152)
at oracle.jbo.uicli.binding.JUIteratorBinding.navigated(JUIteratorBinding.java:300)
at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:264)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3639)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3610)
at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3393)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1566)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3384)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:8836)
at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:767)
at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:667)
at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:475)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4372)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3387)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3371)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3371)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3222)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2791)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:21)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:364)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.jbo.uicli.binding.JUCtrlHierBinding.findNodeByDCEPath(JUCtrlHierBinding.java:705)
at oracle.adf.model.dvt.binding.common.CommonBinding.findNodeByDCEPath(CommonBinding.java:130)
at oracle.jbo.uicli.binding.JUCtrlHierBinding.resolveBindingForDCE(JUCtrlHierBinding.java:635)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.resolveBindingForDCE(JUCtrlHierNodeBinding.java:861)
at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.resolveBinding(JUCtrlValueBinding.java:4045)
at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.getChangeType(JUCtrlValueBinding.java:4062)
at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.logDataChangeEvent(FacesCubicBinding.java:361)
... 68 more
(the actual log entry is about three times longer than the above, but I had to shorten it in order to be allowed to post this message).
I don't really know how to use this information. It seems to point to internal packages, and doesn't really tell me anything about what is actually wrong, or where (that I can see).
How can I find out what the real problem is, and what has caused it?
Regards,
Andreas -
I have a question here that I cant seem to figure out.
I would really appreciate it if someone would help me out with the answer. I just got started learning Java and have a question:
Suppose list is an array of five components of the type int. What is stored in list after the following Java code executes?
for(int index = 0; index < 5; index++)
list(index) = 2 * index + 5;
if(index % 2 ==0)
list[index] = list[index] -3;
I would really appreiciate it if someone could help me out with this problem.3
7
7
11
11
is the output
For
import java.lang.reflect.Array;
class testing {
public static void main(String args[]) {
int[] list =(int[])Array.newInstance(int.class, 8);
for(int index = 0; index < 5; index++)
list[index] = 2 * index + 5;
if(index % 2 ==0)
list[index] = list[index] -2;
System.out.println(list[index]+" ");
Maybe you are looking for
-
we have try to uninstall client and remove the ccm namespace from wmi, and reisntall MP, no luck below log from mpmsi.log.lasterror === Verbose logging started: 8/27/2014 20:50:23 Build type: SHIP UNICODE 5.00.9600.00 Calling process: H:\Program F
-
I have had this problem before but apple didnt know how to fix the problem so they replaced the phone. I plugged my Iphone into the computer and went into Itunes and restored the phone because it wasnt working properly. it saved my data and then when
-
Upgrading 10.3.9 to Leopard on Dual 2.5 G5
Hi, Currently use a Dual 2.5 GHz PowerPC G5 with OS 10.3.9 For the moment I have 1.5 GB Memory 24' Cinema HD Display Samtron 94B Display I use it essentialy with Final Cut Pro Studio HD, early edition which gives me Final Cut Pro v. 5.0.4 I also use
-
I keep getting an internet connect error. I'm connecting (as I always have), using the AirPort Extreme. All of a sudden, this message is popping up every so often stating that it cannot connect becuase I haven't entered a phone number.
-
I have a 4 year old MacPro with a 2TB Hard drive. I did a clean install of OS 10.7 and then immediately attempted to encrypt the boot drive with FileVault 2. A Key is generated and then the computer performs a restart like all my other Lion compute