Dynamic IO throws java.io.FileNotFound exception
Hi, I have the following class ( a prototype) which I want to use to display the contents of any file. I plan to work on this more so it puts it onto a Panel in a different section to the input, but bear with me.
When I enter a file name (even with a full path), it generates the following:
Enter source file to list :
Watch.java
You entered : Watch.java
Error -- java.io.FileNotFoundException: Watch.java
(The filename, directory name, or volume label syntax is incorrect)
Here is the source code. What am I doing wrong ? If I change the FileReader object and hard code a file name, it works fine. Please help. Thanks.
import java.io.*;
public class ReadSource2
public static String inline()
StringBuffer response = new StringBuffer();
try
{ BufferedInputStream buff = new BufferedInputStream(System.in);
int in = 0;
char inChar;
do {
in = buff.read();
inChar = (char) in;
if (in != -1) response.append(inChar);
} while ((in != -1) && (inChar != '\n'));
buff.close();
return response.toString();
catch (IOException e)
{ System.out.println("Exception: " + e.getMessage());
return null;
public static void main(String[] args)
System.out.println("\nEnter source file to list : ");
String input = ReadSource2.inline();
System.out.println("You entered : " + input);
try
{ FileReader file = new FileReader("" + input);
BufferedReader buff = new BufferedReader(file);
boolean eof = false;
while (!eof)
String line = buff.readLine();
if (line == null) eof = true;
else System.out.println(line);
buff.close();
catch (IOException e) { System.out.println("Error -- " + e.toString()); }
}
I solved this by trial and error (more error than trial). What was happening was that I was capturing the carriage return as part of the file name, so I had to truncate it from the file name and it now works fine. I made the followingf modification to the main() method:
input = input.substring(0, input.length() - 2) ;
and it works like a charm.
Of course if I hit a Tab before carriage return, it blows up just as it did before, so it is not completely idiot-proof yet, but should be OK for 99% of the time. This now also works for windows files (just HAD to test), where a space in the file name is legitimate.
Case closed. Lesson learned.
Similar Messages
-
Java.io.FileNotFound Exception
when trying to call autoConfigure() got following
java.io.FileNotFoundException: /../../abc.xml (No such file or directory)
Please throw some light
thanks,
SrikanthApplication Release : R12 database :10g OS:linux
im working on concurrent program where it invokes some FC's .autoconifg() is one of them and got above exception during that call. this autoconfig() method calls xml to check the nodes
Please suggest -
JSTL throwing java.lang.NoSuchMethodError: Exception
Hai folks,
I was trying to install JSTL in tomcat's container.
I've copied all jar files into the webapps\ROOT\WEB-INF\lib directory.TLD files are copied to the webapps\ROOT\WEB-INF directory. I've also rewrited the web.xml with corresponding TLD's uri mappings.
But i am always getting this exception.
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NoSuchMethodError:
javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:568)
at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:7
38)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Please help.Hai folks,
I was trying to install JSTL in tomcat's container.
I've copied all jar files into the
webapps\ROOT\WEB-INF\lib directory.TLD files are
copied to the webapps\ROOT\WEB-INF directory. I've
also rewrited the web.xml with corresponding TLD's
uri mappings.Delete the TLDs. Remove the taglib changes you made to the web.xml. I am not sure what tutorial tells people to do this, but it is WRONG for installing JSTL (or any Custom Tag Library that is packaged properly).
All you need is the standard.jar and jstl.jar in your WEB-INF/lib directory (and maybe an XMLParser if you are using the <xml: tags).
Anyway. That may not be your main problem. Make sure you are using the correct version of JSTL for you server.
If you are using Tomcat 4, you need JSTL 1.0
If you are using Tomcat 5, you need JSTL 1.1
>
But i am always getting this exception.
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw
exception
java.lang.NoSuchMethodError:
javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava
/lang/String;ZLjava/lang/String;ZZ)V
at
t
org.apache.jasper.compiler.TagLibraryInfoImpl.createAt
tribute(TagLibraryInfoImpl.java:568)
at
t
org.apache.jasper.compiler.TagLibraryInfoImpl.createTa
gInfo(TagLibraryInfoImpl.java:401)
at
t
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD
(TagLibraryInfoImpl.java:248)
at
t
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(T
agLibraryInfoImpl.java:162)
at
t
org.apache.jasper.compiler.Parser.parseTaglibDirective
(Parser.java:418)
at
t
org.apache.jasper.compiler.Parser.parseDirective(Parse
r.java:483)
at
t
org.apache.jasper.compiler.Parser.parseElements(Parser
.java:1539)
at
t
org.apache.jasper.compiler.Parser.parse(Parser.java:12
6)
at
t
org.apache.jasper.compiler.ParserController.doParse(Pa
rserController.java:211)
at
t
org.apache.jasper.compiler.ParserController.parse(Pars
erController.java:100)
at
t
org.apache.jasper.compiler.Compiler.generateJava(Compi
ler.java:146)
at
t
org.apache.jasper.compiler.Compiler.compile(Compiler.j
ava:286)
at
t
org.apache.jasper.compiler.Compiler.compile(Compiler.j
ava:267)
at
t
org.apache.jasper.compiler.Compiler.compile(Compiler.j
ava:255)
at
t
org.apache.jasper.JspCompilationContext.compile(JspCom
pilationContext.java:556)
at
t
org.apache.jasper.servlet.JspServletWrapper.service(Js
pServletWrapper.java:296)
at
t
org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
pServlet.java:295)
at
t
org.apache.jasper.servlet.JspServlet.service(JspServle
t.java:245)
at
t
javax.servlet.http.HttpServlet.service(HttpServlet.jav
a:853)
at
t
org.apache.catalina.core.ApplicationFilterChain.intern
alDoFilter(ApplicationFilterChain.java:252)
at
t
org.apache.catalina.core.ApplicationFilterChain.doFilt
er(ApplicationFilterChain.java:173)
at
t
org.apache.catalina.core.StandardWrapperValve.invoke(S
tandardWrapperValve.java:214)
at
t
org.apache.catalina.core.StandardContextValve.invoke(S
tandardContextValve.java:178)
at
t
org.apache.catalina.core.StandardHostValve.invoke(Stan
dardHostValve.java:126)
at
t
org.apache.catalina.valves.ErrorReportValve.invoke(Err
orReportValve.java:105)
at
t
org.apache.catalina.core.StandardEngineValve.invoke(St
andardEngineValve.java:107)
at
t
org.apache.catalina.connector.CoyoteAdapter.service(Co
yoteAdapter.java:148)
at
t
org.apache.coyote.http11.Http11Processor.process(Http1
1Processor.java:825)
at
org.apache.coyote.http11.Http11Protocol$Http11Connecti
onHandler.processConnection(Http11Protocol.java:7
38)
at
t
org.apache.tomcat.util.net.PoolTcpEndpoint.processSock
et(PoolTcpEndpoint.java:526)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.
runIt(LeaderFollowerWorkerThread.java:80)
at
t
org.apache.tomcat.util.threads.ThreadPool$ControlRunna
ble.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Please help. -
FindClass() throws java.lang.UnsatisfiedLinkError exception
Hi All,
I am using a JNI to make my C program to communicate with the GUI developed in Java Swings. In my C program I have used FindClass() method to find the java class. While exececuting my C program, I got the following exception,
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/jre1.5.0_04/lib/i386/libawt.so: /usr/java/j2sdk1.4.2_08/jre/lib/i386/libmlib_image.so: version `VER_1.1' not found (required by /usr/java/jre1.5.0_04/lib/i386/libawt.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
I have ensured that the libawt.so and ibmlib_image.so paths are set in LD_LIBRARY_PATH. Inspite of that I am not able to access the java class because of the above mentioned exception. Please help me out in this.
For your reference, I am attaching the code with this,
#include <jni.h>
int main()
JavaVMOption options[2];
JNIEnv *env;
JavaVM *jvm;
JavaVMInitArgs vm_args;
long status;
jclass cls;
jobject obj;
jmethodID mid;
jstring jstr;
char str[25];
options[0].optionString = "-Djava.class.path=/home/maniyan/work/Dhruv_proj/vers/v5";
options[1].optionString = "-verbose:jni";
memset(&vm_args, 0, sizeof(vm_args));
vm_args.version = JNI_VERSION_1_4;
vm_args.nOptions = 1;
vm_args.options = options;
vm_args.ignoreUnrecognized = 1;
status = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
printf("status %d\n",status);
if (status != JNI_ERR)
printf("Exception %d\n",(*env)->ExceptionCheck(env));
cls = (*env)->FindClass(env, "frame_main_v1");
printf("Exception %d\n",(*env)->ExceptionCheck(env));
if ((*env)->ExceptionCheck(env)) {
(*env)->ExceptionDescribe(env);
(*env)->ExceptionClear(env);
if(cls !=0)
//printf("am here\n");
mid = (*env)->GetStaticMethodID(env, cls, "display_message", "(Ljava/lang/String;)V");
printf("Method %d\n",mid);
if(mid !=0)
{ strcpy(str,"Hello world");
(*env)->CallStaticCharMethod(env, cls, mid, (*env)->NewStringUTF(env, str));
(*jvm)->DestroyJavaVM(jvm);
return 0;
else {
printf("some error\n");
return -1;
Thanks in adv,
Cool Dudethis is like a classpath issue, but for a native library
basically you need to include the library file in your path info to the JVM -
Oracle JDBC driver throwing java.nio.BufferUnderflowException exception
Hi,
We have a an application for which the middleware(SAR file) is running on Jboss.
We have configured a DCN (data change notification) listener (As part of SAR file) to listen for the databases changes on port 56090.
A weekly machine security scan has been scheduled. As part of the system scan, it scans the port 56090. Following exception has been thrown by the JDBC driver at the time of scanning.
2009-05-24 16:29:37,874 INFO [STDOUT] java.nio.BufferUnderflowException
2009-05-24 16:29:37,874 INFO [STDOUT] at java.nio.Buffer.nextGetIndex(Buffer.java:398)
2009-05-24 16:29:37,874 INFO [STDOUT] at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:117)
2009-05-24 16:29:37,875 INFO [STDOUT] at oracle.jdbc.driver.NTFConnection.readByte(NTFConnection.java:616)
2009-05-24 16:29:37,875 INFO [STDOUT] at oracle.jdbc.driver.NTFConnection.readInt(NTFConnection.java:650)
2009-05-24 16:29:37,875 INFO [STDOUT] at oracle.jdbc.driver.NTFConnection.unmarshalNSDataPacket(NTFConnection.java:498)
2009-05-24 16:29:37,875 INFO [STDOUT] at oracle.jdbc.driver.NTFConnection.unmarshalOneNSPacket(NTFConnection.java:404)
2009-05-24 16:29:37,875 INFO [STDOUT] at oracle.jdbc.driver.NTFConnection.run(NTFConnection.java:181)
And during scanning time very high CPU usage (90%) is encountered. Normal CPU usage of the application server system will be around 20%.
Can you please give any information on the event/data which is causing the above exception. and how it can be handled, so as to minimize CPU usage back to 20%?
Please give more information about oracle.jdbc.driver.NTFConnection class.
Thanks in Advance
Abdur Rahman
Edited by: user11269361 on Jun 15, 2009 8:57 AMHi,
The DCN protocol is synchronous so if the security system scan sends a byte to the port 56090 the protocol will break. I recommend you configure the system scan to not interfere with DCN.
Regards,
Jean -
Asgctl.sh throws Java Null Pointer Exception
Hi Guys,
I am getting the following exception on executing asgctl commands through shell script
[oracle@lgemas08 script]$ sh t.sh
java.lang.NullPointerException
at oracle.duf.DufBaseClientCmdLine.parseCmdString(DufBaseClientCmdLine.java:710)
at oracle.duf.DufBaseClientCmdLine.readOneLine(DufBaseClientCmdLine.java:235)
at oracle.duf.DufBaseClientCmdLine.processBaseInput(DufBaseClientCmdLine.java:256)
at oracle.duf.dufclient.DufClientCmdLine.processInput(DufClientCmdLine.java:427)
at oracle.duf.dufclient.DufClient.main(DufClient.java:143)
[oracle@apps script]$ cat t.sh
#! /bin/bash
$ORACLE_HOME/dsa/bin/asgctl.sh <<! >> /u001/Test_Transition/LDAP_HOME/dsa/script/asg.log
@/home/oracle/test.txt
test.txt has the follwing entries
connect asg <Hostname>:<port> ias_admin/***
set asg credentials <Hostname>:<port> ias_admin/***
set asg credentials <Hostname>:<port> ias_admin/***
set asg credentials <Hostname>:<port> ias_admin/***
set asg credentials <Hostname>:<port> ias_admin/***
asg.log file contains
[oracle@lgemas08 script]$ cat asg.log
Application Server Guard: Release 10.1.2.2.0
(c) Copyright 2004, 2006 Oracle Corporation. All rights reserved.
ASGCTL> >>connect asg <Hostname>:<port>ias_admin/********
Successfully connected to <Hostname>:<port>
set asg credentials <Hostname>:<port> ias_admin/********
set asg credentials <Hostname>:<port> ias_admin/********
set asg credentials <Hostname>:<port> ias_admin/********
set asg credentials <Hostname>:<port> ias_admin/********ASGCTL> null
[oracle@lgemas08 script]$
Thanks in advance,
KrishnakumarWhat does 'which java' and 'java -version' give as output?
I have the feeling that you are not using the JDK version that you should be using... -
Throw "java.util.Vector" exception?
In my servlet, I got catch(Throwable t), t.getMessage() is java.util.Vector. Can anyone tell me where I should look into for this problem?
probably a ClassCastException. Why don't you get the stack trace?
-
Java Null Pointer Exception- Business Validation In AM
Hi, I have been tried cracking this validation issue, tried several combinations. But does not work and throw java null pointer exception. I would appreciate if somebody can point where I am going wrong on the code. Thanks ahead.
Below is the issue:-
I have a page with PO (blanket purchase order) header info, and a PO line info with additional empty columns (related to Blanket Release). When the user fills in one of the columns (release amount, rls_amt_i), then I need to validate this against remaining blanket amount ie.{ PO_amt - (po_rls_amt1 + po_rls_amt2+..)}. If rls_amt_i is <= remaining amount, then the release needs to get created, otherwise shouldn't. I know, this is a pretty normal requirement. Please check my code to see where I could be wrong.
ReleaseCO (in PFR):-
if (pageContext.getParameter("Apply") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)am.findViewObject("CxPoReleaseVO1");
Number poHeaderId = (Number)vo.getCurrentRow().getAttribute("PoHeaderId");
String poNumber = (String)vo.getCurrentRow().getAttribute("PoNumber");
OAViewObject linesVO = (OAViewObject)am.findViewObject("CxPoReleaseLinesVO1");
Number lineAmt = (Number)linesVO.getCurrentRow().getAttribute("Amount");
Serializable [] params = {poHeaderId.toString(), poNumber, lineAmt.toString()};
am.invokeMethod("apply", params);
ReleaseAM:-
public void apply(String poheaderId, String poNumber, String lineAmt)
Number blanketAmt, totalreleasesAmt, lineRlsAmt;
try
{ lineRlsAmt = new Number(lineAmt.trim());}
catch(Exception e) { throw new OAException("AK", "FWK_TBX_INVALID_EMP_NUMBER"); }
totalreleasesAmt = getReleasesAmt(poheaderId);
blanketAmt = getBlanketAmt(poNumber);
if ((lineRlsAmt.intValue() - (blanketAmt.intValue()-totalreleasesAmt.intValue())) <= 0)
getTransaction().commit();
approve();
throw new OAException("The amount is less than the remaining release amt", OAException.INFORMATION);
} // end apply()
public Number getReleasesAmt (String poHeaderId)
CxTotalReleaseQuantityVVOImpl totalreleaseqtyVO = getCxTotalReleaseQuantityVVO1(); //vo to get TotalReleased Amount
Number poHeadNum = null;
Number totalqty;
try { poHeadNum = new Number(poHeaderId); }
catch (Exception e) { throw OAException.wrapperException(e); }
totalreleaseqtyVO.initQuery(poHeadNum);
CxTotalReleaseQuantityVVORowImpl row = null;
row = (CxTotalReleaseQuantityVVORowImpl)totalreleaseqtyVO.getCurrentRow();
try { totalqty = (Number)row.getQuantityReleased();}
catch (Exception e) { throw new OAException(e.getMessage()); }
if(totalqty != null)
{ return totalqty; }
else
{ throw new OAException ("exception occurred", OAException.ERROR); }
public Number getBlanketAmt (String poNumber)
Number blanketAmt;
CxBlanketAmtVOImpl blanketVO = (CxBlanketAmtVOImpl) getCxBlanketAmtVO1(); //VO to get total amount on the BlanketPO.
blanketVO.initQuery(poNumber);
Row row = blanketVO.getCurrentRow();
blanketAmt = (Number)row.getAttribute("Quantity"); //gets the blanket amt
if( blanketAmt != null ) {
return blanketAmt ; }
else { throw new OAException ("exception occurred", OAException.ERROR); }
---------The code breaks at the line where I try to get "totalqty" or "blanketAmt" .. It throws a java nullpointer exception.
Thanks for helping me out.
-VikramHi Sumit,
Thanks for replying. Here is the error stack.
Exception Details.
oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:988)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
at netflix.oracle.apps.nflix.p2p.po.webui.NfCreateReleaseCO.processFormRequest(NfCreateReleaseCO.java:115)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
at OA.jspService(OA.jsp:34)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.lang.NullPointerException
at netflix.oracle.apps.nflix.p2p.po.server.NfReleaseCreateAMImpl.getReleasesAmt(NfReleaseCreateAMImpl.java:642)
at netflix.oracle.apps.nflix.p2p.po.server.NfReleaseCreateAMImpl.apply(NfReleaseCreateAMImpl.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
at netflix.oracle.apps.nflix.p2p.po.webui.NfCreateReleaseCO.processFormRequest(NfCreateReleaseCO.java:115)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
at OA.jspService(OA.jsp:34)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.lang.NullPointerException
at netflix.oracle.apps.nflix.p2p.po.server.NfReleaseCreateAMImpl.getReleasesAmt(NfReleaseCreateAMImpl.java:642)
at netflix.oracle.apps.nflix.p2p.po.server.NfReleaseCreateAMImpl.apply(NfReleaseCreateAMImpl.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
at netflix.oracle.apps.nflix.p2p.po.webui.NfCreateReleaseCO.processFormRequest(NfCreateReleaseCO.java:115)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
at OA.jspService(OA.jsp:34)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
The code breaks at the line 642: totalqty = (Number)row.getQuantityReleased();
I had already taken care of the null value in the VO sql query by using nvl(sum(release_amount), 0).. .so it should return atleast 0, if its null. But it returns "null" all the time.
I dont understand why its doing that. When I run the sql backend the query works fine and returns 0,even when there are no prior releases on the PO.
Thanks,
Vikram -
Java.lang.NullPointer exception
We have a report which fetches large amount of data and this report is inviked from JSP page using Crystal JRC.
Now if we run report and click "next" or "prvious" button befor the rpeort page is rendered with data (or finishesh fetching data). It throws "Java.Lng.NullPOinter Exception".
Can somebody please point out the problem behind this. are we doing anything wrong?
Do we need to set any paramter for report
Thanks,
Kuldeepdid you solve your problem .I have the same .
Thanks -
Why my cutomize role mapper throws java.lang.ClassCastException: $Proxy67
Hello all,
I customize the role mapper as follows is my MDF content
<MBeanType
Name = "TestRoleMapper"
DisplayName = "TestRoleMapper"
Package = "test.pkg.roles"
Extends = "weblogic.management.security.authorization.RoleMapper"
Implements = "weblogic.management.security.authorization.RoleReader"
PersistPolicy = "OnUpdate"
I implements the method "listRolesForResource", this method declared to return a string array.
When I return the role name array then Weblogic throws java.lang.ClassCastException: $Proxy67
Error snapshot
http://antonov0318.googlepages.com/error.jpg
Would I miss some interface ?
Would somebody know how to solve it?
Please let me know , Please....Thank you very much.
Edited by: user6273860 on 2008/10/25 上午 12:00It looks like you're just taking random methods,
calling them incorrectly, and expecting them to
work.
What do you think this will do?
* Construct {@link java.lang.Object} array of keys from {@link java.util.Hashtable}
* @param h {@link java.util.Hashtable}
* @return array {@link java.lang.String}
* @throws java.lang.IndexOutOfBoundsException Exception thrown if initial {@link java.lang.Object} array paramater cannot be indexed
public static Object[] arrayKeys(Hashtable<Object, Object> h) throws IndexOutOfBoundsException {
return h.keySet().toArray();
}>
ArrayFunctionality.arrayKeys(attrs)(new
String[attrs.size()]);What's arrayKeys? And what do you think
method(args) (some other stuff) ; will
do?
Somebody else showed you what to do earlier, but they
had a typo. You need to pass an array of the
appropriate type to toArray:
String[] stringArr =
(String[])theList.toArray(someStringArray);Read the docs for that method so you understand how
it works. Just just blindly copy/paste.The API docs for toArray() for java.util.Set interface takes no parameters, I can't expect to know you can override it -
Java function with Dynamic config throws null pointer exception
hi Experts,
I am using dynamic config using java function in my message mapping.
The source message has a field called "fname".
The value of "fname" is the input to my java UDF.
The java UDF code is:
public String getDynamicFile(String fname, Container container) throws StreamTransformationException{
String str = fname + ".xml";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
conf.put(FileName, str);
return str;
When I test this message mapping I get the following exception:
Runtime Exception:[java.lang.NullPointerException: while trying to invoke the method com.sap.aii.mapping.api.DynamicConfiguration.put(com.sap.aii.mapping.api.DynamicConfigurationKey, java.lang.String) of an object loaded from local variable '<4>'] in class com.sap.xi.tf._<message mapping>_ method getDynamicFile[test, com.sap.aii.mappingtool.tf7.rt.Context@2e52cb31]
What am I doing wrong in this UDF?
Thanks
GopalHi,
Your UDF will run fine in an end to end execution,i.e, during runtime. However, if you want to test your message mapping test tab without the dynamic config UDF throwing an exception, encpasulate the code in a try catch block
public String getDynamicFile(String fname, Container container) throws StreamTransformationException{
String str = fname + ".xml";
try{
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
conf.put(FileName, str);
}catch(Exception ex){}
return str;
The above code should run fine when you test in the message mapping test tab.
Regards -
HttpURLConnection throws a FileNotFound exception
Hi Everybody,
I want to post the data to a remote servlet using HttpURLConnection.
But it throws a FileNotFound exception. Pls send me the solution.
My code is
First Servlet:
==============
import java.io.*;
import java.net.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Test extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
response.setContentType("text/html");
URL url = new URL("http://node_18:8080/examples/servlet/HelloWorldExample1");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
//HttpURLConnection.setFollowRedirects(true);
conn.setUseCaches(false);
conn.setDoOutput(true);
conn.setDoInput(true);
String postData = "name=value&othername=value";
String lengthString = String.valueOf(postData.length());
conn.setRequestProperty("Content-Length", lengthString);
conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
Writer out = new OutputStreamWriter(conn.getOutputStream());
out.write(postData);
out.close();
PrintWriter out1 = response.getWriter();
BufferedReader in =
new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line = null;
while (null != (line = in.readLine()))
out1.println(line);
in.close();
out1.close();
Second Servlet:
================
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorldExample1 extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String name = request.getParameter("name");
String othername = request.getParameter("othername");
System.out.println("name = "+name+" othername = "+othername);
out.println("<html>");
out.println("<head>");
out.println("<title> Test </title>");
out.println("</head>");
out.println("<body bgcolor=\"white\">");
out.println("Test");
out.println("</body>");
out.println("</html>");
public void destroy() {
System.out.println("Servlet Destroyed");
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
doPost(request,
response);
Error:
=======
java.io.FileNotFoundException: http://node_18:8080/examples/servlet/HelloWorldExample1
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
at Test.doGet(Test.java:37)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:623)
at java.lang.Thread.run(Thread.java:484)Hi p200002,
I call doPost method in doPost in the second servlet. It will be
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
doGet(request,
response);
} -
Compleated guided procedure task throws Java.lang.null pointer exception.
Hello,
Compleated guided procedure task throws Java.lang.null pointer exception in UWL.
From UWL tracking of finished task of guided procedures throws null pointer exception .
Guided procedure is created in local J2EE Engine not in Back end SAP System.
Any ideas.
Regards
MarkHi
If u solved the problem mentioned above please tell me g\how u managed to do it.We are facing the same issue.Completed gp shows the same exception while opening from tracking tab -
Problem with reading from DAT file. FileNotFound exception
Can't seem to find the issue here. Two files, one (listOfHockeyPlayers) reads from a DAT file a list of players. The other (HockeyPlayer) has just the constructor to make a new hockey player from the read data.
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;
import java.awt.*;
import java.io.*;
public class ImportHockeyPlayers
private ArrayList<HockeyPlayer> listOfHockeyPlayers = new ArrayList<HockeyPlayer>();
public ImportHockeyPlayers(String fileName)
throws FileNotFoundException
try
Scanner scan = new Scanner(new File(fileName));
while (scan.hasNext())
//Uses all the parameters from the HockeyPlayer constructor
String firstName = scan.next();
String lastName = scan.next();
int num = scan.nextInt();
String country = scan.next();
int dob = scan.nextInt();
String hand = scan.next();
int playerGoals = scan.nextInt();
int playerAssists = scan.nextInt();
int playerPoints = playerGoals + playerAssists;
//listOfHockeyPlayers.add(new HockeyPlayer(scan.next(),scan.next(),scan.nextInt(),scan.next(),scan.nextInt(),scan.next(),
//scan.nextInt(),scan.nextInt(),scan.nextInt()));
catch(FileNotFoundException e)
throw new FileNotFoundException("File Not Found!");
public String toString()
String s = "";
for(int i = 0; i < listOfHockeyPlayers.size(); i++)
s += listOfHockeyPlayers.get(i);
return s;
public class HockeyPlayer
private String playerFirstName;
private String playerLastName;
private int playerNum;
private String playerCountry;
private int playerDOB;
private String playerHanded;
private int playerGoals;
private int playerAssists;
private int playerPoints;
public HockeyPlayer(String firstName, String lastName, int num, String country, int DOB,
String hand, int goals, int assists, int points)
this.playerFirstName = firstName;
this.playerLastName = lastName;
this.playerNum = num;
this.playerCountry = country;
this.playerDOB = DOB;
this.playerHanded = hand;
this.playerGoals = goals;
this.playerAssists = assists;
this.playerPoints = goals + assists;
DAT File
Wayne Gretzky 99 CAN 8/13/87 R 120 222
Joe Sakic 19 CAN 9/30/77 L 123 210These are all in early development, we seem to have the idea down but keep getting the odd FileNotFound exception when making an object of the ImportHockeyPlayers class with the parameter of the DAT file.
We might even be on the wrong track with an easier way to do this. To give you an idea of what we want to do...read from the file and be able to pretty much plug in al lthe players into a GUI with a list of the all the players.
Thanks for your time.Thanks for the tip on the date format...good to
know.
public static void main(String[] args)
GUI gui = new GUI();
ImportHockeyPlayers ihp = new
ImportHockeyPlayers("HockeyPlayers.dat");
}It's just being called in the main.
Throws this error:
GUI.java:39: unreported exception
java.io.FileNotFoundException; must be caught or
declared to be thrown
ImportHockeyPlayers ihp = new
ImportHockeyPlayers("HockeyPlayers.dat");
^This error is simply telling you that an exception may occur so you must enclose it in a try catch block or change the main method to throw the exception as follows
public static void main(String[] args) throws
java.io.FileNotFoundException {
GUI gui = new GUI();
ImportHockeyPlayers ihp = new
ImportHockeyPlayers("HockeyPlayers.dat");
}or
public static void main(String[] args) {
GUI gui = new GUI();
try {
ImportHockeyPlayers ihp = new
ImportHockeyPlayers("HockeyPlayers.dat");
catch (FileNotFoundException e) {
System.out.println("error, file not found");
}I would reccomend the second approch, it will be more helpful in debugging, also make sure that the capitalization of "HockeyPlayers.dat" is correct
hope that helps -
Adding a new UDF throws a null pointer exception and modifying user.xml
Hello,
I have a two part question.
i. I am trying to add a UDF (using Advanced>User Configuration..Attributes) to a fully configured OIM i.e. oim with reconciliation and provisioning from and to resources but it throws a null pointer exception. Look at the log, I see
===============Excerpt form the log file==========
[2012-01-26T11:28:14.447-05:00] [oim_server1] [NOTIFICATION] [] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000JKQq8vZ8dpC5nFk3yZ1Evvpt000LzY,0] [APP: oim#11.1.1.3.0] [dcid: c62f3a4b80d21e6f:ef93519:134587d39c4:-7ffd-0000000000022a3e] [[
---Stack Trace Begins[[This is not an exception. For debugging purposes]]---
oracle.iam.platform.authz.impl.OESAuthzServiceImpl.doCheckAccess(OESAuthzServiceImpl.java:210)
oracle.iam.platform.authz.impl.OESAuthzServiceImpl.hasAccess(OESAuthzServiceImpl.java:188)
oracle.iam.platform.authz.impl.OESAuthzServiceImpl.hasAccess(OESAuthzServiceImpl.java:180)
oracle.iam.platform.authz.impl.AuthorizationServiceImpl.hasAccess(AuthorizationServiceImpl.java:173)
oracle.iam.configservice.impl.ConfigManagerImpl.checkAuthorization(ConfigManagerImpl.java:1899)
oracle.iam.configservice.impl.ConfigManagerImpl.addAttribute(ConfigManagerImpl.java:177)
oracle.iam.configservice.api.ConfigManagerEJB.addAttributex(Unknown Source)
... 21 lines skipped..
oracle.iam.configservice.api.ConfigManager_5u0nrx_ConfigManagerRemoteImpl.addAttributex(ConfigManager_5u0nrx_ConfigManagerRemoteImpl.java:864)
... 13 lines skipped..
oracle.iam.configservice.api.ConfigManagerDelegate.addAttribute(Unknown Source)
oracle.iam.configservice.agentry.config.CreateAttributeActor.perform(CreateAttributeActor.java:266)
oracle.iam.consoles.faces.mvc.canonic.Model.perform(Model.java:547)
oracle.iam.consoles.faces.mvc.admin.Model.perform(Model.java:324)
oracle.iam.consoles.faces.mvc.canonic.Controller.doPerform(Controller.java:255)
oracle.iam.consoles.faces.mvc.canonic.Controller.doSelectAction(Controller.java:178)
oracle.iam.consoles.faces.event.NavigationListener.processAction(NavigationListener.java:97)
... 24 lines skipped..
oracle.iam.platform.auth.web.PwdMgmtNavigationFilter.doFilter(PwdMgmtNavigationFilter.java:115)
... weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthContextFilter.java:100)
... 15 lines skipped..
weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
---Stack Tracefor this call Ends---
[2012-01-26T11:28:14.447-05:00] [oim_server1] [NOTIFICATION] [IAM-1010010] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000JKQq8vZ8dpC5nFk3yZ1Evvpt000LzY,0] [APP: oim#11.1.1.3.0] [dcid: c62f3a4b80d21e6f:ef93519:134587d39c4:-7ffd-0000000000022a3e] [arg: 1] [arg: null] [arg: USER_MANAGEMENT_CONFIG] [arg: CREATE_ATTRIBUTE] ********** Entering the Authorization Segment with parameters:: LoggedInUserId = 1, target resourceID = null, Feature = USER_MANAGEMENT_CONFIG, Action = CREATE_ATTRIBUTE **********
[2012-01-26T11:28:14.448-05:00] [oim_server1] [NOTIFICATION] [IAM-1010021] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000JKQq8vZ8dpC5nFk3yZ1Evvpt000LzY,0] [APP: oim#11.1.1.3.0] [dcid: c62f3a4b80d21e6f:ef93519:134587d39c4:-7ffd-0000000000022a3e] [arg: [InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: noop, values: [true], convertToObligation: false]] Validating the Internal Obligations: [InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: noop, values: [true], convertToObligation: false]
[2012-01-26T11:28:14.448-05:00] [oim_server1] [NOTIFICATION] [IAM-1010022] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000JKQq8vZ8dpC5nFk3yZ1Evvpt000LzY,0] [APP: oim#11.1.1.3.0] [dcid: c62f3a4b80d21e6f:ef93519:134587d39c4:-7ffd-0000000000022a3e] ---------- The list of Internal Obligation is satisfied, returning TRUE ----------
[2012-01-26T11:28:14.448-05:00] [oim_server1] [NOTIFICATION] [IAM-1010026] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000JKQq8vZ8dpC5nFk3yZ1Evvpt000LzY,0] [APP: oim#11.1.1.3.0] [dcid: c62f3a4b80d21e6f:ef93519:134587d39c4:-7ffd-0000000000022a3e] [arg: Decision :PERMIT\nObligations from policy: ] ********** Exiting the Authorization Segment with result Decision :PERMIT[[
=============Excerpt ends==============
Is there a reason why this is and how do I get by it.
ii. Can I just add the field directly within the MDS>file/user.xml? Would there be an issue with changing an existing attribute metadata using the user.xml?Pradeep thank you for your response. it was helpful. However, I also found the responses to both my questions.
i. The null pointer exception was due to using a complex query I was using in the LOV query. I tried a simple query and that worked fine.
ii. For modifying the user defined attributes one can consult the following forum post:
OIM 11g - Change UDF Field Type form String to LOV
Thanks
Maybe you are looking for
-
Cords Required to Watch Macbook Pro on TV
I have the a Macbook Pro that I purchased in August of 2009. I purchased the 13 inch model, but with the 15 inch tech specs. I have an Emerson 32 inch LCD tv and I was wondering what cords I would need to watch movies on the TV via my Macbook Pro. Th
-
Windows XP Home Or Pro.
hey thanks fr readin this. Can you tell me where can i buy Windows XP Home Or Pro. thanks imac17"/1.83GHz/512MB/160GB/SD/AP/BT Mac OS X (10.4.7)
-
the data I measured changed rapidly, so i want get the average value of the data Do not tell me to use mean.vi , i have already know that. and i got an idea which is add the data into an array every time, then sum of all the data value and take the r
-
I am trying to make the transition from Word to Pages, but one thing that is bothering me is the way fonts look. In Word, fonts look more crisp and sharp. Even more bold. In Pages, the same fonts look washed out and blurry. I thought maybe this was a
-
Sequence "could not be found" PP to SG - and other annoyance WRT formats.
Hello guys I am getting really frustrated here, trying to use SG to grade a PP sequence. When I send to SG from PP (CC versions) I get a big red splash screen saying SG cannot find the sequence, and it gives the path to the PP project. This is a show